/* Home — marketing page. Shares tokens, header, buttons and anomaly cards with base.css. */
html { scrollbar-width: thin; scrollbar-color: #2f3833 var(--bg); scroll-behavior: smooth; }
html::-webkit-scrollbar { display: initial; }
.header { transition: background .4s, backdrop-filter .4s; }
body.scrolled .header { background: #0d100fd9; backdrop-filter: blur(14px); padding-top: 16px; padding-bottom: 16px; }
section { position: relative; }
.kicker { margin: 0; }
.section-head h2, .anomalies h2 { margin: 22px 0 70px; font-size: clamp(44px, 5.6vw, 96px); line-height: .98; letter-spacing: -.062em; font-weight: 460; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 2vw; padding: 120px var(--pad) 70px; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -10vw; top: 8vh; width: 70vw; height: 80vh; background: radial-gradient(closest-side, #16c78414, transparent); pointer-events: none; }
.hero h1 { margin: 0; font-size: clamp(40px, 4vw, 84px); line-height: .96; letter-spacing: -.066em; font-weight: 460; }
.hero h1 span { display: inline-block; white-space: nowrap; }
.hero h1 span:last-child { color: #b9c6bd; }
.lead { margin: 32px 0 0; max-width: 520px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #a7b2aa; --d: .12s; }
.ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; --d: .22s; }
.ticks { margin: 44px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 12px; color: var(--mute); --d: .32s; }
.ticks li::before { content: '✓'; color: var(--green); margin-right: 8px; font-weight: 700; }

.hero-copy, .hero-visual { min-width: 0; }
.hero-visual { position: relative; height: min(72vh, 680px); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 99px; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .5s, scale .5s; scale: .92; backdrop-filter: blur(10px); pointer-events: none; }
.chip.on { opacity: 1; scale: 1; }
.chip i { width: 7px; height: 7px; border-radius: 50%; }
.chip-gap { background: #241707e6; border: 1px solid var(--amber); color: var(--amber); box-shadow: 0 10px 40px #f0a43a30; }
.chip-gap i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.chip-gap b { font-weight: 750; }
.chip-ok { background: #0d2219e6; border: 1px solid var(--green); color: var(--green); box-shadow: 0 10px 40px #16c78430; }
.chip-ok i { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* statement */
.statement { padding: 18vh var(--pad); border-top: 1px solid var(--line); }
.statement-text { margin: 30px 0 0; max-width: 1300px; font-size: clamp(30px, 3.9vw, 66px); line-height: 1.12; letter-spacing: -.045em; font-weight: 460; }
.statement-text .w { color: #2c3530; transition: color .25s; }
.statement-text .w.lit { color: var(--ink); }
.statement-text .w.hot.lit { color: var(--amber); }

/* steps */
.steps { padding: 14vh var(--pad); border-top: 1px solid var(--line); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 28px; background: #111513; }
.step:nth-child(2) { --d: .08s; } .step:nth-child(3) { --d: .16s; } .step:nth-child(4) { --d: .24s; }
.step-n { display: block; margin-top: 26px; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.step h3 { margin: 8px 0 10px; font-size: 24px; letter-spacing: -.04em; font-weight: 560; }
.step p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--mute); }

.illu { position: relative; height: 170px; border-radius: 14px; background: #0b0e0d; border: 1px solid #1d2420; overflow: hidden; }
/* 01 scan: labels pass under a viewfinder */
.belt { position: absolute; top: 50%; left: 0; display: flex; gap: 14px; transform: translateY(-50%); animation: belt 6s linear infinite; }
.belt span { width: 78px; height: 44px; flex: none; border-radius: 5px; background: #e9e7de; position: relative; }
.belt span::before { content: ''; position: absolute; left: 8px; top: 8px; width: 34px; height: 5px; border-radius: 2px; background: #2a2f2b; }
.belt span::after { content: ''; position: absolute; right: 7px; bottom: 8px; width: 24px; height: 12px; border-radius: 2px; background: #2a2f2b; }
@keyframes belt { to { transform: translate(-368px, -50%); } }
.frame { position: absolute; left: 50%; top: 50%; width: 98px; height: 62px; transform: translate(-50%, -50%); }
.frame i { position: absolute; width: 14px; height: 14px; border: 2px solid var(--green); }
.frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.frame::after { content: ''; position: absolute; left: 4px; right: 4px; height: 2px; top: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
/* 02 compare */
.illu-compare { display: grid; align-content: center; gap: 8px; padding: 0 22px; }
.illu-compare .row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: #e9e7de; color: #151815; }
.illu-compare .row small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6a7067; font-weight: 700; }
.illu-compare .row b { font-size: 22px; letter-spacing: -.03em; }
.illu-compare .ref { background: #0f1f18; border: 1px solid #2b5a45; color: var(--green); }
.illu-compare .ref small { color: #8fb3a1; }
.illu-compare .delta { justify-self: center; font-size: 11px; font-weight: 750; color: var(--amber); padding: 3px 10px; border: 1px solid var(--amber); border-radius: 99px; animation: pulse 1.6s ease-in-out infinite; }
/* 03 fix: price digit rolls */
.illu-fix { display: grid; place-items: center; }
.illu-fix .price { padding: 16px 24px; border-radius: 10px; background: #e9e7de; color: #151815; font-size: 40px; font-weight: 760; letter-spacing: -.03em; display: flex; align-items: center; box-shadow: 0 0 0 2px var(--amber); animation: fixring 4s infinite; }
.digit { display: inline-flex; flex-direction: column; height: 1.15em; line-height: 1.15em; overflow: hidden; }
.digit span { animation: roll 4s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes roll { 0%, 35% { transform: translateY(0); } 55%, 92% { transform: translateY(-100%); } 100% { transform: translateY(0); } }
@keyframes fixring { 0%, 45% { box-shadow: 0 0 0 2px var(--amber); } 55%, 92% { box-shadow: 0 0 0 2px var(--green), 0 0 30px #16c78455; } 100% { box-shadow: 0 0 0 2px var(--amber); } }
.fix-bar { position: absolute; left: 18%; right: 18%; bottom: 22px; height: 3px; border-radius: 3px; background: #1d2420; overflow: hidden; }
.fix-bar::after { content: ''; position: absolute; inset: 0; background: var(--green); transform-origin: left; animation: bar 4s infinite; }
@keyframes bar { 0%, 30% { transform: scaleX(0); } 55%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
/* 04 proof: history entries */
.illu-proof { display: grid; align-content: center; gap: 8px; padding: 0 18px; }
.log { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #121a16; border: 1px solid #1f2d26; font-size: 12px; animation: log 6s infinite; opacity: 0; }
.log:nth-child(2) { animation-delay: .4s; } .log:nth-child(3) { animation-delay: .8s; }
.log i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.log small { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; }
@keyframes log { 0% { opacity: 0; transform: translateX(-12px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* film teaser */
.film-teaser { margin-top: 18px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 4vw; padding: 18px; border-radius: 26px; border: 1px solid var(--line); background: #111513; transition: border-color .4s; }
.film-teaser:hover { border-color: #3b4a42; }
.teaser-img { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.film-teaser:hover .teaser-img img { transform: scale(1.04); }
.teaser-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #06130d; font-size: 20px; padding-left: 4px; box-shadow: 0 0 0 10px #16c78433; transition: box-shadow .4s; }
.film-teaser:hover .teaser-play { box-shadow: 0 0 0 18px #16c78422; }
.teaser-copy h3 { margin: 18px 0 26px; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; letter-spacing: -.05em; font-weight: 480; }
.teaser-link { font-size: 14px; font-weight: 620; border-bottom: 1px solid #ffffff40; padding-bottom: 8px; }
.teaser-link b { color: var(--green); margin-left: 6px; transition: margin .3s; }
.film-teaser:hover .teaser-link b { margin-left: 12px; }

/* anomalies (cards from base.css) */
.anomalies { padding: 14vh var(--pad); }
.anomalies h2 { margin-bottom: 70px; }

/* benefits */
.benefits { padding: 14vh var(--pad); border-top: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.benefit-grid article { padding: 36px 3vw 10px 0; }
.benefit-grid article + article { padding-left: 3vw; border-left: 1px solid var(--line); }
.benefit-grid article:nth-child(2) { --d: .1s; } .benefit-grid article:nth-child(3) { --d: .2s; }
.benefit-grid span { font-size: 11px; color: var(--green); font-variant-numeric: tabular-nums; font-weight: 700; }
.benefit-grid h3 { margin: 18px 0 12px; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.045em; font-weight: 520; }
.benefit-grid p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--mute); max-width: 380px; }

/* demo */
.demo { padding: 8vh var(--pad) 14vh; }
.demo-inner { padding: 9vh 6vw; border-radius: 32px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, #16c78424, transparent 60%), #111513; border: 1px solid var(--line); }
.demo h2 { margin: 0; font-size: clamp(44px, 5.6vw, 96px); line-height: .98; letter-spacing: -.062em; font-weight: 460; }
.demo-inner > p { margin: 22px 0 0; color: var(--mute); font-size: 15px; }
.demo-form { margin: 36px auto 0; display: flex; gap: 10px; max-width: 520px; padding: 6px; border-radius: 99px; border: 1px solid #ffffff24; background: #0b0e0d; }
.demo-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; padding: 0 18px; outline: none; }
.demo-form input::placeholder { color: #69746d; }
.demo-thanks { margin-top: 30px !important; color: var(--green) !important; }
.demo-alt { display: inline-block; margin-top: 30px; font-size: 13px; color: var(--mute); border-bottom: 1px solid #ffffff26; padding-bottom: 4px; }
.demo-alt:hover { color: var(--ink); }


@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-visual { height: 56vh; order: 2; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .film-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .header-end .btn { display: none; }
  .hero h1 { font-size: 10.5vw; }
  .hero h1 span { white-space: normal; }
  .step-grid, .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .demo-form { flex-direction: column; gap: 8px; padding: 8px; border-radius: 24px; }
  /* flex: none — in a column, flex: 1 would collapse the input's height */
  .demo-form input { flex: none; height: 54px; padding: 0 16px; font-size: 16px; text-align: center; }
  .demo-form .btn { justify-content: center; height: 54px; font-size: 15px; }
  .demo-inner { padding: 8vh 5vw; }
  .demo-alt { max-width: 280px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
