/* ================================================================
   Fledging Landing Page — Scroll-Animated Redesign
   ================================================================ */

/* ── Tokens ── */
:root {
  --bg:           #09090e;
  --surface:      #111117;
  --surface-2:    #1a1a22;
  --surface-3:    #22222d;
  --border:       rgba(255,255,255,.07);
  --border-hover: rgba(255,255,255,.14);

  --text:         #ededf0;
  --text-2:       #9090a0;
  --text-3:       #5a5a6a;

  --primary:      #6366f1;
  --primary-dim:  rgba(99,102,241,.15);
  --accent:       #f59e0b;
  --success:      #4ade80;

  --cyan:   #22d3ee;
  --yellow: #fbbf24;
  --green:  #34d399;
  --indigo: #818cf8;
  --purple: #c084fc;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  --shadow-md: 0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.6);
  --shadow-xl: 0 24px 80px rgba(0,0,0,.7);

  --font: 'Outfit', system-ui, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;

  --max: 1140px;
  --pad: clamp(1.2rem, 5vw, 2.5rem);

  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ── Utilities ── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section-intro { text-align: center; margin-bottom: 3.5rem; }
.section-intro h2 { font-size: clamp(1.875rem, 4.5vw, 3rem); margin-bottom: .875rem; letter-spacing: -.025em; }
.section-intro p { font-size: 1rem; color: var(--text-2); max-width: 440px; margin-inline: auto; }
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .875rem;
}

/* ── Dev Banner ── */
.dev-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #1a1a24;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: .875rem 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.dev-banner-inner {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9375rem; color: var(--text);
}
.dev-banner-inner svg { flex-shrink: 0; color: var(--accent); }
/* ── Ambient Orbs (mouse-parallax driven via JS) ── */
.orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; filter: blur(90px); z-index: 0;
  will-change: transform;
  transition: transform 0ms linear; /* JS takes over */
}
.orb-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
  top: -220px; left: -180px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,.10) 0%, transparent 70%);
  top: 45%; right: -120px;
}
.orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(192,132,252,.08) 0%, transparent 70%);
  bottom: 5%; left: 15%;
}

/* ── Scroll Reveal Animations ── */
.scroll-reveal {
  opacity: 0;
  transition: opacity 0ms, transform 0ms;
}
/* Default: invisible state per direction */
.scroll-reveal[data-dir="up"]    { transform: translateY(40px); }
.scroll-reveal[data-dir="down"]  { transform: translateY(-40px); }
.scroll-reveal[data-dir="left"]   { transform: translateX(50px); }
.scroll-reveal[data-dir="right"] { transform: translateX(-50px); }

/* Activated state */
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 300ms, box-shadow 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9,9,14,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem; height: 64px;
}
.wordmark {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  color: var(--text); flex-shrink: 0;
}
.wordmark:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--text-2); transition: color 200ms; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn-nav {
  display: inline-flex; align-items: center;
  padding: .5rem 1.125rem;
  background: var(--surface-2); border: 1px solid var(--border-hover);
  border-radius: var(--r-md); font-size: .875rem; font-weight: 600; color: var(--text);
  transition: all 220ms var(--ease-out); flex-shrink: 0;
}
.btn-nav:hover {
  background: var(--surface-3); border-color: rgba(255,255,255,.2);
  transform: translateY(-1px); text-decoration: none;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: .25rem;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 300ms var(--ease-out);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--surface); border-top: 1px solid var(--border); padding: 1rem var(--pad) 1.5rem; }
.mobile-nav.open { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { display: block; padding: .75rem .875rem; font-size: 1rem; font-weight: 500; color: var(--text); border-radius: var(--r-sm); transition: background 150ms; }
.mobile-nav a:hover { background: var(--surface-2); text-decoration: none; }

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
}

/* ── HERO — Fixed two-column grid ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 0 4rem;
  z-index: 1;
  overflow: hidden;
}

/* ── Slow-burn shimmer overlay ── */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(99,102,241,.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 30%, rgba(192,132,252,.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 60% 80%, rgba(245,158,11,.05) 0%, transparent 50%);
  animation: slowBurn 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes slowBurn {
  0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
  33%  { opacity: 1;   transform: scale(1.05) rotate(2deg); }
  66%  { opacity: 0.8; transform: scale(0.98) rotate(-1deg); }
  100% { opacity: 0.7; transform: scale(1.03) rotate(1.5deg); }
}

/* ── Noise grain overlay ── */
.noise-svg {
  position: fixed;
  width: 0; height: 0;
  pointer-events: none;
}

/* Animated noise pseudo-element on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  animation: noiseShift 0.8s steps(1) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes noiseShift {
  0%   { background-position: 0    0;   }
  10%  { background-position: -20px -30px; }
  20%  { background-position: 30px  10px; }
  30%  { background-position: -10px 40px;  }
  40%  { background-position: 20px -20px; }
  50%  { background-position: -30px 20px; }
  60%  { background-position: 10px  -40px;}
  70%  { background-position: -20px 30px; }
  80%  { background-position: 40px  -10px;}
  90%  { background-position: -10px -30px;}
  100% { background-position: 0     0;   }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2; /* above shimmer */
}

