/* Ghost Protocol — shared stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #050a14;
  --bg-elev: #0a1424;
  --bg-card: #0d1929;
  --teal:    #00d4aa;
  --teal-lo: rgba(0,212,170,.12);
  --teal-md: rgba(0,212,170,.25);
  --purple:  #7c5cbf;
  --text:    #eef2ff;
  --muted:   rgba(238,242,255,.55);
  --border:  rgba(255,255,255,.09);
  --radius:  12px;
  --font:    'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, "Cascadia Code", "Fira Code", monospace;
  --shadow-teal: 0 0 48px rgba(0,212,170,.3);
  --shadow-card: 0 20px 60px -20px rgba(0,0,0,.7);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Section divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--teal-md) 50%, var(--border) 80%, transparent);
  border: none;
  margin: 0;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5,10,20,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 62px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text);
  text-decoration: none !important;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-brand .slash { color: var(--teal); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 8px; background: transparent; cursor: pointer;
  gap: 5px; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}
/* Animate hamburger to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta {
  display: flex; align-items: center; gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: var(--radius);
  transition: all var(--transition); cursor: pointer; border: none;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: #050a14;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--teal-lo);
  color: var(--text);
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-xl { padding: 14px 32px; font-size: 16px; border-radius: 14px; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,170,.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124,92,191,.18), transparent);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(0,212,170,.3);
  background: rgba(0,212,170,.06);
  border-radius: 999px; padding: 6px 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .25em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 32px;
  animation: fade-up .8s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: blink 1.2s step-end infinite;
}
.hero h1 {
  font-size: clamp(56px, 12vw, 112px); font-weight: 800;
  line-height: .92; letter-spacing: -.03em;
  animation: fade-up .8s .1s ease both;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #fff 0%, var(--teal) 55%, #00ffcc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 24px; max-width: 640px;
  font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); line-height: 1.65;
  animation: fade-up .8s .2s ease both;
}

/* Encryption ticker */
.ticker-wrap {
  margin-top: 40px; width: 100%; max-width: 600px;
  animation: fade-up .8s .3s ease both;
}
.ticker {
  border: 1px solid rgba(0,212,170,.28);
  background: rgba(10,20,36,.8);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 0 40px rgba(0,212,170,.12);
  backdrop-filter: blur(12px);
}
.ticker-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.ticker-body {
  font-family: var(--mono); font-size: 15px; min-height: 48px;
  text-align: left; word-break: break-all; color: var(--text);
}
.ticker-body.encrypting { color: #00ffcc; }
.ticker-cursor {
  display: inline-block; width: 8px; height: 18px; margin-left: 2px;
  vertical-align: middle; background: var(--teal);
  animation: blink .9s step-end infinite;
}

/* Hero CTAs */
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 40px;
  animation: fade-up .8s .4s ease both;
}

/* Stats bar */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; margin-top: 64px; border-radius: 20px;
  overflow: hidden; border: 1px solid var(--border);
  animation: fade-up .8s .5s ease both;
  background: rgba(13,25,41,.6);
}
.stat {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(0,212,170,.06); }
.stat-val {
  font-size: 38px; font-weight: 700; color: var(--teal);
  font-family: var(--mono); line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  margin-top: 8px; font-size: 12px;
  color: var(--muted); line-height: 1.4;
}

/* ── Section shared ── */
section { padding: 96px 24px; }
.section-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--muted); max-width: 600px; line-height: 1.65; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .section-sub { margin: 0 auto; }

