/* ═══════════════════════════════════════════════════════════
   MailFlow Marketing Site — style.css
   ✏️  Edit the :root variables to retheme the entire site
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  --bg-0:          #06060f;   /* page background */
  --bg-1:          #0d0d1c;   /* subtle sections */
  --bg-2:          #12122a;   /* cards */
  --bg-3:          #1a1a38;   /* card hover */

  --accent:        #7c6af7;   /* primary purple */
  --accent-light:  #a89df8;
  --accent-glow:   rgba(124, 106, 247, 0.25);
  --accent-glow-lg:rgba(124, 106, 247, 0.12);

  --text-1:        #f0f0fc;   /* headings */
  --text-2:        #a0a0c8;   /* body */
  --text-3:        #5a5a80;   /* muted */

  --border:        rgba(255, 255, 255, 0.06);
  --border-accent: rgba(124, 106, 247, 0.3);

  --green:         #22c55e;
  --red:           #ef4444;
  --yellow:        #f59e0b;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-glow:   0 0 80px rgba(124, 106, 247, 0.2);
  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-float:  0 32px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(124, 106, 247, 0.15);

  --max-width:     1200px;
  --nav-height:    64px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent orbs / fixed-px elements from widening scroll area */
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-2);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #c4b8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}

section { position: relative; }

/* ── Scroll reveal animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  /*
   * Opacity-only — no translateY. Firefox/WebRender on Linux flashes the
   * screen when both opacity and transform transitions start simultaneously
   * on scroll (creating a new stacking context mid-frame). Chromium handles
   * this without the artifact; macOS Metal is atomic so it never shows.
   * Feature cards already used transform:none for this same reason.
   */
  transition: opacity 0.85s ease-in-out;
}
.reveal.visible {
  opacity: 1;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-1);
  border-color: rgba(255,255,255,0.12);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  background: rgba(124,106,247,0.08);
  color: #fff;
}

/* ── Section shared ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 520px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(124,106,247,0.1);
  border: 1px solid var(--border-accent);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}


/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease;
}
#nav.scrolled {
  background: rgba(6, 6, 15, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-1);
  flex-shrink: 0;
}
.nav-logo strong { color: var(--accent); font-weight: 700; }
.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.05);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-github {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: all 0.15s;
}
.nav-github:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 15, 0.95);
  backdrop-filter: blur(20px);
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }


/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}

/* Background orbs — edit colours here */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,106,247,0.6) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,157,248,0.4) 0%, transparent 70%);
  bottom: 0; left: -100px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  top: 50%; left: 40%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Hero text */
