/* ============================
   RESET & BASE
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #050914;
  color: #ffffff;
  overflow-x: hidden;
}



:root {
  /* ── Surfaces ───────────────────────── */
  --bg-deep:        #050914;
  --bg-card:        rgba(10,20,50,0.6);
  --border:         rgba(37,99,235,0.2);

  /* ── Brand colors ───────────────────── */
  --accent-blue:    #2563eb;
  --accent-cyan:    #4d9fff;
  --text:           #ffffff;
  --text-muted:     rgba(255,255,255,0.45);
  --gold:           #f5a623;
  --silver:         #8ba4c0;
  --bronze:         #cd7f32;
  --ok:             #34d399;
  --no:             #f0506e;

  /* ── Spacing scale ──────────────────── */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-xxl: 100px;

  /* ── Typography scale ───────────────── */
  --fs-xs:  12px;
  --fs-sm:  14px;
  --fs-md:  16px;
  --fs-lg:  20px;
  --fs-xl:  28px;
  --fs-xxl: 36px;

  /* ── Radii ──────────────────────────── */
  --r-card:  20px;
  --r-panel: 14px;
  --r-chip:  999px;

  /* ── Shadows ────────────────────────── */
  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  --glow:   rgba(37,99,235,0.3);

  /* ── Control ────────────────────────── */
  --control-color: #4d9fff;
  --logo-navy:     #2563eb;
}