/* ── Features ── */
.features-bg { background: var(--bg-elev); }
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature-card {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(0,212,170,.5);
  box-shadow: 0 8px 40px -8px rgba(0,212,170,.25), 0 0 0 1px rgba(0,212,170,.1);
  transform: translateY(-4px);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--teal-lo), rgba(124,92,191,.06));
  opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-lo); border: 1px solid rgba(0,212,170,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 20px;
  transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg {
  width: 22px; height: 22px; stroke: currentColor;
  fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── How it works ── */
.flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; overflow-x: auto; padding-bottom: 4px;
}
.flow-step {
  flex: 1; min-width: 160px; max-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 20px; text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.flow-step:hover {
  border-color: rgba(0,212,170,.45);
  box-shadow: 0 4px 24px -4px rgba(0,212,170,.2);
}
.flow-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-lo); border: 1px solid rgba(0,212,170,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--teal); margin: 0 auto 16px;
}
.flow-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.flow-step p {
  font-size: 12px; font-family: var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.flow-arrow {
  color: var(--teal); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; padding: 0 8px;
  opacity: .6;
}
.flow-arrow svg { width: 22px; height: 22px; }

/* ── Zero-data strip ── */
.zero-strip {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.zero-strip-header {
  padding: 22px 24px 16px;
  text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--teal);
}
.zero-strip-border {
  border-top: 1px solid var(--border);
}
/* 4 columns desktop → 2 tablet → 1 mobile via CSS grid */
.zero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.zero-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 20px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.zero-item:nth-child(4n) { border-right: none; }
.zero-item:hover { background: rgba(13,25,41,.6); }
.zero-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(239,83,80,.1); border: 1px solid rgba(239,83,80,.25);
  display: flex; align-items: center; justify-content: center;
  color: #ef5350; margin-bottom: 12px; flex-shrink: 0;
}
.zero-icon svg { width: 20px; height: 20px; }
.zero-label {
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.zero-sub {
  font-size: 11px; color: var(--muted); line-height: 1.55;
}

/* ── Download section ── */
.dl-bg { background: var(--bg-elev); }
.dl-options {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.dl-card.primary { border-color: rgba(0,212,170,.4); }
.dl-card:hover {
  border-color: rgba(0,212,170,.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px -8px rgba(0,212,170,.25);
}
.dl-badge {
  display: inline-block; background: var(--teal-lo); color: var(--teal);
  border: 1px solid rgba(0,212,170,.3); border-radius: 999px;
  font-size: 10px; font-family: var(--mono); letter-spacing: .15em;
  text-transform: uppercase; padding: 3px 10px; margin-bottom: 16px;
}
.dl-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.dl-card p { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.dl-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.dl-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.version-tag {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: .1em;
}

/* ── Trust ── */
.trust-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.trust-item:hover {
  border-color: rgba(0,212,170,.35);
  transform: translateY(-2px);
}
/* SVG icon container replaces emoji */
.trust-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-lo); border: 1px solid rgba(0,212,170,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: transform var(--transition);
}
.trust-item:hover .trust-icon { transform: scale(1.08); }
.trust-icon svg {
  width: 22px; height: 22px;
  stroke: var(--teal); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.trust-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.trust-item p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.trust-item a { color: var(--teal); }

/* ── Status banner ── */
.status-bar {
  background: var(--bg-elev); border-bottom: 1px solid var(--border);
  padding: 10px 24px; display: flex; align-items: center; justify-content: center;
  gap: 20px; font-size: 12px; font-family: var(--mono); color: var(--muted);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #aaa; display: inline-block; margin-right: 6px;
}
.status-dot.ok { background: var(--teal); animation: pulse-glow 2s ease infinite; }
.status-dot.err { background: #ef5350; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 56px 24px 40px;
}
/* Brand column gets 2× the space of content columns */
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 8px; }
.footer-logo span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase;
}
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-col h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px; color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: 1120px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted); font-family: var(--mono);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--teal); }

/* ── Inner page hero ── */
.page-hero {
  padding: 120px 24px 64px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,212,170,.06), transparent);
}
.page-hero h1 {
  font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: -.02em;
}
.page-body { padding: 64px 24px 96px; }

/* ── Prose (legal, about, etc.) ── */
.prose {
  max-width: 760px;
  font-size: 16px; line-height: 1.8; color: var(--muted);
}
.prose h2 {
  font-size: 24px; font-weight: 700; color: var(--text);
  margin: 48px 0 16px;
}
.prose h3 {
  font-size: 19px; font-weight: 600; color: var(--text);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--teal); }