.hero-text { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(124,106,247,0.1);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.hero-meta svg { opacity: 0.7; }

/* Hero mockup */
.hero-mockup {
  position: relative;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.mockup-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: var(--accent-glow);
  border-radius: 50%;
}

.mockup-window {
  background: #0e0e1c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.mockup-titlebar {
  height: 36px;
  background: #0a0a18;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.mockup-urlbar {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 180px;
  margin: 0 auto;
}

/* App layout inside mockup */
.mockup-app {
  display: flex;
  height: 360px;
}

/* Sidebar */
.mockup-sidebar {
  width: 130px;
  background: #0b0b1e;
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.mockup-logo-sm {
  padding: 0 4px;
}
.mockup-nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--text-3);
  cursor: default;
}
.mockup-nav-item.active {
  background: rgba(124,106,247,0.15);
  color: var(--accent-light);
}
.mockup-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 600;
}
.mockup-accounts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-account-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 0 4px;
  margin-bottom: 2px;
}
.mockup-account-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: default;
}
.acct-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.acct-name {
  font-size: 10px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Message list */
.mockup-messages {
  width: 190px;
  background: #0d0d20;
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.mockup-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 7px;
  font-size: 10px;
  color: var(--text-3);
}
.mockup-msg {
  position: relative;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: default;
}
.mockup-msg.selected {
  background: rgba(124,106,247,0.1);
}
.mockup-msg-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}
.mockup-msg-sender {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-1);
}
.mockup-msg-time {
  font-size: 9px;
  color: var(--text-3);
}
.mockup-msg-subject {
  font-size: 10px;
  color: var(--text-2);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-msg-preview {
  font-size: 9px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-unread-dot {
  position: absolute;
  top: 12px; left: 4px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Preview pane */
.mockup-preview {
  flex: 1;
  background: #0f0f22;
  padding: 16px;
  overflow: hidden;
}
.mockup-preview-subject {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 12px;
  font-family: 'Syne', sans-serif;
}
.mockup-preview-from {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 16px;
}
.mockup-avatar {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-from-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-1);
}
.mockup-from-email {
  font-size: 9px;
  color: var(--text-3);
}
.mockup-body-line {
  height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 8px;
}
.w80 { width: 80%; }
.w60 { width: 60%; }
.w90 { width: 90%; }
.w40 { width: 40%; }
.w70 { width: 70%; }
.w50 { width: 50%; }
.mockup-body-btn {
  display: inline-block;
  margin: 12px 0;
  padding: 6px 14px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 600;
  border-radius: 6px;
}


/* ══════════════════════════════════════════════════════
   PROVIDERS
══════════════════════════════════════════════════════ */
.providers {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.providers-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 24px;
}
.providers-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.provider-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.15s;
}
.provider-pill:hover {
  border-color: var(--border-accent);
  color: var(--text-1);
}
.provider-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  /* opacity is included here so the reveal transition isn't overwritten —
     .feature-card and .reveal have equal specificity; the later rule wins,
     which is this one. Without opacity in this list the reveal pop-in. */
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s,
              opacity 0.85s ease-in-out;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent);
}

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(124,106,247,0.1);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-1);
}
.feature-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
}


/* ══════════════════════════════════════════════════════
   SCREENSHOTS
══════════════════════════════════════════════════════ */
.screenshots {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124,106,247,0.04) 50%, transparent 100%);
  border-top: 1px solid var(--border);
}

/* ── Category pills ─────────────────────────────────── */
.ss-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ss-pill-theme {
  background: rgba(124,106,247,0.18);
  color: var(--accent-light);
  border: 1px solid rgba(124,106,247,0.3);
}
.ss-pill-compose {
  background: rgba(236,72,153,0.15);
  color: #f9a8d4;
  border: 1px solid rgba(236,72,153,0.25);
}
.ss-pill-interface {
  background: rgba(6,182,212,0.15);
  color: #67e8f9;
  border: 1px solid rgba(6,182,212,0.25);
}
.ss-pill-settings {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.25);
}

/* ── Shared overlay (zoom icon on hover) ───────────── */
.ss-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  color: #fff;
}

/* ── Featured screenshot ────────────────────────────── */
.ss-featured {
  position: relative;
  margin-bottom: 16px;
  cursor: pointer;
  outline: none;
}
.ss-featured:focus-visible .ss-featured-frame {
  box-shadow: 0 0 0 3px var(--accent);
}

.ss-featured-glow {
  position: absolute;
  bottom: 40px;
  left: 15%;
  right: 15%;
  height: 160px;
  background: radial-gradient(ellipse, rgba(124,106,247,0.5) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.ss-featured-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: 0 16px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,106,247,0.1);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ss-featured:hover .ss-featured-frame {
  border-color: var(--border-accent);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,106,247,0.3);
}

.ss-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.ss-chrome-dots {
  display: flex;
  gap: 6px;
}
.ss-chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.ss-chrome-dots span:nth-child(1) { background: #ff5f57; }
.ss-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.ss-chrome-dots span:nth-child(3) { background: #28ca41; }
.ss-chrome-url {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin: 0 auto;
}

.ss-featured-img-wrap {
  position: relative;
  overflow: hidden;
}
.ss-featured-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.ss-featured:hover .ss-featured-img-wrap img {
  transform: scale(1.015);
}
.ss-featured:hover .ss-overlay {
  background: rgba(0,0,0,0.35);
}

.ss-zoom-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c6af7;
  filter: drop-shadow(0 2px 12px rgba(124,106,247,0.6));
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ss-featured:hover .ss-zoom-pill {
  opacity: 1;
  transform: scale(1);
}

.ss-featured-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 0;
}
.ss-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ss-featured-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}
.ss-click-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
}

