/* ═══════════════════════════════════
   NeuroStack Landing Page
   Evidence-informed. Professionally designed.
   ═══════════════════════════════════ */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F0F4F3;
  --slate: #1A1A2E;
  --slate-mid: #2D2D44;
  --teal: #00A896;
  --teal-light: #E6F7F5;
  --slate-muted: #6B6B82;
  --border: #E2E8E6;
  --white: #FFFFFF;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--slate);
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  text-decoration: none;
  color: var(--slate-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--slate); }
.nav-buy-btn {
  display: inline-block;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  margin-left: 16px;
  transition: background 0.2s;
}
.nav-buy-btn:hover { background: #008f7d; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--slate);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-muted);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal);
  letter-spacing: 0.3px;
}

/* Product Mockup */
.hero-visual { display: flex; flex-direction: column; gap: 24px; }
.product-mockup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 40px rgba(26, 26, 46, 0.1), 0 1px 3px rgba(26, 26, 46, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mockup-header {
  background: var(--slate);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.mockup-dots span:first-child { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:last-child { background: #28C840; }
.mockup-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
}
.mockup-sidebar {
  padding: 16px 0;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}
.sidebar-item {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--slate-muted);
  font-weight: 500;
  cursor: pointer;
}
.sidebar-item.active {
  background: white;
  color: var(--slate);
  font-weight: 700;
  border-left: 3px solid var(--teal);
}
.mockup-main { padding: 20px; }
.mockup-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--slate-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.mockup-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.mockup-task:last-of-type { border-bottom: none; }
.task-check { color: var(--teal); font-weight: 700; }
.task-done { color: var(--slate-muted); text-decoration: line-through; }
.task-unchecked {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.priority .task-unchecked { border-color: var(--teal); background: var(--teal-light); }
.mockup-energy { margin-top: 14px; }
.energy-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--slate-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.energy-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, #00C9B5 100%);
  border-radius: 99px;
}
.energy-note { font-size: 11px; color: var(--slate-muted); font-style: italic; }

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--slate-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero blobs */
.hero-bg-elements { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-blob-1 {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: var(--teal);
  top: -80px; right: -80px;
}
.hero-blob-2 {
  width: min(300px, 50vw);
  height: min(300px, 50vw);
  background: #7EC8E3;
  bottom: -60px; left: -60px;
}

/* ── SECTION SHARED ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--slate);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ── AUDIENCE ── */
.audience { padding: 100px 0; background: white; }
.audience-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.audience-card {
  background: white;
  padding: 36px 32px;
}
.audience-icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 20px;
}
.audience-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate-muted);
}

/* ── PRODUCTS ── */
.products { padding: 100px 0; background: var(--bg); }
.products-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.products-list { display: flex; flex-direction: column; gap: 0; }
.product-item {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.2s;
}
.product-item:first-child { border-top: 1px solid var(--border); }
.product-item:hover { background: transparent; }
.product-number {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--border);
  font-weight: 400;
  line-height: 1;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 14px;
  color: var(--slate-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 640px;
}
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.product-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--slate-muted);
  border: 1px solid var(--border);
}
.product-indicator { display: flex; justify-content: center; }
.indicator-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.3;
  transition: opacity 0.2s;
}
.product-item:hover .indicator-dot { opacity: 1; }

