/* ═══════ HootiniLabs landing — Celestial Lab theme ═══════ */
:root {
  --bg: #0b0718; --bg2: #120c28;
  --violet: #b79dff; --violet-deep: #7c4dff; --gold: #ffd24a; --teal: #46e0d0; --pink: #ff8fd8;
  --ink: #ece7ff; --muted: #a99fce; --dim: #8b81ad;
  --glass: rgba(255,255,255,.05); --glass-brd: rgba(183,157,255,.18); --glass-brd-hi: rgba(183,157,255,.4);
  --r: 20px; --r-sm: 12px; --maxw: 1120px;
  --font: "Lexend", system-ui, sans-serif; --display: "Cormorant Garamond", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
#aurora { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 20% 12%, rgba(124,77,255,.22), transparent 70%),
              radial-gradient(55% 45% at 85% 75%, rgba(70,224,208,.13), transparent 70%); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.grad { background: linear-gradient(100deg, var(--violet), var(--teal) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: inherit; font-weight: 600; border: none; border-radius: 9999px; cursor: pointer; transition: transform .2s, box-shadow .3s, filter .2s; white-space: nowrap; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn-primary { background: linear-gradient(120deg, var(--violet-deep), #9a6bff); color: #fff; box-shadow: 0 8px 30px rgba(124,77,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,77,255,.5); }
.btn-gold { background: linear-gradient(120deg, var(--gold), #ffb638); color: #2a1c00; box-shadow: 0 8px 30px rgba(255,210,74,.35); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { background: var(--glass); border: 1px solid var(--glass-brd); color: var(--ink); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--glass-brd-hi); transform: translateY(-2px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,7,24,.6); backdrop-filter: blur(14px); border-bottom: 1px solid var(--glass-brd); opacity: 0; transition: opacity .3s; }
.nav.scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.brand b { color: var(--gold); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(124,77,255,.5)); }
.brand-mark.sm { width: 26px; height: 26px; }
.brand-mark svg { width: 100%; height: 100%; }
.nav-links { margin-left: auto; display: flex; gap: 1.6rem; font-size: .95rem; font-weight: 400; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 3rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.pill { display: inline-block; padding: .35rem .95rem; border-radius: 9999px; background: rgba(255,210,74,.12); border: 1px solid rgba(255,210,74,.3); color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.3rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); margin-bottom: 1.2rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.9rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-badges { display: flex; gap: .7rem; flex-wrap: wrap; }
.store-badge { font-size: .8rem; color: var(--dim); padding: .5rem .9rem; border: 1px solid var(--glass-brd); border-radius: 9999px; background: var(--glass); }
.store-badge b { color: var(--muted); font-weight: 600; }

.hero-owl { position: relative; display: grid; place-items: center; min-height: 320px; }
.owl-hero { width: min(360px, 78%); filter: drop-shadow(0 20px 50px rgba(124,77,255,.4)); animation: float 6s ease-in-out infinite; }
.owl-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,.35), transparent 65%); filter: blur(10px); animation: pulse 5s ease-in-out infinite; }
.wing { transform-box: fill-box; }
.wing-l { transform-origin: 92% 8%; animation: flapL 3.4s ease-in-out infinite; }
.wing-r { transform-origin: 8% 8%; animation: flapR 3.4s ease-in-out infinite; }
@keyframes flapL { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(-7deg); } }
@keyframes flapR { 0%,100% { transform: rotate(1deg); } 50% { transform: rotate(7deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.spark { position: absolute; font-size: 1.4rem; color: var(--gold); opacity: .85; animation: twinkle 3s ease-in-out infinite; }
.spark.s1 { top: 12%; left: 16%; color: var(--teal); } .spark.s2 { top: 24%; right: 14%; animation-delay: .6s; }
.spark.s3 { bottom: 22%; left: 10%; color: var(--pink); animation-delay: 1.1s; } .spark.s4 { bottom: 14%; right: 20%; animation-delay: 1.6s; }
@keyframes twinkle { 0%,100% { transform: scale(.7); opacity: .3; } 50% { transform: scale(1.15); opacity: 1; } }

/* stat band */
.stats { max-width: var(--maxw); margin: 1rem auto; padding: 1.2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center; border-top: 1px solid var(--glass-brd); border-bottom: 1px solid var(--glass-brd); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.stat span { font-size: .82rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }

/* sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .8rem; }
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feature { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r); padding: 1.8rem; backdrop-filter: blur(12px); transition: transform .3s, border-color .3s; }
.feature:hover { transform: translateY(-6px); border-color: var(--glass-brd-hi); }
.f-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.1rem; }
.ico-violet { background: rgba(124,77,255,.16); } .ico-gold { background: rgba(255,210,74,.16); }
.ico-teal { background: rgba(70,224,208,.16); } .ico-pink { background: rgba(255,143,216,.16); }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* demo */
.demo-stage { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; max-width: 900px; margin: 0 auto; }
.phone { position: relative; width: 288px; height: 590px; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #241a44, #140d28); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 2px rgba(183,157,255,.25), inset 0 0 0 2px rgba(0,0,0,.4); flex-shrink: 0; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 24px; background: #0b0718; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border: none; border-radius: 34px; background: #0e0a1f; display: block; }
.demo-side { text-align: left; }
.demo-list { list-style: none; margin-bottom: 1.6rem; }
.demo-list li { padding: .6rem 0; border-bottom: 1px solid var(--glass-brd); color: var(--muted); font-size: 1rem; }
.demo-list b { color: var(--gold); margin-right: .5rem; }
.demo-note { color: var(--dim); font-size: .85rem; margin-top: 1rem; }

/* tiers */
.tier-track { display: flex; flex-direction: column; gap: .8rem; max-width: 620px; margin: 0 auto; }
.tier-node { display: flex; align-items: center; gap: 1rem; background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--r-sm); padding: 1rem 1.3rem; }
.tier-node b { font-size: 1.05rem; } .tier-node small { color: var(--dim); margin-left: auto; text-align: right; }
.tn-dot { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(124,77,255,.2); color: var(--violet); }
.tier-node.hl { border-color: rgba(255,210,74,.4); box-shadow: 0 0 20px rgba(255,210,74,.12); } .tier-node.hl .tn-dot { background: rgba(255,210,74,.2); color: var(--gold); }
.tier-node.bonus { border-style: dashed; border-color: rgba(70,224,208,.4); } .tier-node.bonus .tn-dot { background: rgba(70,224,208,.2); color: var(--teal); }

/* beta signup */
.beta { padding-top: 1rem; }
.beta-card { text-align: center; max-width: 680px; margin: 0 auto; padding: 3rem 2rem; background: var(--glass); border: 1px solid var(--glass-brd-hi); border-radius: 28px; backdrop-filter: blur(12px); }
.beta-badge { display: inline-block; padding: .35rem .95rem; border-radius: 9999px; background: rgba(70,224,208,.12); border: 1px solid rgba(70,224,208,.35); color: var(--teal); font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.1rem; }
.beta-card h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .8rem; }
.beta-lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin: 0 auto 1.7rem; }
.beta-note { color: var(--dim); font-size: .85rem; margin-top: 1rem; }

/* cta band */
.cta-band { text-align: center; max-width: 760px; margin: 2rem auto 4rem; padding: 3.5rem 2rem; background: linear-gradient(135deg, rgba(124,77,255,.18), rgba(70,224,208,.1)); border: 1px solid var(--glass-brd-hi); border-radius: 28px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.8rem; font-size: 1.1rem; }

/* footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2.5rem; text-align: center; border-top: 1px solid var(--glass-brd); }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.3rem; margin-bottom: .6rem; }
.foot-brand b { color: var(--gold); }
.foot-tag { color: var(--muted); margin-bottom: 1.2rem; }
.foot-links { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; font-size: .92rem; }
.foot-links a { color: var(--teal); } .foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--dim); font-size: .82rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; }
  .lede { margin-left: auto; margin-right: auto; } .hero-cta, .hero-badges { justify-content: center; }
  .hero-owl { order: -1; min-height: 240px; } .owl-hero { width: 240px; }
  .feature-grid { grid-template-columns: 1fr; }
  .demo-stage { grid-template-columns: 1fr; gap: 2rem; justify-items: center; } .demo-side { text-align: center; } .demo-list { display: inline-block; text-align: left; }
  .tier-node small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .owl-hero, .owl-glow, .spark, .wing-l, .wing-r { animation: none; } .reveal { transition: none; opacity: 1; transform: none; } }