/* ── Grid ───────────────────────────────────────────── */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ss-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ss-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(124,106,247,0.15);
  transform: translateY(-3px);
}
.ss-card:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}

.ss-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.ss-card-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.ss-card:hover .ss-card-img-wrap img {
  transform: scale(1.04);
}
.ss-card:hover .ss-overlay {
  background: rgba(0,0,0,0.42);
}
.ss-card:hover .ss-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.ss-card-img-wrap .ss-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.ss-card-img-wrap .ss-overlay {
  z-index: 1;
}
.ss-overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.ss-card-footer {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lb-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(92vw, 1280px);
  padding: 0 16px;
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.lb-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: rotate(90deg);
}

.lb-body {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.lb-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.lb-arrow:hover {
  background: rgba(124,106,247,0.4);
  border-color: rgba(124,106,247,0.5);
  color: #fff;
}
.lb-prev:hover { transform: translateX(-2px); }
.lb-next:hover { transform: translateX(2px); }
.lb-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.lb-arrow:disabled:hover { transform: none; background: rgba(255,255,255,0.07); }

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox.open .lb-stage {
  transform: scale(1);
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.lb-img.loading { opacity: 0; }

.lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 64px 0;
}
.lb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-caption {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}
.lb-counter {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
}


/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124,106,247,0.03) 50%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(124,106,247,0.15);
  line-height: 1;
  padding-top: 4px;
  user-select: none;
}

.step-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-1);
}
.step-content > p {
  font-size: 1rem;
  color: var(--text-3);
  max-width: 480px;
  margin-bottom: 24px;
}

/* Code blocks */
.code-block {
  background: #080810;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.code-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.code-filename {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
pre { overflow-x: auto; }
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.7;
}
.code-block pre {
  padding: 16px;
  color: #c8d3f5;
}
.code-comment { color: #4a5568; }


/* ══════════════════════════════════════════════════════
   SECURITY
══════════════════════════════════════════════════════ */
.security {
  padding: 120px 0;
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-text h2 { margin-bottom: 20px; }
.security-text p {
  color: var(--text-3);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.security-text .btn { margin-top: 12px; }

.security-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.security-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.security-item:last-child { border-bottom: none; }
.security-item:hover { background: rgba(255,255,255,0.02); }

.security-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.security-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
  margin-bottom: 2px;
}
.security-item span {
  font-size: 12px;
  color: var(--text-3);
}


/* ══════════════════════════════════════════════════════
   INSTALL
══════════════════════════════════════════════════════ */
.install {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124,106,247,0.04) 50%, transparent 100%);
  border-top: 1px solid var(--border);
}

.install-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.install-inner h2 { margin-bottom: 16px; }
.install-sub {
  font-size: 1rem;
  color: var(--text-3);
  margin-bottom: 40px;
}