.hero-left {
  display: flex;
  flex-direction: column;
  max-width: 580px;
}

/* Hero entrance animations */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .875rem;
  background: var(--primary-dim); border: 1px solid rgba(99,102,241,.25);
  border-radius: 100px; font-size: .8125rem; font-weight: 500; color: var(--primary);
  margin-bottom: 1.5rem;
  align-self: flex-start;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.7); } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 1.25rem; line-height: 1.06;
}
.headline-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: clamp(.9375rem, 1.5vw, 1.125rem);
  color: var(--text-2); margin-bottom: 2rem; line-height: 1.75;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .75rem 1.5rem;
  background: var(--primary); color: #fff; border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(99,102,241,.4), 0 4px 20px rgba(99,102,241,.35);
  transition: all 250ms var(--ease-out);
}
.btn-hero-primary:hover {
  background: #7577f5; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.5), 0 8px 32px rgba(99,102,241,.45);
  text-decoration: none;
}

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .9375rem; font-weight: 600; color: var(--text-2);
  transition: color 200ms, gap 200ms;
}
.btn-hero-ghost:hover { color: var(--text); gap: .625rem; text-decoration: none; }

.hero-trust {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8125rem; color: var(--text-3);
  margin-bottom: 1.75rem;
}

/* Floating mini-cards */
.hero-float {
  display: flex; flex-direction: column; gap: .625rem;
}

/* Tilt card wrapper — the perspective container */
.tilt-card {
  perspective: 900px;
  cursor: default;
}
.tilt-card__inner {
  transition: transform 0ms linear; /* driven by rAF loop */
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: var(--r-lg);
}

/* Float cards inside tilt wrappers */
.float-card {
  display: flex; align-items: center; gap: .875rem;
  padding: .75rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), 0 1px 0 rgba(255,255,255,.05) inset;
  /* depth layers */
  animation: floatCard 5s ease-in-out infinite;
  backface-visibility: hidden;
}
.float-card:nth-child(2) { animation-delay: 1s; }
.float-card:nth-child(3) { animation-delay: 2s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.float-card-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.float-card-label { font-size: .8rem; font-weight: 700; color: var(--text); }
.float-card-sub   { font-size: .725rem; color: var(--text-3); }

/* Phone mockup — right column */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
}

.phone-shell {
  width: 230px;
  background: #0d0d12;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-xl), 0 0 60px rgba(99,102,241,.12);
  overflow: hidden;
  animation: phoneEntrance 1s var(--ease-out) both, phoneFloat 8s ease-in-out 1s infinite;
  backface-visibility: hidden;
}

