/* VeritasVPN brand palette (matches logo / Figma)
   Cyan #00D2FF → Royal #0047FF on charcoal #05070A
   Display: Syne · Body: Figtree */

:root {
  --ink: #05070a;
  --ink-2: #0b1018;
  --ink-3: #121820;
  --panel: #0f1520;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --paper: #ffffff;
  --paper-muted: #9aa8bc;
  --paper-dim: #6b7a90;
  --cyan: #00d2ff;
  --blue: #0047ff;
  --blue-deep: #002984;
  /* Legacy token used across the stylesheet */
  --leaf: var(--cyan);
  --leaf-deep: var(--blue);
  --leaf-soft: rgba(0, 210, 255, 0.14);
  --danger: #f0a0a0;
  --success: var(--cyan);
  --success-bg: rgba(0, 210, 255, 0.12);

  /* Compat aliases for legal / account / older pages */
  --bg-primary: var(--ink);
  --bg-secondary: var(--ink-2);
  --bg-tertiary: var(--ink-3);
  --bg-card: var(--panel);
  --text-primary: var(--paper);
  --text-secondary: var(--paper-muted);
  --text-muted: var(--paper-dim);
  --text-inverse: var(--ink);
  --accent: var(--cyan);
  --accent-hover: #33dbff;
  --accent-light: var(--leaf-soft);
  --accent-dark: var(--blue);
  --border: var(--line);
  --border-light: var(--line);
  --gradient-start: #00d2ff;
  --gradient-end: #0047ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font-display: "Syne", sans-serif;
  --font-sans: "Figtree", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(0, 210, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(0, 71, 255, 0.12), transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: auto, auto, 180px 180px;
}

body > * { position: relative; z-index: 1; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.is-hidden { display: none !important; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #ffffff;
  border-color: transparent;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--leaf); color: var(--leaf); }

/* —— Nav —— */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 17, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark { width: 34px; height: 34px; object-fit: contain; }
.logo-highlight {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: 0.2s;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 4px;
  position: relative;
}
.nav-auth-logged-out { display: flex; align-items: center; gap: 10px; }
.nav-login { display: inline-flex; padding: 8px 16px; }
.nav-auth-logged-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-plan-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--leaf-soft);
  color: var(--leaf);
  border: 1px solid rgba(0, 210, 255, 0.3);
}
.nav-plan-badge.is-premium {
  background: rgba(0, 210, 255, 0.22);
  color: var(--paper);
}
.nav-auth-logged-in.is-hidden,
.nav-auth-logged-out.is-hidden { display: none !important; }
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  max-width: 220px;
}
.nav-user-btn:hover { border-color: var(--leaf); }
.nav-user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-deep));
  flex-shrink: 0;
}
.nav-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 1100;
}
.nav-user-menu.is-open { display: block; }
.nav-user-menu-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--paper-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: block;
}
.nav-user-menu-item:hover { background: var(--ink-3); color: var(--paper); }

/* —— Hero (one composition, brand-first, map plane) —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 28px) 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-map-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-map-plane .network-map {
  width: 100%;
  height: 100%;
  opacity: 0.92;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.88) 0%, rgba(7, 17, 15, 0.55) 38%, rgba(7, 17, 15, 0.18) 68%, rgba(7, 17, 15, 0.4) 100%),
    linear-gradient(180deg, rgba(7, 17, 15, 0.25) 0%, transparent 35%, rgba(7, 17, 15, 0.55) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  max-width: 640px;
  margin-left: max(20px, calc((100% - 1120px) / 2));
  margin-right: auto;
  width: min(640px, calc(100% - 40px));
}
.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-brand-name span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper-muted);
  animation: rise-in 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--paper-dim);
  max-width: 34ch;
  animation: rise-in 0.9s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise-in 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--paper-dim);
  animation: rise-in 0.9s 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-meta strong {
  color: var(--cyan);
  font-weight: 600;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section {
  padding: 96px 0;
}
.section-header {
  max-width: 36rem;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--paper-muted);
  font-size: 1.05rem;
}
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Network map section —— */
.network {
  padding: 40px 0 96px;
}
.network-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 50% 60% at 35% 55%, rgba(0, 210, 255, 0.1), transparent 60%),
    var(--ink-2);
  overflow: hidden;
  position: relative;
}
.network-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
}
.network-panel-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}
.network-panel-head p {
  color: var(--paper-muted);
  max-width: 38ch;
  margin-top: 8px;
}
.network-live {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  padding: 8px 12px;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-sm);
  background: var(--leaf-soft);
}
.network-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.5);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.network-map-wrap {
  padding: 8px 12px 20px;
}
.network-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.network-map .ocean {
  fill: #070b12;
}
.network-map .land {
  fill: #1a2a44;
  stroke: #2a4a72;
  stroke-width: 0.45;
  stroke-linejoin: round;
}
.network-map .grid-line {
  stroke: rgba(0, 210, 255, 0.08);
  stroke-width: 0.6;
}
.network-map .marker-ring {
  fill: none;
  stroke: #00d2ff;
  stroke-width: 2;
  opacity: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-expand 2.4s ease-out infinite;
}
.network-map .marker-core {
  fill: #00d2ff;
  stroke: #05070a;
  stroke-width: 1.5;
}
.network-map .marker-soon {
  fill: rgba(255, 255, 255, 0.35);
}
.network-map .marker-label-bg {
  fill: rgba(5, 7, 10, 0.88);
  stroke: rgba(0, 210, 255, 0.4);
  stroke-width: 1;
}
.network-map .marker-label {
  fill: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}
.network-map .marker-sub {
  fill: #9aa8bc;
  font-family: var(--font-sans);
  font-size: 9px;
}
.network-map--panel .ocean {
  fill: #080c14;
}
.network-map--panel .land {
  fill: #1e3352;
  stroke: #3a5f8f;
}
@keyframes ring-expand {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(4.2); opacity: 0; }
}

