/* ---------- Ambient layer: soft light + grain ---------- */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(110px); animation: drift 28s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 52vmax; height: 52vmax; background: rgba(47, 67, 255, .12); top: -22vmax; right: -14vmax; }
.aura i:nth-child(2) { width: 40vmax; height: 40vmax; background: rgba(255, 166, 120, .14); top: 50vh; left: -16vmax; animation-duration: 36s; animation-delay: -10s; }
@keyframes drift { 50% { transform: translate(6vw, 5vh) scale(1.08); } 100% { transform: translate(-4vw, 9vh) scale(.95); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .footer, .nav { position: relative; z-index: 2; }

/* ---------- Dynamic nav ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(243, 241, 236, .55); border: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: width .5s var(--ease), top .5s var(--ease), transform .5s var(--ease), background .3s, border-color .3s, box-shadow .3s, padding .4s var(--ease);
}
.nav.scrolled { width: min(920px, calc(100% - 32px)); top: 10px; background: rgba(255, 255, 255, .78); border-color: var(--line); box-shadow: 0 12px 40px -20px rgba(15, 15, 18, .35); padding: 7px 7px 7px 16px; }
.nav.hidden { transform: translate(-50%, calc(-100% - 30px)); }
.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .25s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-ind { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(15, 15, 18, .06), 0 4px 14px -6px rgba(15, 15, 18, .2); opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.nav.scrolled .nav-ind { background: var(--bg-2); box-shadow: none; }
.nav-cta { display: flex; gap: 8px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.nav.open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { width: min(1200px, calc(100% - 32px)); margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 130px 0 50px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: .98; letter-spacing: -.05em; margin: 22px 0; font-weight: 800; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--text-2); max-width: 540px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-cta.center { justify-content: center; }
.free-line { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-proof { display: flex; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.proof { display: grid; gap: 2px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.proof:last-child { border-right: 0; }
.proof b { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.proof small { font-size: 15px; color: var(--muted); }
.proof span { font-size: 13px; color: var(--muted); }

/* Stage */
.stage { position: relative; height: 620px; perspective: 1400px; }
.stage::before { content: ''; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 67, 255, .18), transparent); filter: blur(30px); }
.phone { position: absolute; left: 50%; top: 50%; width: 312px; padding: 18px; transform: translate(-50%, -50%); border-radius: 30px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--hard-lg); z-index: 5; animation: float 8s ease-in-out infinite; backdrop-filter: blur(10px); }
.phone-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-family: var(--display); }
.phone-top b { flex: 1; font-weight: 700; }
.logo-mark.sm { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
.logo-mark.sm::after { width: 4px; height: 4px; right: 4px; bottom: 4px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 67, 255, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(47, 67, 255, 0); } }
.phone-art { height: 170px; margin: 14px 0 10px; }
.phone-art .art { height: 100%; }
.phone-art .art svg { width: 46%; animation: bob 6s ease-in-out infinite; }
.phone-name { font-weight: 700; font-family: var(--display); font-size: 16px; letter-spacing: -.02em; }
.phone-result { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.ring-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.ring-wrap .ring { width: 100%; height: 100%; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-label b { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.ring-label small { font-size: 10.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.phone-notes { display: grid; gap: 6px; font-size: 12px; flex: 1; }
.phone-notes div { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; background: var(--bg-2); animation: note-in .5s var(--ease) both; }
.phone-notes div:nth-child(2) { animation-delay: .08s; } .phone-notes div:nth-child(3) { animation-delay: .16s; }
@keyframes note-in { from { opacity: 0; transform: translateX(10px); } }
.phone-notes em { font-style: normal; font-weight: 700; color: var(--mint); }
.phone-notes em.roomy, .phone-notes em.long { color: var(--blue); }
.phone-notes em.snug, .phone-notes em.short { color: var(--coral); }
.phone-btn { height: 46px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .3em; font-size: 14.5px; }

.fly { position: absolute; width: 150px; height: 170px; z-index: 3; }
.fly .art { width: 100%; height: 100%; border-radius: 24px; box-shadow: var(--hard-lg); }
.fly .art svg { width: 64%; }
.f1 { left: -2%; top: 4%; animation: float 10s ease-in-out infinite -1s; }
.f2 { right: 0; top: 2%; width: 128px; height: 148px; animation: float 12s ease-in-out infinite -4s; }
.f3 { left: 4%; bottom: 4%; width: 124px; height: 144px; animation: float 11s ease-in-out infinite -6s; }
.f4 { right: 2%; bottom: 8%; animation: float 13s ease-in-out infinite -2s; }
.fly > div { transition: transform .8s var(--ease); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bob { 50% { transform: translateY(-5px); } }

.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 6; animation: spin 26s linear infinite; }
.orbit .chip { position: absolute; transform: translate(-50%, -50%); animation: counter 26s linear infinite; }
.o1 .chip { left: 232px; top: 0; }
.o2 { animation-duration: 32s; animation-direction: reverse; } .o2 .chip { left: 0; top: -262px; animation-duration: 32s; animation-direction: reverse; }
.o3 { animation-duration: 38s; animation-delay: -12s; } .o3 .chip { left: -242px; top: 60px; animation-duration: 38s; animation-delay: -12s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { from { rotate: 0deg; } to { rotate: -360deg; } }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font: 400 12px var(--mono); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--hard); backdrop-filter: blur(8px); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.chip.violet i { background: var(--violet); } .chip.mint i { background: var(--mint); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--text-2); }
.marquee-track i { color: var(--muted); font-style: normal; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 30px; scroll-margin-top: 60px; }
.section-head { margin-bottom: 48px; max-width: 820px; }
.section-head h2, .cta h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 0; font-weight: 800; }
.fine { font-size: 13px; color: var(--muted); margin-top: 20px; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { padding: 32px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--hard-lg); }
.stat-card.c3 { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat-card.c3 p { color: rgba(255, 255, 255, .7); }
.stat-num { font-family: var(--display); font-size: clamp(52px, 5.4vw, 80px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.stat-card.c1 .stat-num { color: var(--blue); }
.stat-card p { margin: 18px 0 0; color: var(--text-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 32px; position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--hard-lg); }
.step-n { font: 400 12px var(--mono); color: var(--muted); letter-spacing: .1em; }
.step-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; margin: 22px 0; background: var(--blue-soft); color: var(--blue); }
.step h3 { font-size: 23px; margin: 0 0 10px; }
.step p { color: var(--text-2); margin: 0; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.demo-controls { padding: 28px; display: grid; gap: 24px; align-content: start; }
.prod-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.prod-pick button { aspect-ratio: 1; padding: 0; border-radius: 16px; transition: transform .35s var(--ease); }
.prod-pick button .art { height: 100%; border-radius: 16px; }
.prod-pick button .art svg { width: 62%; }
.prod-pick button:hover { transform: translateY(-3px); }
.prod-pick button.on .art { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.slider { display: grid; gap: 10px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.slider-top b { font: 400 14px var(--mono); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line-2) var(--fill, 50%)); outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(15, 15, 18, .2); cursor: grab; transition: transform .2s; }
input[type='range']::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); cursor: grab; }
.demo-result { padding: 28px; display: grid; gap: 20px; align-content: start; }
.demo-art { height: 220px; }
.demo-art .art { height: 100%; }
.demo-art .art svg { width: 32%; animation: bob 6s ease-in-out infinite; }
.demo-out { display: flex; gap: 26px; align-items: center; }
.ring-wrap.big { width: 140px; height: 140px; }
.ring-wrap.big .ring-label b { font-size: 44px; }
.demo-label { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.demo-alt { color: var(--text-2); font-size: 14px; margin: 4px 0 12px; min-height: 20px; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.note { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--bg-2); animation: note-in .4s var(--ease) both; }
.note b { text-transform: capitalize; font-weight: 600; }
.note.ideal em { color: var(--mint); } .note.roomy em, .note.long em { color: var(--blue); } .note.snug em, .note.short em { color: var(--coral); }
.note em { font-style: normal; font-weight: 700; }
.json summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.json pre { max-height: 240px; overflow: auto; font-size: 12px; padding: 14px; border-radius: 12px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 30px; min-height: 230px; transition: transform .25s ease-out, box-shadow .5s var(--ease); }
.tile:hover { box-shadow: var(--hard-lg); }
.tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 67, 255, .07), transparent 55%); opacity: 0; transition: opacity .3s; }
.tile:hover::after { opacity: 1; }
.t-wide { grid-column: span 2; }
.tile h3 { font-size: 24px; margin: 16px 0 8px; }
.tile p { color: var(--text-2); margin: 0 0 16px; max-width: 520px; }
.tile.c-sun { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile.c-sun p { color: rgba(255, 255, 255, .7); }
.tile.c-sun .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: var(--lime); }
.tile.c-sun .profile-chips span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.tile.c-sun .profile-chips span.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tile.c-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.tile.c-blue p { color: rgba(255, 255, 255, .8); }
.tile.c-blue .pill { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .2); color: #fff; }
.profile-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-chips span { padding: 7px 13px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font: 400 12.5px var(--mono); }
.calib { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.calib i { flex: 1; height: var(--h); border-radius: 8px; background: linear-gradient(180deg, var(--blue), var(--blue-soft)); animation: grow 2.6s var(--ease) infinite alternate; transform-origin: bottom; }
.calib i:nth-child(2n) { animation-delay: -.7s; } .calib i:nth-child(3n) { animation-delay: -1.3s; }
@keyframes grow { from { transform: scaleY(.6); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--hard-lg); }
.plan h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; color: var(--text-2); font-family: var(--font); font-weight: 600; }
.plan .price { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan .price small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.plan p { margin: 0; color: var(--text-2); }
.plan .checks { flex: 1; margin: 8px 0 12px; }
.plan .pill { align-self: flex-start; }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--hard-lg); }
.plan.featured h3, .plan.featured p, .plan.featured .checks li, .plan.featured .price small { color: rgba(255, 255, 255, .72); }
.plan.featured .checks li::before { border-color: var(--lime); }
.plan.featured .pill { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.plan.featured .btn { background: #fff; color: var(--ink); }
.plan.featured .btn:hover { background: var(--lime); }

/* CTA */
.cta { width: min(1200px, calc(100% - 32px)); margin: 130px auto 80px; }
.cta-inner { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 104px) 24px; background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-inner::before { content: ''; position: absolute; inset: -40% 20% auto; height: 90%; background: radial-gradient(closest-side, rgba(47, 67, 255, .55), transparent); filter: blur(40px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.cta-inner > * { position: relative; }
.cta-inner .lead { margin: 20px auto 0; color: rgba(255, 255, 255, .7); }
.cta-inner .grad { color: var(--lime); -webkit-text-fill-color: var(--lime); }
.eyebrow.light { color: rgba(255, 255, 255, .7); }
.eyebrow.light .dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(215, 255, 79, .15); }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--lime); }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, .08); }