@keyframes phoneEntrance {
  from { opacity: 0; transform: translateX(60px) scale(.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.phone-bar { display: flex; flex-direction: column; align-items: center; padding: 10px 0 6px; gap: 4px; }
.phone-notch { width: 62px; height: 20px; background: #0d0d12; border-radius: 0 0 14px 14px; }
.phone-status { width: 38px; height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; }
.phone-body { padding: .75rem; }
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; }
.phone-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.phone-nav-dots { display: flex; gap: 4px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.2); }
.dot.active { background: var(--primary); width: 12px; border-radius: 2px; }

.phone-entries { display: flex; flex-direction: column; gap: .5rem; }
.phone-entry { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .5rem .5rem .5rem .75rem; overflow: hidden; }
.phone-entry-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px; border-radius: 3px 0 0 3px; }
.phone-entry.cyan   .phone-entry-bar { background: var(--cyan); }
.phone-entry.yellow .phone-entry-bar { background: var(--yellow); }
.phone-entry.green  .phone-entry-bar { background: var(--green); }
.phone-entry.indigo .phone-entry-bar { background: var(--indigo); }
.phone-entry-title { font-size: .58rem; font-weight: 700; color: var(--text); margin-bottom: .1rem; }
.phone-entry-body  { font-size: .5rem; color: var(--text-3); }

.phone-tabbar { display: flex; align-items: center; justify-content: space-around; padding: .625rem .75rem; background: var(--surface-2); border-top: 1px solid var(--border); }
.tab { width: 22px; height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; }
.tab.active { background: var(--primary); width: 30px; }
.mic-tab { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .375rem;
  color: var(--text-3); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  z-index: 3;
}
.scroll-line { width: 1px; height: 30px; background: linear-gradient(to bottom, var(--text-3), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity:.4; transform:scaleY(1); } 50% { opacity:1; transform:scaleY(1.3); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { max-width: 100%; }
}

/* ── AI COMPANION SECTION ── */
.companion {
  position: relative; padding: 7rem 0;
  z-index: 1; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99,102,241,.04) 0%, transparent 50%, rgba(192,132,252,.03) 100%);
}
.companion-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.companion-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 1.25rem;
}
.companion-text h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: 1.25rem; letter-spacing: -.025em; }
.companion-text h2 em { font-style: normal; background: linear-gradient(135deg, var(--purple), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.companion-desc { font-size: 1rem; color: var(--text-2); line-height: 1.75; margin-bottom: 2rem; }

.memory-tiers { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 2rem; }
.memory-tier { display: flex; align-items: flex-start; gap: .875rem; }
.memory-icon {
  width: 34px; height: 34px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--purple);
}
.memory-name { font-size: .875rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.memory-desc { font-size: .8rem; color: var(--text-3); line-height: 1.5; }

.companion-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.companion-plan-note { font-size: .8125rem; color: var(--text-3); }

/* Chat window */
.chat-window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,.08); }
.chat-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.chat-companion-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--primary)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-header-info { flex: 1; }
.chat-companion-name { font-size: .875rem; font-weight: 700; color: var(--text); }
.chat-companion-status { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--text-3); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulseDot 2s ease-in-out infinite; }

.chat-messages { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; min-height: 320px; }
.msg { display: flex; gap: .625rem; align-items: flex-start; }
.msg-user { flex-direction: row-reverse; }
.msg-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--primary)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.msg-bubble { max-width: 80%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); border-top-left-radius: 4px; padding: .625rem .875rem; font-size: .8125rem; line-height: 1.6; color: var(--text); }
.msg-bubble-user { background: var(--primary); border-color: transparent; color: #fff; border-top-right-radius: 4px; border-top-left-radius: var(--r-md); }
.msg-stats { background: var(--surface); border-radius: var(--r-sm); padding: .625rem; margin-top: .5rem; border: 1px solid var(--border); }
.stat-row { display: flex; justify-content: space-between; font-size: .75rem; padding: .2rem 0; }
.stat-row.highlight { color: var(--yellow); font-weight: 700; }
.stat-label { color: var(--text-3); }
.stat-val { font-weight: 600; }

.chat-input { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem; background: var(--surface-2); border-top: 1px solid var(--border); }
.chat-input-inner { flex: 1; display: flex; align-items: center; gap: .625rem; padding: .5rem .875rem; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; font-size: .8rem; color: var(--text-3); }
.chat-send { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all 200ms; }
.chat-send:hover { background: #7577f5; transform: scale(1.05); }

@media (max-width: 900px) {
  .companion-inner { grid-template-columns: 1fr; gap: 3rem; }
  .companion-chat { order: -1; }
}

/* ── FEATURES ── */
.features { padding: 7rem 0; position: relative; z-index: 1; }

.feature-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.feat-tab {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; font-size: .8rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all 200ms var(--ease-out);
}
.feat-tab:hover { border-color: var(--border-hover); color: var(--text); }
.feat-tab.active { background: var(--primary-dim); border-color: rgba(99,102,241,.35); color: var(--primary); }
.feat-tab svg { opacity: .7; }
.feat-tab.active svg { opacity: 1; }

.feature-panels { position: relative; }

.feat-panel { display: none; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 1.5rem 0; }
.feat-panel.active { display: grid; }

.feat-panel-text h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); margin-bottom: 1rem; letter-spacing: -.02em; }
.feat-panel-text > p { font-size: .9375rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.25rem; }
.feat-list { display: flex; flex-direction: column; gap: .5rem; }
.feat-list li { display: flex; align-items: center; gap: .625rem; font-size: .875rem; color: var(--text-2); font-weight: 500; }

.feat-panel-visual { display: flex; justify-content: center; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--shadow-md); min-width: 260px; max-width: 320px; width: 100%; }