.install-code {
  background: #060610;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.install-code-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.install-dots {
  display: flex;
  gap: 6px;
}
.install-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.install-filename {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-right: auto;
  margin-left: 4px;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover {
  background: rgba(124,106,247,0.1);
  border-color: var(--border-accent);
  color: var(--accent-light);
}
.copy-btn.copied {
  color: var(--green);
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
}

.install-pre {
  padding: 20px;
  color: #c8d3f5;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}

.install-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 32px;
}

.install-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 260px;
}
.footer-brand .nav-logo {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  gap: 16px;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ss-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    gap: 48px;
  }
  /* Mockup shrinks to fill its grid column */
  .hero-mockup {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .mockup-window {
    width: 100%;
    max-width: 100%;
  }
  /* Hide preview pane at tablet — keeps mockup compact */
  .mockup-preview {
    display: none;
  }
  .mockup-messages {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .security-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-github { display: none; }
  .nav-toggle { display: flex; }

  /* Hero: single column, centered text, no mockup */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-mockup { display: none; }
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; gap: 12px; }
  .hero-badge { justify-content: center; }

  /* Shrink orbs so filter:blur() bleed can't widen the page */
  .hero-orb-1 { width: 300px; height: 300px; right: -60px; top: -60px; }
  .hero-orb-2 { width: 200px; height: 200px; left: -60px; }
  .hero-orb-3 { display: none; }

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

  .ss-grid {
    grid-template-columns: 1fr;
  }
  .ss-featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .lb-footer {
    padding: 12px 0 0;
  }
  .lb-arrow {
    width: 40px;
    height: 40px;
  }

  .step {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }
  .step-number { font-size: 2rem; }
  /* Grid child must opt-in to shrinking below content size */
  .step-content { min-width: 0; }

  /* Code blocks: fill column width; wrap long lines instead of overflowing */
  .code-block {
    width: 100%;
    max-width: 100%;
  }
  .code-block pre {
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    gap: 32px;
  }

  .security-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .install-actions { flex-direction: column; }
  .install-actions .btn { text-align: center; justify-content: center; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; }

  /* install code block: must not overflow narrow screens */
  .install-pre {
    font-size: 11.5px;
  }
  .install-code {
    overflow: hidden;
  }
}

/* ══════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════ */
.pricing {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 48px;
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: var(--border-accent);
  background: linear-gradient(160deg, rgba(124,106,247,0.08) 0%, var(--bg-2) 60%);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 24px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.pricing-list svg {
  flex-shrink: 0;
  color: var(--green);
}

.pricing-note {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(124,106,247,0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.pricing-note svg {
  flex-shrink: 0;
  color: var(--accent-light);
  margin-top: 2px;
}

.pricing-note p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
}

.pricing-note strong {
  color: var(--text-1);
}

.pricing-note a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-note a:hover { color: var(--text-1); }

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Waitlist ─────────────────────────────────────────────── */
.supporters {
  padding: 100px 0;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}

.supporters-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.supporters-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
}

.supporters-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.sponsors-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  min-height: 0;
}

.sponsors-avatars:empty {
  display: none;
}

.sponsors-avatars a {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  width: 56px;
  height: 56px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 2px var(--border);
}

.sponsors-avatars a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 2px var(--accent);
}

.sponsors-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.supporters-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist {
  padding: 100px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.waitlist-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-inner h2 {
  margin: 16px 0 20px;
}

.waitlist-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-input-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.waitlist-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.waitlist-input::placeholder { color: var(--text-3); }

.waitlist-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.waitlist-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.waitlist-msg {
  font-size: 0.875rem;
  min-height: 1.2em;
  transition: color 0.2s;
}

.waitlist-msg.success { color: var(--green); }
.waitlist-msg.error   { color: var(--red); }

.waitlist-note {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 4px;
}

@media (max-width: 540px) {
  .waitlist-input-row {
    flex-direction: column;
  }
  .waitlist-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .hero-mockup { animation: none; }
  .badge-dot { animation: none; }
  html { scroll-behavior: auto; }
}


/* ══════════════════════════════════════════════════════
   ROADMAP
══════════════════════════════════════════════════════ */
.roadmap {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.roadmap-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.roadmap-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.rmo-1 {
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,106,247,0.6) 0%, transparent 70%);
  top: -100px; left: -200px;
}
.rmo-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, transparent 70%);
  bottom: 0; right: -100px;
}

/* 5-column grid: phase | arrow | phase | arrow | phase */
.roadmap-timeline {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 0;
}

.roadmap-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
  color: var(--text-3);
  opacity: 0.4;
}