/* ── DIFFERENTIATORS ── */
.differentiators { padding: 100px 0; background: white; }
.diff-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.diff-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--slate);
  margin-bottom: 20px;
}
.diff-body {
  font-size: 15px;
  color: var(--slate-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.diff-credentials { display: flex; flex-direction: column; gap: 12px; }
.credential {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}
.cred-icon {
  width: 20px; height: 20px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-comparison { display: flex; flex-direction: column; gap: 2px; }
.col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
  margin-bottom: 4px;
  border-radius: 8px;
}
.col-other { background: #F5F5F3; color: var(--slate-muted); }
.col-ours { background: var(--teal); color: white; }
.comparison-item {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 8px;
}
.comparison-item.fail { background: #F5F5F3; color: var(--slate-muted); }
.comparison-item.win { background: var(--teal-light); color: var(--slate); }

/* ── MANIFESTO ── */
.manifesto { padding: 100px 0; background: var(--slate); color: white; }
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.manifesto-quote { margin-bottom: 80px; }
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.4;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  margin-bottom: 20px;
}
.quote-attribution {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--teal);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
}
.pillar h3 {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.pillar p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── CLOSING ── */
.closing { padding: 100px 0 120px; background: var(--bg); }
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--slate);
  max-width: 700px;
  margin: 0 auto 24px;
}
.closing-sub {
  font-size: 16px;
  color: var(--slate-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 60px;
}
.closing-vision {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.vision-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.vision-text {
  font-size: 15px;
  color: var(--slate-muted);
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer { background: var(--slate); color: white; padding: 64px 0 40px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo .logo-mark { background: var(--teal); }
.footer-logo .logo-text { color: white; font-weight: 700; font-size: 16px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.45); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-col-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-link:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy, .footer-note {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════
   RESPONSIVE — Mobile-first overrides
   ═══════════════════════════════════ */

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--bg-alt); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(250,250,247,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px 24px;
  gap: 16px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(26,26,46,0.08);
}
.nav-open .nav-link { font-size: 17px; }

/* ── 768px and below ── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-buy-btn { display: none; }

  .hero { padding: 48px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  .hero-visual { order: -1; }
  .hero-headline {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .hero-sub { font-size: 16px; max-width: 100%; }
  .hero-meta { margin-bottom: 4px; }
  .hero-stat-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-stat { padding: 14px; }

  .audience { padding: 64px 0; }
  .audience-inner { padding: 0 20px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { padding: 28px 20px; }

  .products { padding: 64px 0; }
  .products-inner { padding: 0 20px; }

  .differentiators { padding: 64px 0; }
  .diff-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .manifesto { padding: 64px 0; }
  .manifesto-inner { padding: 0 20px; }
  .manifesto-quote { margin-bottom: 48px; }
  .manifesto-pillars { grid-template-columns: 1fr; gap: 32px; }

  .closing { padding: 64px 0 80px; }
  .closing-inner { padding: 0 20px; }
  .closing-vision { padding: 28px 24px; }

  .footer { padding: 48px 0 32px; }
  .footer-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .product-item { grid-template-columns: 40px 1fr; }
  .product-indicator { display: none; }

  .section-headline { margin-bottom: 36px; }
}

/* ── 480px and below ── */
@media (max-width: 480px) {
  .hero { padding: 40px 0 56px; }
  .hero-inner { padding: 0 16px; gap: 32px; }
  .hero-headline { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-stat-row { gap: 8px; }
  .hero-stat { padding: 12px 10px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 10px; }

  /* Constrain hero product mockup on phones */
  .product-mockup { max-width: 100%; }
  .mockup-sidebar { width: 100px !important; }
  .mockup-main { padding: 14px; }
  .mockup-body { grid-template-columns: 100px 1fr; }
  .mockup-task { font-size: 12px; }

  .audience-inner { padding: 0 16px; }
  .audience-card { padding: 24px 16px; }
  .section-headline { font-size: 26px; }

  .products-inner { padding: 0 16px; }

  .diff-inner { padding: 0 16px; }
  .diff-headline { font-size: 24px; }

  .manifesto-inner { padding: 0 16px; }
  .quote-text { font-size: 20px; }
  .pillar-num { font-size: 40px; }

  .closing-inner { padding: 0 16px; }
  .closing-headline { font-size: 28px; }
  .closing-sub { font-size: 15px; margin-bottom: 40px; }
  .closing-vision { padding: 24px 20px; }

  .footer-inner { padding: 0 16px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }

  .section-headline { font-size: 26px; margin-bottom: 28px; }
}

/* ── 320px (small phones) ── */
@media (max-width: 320px) {
  .hero-headline { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .hero-stat-row { grid-template-columns: 1fr; }
  .section-headline { font-size: 22px; }
  .mockup-body { grid-template-columns: 80px 1fr; }
  .mockup-sidebar { width: 80px !important; }
  .sidebar-item { font-size: 11px; padding: 6px 10px; }
}