/* Habitia landing – tokens mirror the app (indigo/violet, slate, night) */
:root {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #fff;
  --border: rgba(15, 23, 42, .08);
  --text: #0f172a;
  --text-2: #475569;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --violet: #8b5cf6;
  --green: #22c55e;
  --shadow: 0 30px 80px -30px rgba(79, 70, 229, .35);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-soft: #111827;
  --surface: rgba(26, 34, 51, .62);
  --surface-solid: #1a2233;
  --border: rgba(255, 255, 255, .08);
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --accent: #818cf8;
  --accent-strong: #a5b4fc;
  --shadow: 0 30px 80px -30px rgba(99, 102, 241, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f19; --bg-soft: #111827; --surface: rgba(26, 34, 51, .62); --surface-solid: #1a2233;
    --border: rgba(255, 255, 255, .08); --text: #f1f5f9; --text-2: #94a3b8; --accent: #818cf8;
    --accent-strong: #a5b4fc; --shadow: 0 30px 80px -30px rgba(99, 102, 241, .5); color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--violet) 60%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
em .w > span { background: linear-gradient(100deg, var(--accent), var(--violet) 60%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36rem; }

/* progress + aurora */
.progress-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--violet), #ec4899); }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #6366f1; top: -20vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #8b5cf6; top: 30vh; right: -25vmax; animation-delay: -8s; opacity: .25; }
.aurora i:nth-child(3) { background: #0ea5e9; bottom: -30vmax; left: 20vw; animation-delay: -15s; opacity: .18; }
:root[data-theme="dark"] .aurora i { opacity: .2; }

/* nav */
.nav { position: fixed; top: 12px; left: 50%; translate: -50% 0; width: min(1120px, calc(100% - 24px)); z-index: 90; display: flex; align-items: center; gap: 1rem; padding: .5rem .6rem .5rem 1rem; border-radius: 999px; background: var(--surface); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--border); transition: box-shadow .4s, translate .5s var(--ease); animation: dropIn .9s var(--ease) both; }
.nav.scrolled { box-shadow: 0 10px 40px -12px rgba(15, 23, 42, .25); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav nav { margin-inline: auto; display: flex; gap: .25rem; }
.nav nav a { padding: .5rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--text-2); transition: background .25s, color .25s; }
.nav nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.theme-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--ease), background .25s; }
.theme-btn:hover { background: var(--bg-soft); transform: rotate(18deg); }
.theme-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1/1; transition: transform .5s var(--ease), opacity .3s; }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .i-moon { opacity: 1; transform: none; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; font-weight: 600; background: var(--accent-strong); color: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
:root[data-theme="dark"] .btn { color: #0b0f19; background: var(--accent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--accent); }
.btn-sm { font-size: .9rem; }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; width: min(1180px, 100% - 40px); margin-inline: auto; padding: 120px 0 80px; }
.hero h1 { margin-bottom: 1.4rem; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.ghost { font-weight: 600; color: var(--text-2); padding: .8rem 1rem; min-height: 48px; display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; transition: color .25s; }
.ghost span { display: inline-block; animation: bob 2s ease-in-out infinite; }
.ghost:hover { color: var(--text); }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; color: var(--text-2); font-size: .95rem; font-weight: 500; }
.trust li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: .45rem; }