.prose code {
  font-family: var(--mono); font-size: 13px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
  color: var(--teal);
}
.prose pre {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; overflow-x: auto; margin: 24px 0;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th {
  background: var(--bg-card); color: var(--text); font-weight: 600;
  padding: 10px 14px; text-align: left; border: 1px solid var(--border);
}
.prose td { padding: 10px 14px; border: 1px solid var(--border); color: var(--muted); }
.prose tr:hover td { background: var(--bg-card); color: var(--text); }

.info-box {
  background: var(--teal-lo); border: 1px solid rgba(0,212,170,.3);
  border-radius: 12px; padding: 20px 24px; margin: 28px 0;
  font-size: 14px; color: var(--text);
}
.warn-box {
  background: rgba(239,83,80,.08); border: 1px solid rgba(239,83,80,.3);
  border-radius: 12px; padding: 20px 24px; margin: 28px 0;
  font-size: 14px; color: var(--text);
}
.verify-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; margin: 24px 0;
}
.verify-block h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text); }

/* ── Guide page — layout ── */
.guide-step-row {
  display: flex; gap: 56px; align-items: center;
}
.guide-step-text { flex: 1; min-width: 0; }
.guide-step-visual { flex-shrink: 0; }
.step-header {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px;
}
.step-badge {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-lo); border: 1px solid rgba(0,212,170,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--teal);
}
.step-title {
  font-size: clamp(22px,3vw,30px); font-weight: 700; line-height: 1.2;
}
.step-sub { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.65; }

/* Connection mode cards */
.conn-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
}
.conn-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; text-align: center;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.conn-card:hover { transform: translateY(-3px); }
.conn-card.mode-tor  { border-color: rgba(0,212,170,.35); }
.conn-card.mode-i2p  { border-color: rgba(124,92,191,.35); }
.conn-card.mode-direct { border-color: rgba(100,116,139,.2); }
.conn-card.mode-tor:hover  { border-color: rgba(0,212,170,.7); box-shadow: 0 8px 32px rgba(0,212,170,.12); }
.conn-card.mode-i2p:hover  { border-color: rgba(124,92,191,.7); box-shadow: 0 8px 32px rgba(124,92,191,.12); }
.anim-stage {
  height: 80px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.conn-mode-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.conn-mode-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.conn-best  {
  font-size: 11px; font-family: var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px;
}
.tag-safe {
  display: inline-flex; gap: 4px; align-items: center;
  background: var(--teal-lo); color: var(--teal);
  border: 1px solid rgba(0,212,170,.3); border-radius: 4px;
  font-size: 10px; font-family: var(--mono); letter-spacing: .08em;
  padding: 2px 8px; margin-top: 4px;
}
.tag-warn {
  display: inline-flex; gap: 4px; align-items: center;
  background: rgba(250,176,5,.08); color: #fab005;
  border: 1px solid rgba(250,176,5,.3); border-radius: 4px;
  font-size: 10px; font-family: var(--mono); letter-spacing: .08em;
  padding: 2px 8px; margin-top: 4px;
}

/* Phone frame mockup */
.phone-frame {
  width: 200px;
  border: 2px solid var(--border); border-radius: 36px;
  background: var(--bg-card);
  box-shadow: 0 24px 64px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
}
.phone-notch {
  width: 56px; height: 6px; border-radius: 3px;
  background: var(--border); margin: 12px auto 0;
}
.phone-screen-mock {
  min-height: 360px; background: var(--bg);
}
.phone-frame img { width: 100%; display: block; }

/* Word grid */
.word-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 7px;
}
.word-cell {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 8px;
  font-family: var(--mono); font-size: 10px;
  display: flex; gap: 5px; align-items: center;
}
.word-num { color: rgba(0,212,170,.4); font-size: 9px; flex-shrink: 0; }
.word-val { color: var(--muted); }