/* Phase card */
.roadmap-phase {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

/* Colored top accent per phase */
.roadmap-phase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
[data-phase="now"]::before {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
}
[data-phase="next"]::before {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}
[data-phase="later"]::before {
  background: linear-gradient(90deg, #4a4a65, #6b6b8a);
}

/* Tinted bg for "now" to signal it's active */
[data-phase="now"] {
  background: linear-gradient(160deg, rgba(124,106,247,0.07) 0%, var(--bg-1) 55%);
  border-color: rgba(124,106,247,0.15);
}

/* Phase header */
.roadmap-phase-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* Dot + pulse ring */
.roadmap-dot-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.roadmap-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
[data-phase="now"] .roadmap-dot {
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 18px rgba(124,106,247,0.4);
}
[data-phase="next"] .roadmap-dot {
  border-color: #6366f1;
  color: #818cf8;
}
[data-phase="later"] .roadmap-dot {
  border-color: #5a5a7a;
  color: var(--text-3);
}

/* Pulsing ring — "now" only */
.roadmap-dot-pulse {
  display: none;
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: rm-pulse 2.5s ease-out infinite;
  z-index: 0;
}
[data-phase="now"] .roadmap-dot-pulse { display: block; }
@keyframes rm-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}

.roadmap-phase-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
[data-phase="now"]   .roadmap-phase-name { color: var(--accent-light); }
[data-phase="next"]  .roadmap-phase-name { color: #a5b4fc; }
[data-phase="later"] .roadmap-phase-name { color: var(--text-3); }

.roadmap-phase-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Items list */
.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-item {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  color: inherit;
  font-family: inherit;
}
.roadmap-item:hover {
  border-color: rgba(124,106,247,0.25);
  background: rgba(255,255,255,0.04);
}
.roadmap-item[aria-expanded="true"] {
  background: rgba(124,106,247,0.04);
  border-color: rgba(124,106,247,0.3);
}
[data-phase="later"] .roadmap-item:hover {
  border-color: rgba(90,90,122,0.3);
}
[data-phase="later"] .roadmap-item[aria-expanded="true"] {
  border-color: rgba(90,90,122,0.35);
  background: rgba(90,90,122,0.04);
}

.roadmap-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rmi-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-phase="now"]   .rmi-icon { background: rgba(124,106,247,0.12); border: 1px solid rgba(124,106,247,0.25); color: var(--accent-light); }
[data-phase="next"]  .rmi-icon { background: rgba(99,102,241,0.1);   border: 1px solid rgba(99,102,241,0.2);   color: #a5b4fc; }
[data-phase="later"] .rmi-icon { background: rgba(90,90,122,0.1);    border: 1px solid rgba(90,90,122,0.2);    color: var(--text-3); }

.rmi-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  flex: 1;
  text-align: left;
}
[data-phase="later"] .rmi-title { color: var(--text-2); }

.rmi-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.25s ease;
}
.roadmap-item[aria-expanded="true"] .rmi-chevron { transform: rotate(180deg); }

/* Expand/collapse body */
.rmi-body {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease, opacity 0.25s ease,
              margin-top 0.3s ease, padding-top 0.3s ease,
              border-color 0.3s ease;
}
.roadmap-item[aria-expanded="true"] .rmi-body {
  max-height: 160px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 10px;
  border-top-color: var(--border);
}

/* Footer note */
.roadmap-note {
  text-align: center;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-3);
}
.roadmap-note a {
  color: var(--accent-light);
  transition: color 0.15s;
}
.roadmap-note a:hover { color: var(--text-1); }

/* Responsive */
@media (max-width: 960px) {
  .roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .roadmap-connector { display: none; }
}
@media (max-width: 480px) {
  .roadmap-phase { padding: 20px 16px; }
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.faq-inner h2 { margin-bottom: 48px; }

.faq-list { text-align: left; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-answer code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  color: var(--accent-light);
}

.faq-answer a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .faq { padding: 80px 0; }
  .faq-item summary { font-size: 0.9375rem; }
}

/* ── Language switcher ────────────────────────────────────── */
#lang-switcher {
  background: var(--bg-2, rgba(255,255,255,0.06));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 7px;
  color: var(--text-2, rgba(255,255,255,0.6));
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  padding: 5px 8px;
  outline: none;
  transition: border-color 0.15s;
}
#lang-switcher:hover { border-color: var(--accent, #7c6af7); }
#lang-switcher option { background: #1a1a2e; color: #fff; }