.footer { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 14px; }
.footer nav { display: flex; gap: 22px; color: var(--text-2); }
.footer nav a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; }
  .stage { height: 540px; }
  .demo-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { border-radius: 26px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open { flex-wrap: wrap; background: rgba(255, 255, 255, .96); border-color: var(--line); }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; width: 100%; }
  .nav.open .nav-links a { font-size: 20px; font-family: var(--display); font-weight: 700; color: var(--ink); padding: 10px 4px; animation: note-in .5s var(--ease) both; }
  .nav.open .nav-links a:nth-child(3) { animation-delay: .04s; } .nav.open .nav-links a:nth-child(4) { animation-delay: .08s; } .nav.open .nav-links a:nth-child(5) { animation-delay: .12s; } .nav.open .nav-links a:nth-child(6) { animation-delay: .16s; }
  .nav.open .nav-ind { display: none; }
  .nav.open .nav-cta { flex-direction: row; padding: 8px 0 6px; }
  .problem-grid, .steps, .plans, .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .stage { height: 470px; transform: scale(.84); margin: -40px -30px; }
  .f2, .f4 { display: none; }
  .o2 .chip { top: -214px; } .o1 .chip { left: 150px; } .o3 .chip { left: -150px; }
  .demo-out { flex-direction: column; align-items: flex-start; }
  .section { padding-top: 90px; }
  .hero-proof { flex-wrap: wrap; row-gap: 14px; }
  .marquee-track { font-size: 21px; }
}