/* Add contact methods */
.contact-methods {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.method-card {
  flex: 1; min-width: 160px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 18px;
  transition: border-color var(--transition);
}
.method-card:hover { border-color: rgba(0,212,170,.35); }
.method-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.method-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Troubleshooting */
.trouble-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.trouble-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  transition: border-color var(--transition);
}
.trouble-card:hover { border-color: rgba(0,212,170,.3); }
.trouble-q {
  font-size: 13px; font-weight: 600; color: var(--teal);
  margin-bottom: 8px; font-family: var(--mono);
}
.trouble-a { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* What if */
.whatif-list { display: flex; flex-direction: column; }
.whatif-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.whatif-item:last-child { border-bottom: none; }
.whatif-q { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.whatif-a { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Guide responsive */
@media (max-width: 760px) {
  .guide-step-row { flex-direction: column; align-items: center; }
  .guide-step-visual { width: 100%; display: flex; justify-content: center; }
  .conn-grid { grid-template-columns: 1fr; }
  .word-grid { grid-template-columns: repeat(3,1fr); }
  .contact-methods { flex-direction: column; }
}

/* ── Keyframes ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* animation-fill-mode: both is set inline on each animation call above.
   Using 'both' prevents the opacity:0 flicker on delayed animations. */
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(0,212,170,.4); }
  50%       { box-shadow: 0 0 16px rgba(0,212,170,.8); }
}
/* Phantom ghost drift animations */
@keyframes ghost-drift-1 {
  0%   { transform: translateY(0) rotate(-3deg); }
  50%  { transform: translateY(-28px) rotate(2deg); }
  100% { transform: translateY(0) rotate(-3deg); }
}
@keyframes ghost-drift-2 {
  0%   { transform: translateY(0) rotate(4deg); }
  50%  { transform: translateY(22px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(4deg); }
}
@keyframes ghost-drift-3 {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-18px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
.phantom-drift-1 { animation: ghost-drift-1 12s ease-in-out infinite; }
.phantom-drift-2 { animation: ghost-drift-2 15s ease-in-out infinite; }
.phantom-drift-3 { animation: ghost-drift-3 10s ease-in-out infinite; }

/* Connection-mode animation keyframes (used by guide/index.html) */
@keyframes tor-hop {
  0%, 100% { opacity: .2; }
  20%, 50% { opacity: 1; }
}
@keyframes i2p-pulse {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.25); }
}
@keyframes direct-flow {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: -100; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .zero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset right-border pattern for 2-col layout */
  .zero-item { border-right: 1px solid var(--border); }
  .zero-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .zero-item:nth-child(2n) { border-right: none; }
  /* Add bottom borders between rows */
  .zero-item { border-bottom: 1px solid var(--border); }
  .zero-item:nth-child(7),
  .zero-item:nth-child(8) { border-bottom: none; }
}

@media (max-width: 768px) {
  /* Show hamburger, hide regular nav links */
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  /* Nav links collapse into dropdown */
  .nav-links {
    display: none;
    flex-direction: column; gap: 0;
    position: absolute; top: 62px; left: 0; right: 0;
    background: rgba(5,10,20,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px; font-size: 12px; letter-spacing: .15em;
    border-bottom: 1px solid rgba(255,255,255,.04);
    display: block; width: 100%;
  }
  .nav-links a:last-child { border-bottom: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-bottom: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--border); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: span 2; }

  .flow { flex-wrap: wrap; gap: 12px; }
  .flow-arrow { display: none; }
  .flow-step { max-width: 100%; flex: 0 0 calc(50% - 6px); min-width: 140px; }

  section { padding: 64px 20px; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > *:first-child { grid-column: 1; }

  .zero-grid { grid-template-columns: 1fr; }
  .zero-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .zero-item:last-child { border-bottom: none !important; }

  .flow { flex-direction: column; }
  .flow-step { flex: 0 0 auto; max-width: 100%; }

  .stats { grid-template-columns: 1fr 1fr; }
}
