/* ============================================================
   ASCEND — ascendapp.ai
   Design language: matches app tokens (AscendBlack, DeepNavy,
   CardNavy, RoyalPurple, AscendBlue, CyanGlow, SpiritGold)
   ============================================================ */

:root {
  --ascend-black: #05070D;
  --deep-navy: #0A0F1E;
  --card-navy: #0D1424;
  --card-border: rgba(124, 141, 255, 0.14);
  --royal-purple: #7C4DFF;
  --ascend-blue: #3D7BFF;
  --cyan-glow: #2CD9FF;
  --growth-green: #34D399;
  --spirit-gold: #F6C453;
  --warning-amber: #F59E0B;
  --soft-red: #F87171;
  --mist-gray: #AAB4D4;
  --text: #F2F5FF;
  --grad: linear-gradient(100deg, var(--royal-purple), var(--ascend-blue) 55%, var(--cyan-glow));
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 24px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  background: var(--ascend-black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.container.narrow { width: min(860px, 92%); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gold-text { color: var(--spirit-gold); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  box-shadow: 0 8px 32px rgba(61, 123, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(44, 217, 255, 0.4); }
.btn-gold {
  background: linear-gradient(100deg, #E9A93C, var(--spirit-gold));
  color: #201503;
  box-shadow: 0 8px 32px rgba(246, 196, 83, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(246, 196, 83, 0.42); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-nav { padding: 10px 20px; font-size: 0.92rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--card-border);
}
.nav-inner {
  width: min(1140px, 92%); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 34px; height: 34px; border-radius: 9px; }
.nav-wordmark {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em;
  font-size: 1.05rem; color: var(--text);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--mist-gray); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(124, 77, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 20% 80%, rgba(44, 217, 255, 0.08), transparent 60%),
    var(--ascend-black);
  overflow: hidden;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; right: -10%; top: 10%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.22), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1140px, 92%); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--cyan-glow);
  border: 1px solid rgba(44, 217, 255, 0.25);
  background: rgba(44, 217, 255, 0.06);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 12px var(--cyan-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-sub {
  color: var(--mist-gray); font-size: 1.15rem; max-width: 34em;
  margin: 24px 0 36px;
}

/* waitlist form */
.waitlist-form { display: flex; gap: 12px; max-width: 520px; }
.waitlist-form.center { margin: 0 auto; justify-content: center; }
.waitlist-form input {
  flex: 1; min-width: 0;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist-form input:focus {
  border-color: var(--ascend-blue);
  box-shadow: 0 0 0 3px rgba(61, 123, 255, 0.18);
}
.waitlist-form input::placeholder { color: rgba(170, 180, 212, 0.5); }
.form-success { color: var(--growth-green); font-weight: 600; margin-top: 16px; }
.form-error { color: #ff8a80; font-weight: 600; margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.micro-trust { color: rgba(170, 180, 212, 0.65); font-size: 0.88rem; margin-top: 16px; }

/* phones */
.hero-visual { position: relative; height: 620px; }
.phone {
  position: relative;
  width: 280px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #1A2138, #0A0F1E);
  border: 1px solid rgba(124, 141, 255, 0.25);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(124, 77, 255, 0.18);
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #05070D; }
.phone-screen img { display: block; width: 100%; height: auto; }

/* Swappable screen slots: when a slot image is missing, keep the phone
   frame intact and label the slot instead of showing a broken image. */
.phone-screen.screen-missing { aspect-ratio: 9 / 19.5; position: relative; }
.phone-screen.screen-missing img { display: none; }
.phone-screen.screen-missing::after {
  content: "App screen slot: " attr(data-slot) "\A Drop updated capture into assets/screens/";
  white-space: pre-line;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--mist-gray); font-size: 0.85rem; line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 77, 255, 0.12), transparent 70%),
    #05070D;
  border: 1px dashed rgba(124, 141, 255, 0.3);
  border-radius: 32px;
}
.phone-main {
  position: absolute; left: 8%; top: 0; z-index: 2;
  animation: floatA 7s ease-in-out infinite;
}
.phone-back {
  position: absolute; right: 0; top: 90px; z-index: 1;
  width: 250px;
  opacity: 0.92;
  transform: rotate(6deg);
  animation: floatB 8s ease-in-out infinite;
}
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-10px); } }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { padding: 130px 0; background: var(--deep-navy); }
.problem h2 { text-align: center; margin-bottom: 56px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.problem-card p { color: var(--mist-gray); font-size: 1rem; }
.problem-num {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--royal-purple); letter-spacing: 0.15em; margin-bottom: 14px;
}
.kicker {
  text-align: center; margin-top: 56px;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: 130px 0; }
.section-eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.24em; color: var(--cyan-glow); margin-bottom: 14px;
}
.section-eyebrow.gold { color: var(--spirit-gold); }
.how h2 { margin-bottom: 64px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(44, 217, 255, 0.35); }
.step-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  background: var(--grad);
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(61, 123, 255, 0.35);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--mist-gray); font-size: 0.95rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 40px 0 60px; }
.feature-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px;
  align-items: center;
  padding: 90px 0;
}
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-visual { order: 1; }
.feature-copy h2 { margin-bottom: 20px; }
.feature-copy > p { color: var(--mist-gray); }
.feature-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 0.98rem; }
.tick { font-size: 0.7rem; }
.tick.gold { color: var(--spirit-gold); }
.tick.green { color: var(--growth-green); }
.tick.purple { color: var(--royal-purple); }
.tick.cyan { color: var(--cyan-glow); }
.tick.amber { color: var(--warning-amber); }
.tick.red { color: var(--soft-red); }
.feature-visual { display: flex; justify-content: center; }
.phone-feature { width: 270px; }