.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 28px 28px;
  font-size: 13px;
  color: var(--paper-dim);
}
.network-legend span { color: var(--paper-muted); }

/* —— Reality / product —— */
.reality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.reality-item {
  background: var(--ink-2);
  padding: 28px 24px;
}
.reality-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.reality-item p {
  color: var(--paper-muted);
  font-size: 0.95rem;
}
.reality-item a { color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 210, 255, 0.28);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--paper-muted); font-size: 0.95rem; }
.step a { color: var(--leaf); }

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
}
.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  background: var(--ink-2);
}
.pricing-card-featured {
  border-color: rgba(0, 210, 255, 0.45);
  background:
    linear-gradient(160deg, rgba(0, 210, 255, 0.12), transparent 45%),
    var(--ink-2);
}
.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #05070a;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.pricing-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pricing-description { color: var(--paper-dim); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.pricing-price .currency { font-size: 1.4rem; vertical-align: super; }
.pricing-price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--paper-dim);
  letter-spacing: 0;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--paper-muted);
}
.pricing-features svg { flex-shrink: 0; margin-top: 3px; }
.pricing-crypto {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--paper-muted);
  font-size: 0.9rem;
  max-width: 820px;
}

/* —— Transparency —— */
.transparency-list {
  display: grid;
  gap: 20px;
}
.transparency-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.transparency-row:last-child { border-bottom: 1px solid var(--line); }
.transparency-row h3 {
  font-size: 1rem;
  color: var(--leaf);
}
.transparency-row p { color: var(--paper-muted); font-size: 0.95rem; }
.transparency-row a {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.transparency-row a:hover { color: var(--leaf); }
.transparency-row code {
  font-size: 0.85em;
  color: var(--leaf);
}

/* —— Downloads teaser —— */
.download-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.download-featured-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--ink-2);
  transition: border-color 0.2s, transform 0.2s;
}
.download-featured-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  transform: translateY(-2px);
}
.download-featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 12px;
}
.download-featured-badge.is-live { color: var(--leaf); }
.download-featured-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.download-featured-card p {
  color: var(--paper-muted);
  margin-bottom: 20px;
}
.downloads-teaser-cta { margin-top: 24px; }

/* —— FAQ —— */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 22px 0;
  cursor: pointer;
}
.faq-icon { transition: transform 0.25s; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 320px;
  padding-bottom: 20px;
}
.faq-answer p { color: var(--paper-muted); font-size: 0.95rem; }
.faq-answer a { color: var(--leaf); }

/* —— CTA —— */
.cta-section {
  padding: 80px 0 100px;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-section > .container > p {
  color: var(--paper-muted);
  margin-bottom: 28px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--paper-dim);
  font-size: 0.9rem;
  margin: 14px 0 18px;
  max-width: 28ch;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--paper-muted);
  transition: 0.2s;
}
.footer-social a:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--paper-dim);
}
.footer-links a:hover { color: var(--leaf); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--paper-dim);
}

/* —— Auth modal (preserve behavior) —— */
body.auth-modal-open { overflow: hidden; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 17, 15, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.auth-modal.is-open { opacity: 1; visibility: visible; }
.auth-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px 28px 28px;
}
.auth-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--paper-dim);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.auth-close:hover { color: var(--paper); }
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-brand img { width: 48px; height: 48px; object-fit: contain; }
.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.auth-brand-name span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  background: transparent;
  border: none;
  color: var(--paper-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}
.auth-tab.is-active {
  background: var(--panel);
  color: var(--paper);
}
.auth-title {
  font-size: 22px;
  margin-bottom: 16px;
  text-align: center;
}
.auth-error {
  background: rgba(240, 160, 160, 0.12);
  border: 1px solid rgba(240, 160, 160, 0.35);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-error.is-success {
  background: var(--success-bg);
  border-color: rgba(0, 210, 255, 0.35);
  color: #7ae7ff;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-muted);
}
.auth-field input {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}
.auth-field input::placeholder { color: var(--paper-dim); }
.auth-reset {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--leaf);
  font-size: 13px;
  cursor: pointer;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--paper-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-switch {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--paper-muted);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.auth-switch:hover { color: var(--leaf); }
.auth-anon-link {
  display: block;
  margin: 12px 0 0;
  padding: 10px 0;
  background: none;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.auth-anon-link:hover { border-color: var(--leaf); color: var(--paper); }
.auth-anon-link[hidden],
.auth-anon-link.hidden { display: none; }

/* —— Misc pages that share style.css —— */
.trust-bar, .features, .how-it-works, .transparency, .pricing, .downloads, .faq {
  /* keep section class hooks working if older markup remains */
}
.downloads-hero { padding: 140px 0 48px; }
.downloads-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.downloads-hero p { color: var(--paper-muted); max-width: 40ch; }
.download-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 80px;
}
.download-group h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--leaf);
}
.download-list { display: flex; flex-direction: column; gap: 10px; }
.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-2);
}
.download-item.is-soon { opacity: 0.55; }
.text-link { color: var(--leaf); font-weight: 600; }

/* —— Responsive —— */
@media (max-width: 960px) {
  .reality-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .transparency-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-featured { grid-template-columns: 1fr; }
  .download-groups { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7, 17, 15, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 14px;
  }
  .mobile-toggle { display: flex; }
  .hero {
    align-items: center;
    padding-bottom: 40px;
  }
  .hero .container {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .hero-map-plane .network-map { opacity: 0.7; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 17, 15, 0.45) 0%, rgba(7, 17, 15, 0.72) 50%, rgba(7, 17, 15, 0.92) 100%);
  }
  .nav-user-email { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