.play { display: inline-flex; align-items: center; gap: .8rem; min-height: 56px; padding: .55rem 1.4rem .55rem 1.1rem; border-radius: 16px; background: #0b0f19; color: #fff; border: 1px solid rgba(255, 255, 255, .22); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 16px 40px -14px rgba(15, 23, 42, .6); }
:root[data-theme="dark"] .play { background: #000; }
.play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); translate: -120% 0; animation: shine 4.5s ease-in-out infinite 1.5s; }
.play:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 50px -12px rgba(99, 102, 241, .7); }
.play svg { width: 26px; height: 28px; flex: none; }
.play span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.play b { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.play.big { min-height: 68px; padding-inline: 1.8rem 2rem; }
.play.big b { font-size: 1.55rem; }

.hero-stage { position: relative; max-width: 100%; display: grid; place-items: center; min-height: 640px; }
.ring-deco { position: absolute; width: min(560px, 110%); aspect-ratio: 1; animation: spin 40s linear infinite; }
.ring-deco svg { width: 100%; transform: rotate(-90deg); }
.r-bg, .r-fg { fill: none; stroke-width: 3; }
.r-bg { stroke: var(--border); }
.r-fg { stroke: url(#none); stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; animation: ringfill 2.4s var(--ease) .6s forwards; opacity: .8; }

/* phone frame */
.phone { --pw: min(300px, 70vw); width: var(--pw); aspect-ratio: 9 / 19.7; border-radius: calc(var(--pw) * .15); padding: calc(var(--pw) * .07) calc(var(--pw) * .028) calc(var(--pw) * .028); background: linear-gradient(145deg, #1e293b, #020617); box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .08); position: relative; transform-style: preserve-3d; margin: 0; }
.phone::before { content: ""; position: absolute; top: calc(var(--pw) * .022); left: 50%; translate: -50% 0; width: calc(var(--pw) * .028); aspect-ratio: 1; border-radius: 50%; background: #020617; z-index: 3; box-shadow: inset 0 0 0 2px #1e293b; }
.phone-screen { width: 100%; height: 100%; border-radius: calc(var(--pw) * .11) calc(var(--pw) * .11) calc(var(--pw) * .125) calc(var(--pw) * .125); overflow: hidden; background: #fff; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero .phone { --pw: min(320px, 72vw); animation: floaty 7s ease-in-out infinite, phoneIn 1.4s var(--ease) .3s both; }
.tilt { transition: transform .25s ease-out; will-change: transform; }

.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem .7rem .8rem; border-radius: 18px; background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .4); font-size: .85rem; line-height: 1.25; animation: floaty 6s ease-in-out infinite, popIn 1s var(--ease) both; }
.float-card b { display: block; font-size: .92rem; }
.float-card small { color: var(--text-2); }
.c1 { top: 14%; left: -4%; animation-delay: -1s, 1.2s; }
.c2 { bottom: 24%; right: -6%; animation-delay: -3s, 1.5s; }
.c3 { bottom: 5%; left: 2%; animation-delay: -5s, 1.8s; }
.chk { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; animation: pop 2.8s var(--ease) infinite 2s; }
.bell { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 158, 11, .18); animation: ring 3.4s ease-in-out infinite 2.5s; transform-origin: 50% 20%; }
.mini-ring { position: relative; width: 40px; height: 40px; }
.mini-ring svg { width: 100%; transform: rotate(-90deg); }
.mini-ring circle { fill: none; stroke-width: 4; }
.m-bg { stroke: var(--border); }
.m-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 94; stroke-dashoffset: 94; animation: mini 2.2s var(--ease) 1.6s forwards; }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .62rem; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border: 2px solid var(--text-2); border-radius: 20px; opacity: .5; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--text-2); animation: wheel 1.8s infinite; }

/* marquee */
.marquee { overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--border); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.track span { padding: 0 1.6rem; font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-2); white-space: nowrap; display: flex; align-items: center; gap: 3.2rem; }
.track span::after { content: "✦"; color: var(--accent); font-size: 1rem; }
.marquee:hover .track { animation-play-state: paused; }