/* compass */
.compass-card {
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  width: min(420px, 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.compass-svg { width: 100%; height: auto; }
.compass-data { animation: compassPulse 5s ease-in-out infinite; transform-origin: center; }
@keyframes compassPulse { 0%, 100% { opacity: 0.9; } 50% { opacity: 1; } }
.compass-caption { text-align: center; color: var(--mist-gray); font-size: 0.9rem; margin-top: 18px; }

/* focus mock */
.focus-mock {
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 44px 36px 32px;
  width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.focus-ring { position: relative; width: 220px; height: 220px; }
.focus-ring svg { width: 100%; height: 100%; }
.focus-progress { filter: drop-shadow(0 0 8px rgba(44, 217, 255, 0.6)); }
.focus-time {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.focus-count { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.focus-label { color: var(--mist-gray); font-size: 0.78rem; text-align: center; max-width: 140px; }
.focus-nag {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
}
.focus-nag-icon { color: var(--warning-amber); font-size: 0.8rem; margin-top: 4px; }
.focus-nag p { color: var(--text); font-size: 0.92rem; }
.focus-nag strong { color: var(--warning-amber); }

/* mood demo */
.mood-demo {
  margin-top: 28px;
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
}
.mood-q { font-family: var(--font-display); font-weight: 600; margin-bottom: 14px; }
.mood-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--card-border);
  background: rgba(10, 15, 30, 0.8);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem; color: var(--mist-gray);
}
.chip-active {
  border-color: var(--royal-purple);
  background: rgba(124, 77, 255, 0.16);
  color: var(--text);
  box-shadow: 0 0 16px rgba(124, 77, 255, 0.25);
}
.mood-answer {
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--royal-purple), var(--cyan-glow)) 1;
  padding-left: 16px;
}
.mood-answer p { color: var(--mist-gray); font-size: 0.95rem; font-style: italic; }

/* ============================================================
   COMPARISON
   ============================================================ */
.compare { padding: 130px 0; background: var(--deep-navy); }
.compare h2 { text-align: center; margin-bottom: 56px; }
.compare-table {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-navy);
}
.compare-head, .compare-line {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr;
  gap: 16px;
  padding: 18px 28px;
  align-items: center;
}
.compare-head {
  background: rgba(10, 15, 30, 0.9);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; color: var(--mist-gray);
}
.compare-ascend {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.compare-line { border-top: 1px solid rgba(124, 141, 255, 0.08); font-size: 0.95rem; }
.compare-line span:first-child { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.compare-line span:nth-child(2) { color: rgba(170, 180, 212, 0.6); }
.compare-line span:nth-child(3) { color: var(--text); font-weight: 500; }

/* ============================================================
   COHORT
   ============================================================ */
.cohort {
  position: relative;
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
}
.cohort-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(246, 196, 83, 0.1), transparent 60%);
  pointer-events: none;
}
.cohort .container { position: relative; z-index: 2; }
.cohort-sub { color: var(--mist-gray); max-width: 42em; margin: 22px auto 40px; }
.platform-toggle { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; }
.toggle-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 999px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--mist-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn.active {
  border-color: var(--spirit-gold);
  background: rgba(246, 196, 83, 0.1);
  color: var(--spirit-gold);
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { padding: 60px 0 130px; }
.founder-card {
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
}
.founder-card::before {
  content: "“";
  position: absolute; top: 8px; left: 28px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.6;
}
.founder-quote { font-size: 1.12rem; color: var(--text); padding-left: 24px; }
.founder-quote em { color: var(--cyan-glow); font-style: normal; font-weight: 600; }
.founder-sign {
  margin-top: 24px; padding-left: 24px;
  font-family: var(--font-display); font-weight: 600; color: var(--mist-gray);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 40px 0 130px; }
.faq h2 { text-align: center; margin-bottom: 48px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  background: var(--card-navy);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: rgba(124, 77, 255, 0.4); }
.faq-list summary {
  cursor: pointer;
  padding: 20px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 56px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 26px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--cyan-glow);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 26px 22px; color: var(--mist-gray); font-size: 0.97rem; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final-cta {
  padding: 150px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(124, 77, 255, 0.18), transparent 65%),
    var(--deep-navy);
}
.final-logo {
  width: 84px; height: 84px; border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 0 60px rgba(61, 123, 255, 0.4);
}
.final-sub { color: var(--mist-gray); margin: 16px 0 36px; font-size: 1.1rem; }

.footer { border-top: 1px solid var(--card-border); padding: 48px 0; background: var(--ascend-black); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; font-size: 0.9rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--mist-gray); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: rgba(170, 180, 212, 0.5); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { height: auto; display: flex; justify-content: center; padding-bottom: 40px; }
  .phone-main { position: relative; left: auto; top: auto; }
  .phone-back { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-visual { order: 2; }
  .problem-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .compare-head, .compare-line { grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; }
  .compare-head span:first-child { display: none; }
  .compare-line span:nth-child(2)::before { content: "Typical apps · "; font-size: 0.78rem; color: rgba(170,180,212,0.5); }
  .compare-line span:nth-child(3)::before { content: "Ascend · "; font-size: 0.78rem; color: var(--cyan-glow); }
  .founder-card { padding: 36px 24px; }
  .platform-toggle { flex-direction: column; align-items: center; }
}