/* ANIMATIONS */
.fade-up { opacity:0; transform:translateY(20px); animation:fadeUp 1.2s ease forwards; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(10px); } }
@keyframes pulse { 0%,100% { opacity:0.3; } 50% { opacity:1; } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* NAV */
.top-nav {
  position:fixed; top:0; left:0; width:100%;
  padding:14px 40px;
  display:flex; justify-content:space-between; align-items:center;
  z-index:200;
  background:rgba(5,9,20,0.85);
  border-bottom:1px solid rgba(37,99,235,0.15);
  backdrop-filter:blur(12px);
}
.nav-left { display:flex; align-items:center; gap:10px; }
.nav-left span { font-size:16px; font-weight:700; color:#fff; }
.nav-right { display:flex; align-items:center; gap:28px; }
.nav-link { color:rgba(255,255,255,0.65); text-decoration:none; font-size:14px; font-weight:500; transition:color 0.2s; }
.nav-link:hover { color:#fff; }
.nav-cta { padding:8px 18px; background:#2563eb; color:#fff; border-radius:8px; font-size:14px; font-weight:600; text-decoration:none; transition:background 0.2s; }
.nav-cta:hover { background:#1d4ed8; }
.logo-container { position:relative; width:36px; height:36px; }
.logo-img { position:absolute; width:36px; height:36px; object-fit:contain; transition:opacity 0.35s ease,transform 0.35s ease; }
.logo-visible { opacity:1; transform:translateY(0); }
.logo-hidden  { opacity:0; transform:translateY(6px); }

/* HERO */

/* #hero::before defined in landing_page.html */
.hero-content { display:flex; flex-direction:column; align-items:center; padding-top:80px; opacity:0; animation:fadeIn 1.4s ease forwards; position:relative; z-index:1; }
.hero-title { font-size:3.5rem; font-weight:800; color:#fff; line-height:1.15; margin-bottom:16px; letter-spacing:-1px; }
.hero-accent { color:#4d9fff; }
.hero-sub { font-size:1.1rem; color:rgba(255,255,255,0.6); max-width:500px; line-height:1.6; margin-bottom:32px; }

/* PRIMARY BUTTON */
.primary-button {
  background:#2563eb; border:none; color:#fff;
  padding:14px 32px; border-radius:10px; font-size:15px; font-weight:700;
  cursor:pointer; transition:background 0.2s,transform 0.1s;
  box-shadow:0 0 30px rgba(37,99,235,0.4);
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
}
.primary-button:hover { background:#1d4ed8; transform:translateY(-2px); }

/* SECTIONS */
.section-eyebrow { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#3b82f6; margin-bottom:12px; }
.section-heading { font-size:2.4rem; font-weight:800; color:#fff; line-height:1.2; margin-bottom:12px; }
.section-sub { font-size:1rem; color:rgba(255,255,255,0.55); max-width:560px; margin:0 auto; line-height:1.6; }
.section-title { font-size:2.4rem; font-weight:800; color:#fff; margin-bottom:50px; text-align:center; }

/* HOW IT WORKS */
.how-section, #how-it-works { background:#050914; padding:100px 40px; text-align:center; }
.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:1000px; margin:48px auto 0; }
.step-card { background:rgba(10,20,50,0.6); border:1px solid rgba(37,99,235,0.2); border-radius:16px; padding:28px; text-align:left; transition:all 0.25s; }
.step-card:hover { border-color:rgba(37,99,235,0.5); transform:translateY(-4px); }
.step-number { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#3b82f6; margin-bottom:12px; }
.step-icon { font-size:28px; margin-bottom:14px; }
.step-title { font-size:17px; font-weight:700; color:#fff; margin-bottom:8px; }
.step-desc { font-size:13px; color:rgba(255,255,255,0.55); line-height:1.6; }

/* HUMAN STORY */
.human-story-section, #human-story { background:#050914; padding:120px 40px; text-align:center; position:relative; overflow:visible; min-height:80vh; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.human-story-section::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 50%,rgba(37,99,235,0.08) 0%,transparent 70%); pointer-events:none; }
.human-title { font-size:3rem; font-weight:800; color:#fff; line-height:1.2; margin-bottom:20px; }
.human-sub { font-size:1.05rem; color:rgba(255,255,255,0.55); max-width:600px; margin:0 auto; line-height:1.7; }
.body-text { font-size:1.05rem; color:rgba(255,255,255,0.55); max-width:820px; margin:0 auto 20px; line-height:1.7; }

/* TIER CARDS */
.tiers-section { background:#050914; padding:80px 40px; text-align:center; }
.tier-cards-grid { display:flex; justify-content:center; gap:20px; margin-top:48px; flex-wrap:wrap; }
.bento-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.bento-card, .tier-card {
  background:rgba(10,20,50,0.7); border:1px solid rgba(37,99,235,0.2); border-radius:16px; padding:32px 24px; text-align:center; transition:all 0.25s;
}
.bento-card:hover, .tier-card:hover { transform:translateY(-6px); border-color:rgba(37,99,235,0.5); }
.tier-card.active, .bento-card:nth-child(2) { border-color:rgba(37,99,235,0.4); background:rgba(37,99,235,0.12); transform:scale(1.05); }
.gold   { border-top:5px solid #f5a623; }
.silver { border-top:5px solid #8ba4c0; }
.bronze { border-top:5px solid #cd7f32; }
.tier-medal { font-size:36px; margin-bottom:12px; }
.tier-match { font-size:40px; font-weight:800; color:#fff; line-height:1; margin-bottom:4px; }
.tier-match-label { font-size:13px; font-weight:600; color:rgba(255,255,255,0.6); margin-bottom:8px; }
.tier-persona { font-size:12px; color:rgba(255,255,255,0.4); }

/* API SECTION */
.api-section { background:#050914; padding:100px 40px; }
.api-inner { max-width:1000px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; background:rgba(10,20,50,0.6); border:1px solid rgba(37,99,235,0.2); border-radius:20px; padding:48px; }
.api-eyebrow { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#3b82f6; margin-bottom:12px; }
.api-title { font-size:2rem; font-weight:800; color:#fff; line-height:1.2; margin-bottom:12px; }
.api-sub { font-size:14px; color:rgba(255,255,255,0.55); line-height:1.7; margin-bottom:20px; }
.api-tags { display:flex; flex-wrap:wrap; gap:8px; }
.api-tag { padding:5px 12px; background:rgba(37,99,235,0.15); border:1px solid rgba(37,99,235,0.3); border-radius:999px; font-size:12px; font-weight:600; color:#4d9fff; }
.api-code-wrap { background:rgba(5,9,20,0.9); border:1px solid rgba(37,99,235,0.2); border-radius:12px; overflow:hidden; }
.api-code-header { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:rgba(10,20,50,0.8); border-bottom:1px solid rgba(37,99,235,0.15); font-size:12px; color:rgba(255,255,255,0.4); }
.api-code-dots { display:flex; gap:6px; }
.api-code-dot  { width:10px; height:10px; border-radius:50%; }
.dot-red { background:#ff5f57; } .dot-yellow { background:#febc2e; } .dot-green { background:#28c840; }
.api-code-body { padding:16px; font-family:'SF Mono','Fira Code',monospace; font-size:12px; line-height:1.7; }
.c-muted { color:rgba(255,255,255,0.3); } .c-key { color:#4d9fff; } .c-str { color:#00d68f; } .c-num { color:#f5a623; } .c-bool { color:#5fe3ef; }

/* DEMO */
.demo-section, #demo { background:#050914; padding:100px 40px; text-align:center; }
.demo-box { max-width:700px; margin:48px auto 0; background:rgba(10,20,50,0.6); border:1px solid rgba(37,99,235,0.2); border-radius:20px; padding:32px; text-align:left; }
.demo-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px; }
.demo-field label { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.5); margin-bottom:8px; }
.demo-field textarea { width:100%; height:100px; padding:12px; background:rgba(5,9,20,0.8); border:1px solid rgba(37,99,235,0.2); border-radius:10px; color:#fff; font-size:13px; resize:none; outline:none; font-family:inherit; }
.demo-field textarea:focus { border-color:rgba(37,99,235,0.6); }
.demo-run-btn { width:100%; padding:14px; background:#2563eb; border:none; border-radius:10px; color:#fff; font-size:15px; font-weight:700; cursor:pointer; transition:background 0.2s; }
.demo-run-btn:hover { background:#1d4ed8; }

/* PRICING */
.pricing-section, #pricing { background:#050914; padding:100px 40px; text-align:center; }
.pricing-title { font-size:2.4rem; font-weight:800; color:#fff; margin-bottom:8px; }
.pricing-sub { font-size:14px; color:rgba(255,255,255,0.5); margin-bottom:48px; }
.pricing-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:1100px; margin:0 auto; }
.pricing-card { background:rgba(10,20,50,0.6); border:1px solid rgba(37,99,235,0.15); border-radius:16px; padding:28px 24px; text-align:left; position:relative; transition:all 0.25s; }
.pricing-card:hover { border-color:rgba(37,99,235,0.4); transform:translateY(-4px); }
.pricing-card.featured { border-color:rgba(37,99,235,0.5); background:rgba(37,99,235,0.1); }
.plan-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); padding:4px 12px; background:#2563eb; border-radius:999px; font-size:11px; font-weight:700; color:#fff; white-space:nowrap; }
.plan-name { font-size:18px; font-weight:700; color:#fff; margin-bottom:4px; }
.plan-price { font-size:36px; font-weight:800; color:#fff; line-height:1; margin-bottom:4px; }
.plan-price span { font-size:14px; color:rgba(255,255,255,0.5); font-weight:400; }
.plan-billing { font-size:11px; color:rgba(255,255,255,0.4); margin-bottom:20px; }
.plan-divider { border:none; border-top:1px solid rgba(255,255,255,0.08); margin:16px 0; }
.plan-features { list-style:none; margin-bottom:24px; }
.plan-features li { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.7); margin-bottom:8px; }
.plan-features li::before { content:"✓"; color:#00d68f; font-weight:700; }
.plan-btn { width:100%; padding:11px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s; border:none; }
.plan-btn-primary { background:#2563eb; color:#fff; }
.plan-btn-primary:hover { background:#1d4ed8; }
.plan-btn-outline { background:transparent; border:1px solid rgba(255,255,255,0.2)!important; color:rgba(255,255,255,0.7); }
.plan-btn-outline:hover { border-color:rgba(255,255,255,0.5)!important; color:#fff; }

/* CTA */
.cta-section, #final-cta { background:#050914; padding:100px 40px; text-align:center; }
.cta-box { max-width:600px; margin:0 auto; padding:48px; border-radius:20px; background:rgba(10,20,50,0.7); border:1px solid rgba(37,99,235,0.25); }
.cta-title { font-size:2.4rem; font-weight:800; color:#fff; margin-bottom:16px; }
.cta-text  { font-size:1rem; color:rgba(255,255,255,0.55); margin-bottom:28px; line-height:1.6; }

/* FOOTER */
.elite-footer { background:#050914; border-top:1px solid rgba(37,99,235,0.15); padding:48px 20px; text-align:center; }
.footer-divider { border:none; border-top:1px solid rgba(37,99,235,0.15); margin:24px auto; width:80%; }
.footer-logo { width:48px; margin-bottom:10px; }
.signature-title { font-size:1.2rem; font-weight:700; color:#fff; margin-top:8px; }
.footer-tagline { color:rgba(255,255,255,0.4); margin-top:6px; font-size:13px; }
.footer-bottom { margin-top:24px; font-size:12px; color:rgba(255,255,255,0.25); }

/* MEMBERSHIP */
.membership-section { background:#050914; padding:100px 40px; }
.membership-intro { text-align:center; font-size:2rem; font-weight:700; margin-bottom:10px; color:#fff; }
.membership-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:40px; }
.membership-card { background:rgba(10,20,50,0.6); border:1px solid rgba(37,99,235,0.2); border-radius:16px; padding:32px; text-align:center; transition:all 0.25s; }
.membership-card:hover { transform:translateY(-6px); border-color:rgba(37,99,235,0.5); }
.membership-card h4 { font-size:1.4rem; font-weight:700; margin-bottom:8px; color:#fff; }
.price { font-size:1.2rem; font-weight:700; color:#4d9fff; margin-bottom:20px; }
.feature-list { list-style:none; margin-bottom:25px; }
.feature-list li { margin:6px 0; font-size:0.95rem; color:rgba(255,255,255,0.65); }

/* AUTH */
#auth-hero { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:100px 20px 40px; background:#050914; }
.auth-container { width:100%; max-width:480px; }
.auth-card { background:linear-gradient(145deg,#0d1829,#0a1020); border:1px solid rgba(37,99,235,0.2); border-radius:20px; padding:40px 36px; box-shadow:0 24px 80px rgba(0,0,0,0.5); }
.auth-title { font-size:26px; font-weight:800; color:#fff; margin-bottom:6px; }
.auth-subtitle { font-size:13px; color:rgba(255,255,255,0.5); margin-bottom:28px; line-height:1.5; }
.auth-form { display:flex; flex-direction:column; }
.auth-label { display:flex; flex-direction:column; font-size:12px; font-weight:600; color:rgba(255,255,255,0.6); margin-bottom:14px; gap:6px; }
.auth-input { padding:11px 14px; background:rgba(255,255,255,0.05); border:1px solid rgba(37,99,235,0.2); border-radius:8px; color:#fff; font-size:13px; outline:none; transition:border-color 0.2s; font-family:inherit; }
.auth-input:focus { border-color:rgba(37,99,235,0.6); }
.auth-input::placeholder { color:rgba(255,255,255,0.25); }
.auth-note { font-size:11px; color:rgba(255,255,255,0.35); margin-top:-8px; margin-bottom:12px; line-height:1.5; }
.required-star { color:#ef4444; }
.auth-button { width:100%; padding:13px; background:#2563eb; border:none; border-radius:10px; color:#fff; font-size:15px; font-weight:700; cursor:pointer; margin-top:8px; transition:background 0.2s; }
.auth-button:hover { background:#1d4ed8; }
.auth-switch { text-align:center; margin-top:16px; font-size:12px; color:rgba(255,255,255,0.4); }
.auth-switch a { color:#3b82f6; text-decoration:none; font-weight:600; }

/* RESPONSIVE */
@media (max-width:900px) {
  .top-nav { padding:12px 20px; }
  .steps-grid, .membership-grid, .api-inner { grid-template-columns:1fr; }
  .pricing-grid { grid-template-columns:1fr 1fr; }
  .hero-title { font-size:2.4rem; }
  .section-heading { font-size:1.8rem; }
  .primary-button { width:100%; justify-content:center; }
  .hero-title { font-size:2rem; }
  .cta-box { padding:28px 20px; }
}

/* ══ WCAG AA — REDUCED MOTION ════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Kill infinite animations only */
  .orb, .orb.cyan, .orb.blue,
  .fade-up, .blink,
  .page-hero::after,
  .ai-chat-dot,
  .chat-thinking-dots span,
  .spinner,
  .strength-fill.pulse {
    animation: none !important;
  }
  /* Keep transitions but make them instant */
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ══ PAGE HERO ════════════════════════════════════════ */
.page-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.15), transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%   { opacity: 0.25; transform: translateX(-50%) scale(1); }
  50%  { opacity: 0.45; transform: translateX(-50%) scale(1.15); }
  100% { opacity: 0.25; transform: translateX(-50%) scale(1); }
}

/* ══ FIX 3 — iOS hero background ════════════════════ */
@supports (-webkit-overflow-scrolling: touch) {
  /* hero in landing_page.html */
}

/* ══ FIX 4 — Pricing mid-breakpoint ════════════════ */
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ══ FIX 5 — Featured bento card by class ══════════ */
.bento-card.featured {
  border-color: rgba(37,99,235,0.4) !important;
  background: rgba(37,99,235,0.12) !important;
  transform: scale(1.05);
}

/* ══ OPTIONAL 1 — Container utility ════════════════ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ══ OPTIONAL 2 — Spacing tokens ════════════════════ */


/* ══ OPTIONAL 3 — Typography scale ══════════════════ */


/* ══ OPTIONAL 4 — Visually hidden utility ═══════════ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ══ OPTIONAL 5 — Section utility ══════════════════ */
.section {
  padding: var(--space-xxl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* ── TOC link hover ──────────────────── */
.toc-link { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.toc-link:hover { color: #4d9fff; }

/* ── Hero background-attachment fix ─── */
@supports (-webkit-overflow-scrolling: touch) {
  #hero { background-attachment: scroll !important; }
}
@media (max-width: 768px) {
  #hero { background-attachment: scroll !important; }
}

/* ── TIER CARDS — LANDING PAGE ───────── */
.bento-card.gold-card   { border:1px solid rgba(245,197,66,0.25) !important; }
.bento-card.silver-card { border:1px solid rgba(192,198,216,0.25) !important; }
.bento-card.bronze-card { border:1px solid rgba(213,138,85,0.25) !important; }
.bento-card.gold-card:hover   { border-color:rgba(245,197,66,0.6) !important; transform:translateY(-6px) scale(1.02); box-shadow:0 20px 50px rgba(0,0,0,0.5),0 0 30px rgba(245,197,66,0.1); }
.bento-card.silver-card:hover { border-color:rgba(192,198,216,0.6) !important; transform:translateY(-6px) scale(1.02); }
.bento-card.bronze-card:hover { border-color:rgba(213,138,85,0.6) !important; transform:translateY(-6px) scale(1.02); }
.bento-card { background:rgba(10,20,50,0.7) !important; border-radius:20px; padding:44px 28px; display:flex; flex-direction:column; align-items:center; gap:8px; transition:all 0.25s; backdrop-filter:blur(10px); text-align:center; }
.bento-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:960px; margin:0 auto; position:relative; z-index:1; }
.tier-medal-emoji { font-size:52px; line-height:1; margin-bottom:8px; }
.tier-match-pct   { font-size:52px; font-weight:800; color:#fff; line-height:1; }
.tier-match-label { font-size:20px; font-weight:700; color:#fff; }
.tier-persona-name { font-size:15px; font-weight:700; margin-top:4px; }
.gold-card   .tier-persona-name { color:#f5c542; }
.silver-card .tier-persona-name { color:#c0c6d8; }
.bronze-card .tier-persona-name { color:#d58a55; }
.tier-desc { font-size:13px; color:rgba(255,255,255,0.5); line-height:1.5; margin-top:8px; }
.tier-badge { display:inline-block; margin-top:14px; padding:4px 14px; border-radius:999px; font-size:11px; font-weight:700; }
.gold-card   .tier-badge { background:rgba(245,197,66,0.1); border:1px solid rgba(245,197,66,0.3); color:#f5c542; }
.silver-card .tier-badge { background:rgba(192,198,216,0.08); border:1px solid rgba(192,198,216,0.2); color:#c0c6d8; }
.bronze-card .tier-badge { background:rgba(213,138,85,0.08); border:1px solid rgba(213,138,85,0.2); color:#d58a55; }
.tiers-header { text-align:center; margin-bottom:56px; position:relative; z-index:1; }
.tiers-eyebrow { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.14em; color:#4d9fff !important; margin-bottom:14px; }
.tiers-title { font-size:clamp(28px,4vw,44px); font-weight:800; color:#fff; line-height:1.2; margin-bottom:14px; }
.tiers-sub { font-size:16px; color:rgba(255,255,255,0.5); max-width:500px; margin:0 auto; line-height:1.6; }
.tiers-bottom { text-align:center; margin-top:48px; font-size:14px; color:rgba(255,255,255,0.35); position:relative; z-index:1; }