/* Neuro-Flow marketing theme — matched to the app:
   near-black canvas, mint primary action, purple brand glow, soft 16px cards.
   Self-contained: no external fonts or CDNs. */
:root {
  --bg: #0a0b0d;
  --bg-raise: #101116;
  --fg: #f2f4f7;
  --muted: #a3abb8;
  --card: #16181d;
  --card-edge: rgba(255, 255, 255, 0.07);
  --accent: #3be8c5;
  --accent-dim: rgba(59, 232, 197, 0.14);
  --brand-purple: #8b7bd8;
  --grad-a: #3be8c5;
  --grad-b: #a08ee8;
  --cta-bg: #3be8c5;
  --cta-fg: #06241c;
  --radius: 16px;
  --border: 1px solid var(--card-edge);
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Quiet atmosphere: one purple aura from the brand icon, one faint mint pool.
   Fixed so it doesn't strobe while scrolling. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 420px at 50% -80px, rgba(110, 85, 166, 0.32), transparent 70%),
    radial-gradient(640px 520px at 88% 38%, rgba(59, 232, 197, 0.05), transparent 70%),
    radial-gradient(520px 460px at 8% 78%, rgba(110, 85, 166, 0.08), transparent 70%);
}

a { color: var(--fg); }
::selection { background: var(--accent-dim); color: var(--fg); }

h1, h2, h3 { font-family: var(--display); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: var(--border);
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--display); letter-spacing: 0.01em; }
.brand-icon { border-radius: 8px; flex-shrink: 0; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }

/* CSS-only mobile menu (no JS). Checkbox + label toggles the nav at narrow widths. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-btn:hover, .nav-toggle:focus-visible + .nav-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle-btn svg { display: block; }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .nav-toggle-btn { display: inline-flex; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    gap: 0;
    background: var(--bg-raise);
    border: var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow);
  }
  .site-header nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
  }
  .site-header nav a:hover, .site-header nav a[aria-current="page"] {
    background: var(--accent-dim);
  }
  .nav-toggle:checked ~ nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 104px 24px 72px;
  max-width: 920px;
  margin: 0 auto;
}
.hero-icon {
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(110, 85, 166, 0.45);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 11px; /* 18px minus the .gradient-text descender padding */
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(100deg, var(--grad-a) 10%, var(--grad-b) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* background-clip:text only paints inside the element's box; with a tight
     line-height, descenders (g, y, q) poke below it and get sliced. The extra
     bottom padding extends the paint area to cover them. */
  padding-bottom: 0.12em;
}
.subhead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--display);
  text-decoration: none;
  box-shadow: 0 10px 36px rgba(59, 232, 197, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(59, 232, 197, 0.36);
}
.cta[aria-disabled="true"] { opacity: 0.85; pointer-events: none; }
.hero-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* Gentle staggered entrance; transform-only so content stays visible even if
   animations never run (snapshot renderers, suspended views). Disabled for
   reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  .hero > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4) { animation-delay: 0.24s; }
  .hero > :nth-child(5) { animation-delay: 0.3s; }
  @keyframes rise {
    from { transform: translateY(18px); }
    to { transform: none; }
  }
}

/* ---------- Screenshots ---------- */
.screens {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin: 0 0 32px;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.screen-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 10px;
  margin: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.screen-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 232, 197, 0.3);
}
.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.screen-card figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 4px;
}
.screen-card.placeholder {
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6e55a6, #2e3360);
  color: var(--fg);
  font-weight: 600;
}

/* ---------- Features ---------- */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(160, 142, 232, 0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .cta, .screen-card, .feature-card { transition: none; }
  .cta:hover, .screen-card:hover, .feature-card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Inner pages ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 24px; letter-spacing: -0.02em; }
.page h2 {
  margin-top: 40px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }

/* ---------- How it works ---------- */
.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Plans (Free vs Premium) ---------- */
.plans {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.plan-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.plan-card.highlight {
  border-color: rgba(59, 232, 197, 0.35);
  box-shadow: 0 0 0 1px rgba(59, 232, 197, 0.12), var(--shadow);
}
.plan-card h3 { margin: 0; font-size: 20px; }
.plan-price { color: var(--accent); font-size: 14px; font-weight: 600; margin: 4px 0 16px; }
.plan-card ul { list-style: none; margin: 0; padding: 0; }
.plan-card li {
  color: var(--muted);
  font-size: 15px;
  padding: 7px 0 7px 26px;
  position: relative;
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-note { color: var(--muted); font-size: 13px; text-align: center; margin: 22px auto 0; max-width: 560px; }

/* ---------- Platforms strip ---------- */
.platforms {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  text-align: center;
}
.platform-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}
.platform-chip {
  background: var(--bg-raise);
  border: var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--fg);
  font-family: var(--display);
}
.platforms p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- News / announcements ---------- */
.news-teaser {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px;
}
.news-item {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  margin: 0 0 18px;
}
.news-item time {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.news-item h2, .news-item h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.news-item p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.news-item p:last-child { margin-bottom: 0; }
.news-more { text-align: center; margin: 24px 0 0; }
.news-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

/* ---------- Videos (coming soon) ---------- */
.videos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: var(--border);
  background:
    radial-gradient(420px 260px at 30% 0%, rgba(110, 85, 166, 0.35), transparent 70%),
    var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.video-card .play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .play::after {
  content: "";
  margin-left: 4px;
  border-left: 14px solid var(--muted);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.video-card h3 { margin: 0; font-size: 16px; color: var(--fg); }
.videos-note { text-align: center; color: var(--muted); font-size: 14px; margin: 22px 0 0; }
.badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--border);
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