/* sticky showcase */
.showcase { width: min(1180px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 6rem 0; }
.sc-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; order: 2; }
.sc-phone { position: relative; }
.sc-phone .phone { --pw: min(320px, 78vw, 46svh); }
.glow { position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle, rgba(99, 102, 241, .45), transparent 65%); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
.sc-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.sc-img.on { opacity: 1; transform: none; }
.sc-steps { order: 1; }
.step { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .28; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.on { opacity: 1; transform: none; }
.step .num { font-weight: 800; font-size: .95rem; color: var(--accent); letter-spacing: .1em; margin-bottom: .8rem; }
.step h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.step p { color: var(--text-2); font-size: 1.12rem; }

/* sections */
.sec-head { text-align: center; width: min(760px, 100% - 40px); margin: 0 auto 3.5rem; }
.sec-head .lead { margin: 1.2rem auto 0; }
.features, .privacy, .gallery, .video { padding: 6rem 0; }

/* bento */
.bento { width: min(1120px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.card { grid-column: span 2; padding: 1.8rem; border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; gap: .6rem; transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.card.wide { grid-column: span 4; flex-direction: row; align-items: stretch; gap: 1.5rem; padding-bottom: 0; }
.card.wide .card-text { flex: 1; display: flex; flex-direction: column; gap: .7rem; padding-bottom: 1.8rem; }
.card-shot { width: 38%; flex: none; align-self: flex-end; margin-bottom: -30px; transform: rotate(4deg) translateY(10px); transition: transform .6s var(--ease); }
.card:hover .card-shot { transform: rotate(0) translateY(-8px); }
.card-shot img { border-radius: 22px 22px 0 0; border: 5px solid #0f172a; border-bottom: 0; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .4); }
.card p { color: var(--text-2); }
.glass { background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
.chips li { padding: .3rem .8rem; border-radius: 999px; background: var(--bg-soft); font-size: .82rem; font-weight: 600; color: var(--accent-strong); }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-bottom: .6rem; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), var(--bg-soft)); transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(var(--n) * 12ms); }
.card.in .heat i { transform: scale(1); }
.streak { display: flex; align-items: center; gap: .6rem; font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .4rem; }
.streak span { display: inline-block; animation: flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.tpl { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.tpl i { font-style: normal; font-weight: 600; font-size: .9rem; padding: .5rem .9rem; border-radius: 12px; background: var(--bg-soft); color: var(--accent-strong); transition: transform .4s var(--ease); }
.tpl i:nth-child(odd) { transform: rotate(-3deg); }
.tpl i:nth-child(even) { transform: rotate(3deg); }
.card:hover .tpl i { transform: none; }

/* privacy */
.stats { width: min(1000px, 100% - 40px); margin: 0 auto 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-weight: 500; font-size: .95rem; }
.privacy-row { width: min(1000px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.privacy-row h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.privacy-row p { color: var(--text-2); }

/* gallery */
.gal-track { display: flex; gap: 1.6rem; overflow-x: auto; padding: 1rem max(20px, calc(50vw - 560px)) 3rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.gal-track .phone { --pw: 240px; flex: none; scroll-snap-align: center; transition: transform .5s var(--ease); }
.gal-track .phone:hover { transform: translateY(-14px) rotate(-1.5deg); }

/* video */
.video-wrap { width: min(980px, 100% - 40px); margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #000; aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

/* final */
.final { padding: 4rem 0 7rem; }
.final-card { width: min(1000px, 100% - 40px); margin: 0 auto; text-align: center; padding: clamp(3rem, 8vw, 6rem) 1.5rem; border-radius: 40px; color: #fff; background: radial-gradient(circle at 20% 0%, #818cf8, transparent 50%), radial-gradient(circle at 90% 100%, #ec4899, transparent 45%), linear-gradient(135deg, #4338ca, #6d28d9); position: relative; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(79, 70, 229, .7); }
.final-card::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .14), transparent 30%); animation: spin 14s linear infinite; }
.final-card > * { position: relative; }
.final-card h2 { margin: 1.2rem 0 .6rem; }
.final-card p { opacity: .85; margin-bottom: 2rem; font-size: 1.15rem; }
.final .play { border-color: rgba(255, 255, 255, .5); }
.app-icon { margin: 0 auto; border-radius: 24px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5); animation: floaty 5s ease-in-out infinite; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 2.4rem 0; }
.foot-in { width: min(1120px, 100% - 40px); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; color: var(--text-2); font-size: .88rem; }
.foot nav { display: flex; gap: 1.2rem; margin-right: auto; }
.foot nav a { padding: .8rem .2rem; font-weight: 500; }
.foot nav a:hover { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* keyframes */
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@keyframes dropIn { from { opacity: 0; translate: -50% -30px; } }
@keyframes wordUp { to { transform: none; } }
@keyframes floaty { 50% { translate: 0 -14px; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) rotate(6deg) scale(.9); } }
@keyframes popIn { from { opacity: 0; scale: .6; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes ringfill { to { stroke-dashoffset: 110; } }
@keyframes mini { to { stroke-dashoffset: 17; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes pop { 0%, 85%, 100% { transform: scale(1); } 92% { transform: scale(1.25); } }
@keyframes ring { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: 16deg; } 78% { rotate: -14deg; } 82% { rotate: 10deg; } 86% { rotate: -6deg; } }
@keyframes shine { 45%, 100% { translate: 120% 0; } }
@keyframes bob { 50% { transform: translateY(4px); } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .8; } }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }

/* responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta, .trust { justify-content: center; }
  .hero-stage { min-height: 560px; }
  .c1 { left: 0; } .c2 { right: 0; } .c3 { left: 4%; }
  .scroll-hint { display: none; }
  .showcase { grid-template-columns: 1fr; padding: 3rem 0; gap: 0; }
  .sc-sticky { position: sticky; top: 64px; height: 52svh; order: 1; z-index: 2; background: linear-gradient(var(--bg) 75%, transparent); }
  .sc-phone .phone { --pw: min(210px, 40svh * .47); }
  .sc-steps { order: 2; }
  .step { min-height: 70svh; max-width: none; text-align: center; margin-inline: auto; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide { grid-column: auto; }
  .card.wide { flex-direction: column; }
  .card-shot { width: 62%; align-self: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .privacy-row { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .foot-in { justify-content: center; text-align: center; }
  .foot nav { margin-right: 0; }
}
@media (max-width: 480px) { .nav .play-link { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .r-fg { stroke-dashoffset: 110; } .m-fg { stroke-dashoffset: 17; }
  .heat i { transform: none; }
}

.toast{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:300;padding:.8rem 1.3rem;border-radius:999px;background:#0f172a;color:#fff;font:600 .95rem/1.3 system-ui,sans-serif;box-shadow:0 14px 40px -12px rgba(15,23,42,.6);transition:opacity .3s,transform .3s}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}

/* Mobil: Kopfzeile fest am Bildschirmrand, nichts darf die Seite verbreitern */
.hero-stage { overflow: hidden; overflow: clip; }
.ring-deco { width: min(560px, 100%); }
@media (max-width: 900px) {
  .nav { left: 12px; right: 12px; width: auto; translate: none; }
}