/* Journal */
.feat-mood { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mood-label { font-size: .6875rem; color: var(--text-3); }
.mood-icons { display: flex; gap: 3px; }
.mood-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.mood-dot.active { background: var(--yellow); }
.feat-entry-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .375rem; }
.feat-entry-body  { font-size: .8rem; color: var(--text-2); line-height: 1.55; margin-bottom: 1rem; }
.feat-tags { display: flex; gap: .375rem; flex-wrap: wrap; }
.feat-tag { padding: .2rem .625rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; font-size: .6875rem; font-weight: 600; color: var(--text-3); }
.feat-tag-ai { background: var(--primary-dim); border-color: rgba(99,102,241,.25); color: var(--primary); }

/* Todos */
.feat-card-todos { display: flex; flex-direction: column; gap: .875rem; }
.todo-item { display: flex; align-items: center; gap: .875rem; }
.todo-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-hover); flex-shrink: 0; }
.todo-check.active { background: var(--yellow); border-color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.todo-check.active::after { content: ''; width: 5px; height: 3px; border-left: 1.5px solid #000; border-bottom: 1.5px solid #000; transform: rotate(-45deg) translateY(-1px); }
.todo-title { font-size: .875rem; font-weight: 600; color: var(--text); }
.todo-title.done { text-decoration: line-through; color: var(--text-3); }
.todo-due { font-size: .75rem; color: var(--text-3); }
.todo-due.strikethrough { text-decoration: line-through; }

/* Calendar */
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: .75rem; font-weight: 700; color: var(--green); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 1rem; }
.cal-day-name { text-align: center; font-size: .6rem; font-weight: 700; color: var(--text-3); padding: .25rem 0; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--text-2); border-radius: 4px; position: relative; }
.cal-day.today { background: var(--primary); color: #fff; font-weight: 700; }
.cal-day.ev::after { content: ''; display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--green); position: absolute; bottom: 2px; }
.cal-entries { display: flex; flex-direction: column; gap: .375rem; }
.cal-entry-item { display: flex; align-items: center; gap: .5rem; font-size: .6875rem; color: var(--text-2); }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Ledger */
.feat-card-ledger { text-align: center; }
.ledger-summary { margin-bottom: 1rem; }
.ledger-month { font-size: .6875rem; color: var(--text-3); margin-bottom: .25rem; }
.ledger-amount { font-size: 2rem; font-weight: 800; color: var(--text); }
.ledger-amount span { font-size: 1.25rem; color: var(--text-2); }
.ledger-sub { font-size: .6875rem; color: var(--text-3); }
.ledger-pie { margin: 0 auto .75rem; }
.ledger-legend { display: flex; flex-direction: column; gap: .25rem; text-align: left; }
.legend-item { display: flex; align-items: center; gap: .5rem; font-size: .6875rem; color: var(--text-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Voice */
.feat-card-voice { text-align: center; }
.voice-animation { position: relative; width: 100px; height: 100px; margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; }
.voice-ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--purple); animation: voiceRing 2.4s ease-out infinite; }
.vr1 { width: 58px; height: 58px; animation-delay: 0s; }
.vr2 { width: 76px; height: 76px; animation-delay: .4s; }
.vr3 { width: 94px; height: 94px; animation-delay: .8s; }
@keyframes voiceRing { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
.voice-core { position: relative; z-index: 1; width: 50px; height: 50px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.voice-label { font-size: .6875rem; color: var(--purple); font-weight: 700; margin-bottom: .375rem; }
.voice-text { font-size: .8rem; color: var(--text-2); margin-bottom: .75rem; font-style: italic; }
.voice-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 18px; }
.wb { width: 3px; height: 6px; border-radius: 2px; background: var(--surface-3); }
.wb.active { background: var(--purple); }
.voice-result { margin-top: 1rem; }
.voice-result-label { font-size: .6875rem; color: var(--text-3); margin-bottom: .25rem; }
.voice-result-badge { display: inline-flex; align-items: center; gap: .375rem; padding: .3rem .75rem; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25); border-radius: 100px; font-size: .75rem; font-weight: 700; color: var(--yellow); }

/* Analytics */
.analytics-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.analytics-stat { flex: 1; text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: .2rem; }
.stat-desc { font-size: .625rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.analytics-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-bottom: 1rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bar { width: 100%; background: linear-gradient(to top, var(--primary), var(--purple)); border-radius: 3px 3px 0 0; min-height: 4px; }
.bar-col span { font-size: .5625rem; color: var(--text-3); }
.analytics-mood-row { display: flex; gap: .5rem; align-items: center; justify-content: center; }
.mood-face { font-size: 1rem; }
.mood-face.muted { color: var(--text-3); }

@media (max-width: 768px) {
  .feat-panel { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-panel-visual { order: -1; }
}

/* ── OFFLINE BANNER ── */
.offline-banner { padding: 5rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.offline-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 3rem; align-items: center; }
.offline-icon { width: 68px; height: 68px; background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(192,132,252,.15)); border: 1px solid rgba(99,102,241,.25); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.offline-text h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); margin-bottom: .75rem; }
.offline-text p { font-size: .9375rem; color: var(--text-2); line-height: 1.7; max-width: 500px; }
.offline-checks { display: flex; flex-direction: column; gap: .5rem; }
.offline-check { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }

@media (max-width: 900px) {
  .offline-inner { grid-template-columns: 1fr; gap: 2rem; }
  .offline-icon { display: none; }
  .offline-checks { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; }
}

/* ── PRICING ── */
.pricing { padding: 7rem 0; position: relative; z-index: 1; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 780px; margin: 0 auto; }

.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem; position: relative; transition: all 300ms var(--ease-out); }
.price-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.price-card-featured { border-color: rgba(99,102,241,.4); box-shadow: 0 0 0 1px rgba(99,102,241,.15), var(--shadow-lg); background: linear-gradient(180deg, rgba(99,102,241,.06) 0%, var(--surface) 40%); }
.price-card-featured:hover { border-color: rgba(99,102,241,.6); transform: translateY(-4px); }

.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem 1rem; border-radius: 100px; box-shadow: 0 4px 16px rgba(99,102,241,.35); }
.price-tier { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: .5rem; }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-tagline { font-size: .8125rem; color: var(--text-3); margin-bottom: 2rem; }

.price-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.price-features li { display: flex; align-items: center; gap: .625rem; font-size: .875rem; }
.price-features li.included { color: var(--text); }
.price-features li.included svg { color: var(--success); flex-shrink: 0; }
.price-features li.not-included { color: var(--text-3); }
.price-features li.not-included svg { color: var(--surface-3); flex-shrink: 0; }

.price-btn { display: block; text-align: center; padding: .75rem 1.5rem; border-radius: var(--r-md); font-size: .9375rem; font-weight: 700; transition: all 220ms var(--ease-out); }
.price-btn-outline { background: transparent; border: 1.5px solid var(--border-hover); color: var(--text); }
.price-btn-outline:hover { background: var(--surface-2); border-color: rgba(255,255,255,.25); text-decoration: none; }
.price-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,.3); }
.price-btn-primary:hover { background: #7577f5; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,.4); text-decoration: none; }

@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } .price-card-featured { order: -1; } }

/* ── FAQ ── */
.faq { padding: 7rem 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.faq-inner { max-width: 720px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

/* Smooth height animation via CSS grid trick */
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--ease-out);
}
details[open] .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }

.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.375rem 1.75rem; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; transition: background 150ms; font-family: var(--font); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--surface); }
details[open] .faq-q { color: var(--primary); }
.faq-arrow { flex-shrink: 0; color: var(--text-3); transition: transform 350ms var(--ease-out), color 200ms; }
details[open] .faq-arrow { color: var(--primary); transform: rotate(180deg); }
.faq-a { padding: 0 1.75rem 0; }
.faq-a-inner p { font-size: 1rem; color: var(--text-2); line-height: 1.8; padding-bottom: 1.375rem; }

/* ── FINAL CTA ── */
.final-cta { position: relative; padding: 9rem 0 8rem; text-align: center; overflow: hidden; z-index: 1; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 500px; background: radial-gradient(ellipse at center, rgba(99,102,241,.22) 0%, rgba(192,132,252,.10) 40%, transparent 70%); pointer-events: none; }
.cta-inner { position: relative; }
.final-cta h2 { font-size: clamp(2.25rem, 6vw, 4rem); color: #fff; margin-bottom: 1.25rem; letter-spacing: -.03em; }
.final-cta > .cta-inner > p { font-size: 1.0625rem; color: rgba(255,255,255,.55); margin-bottom: 2.5rem; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: .625rem; padding: .875rem 2.25rem; background: #fff; color: var(--primary); border-radius: var(--r-lg); font-size: 1rem; font-weight: 700; box-shadow: 0 8px 32px rgba(0,0,0,.3); transition: all 250ms var(--ease-out); }
.btn-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.35); text-decoration: none; background: #f0f0ff; }
.cta-platforms { margin-top: 1.25rem; font-size: .8125rem; color: rgba(255,255,255,.3); letter-spacing: .1em; }

/* ── FOOTER ── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 3rem; }
.footer-brand .wordmark { color: #fff; margin-bottom: .75rem; }
.footer-brand .wordmark:hover { text-decoration: none; }
.footer-tagline { font-size: .8125rem; color: var(--text-3); font-style: italic; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .875rem; color: var(--text-2); margin-bottom: .5rem; transition: color 200ms; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .8125rem; color: var(--text-3); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
