/* VARMATCH TV landing. Desktop is laid out on the 1440 Figma grid, mobile on 375,
   and main.js zooms each canvas to the viewport so every px value stays the Figma one. */
:root {
  --bg: #070707;
  --green: #74fa77;
  --white: #ffffff;
  --neutral: #878787;
  --line: rgba(255, 255, 255, 0.08);
  --display: "Tektur", "Arial Black", Impact, sans-serif;
  --sans: "Geist", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --inter: "Inter", "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z: 1;
  color-scheme: dark;
}
@property --neon-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --neon-width { syntax: "<length>"; inherits: false; initial-value: 10px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--white); }
/* No double-tap zoom (fast taps on the screen buttons zoomed the page on phones). */
html { touch-action: pan-x pan-y; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: none; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.lp { position: relative; overflow: clip; }
.d, .m { position: relative; zoom: var(--z); margin: 0 auto; }
.d { width: 1440px; }
.m { width: 375px; display: none; }
@media (max-width: 899px) { .d { display: none; } .m { display: block; } }

/* ---------- shared pieces ---------- */
.h-display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -0.04em; font-variation-settings: "wdth" 100; }
.g { background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 23.67%, rgba(255, 255, 255, 0.31) 147.04%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.green { color: var(--green); }
.white { color: var(--white); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 72px; padding: 12px 32px;
  border: 1px solid var(--green); border-radius: 100px; background: var(--green); isolation: isolate;
  color: var(--bg); font: 700 20px/20px var(--sans); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
  font-feature-settings: "dlig" 1, "lnum" 1, "pnum" 1;
  box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.32), 0 10px 36px -12px rgba(116, 250, 119, 0.5);
  --mx: 0px; --my: 0px; --pulse: 2.2s; translate: var(--mx) var(--my);
  transition: transform 0.5s var(--ease), translate 0.35s var(--ease);
  animation: btn-waves var(--pulse) ease-in-out infinite;
}
.btn span { position: relative; z-index: 2; display: inline-block; transition: transform 0.4s var(--ease), letter-spacing 0.4s var(--ease); }
/* Shine layer (added by main.js) holds the hover sweep and the running outline spark, clipped to the pill. */
.btn__shine { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn__shine::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(0) skewX(-18deg); opacity: 0;
}
.btn__shine::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity 0.4s var(--ease);
  background: conic-gradient(from var(--btn-a), transparent 0 70%, rgba(255, 255, 255, 0.95) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn:hover { --pulse: 1.4s; transform: scale(1.04); animation-name: btn-waves-hot; }
.btn:hover span { transform: translate(calc(var(--mx) * 0.4), calc(var(--my) * 0.4)); letter-spacing: 0.01em; }
.btn:hover .btn__shine::after { animation: sweep 0.9s var(--ease) forwards; }
.btn:hover .btn__shine::before { opacity: 1; animation: btn-spin 1.8s linear infinite; }
.btn:active { transform: scale(0.97); }
.btn__ripple { position: absolute; z-index: 1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); pointer-events: none; animation: btn-ripple 0.7s var(--ease) forwards; }
@property --btn-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes btn-spin { to { --btn-a: 360deg; } }
@keyframes btn-waves {
  0% { scale: 1; box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.32), 0 0 12px 0 rgba(116, 250, 119, 0.55), 0 0 4px 0 rgba(116, 250, 119, 0.35); }
  30% { scale: 1.05; }
  50% { box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.32), 0 0 38px 18px rgba(116, 250, 119, 0), 0 0 22px 8px rgba(116, 250, 119, 0.28); }
  60% { scale: 0.99; }
  80% { scale: 1; }
  90%, 100% { scale: 1; box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.32), 0 0 48px 22px rgba(116, 250, 119, 0), 0 0 44px 28px rgba(116, 250, 119, 0); }
}
@keyframes btn-waves-hot {
  0% { scale: 1; box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 16px 2px rgba(116, 250, 119, 0.75), 0 0 6px 0 rgba(116, 250, 119, 0.5); }
  30% { scale: 1.04; }
  50% { box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 50px 24px rgba(116, 250, 119, 0), 0 0 30px 12px rgba(116, 250, 119, 0.35); }
  60% { scale: 0.995; }
  90%, 100% { scale: 1; box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 60px 30px rgba(116, 250, 119, 0), 0 0 56px 36px rgba(116, 250, 119, 0); }
}
@keyframes btn-ripple { to { transform: scale(40); opacity: 0; } }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.btn--m { height: 56px; font-size: 18px; letter-spacing: -0.02em; }
@keyframes sweep { from { opacity: 1; transform: translateX(0) skewX(-18deg); } to { opacity: 0; transform: translateX(420%) skewX(-18deg); } }

/* Backgrounds run edge to edge; the 1440 content canvas stays fixed in the middle. */
/* Section backgrounds: flat Figma renders, centred on the 1440 canvas and allowed to run
   past it to the screen edges (the wide ones carry the glows that live outside 1440). */
.secbg { position: absolute; top: 0; left: 50%; width: var(--bleed, 100%); height: 100%; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.secbg img { position: absolute; top: 0; left: calc(50% - 720px + var(--off, 0px)); max-width: none; }
/* Hero side lights: soft green glows on both screen edges that breathe together (opacity/scale only). */
.side-glow { position: absolute; top: 0; left: 50%; width: var(--bleed, 100%); height: 100%; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.side-glow i { position: absolute; top: 403px; width: 560px; height: 680px; border-radius: 50%; mix-blend-mode: screen; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(200, 255, 190, 0.55), rgba(116, 250, 119, 0.35) 40%, rgba(116, 250, 119, 0) 100%);
  animation: side-breathe 4.2s ease-in-out infinite; }
.side-glow__l { left: 120px; translate: -50% -50%; }
.side-glow__r { right: 120px; translate: 50% -50%; }
@keyframes side-breathe { 0%, 100% { opacity: 0.15; transform: scale(0.85); } 50% { opacity: 0.9; transform: scale(1.12); } }
/* Seams: the hero background runs 120px under the next block, which fades in over it. */
.secbg--over { height: calc(100% + 120px); }
.secbg--fade { -webkit-mask: linear-gradient(180deg, transparent 0, #000 120px); mask: linear-gradient(180deg, transparent 0, #000 120px); }
.d-why { z-index: 1; }
.secbg--m img { left: calc(50% - 487.5px); }
.bleed { left: 50% !important; width: var(--bleed, 100%) !important; transform: translateX(-50%); }
.stage { position: absolute; top: 0; left: 50%; width: 1440px; height: 100%; margin-left: -720px; }
.tex { position: absolute; pointer-events: none; background: url(assets/img/texture.webp) center / cover no-repeat; }
.fade-top { position: absolute; left: 0; top: 0; width: 100%; height: 330px; background: linear-gradient(180deg, var(--bg), rgba(7, 7, 7, 0)); pointer-events: none; }
.splash, .glow-white { position: absolute; }
.splash img, .glow-white img { position: absolute; width: 100%; height: 100%; }

/* Gradient hairline borders (Figma strokes that fade from top to bottom). */
.panel, .d-why__rect, .m-why__rect, .fcard, .mcard, .navbtn { position: relative; }
.panel::before, .d-why__rect::before, .m-why__rect::before, .fcard::before, .mcard::before, .navbtn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--stroke, rgba(240, 240, 240, 0.04)) 0%, rgba(240, 240, 240, 0) 66%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- ring (hero) ---------- */
.ring { position: absolute; z-index: 1; }
/* Built from layers like the Figma frame: dashed outer ring, a glass disc that blurs the
   hero glows behind it (and holds the number), the progress arc on top. Box-relative, so
   the mobile ring is the same markup at 0.6114 scale. */
.ring__dash { position: absolute; left: 0.702%; top: 0.425%; width: 97.98%; height: 99.23%; overflow: visible; }
.ring__dash ellipse { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-dasharray: 12 12; }
.ring__clip { position: absolute; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, rgba(116, 250, 119, 0.32) 0%, rgba(116, 250, 119, 0) 100%), rgba(116, 250, 119, 0.04);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.12), inset -1px -1px 0 rgba(255, 255, 255, 0.04), inset 0 0 calc(40px * var(--s, 1)) rgba(255, 255, 255, 0.03); }
.ring__clip::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: calc(2.37px * var(--s, 1)); pointer-events: none;
  background: linear-gradient(180deg, rgba(116, 250, 119, 0.16), rgba(116, 250, 119, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ring__num {
  position: absolute; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 24%, rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease);
}
.ring__num.is-out { opacity: 0; transform: translateY(-14%); filter: blur(10px); }
.ring__num.is-in { opacity: 0; transform: translateY(14%); filter: blur(10px); transition: none; }
.ring__arc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: transparent; }
.ring__progress { fill: none; stroke: var(--green); stroke-linecap: butt; filter: drop-shadow(0 0 6px rgba(116, 250, 119, 0.55)); }
/* Figma 10210:11732: 20px green dot + 3px centred stroke (23px overall), soft inner shadow, vertical pill. */
.ring__dot { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--green); box-shadow: inset -2.25px 0 6.75px rgba(0, 0, 0, 0.24); transform: translate(-50%, -50%); }
.ring__dot i { width: 29.6%; height: 44.8%; margin-left: -5%; border-radius: 100px; background: var(--bg); }

/* ---------- phone (hero) ---------- */
.phone { position: absolute; z-index: 2; }
/* Mockup body is the darkened render from Figma (exposure -0.61, no saturation). */
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Screen opening of the iPhone mockup: 315x681 at 15.24/19.73 inside the 346x718 frame. */
.phone__screen { position: absolute; left: 4.402%; top: 2.747%; width: 90.993%; height: 94.787%; border-radius: 12.7% / 5.874%; overflow: hidden; background: #000; isolation: isolate; }
/* Dynamic Island: 126x37pt on a 393pt-wide iPhone 15 Pro screen, 11pt from the top, scaled to the 315px screen. */
.phone__island { position: absolute; z-index: 2; left: 50%; top: 1.29%; width: 32.06%; height: 4.34%; transform: translateX(-50%); border-radius: 100px; background: #000; }
.phone__img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(5%) scale(1.03); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.phone__img.is-active { opacity: 1; transform: none; }
.phone__img.is-prev { transform: translateY(-4%) scale(0.97); }
.no-js .phone__img:first-child, html:not(.js) .phone__img:first-child { opacity: 1; filter: none; transform: none; }

/* ================= DESKTOP ================= */
/* Hero: the 1324px top of Figma's first Land frame; the buttons under the phone switch screens. */
.d-hero { position: relative; height: 1324px; }
.d-hero__stick { position: relative; height: 1324px; }
.d-hero__bg { position: absolute; top: 0; height: 1527px; overflow: clip; pointer-events: none; }
.d-hero__tex { left: 0; top: 0; width: 100%; height: 1570px; }
.d-hero__tex2 { left: 0; top: 789px; width: 100%; height: 534px; }
.d-hero__field { position: absolute; left: 0; top: 0; width: 1411px; height: 1527px; }
.d-hero__fade { position: absolute; left: 0; right: 0; top: 1186px; height: 341px; background: linear-gradient(0deg, var(--bg), rgba(7, 7, 7, 0)); }
.d-hero__copy { position: absolute; left: 328px; top: 48px; width: 784px; display: flex; flex-direction: column; align-items: center; gap: 65px; }
.logo { width: 190.82px; height: 32px; }
.d-hero__body { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }
.d-hero__text { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; text-align: center; }
.d-hero__title { font-size: 72px; width: 100%; }
.d-hero__sub { font: 700 24px/32px var(--sans); letter-spacing: -0.04em; }
.d-ring { left: 369px; top: 533px; width: 712.4px; height: 705.4px; }
.d-ring .ring__clip { left: 38.8px; top: 37.2px; width: 630px; height: 630px; }
.d-ring .ring__num { left: 460.6px; top: 124.3px; width: 213px; font-size: 495.36px; }
.d-ring .ring__arc { width: 705.4px; height: 705.4px; }
.d-ring .ring__progress { stroke-width: 6; }
.d-ring .ring__dot { width: 23px; height: 23px; }
.d-phone { left: 547px; top: 517px; width: 346px; height: 718px; }

/* Почему VARMATCH TV (Land 1, y 1324) */
.d-why { position: relative; height: 800px; }
.d-why__panel { position: absolute; left: 23.5px; top: 0; width: 1393px; height: 800px; }
.d-why__title { position: absolute; left: 50%; top: 88px; transform: translateX(-50%); white-space: nowrap; font-size: 56px; text-align: center; }
.d-why__grid { position: absolute; left: 64.5px; top: 198px; width: 1264px; height: 573px; display: flex; gap: 24px; }
.why-col { width: 280px; flex: none; display: flex; flex-direction: column; gap: 32px; }
.why-col--low { padding-top: 48px; }
.why-col__shot { position: relative; width: 280px; height: 300px; flex: none; }
/* Phone mockup built like the Figma frame: 246x510 body, 233x503 screen, side buttons,
   the 280x300 window fades out only over its last ~45px (Figma mask stops at 81.8% / 95.9%). */
.why-col__shot { overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 0, #000 257px, transparent 301px); mask: linear-gradient(180deg, #000 0, #000 257px, transparent 301px); }
.mphone { position: absolute; left: 17px; top: 5px; width: 246px; height: 510px; border-radius: 35.78px; background: var(--bg); box-shadow: inset 0 0 0 0.93px rgba(255, 255, 255, 0.04); transition: transform 0.8s var(--ease); }
.mphone__screen { position: absolute; left: 6px; top: 7px; width: 233px; height: 503px; border-radius: 29.52px; overflow: hidden; background: rgba(251, 251, 251, 0.04); box-shadow: inset 0 0 0 0.89px rgba(251, 251, 251, 0.04); }
.mphone__screen img { display: block; width: 100%; height: auto; }
.mphone__btn { position: absolute; width: 4px; border-radius: 1px; background: var(--bg); box-shadow: inset 0 0 0 0.9px rgba(255, 255, 255, 0.04); }
.mphone__btn--a { left: -3px; top: 145px; height: 35px; }
.mphone__btn--b { left: 245px; top: 154px; height: 35px; }
.mphone__btn--c { left: -3px; top: 100px; height: 19px; }
.why-col:hover .mphone { transform: translateY(-6px); }
.why-col__list { display: flex; flex-direction: column; gap: 17px; text-align: center; }
.why-col__t { font: 600 24px/32px var(--sans); letter-spacing: -0.04em; color: var(--white); }
.why-col__sub { display: flex; flex-direction: column; gap: 8px; }
.why-col__s { font: 600 18px/28px var(--sans); letter-spacing: -0.02em; }
.why-col__p { font: 500 16px/24px var(--inter); letter-spacing: -0.02em; color: var(--neutral); }
.why-line { flex: none; width: 1px; align-self: stretch; background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 8px); }

/* Всё о матче (Land 2) */
.d-feat { position: relative; height: 800px; overflow: visible clip; }
.d-feat__gw { left: -327.26px; top: 99.74px; width: 654.52px; height: 654.52px; }
.d-feat__gw img { inset: -31.56%; width: 163.12%; height: 163.12%; }
.d-feat__cross { position: absolute; inset: 0; pointer-events: none; }
.d-feat__cross .splash--big { left: 674.36px; top: 144.38px; width: 551.9px; height: 469.13px; transform: scaleY(-1); }
.d-feat__cross .splash--small { left: 804.12px; top: 144.37px; width: 292.39px; height: 248.54px; transform: scaleY(-1); mix-blend-mode: overlay; }
.splash--big img, .splash--small img { inset: -50.08% -42.57%; width: 185.14%; height: 200.16%; }
.d-feat__cross { animation: breathe 6s ease-in-out infinite; }
.d-feat__tex { left: 0; top: 0; width: 1440px; height: 800px; }
.d-feat__copy { position: absolute; left: 88px; top: 50%; transform: translateY(-50%); width: 438px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.d-feat__copy[data-reveal] { --ry: -50%; }
.d-feat__head { display: flex; flex-direction: column; gap: 24px; }
.d-feat__title { font-size: 54px; }
.d-feat__lead { font: 500 20px/26px var(--sans); letter-spacing: -0.025em; color: var(--neutral); }
.d-feat__grid { position: absolute; left: 600px; top: 65px; width: 752px; display: grid; grid-template-columns: 364px 364px; gap: 16px; }
.fcard {
  display: flex; flex-direction: column; gap: 32px; padding: 32px; overflow: hidden; --stroke: rgba(240, 240, 240, 0.16);
  background: linear-gradient(180deg, rgba(116, 250, 119, 0.08) 0%, rgba(116, 250, 119, 0) 66.33%), linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)), var(--bg);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry2, 0deg)); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
/* A soft light follows the cursor inside the card. */
.fcard--1 { border-radius: 56px 56px 16px 56px; }
.fcard--2 { border-radius: 56px 56px 56px 16px; }
.fcard--3 { border-radius: 56px 16px 56px 56px; }
.fcard--4 { border-radius: 16px 56px 56px 56px; }
.badge { display: inline-flex; padding: 10px; border-radius: 100px; background: var(--bg); border: 1px dashed rgba(255, 255, 255, 0.16); align-self: flex-start; }
.badge__in { display: grid; place-items: center; width: 72px; height: 72px; padding: 10px; border-radius: 100px; position: relative; background: linear-gradient(180deg, rgba(116, 250, 119, 0.32) 0%, rgba(116, 250, 119, 0) 100%), rgba(116, 250, 119, 0.04); transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.badge__in::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(116, 250, 119, 0.16) 0%, rgba(116, 250, 119, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.badge__in img { width: 48px; height: 48px; }
.fcard:hover .badge__in { transform: rotate(-8deg) scale(1.06); }
.fcard__list { display: flex; flex-direction: column; gap: 17px; }
.fcard__t { font: 500 24px/32px var(--sans); letter-spacing: -0.04em; }
.fcard__p { font: 500 16px/24px var(--sans); letter-spacing: -0.02em; color: var(--neutral); }

/* CTA (Land 3) */
.d-cta { position: relative; height: 720px; }
.d-cta__panel { position: absolute; left: 50%; top: 0.5px; width: 1393px; height: 720px; transform: translateX(-50%); border-radius: 100px; border-color: transparent; }
.d-cta__field { left: -23.5px; top: 50%; width: 1440px; height: auto; transform: translateY(-50%); }
.d-cta__content { position: absolute; left: 50%; top: 50%; width: 784px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 40px; z-index: 3; }
.d-cta__icon { width: 200px; height: 200px; }
.d-cta__text { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.d-cta__title { font-size: 72px; }
.d-cta__sub { font: 700 24px/32px var(--sans); letter-spacing: -0.04em; }

.cta { overflow: hidden; border: 2px solid var(--green); isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -2; background: url(assets/img/texture.webp) center / cover no-repeat, linear-gradient(180deg, rgba(116, 250, 119, 0.24) 0%, rgba(116, 250, 119, 0.05) 37.23%), var(--bg); }
.cta__field { position: absolute; z-index: -1; pointer-events: none; }
/* App icon: 200px frame (dark 56% fill + dashed SVG outline) around the 164px icon. */
.cta__icon { position: relative; display: grid; place-items: center; flex: none; border-radius: 64px; background: rgba(7, 7, 7, 0.56); filter: drop-shadow(0 18px 40px rgba(116, 250, 119, 0.25)); transition: transform 0.8s var(--ease), filter 0.8s var(--ease); }
.cta__icon-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cta__icon-ring rect { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-dasharray: 6 6; }
.cta__icon img { width: 82%; height: 82%; border-radius: 24%; }
/* Edge light, ported from kerv.app: a soft inset glow at rest, and on hover a breathing
   neon halo plus a bright tube whose hot spot travels around the border. */
.cta__glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 18px var(--green), inset 0 0 32px rgba(116, 250, 119, 0.64); }
.neon { --neon-halo: var(--green); --neon-core: #5fe063; --neon-tail: var(--green); --neon-hot: color-mix(in srgb, var(--neon-core) 45%, #fff);
  position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; visibility: hidden; mix-blend-mode: screen;
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), visibility linear 0.52s; }
@supports (mix-blend-mode: plus-lighter) { .neon { mix-blend-mode: plus-lighter; } }
.neon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation-play-state: paused;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.neon--halo { --neon-blur: 44px; --neon-scale: 1.5; }
.neon--halo::before { box-shadow: inset 0 0 var(--neon-blur) calc(var(--neon-width) * var(--neon-scale)) var(--neon-halo); -webkit-mask: none; mask: none; animation: neon-breathe 2.4s ease-in-out infinite paused; }
.neon--core { filter: blur(1.5px); }
.neon--core::before { padding: 3px; background: conic-gradient(from var(--neon-angle), var(--neon-core) 0deg, var(--neon-hot) 30deg, var(--neon-core) 70deg, var(--neon-tail) 180deg, var(--neon-core) 290deg, var(--neon-core) 360deg);
  animation: neon-travel 5s linear infinite paused, neon-flicker 2.4s ease-in-out infinite paused; }
.cta:hover .neon, .cta:focus-within .neon, .cta.is-hot .neon { visibility: visible; transition-delay: 0s; }
.cta:hover .neon--halo, .cta:focus-within .neon--halo, .cta.is-hot .neon--halo { opacity: 1; }
.cta:hover .neon--core, .cta:focus-within .neon--core, .cta.is-hot .neon--core { opacity: 1; }
.cta:hover .neon::before, .cta:focus-within .neon::before, .cta.is-hot .neon::before { animation-play-state: running; }
.cta:hover .cta__icon { transform: translateY(-6px) rotate(-3deg) scale(1.04); filter: drop-shadow(0 24px 60px rgba(116, 250, 119, 0.55)); }
/* Scuffed-chalk texture over the CTA field. */
.cta__tex { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0.7; mix-blend-mode: screen; }
.is-near .cta__tex { background: url(assets/img/texture.webp) center / cover no-repeat; }
/* CTA tactics: arrows draw in like on the app splash, then a ball runs along each one. */
.tactics { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.tactic__line { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 4.43; stroke-dasharray: 13.28 13.28; }
.tactic__draw { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.tactic__head { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 8.85; opacity: 0; transition: opacity 0.2s ease-out; }
.tactic__ball { fill: var(--green); offset-distance: 0%; offset-rotate: 0deg; opacity: 0; filter: drop-shadow(0 0 6px rgba(116, 250, 119, 0.8)); }
.tactics.is-in .tactic__draw { stroke-dashoffset: 0; transition-delay: calc(var(--i) * 0.25s); }
.tactics.is-in .tactic__head { opacity: 1; transition-delay: calc(0.6s + var(--i) * 0.25s); }
.tactics.is-in .tactic__ball { animation: tactic-travel 1.4s cubic-bezier(0.45, 0, 0.55, 1) calc(1.3s + var(--i) * 0.25s) infinite; }
@keyframes tactic-travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes neon-travel { to { --neon-angle: 360deg; } }
@keyframes neon-breathe { 0%, 100% { opacity: 0.5; --neon-width: 10px; } 50% { opacity: 1; --neon-width: 22px; } }
@keyframes neon-flicker { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes breathe { 50% { opacity: 0.75; transform: scale(1.04); } }

/* Footer (Land 4) */
.d-foot { position: relative; height: 350px; overflow: visible clip; }
.d-foot__tex { left: 0; top: 0; width: 1440px; height: 350px; opacity: 0.56; }
.d-foot__g1 .splash--big { left: 97.74px; top: 327.92px; width: 549.68px; height: 467.24px; transform: scaleY(-1); }
.d-foot__g1 .splash--small { left: 226.97px; top: 327.92px; width: 291.21px; height: 247.53px; transform: scaleY(-1); mix-blend-mode: overlay; }
.d-foot__g2 .splash--big { left: 1371.41px; top: 166px; width: 467.24px; height: 549.68px; }
.d-foot__g2 .splash--big img { transform: rotate(-90deg) scaleY(-1); inset: auto; left: 50%; top: 50%; width: 1017.6px; height: 935.24px; translate: -50% -50%; }
.d-foot__g2 .splash--small { left: 1371.41px; top: 295.24px; width: 247.53px; height: 291.21px; mix-blend-mode: overlay; }
.d-foot__g2 .splash--small img { transform: rotate(-90deg) scaleY(-1); inset: auto; left: 50%; top: 50%; width: 539.15px; height: 495.48px; translate: -50% -50%; }
.d-foot__in { position: absolute; left: 50%; top: 48px; width: 1392px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 54px; }
.seo { padding: 23px 32px; border-radius: 32px; background: rgba(7, 7, 7, 0.56); border: 1px dashed rgba(255, 255, 255, 0.08); }
.seo p, .copy { font: 500 14px/20px var(--sans); letter-spacing: -0.02em; color: var(--neutral); text-align: center; font-feature-settings: "lnum" 1, "pnum" 1; }
.d-foot__row { display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.d-foot__row img { width: 190.82px; height: 32px; }

/* ================= MOBILE ================= */
.m-hero { position: relative; height: 1153px; }
.m-hero__stick { position: relative; height: 1153px; overflow: hidden; }
.m-hero__bg { position: absolute; left: 0; top: 0; width: 375px; height: 1174px; object-fit: cover; object-position: 50% 0; }
.m-hero__field { position: absolute; left: 16px; top: 96.64px; width: 343px; height: 650.71px; }
.m-ring { left: -18.14px; top: 576.32px; width: 435.57px; height: 431.29px; }
.m-ring { --s: 0.6114; }
.m-ring .ring__clip { left: 23.75px; top: 22.76px; width: 385.22px; height: 385.22px; }
.m-ring .ring__num { left: 281.59px; top: 75.96px; width: 131px; font-size: 302.89px; }
.m-ring .ring__arc { width: 431.3px; height: 431.3px; }
.m-ring .ring__progress { stroke-width: 3.67; }
.m-ring .ring__dot { width: 14.06px; height: 14.06px; box-shadow: inset -1.38px 0 4.13px rgba(0, 0, 0, 0.24); }
.m-hero__copy { position: absolute; left: 16px; top: 0; width: 343px; display: flex; flex-direction: column; align-items: center; }
.m-logo { width: 167px; height: 28px; margin-top: 40px; }
.m-hero__title { margin-top: 48px; width: 343px; font-size: 48px; text-align: center; }
.m-hero__sub { margin-top: 16px; font: 700 20px/28px var(--sans); letter-spacing: -0.04em; text-align: center; }
.m-hero__copy .btn { margin-top: 32px; width: 283px; }
.m-phone { left: 56px; top: 499px; width: 265px; height: 549px; }

.m-why { position: relative; height: 705px; }
.m-why__panel { position: absolute; left: 13px; top: 0; width: 354px; height: 695px; border-radius: 56px; overflow: hidden; background: linear-gradient(180deg, rgba(240, 240, 240, 0.04) 0%, rgba(240, 240, 240, 0) 66%); }
.m-why__rect { position: absolute; left: 13px; top: 13px; width: 329px; height: 659px; border-radius: 44px; background: rgba(7, 7, 7, 0.8); --stroke: rgba(240, 240, 240, 0.12); }
.m-why__tex { left: 1px; top: 0; width: 347px; height: 683px; }
.m-why__title { position: absolute; left: 35px; top: 40px; width: 284px; font-size: 36px; text-align: center; }
.m-why__track { position: absolute; left: 13px; top: 124px; width: 329px; display: flex; gap: 24px; padding: 0 23px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.m-why__track::-webkit-scrollbar { display: none; }
.m-col { width: 286px; align-items: center; scroll-snap-align: center; }
.m-col .why-col__shot { width: 280px; }
.m-col .why-col__list { width: 286px; }
.why-col__t--m { font-weight: 500; }
.m-col .why-col__t { white-space: nowrap; }
.m-col { gap: 20px; }
.m-col.why-col--low { padding-top: 0; }
.m-col::after { content: ""; }
.m-why__nav { position: absolute; left: 12px; top: 598px; width: 330px; display: flex; gap: 12px; }
.navbtn { flex: 1; height: 40px; display: grid; place-items: center; border: 0; border-radius: 100px; background: rgba(255, 255, 255, 0.04); color: var(--white); cursor: pointer; --stroke: rgba(255, 255, 255, 0.16); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.navbtn--prev { background: rgba(255, 255, 255, 0.02); color: var(--neutral); --stroke: rgba(255, 255, 255, 0.08); }
.navbtn:active { transform: scale(0.96); }
.navbtn[disabled] { opacity: 0.6; cursor: default; }
.hero-nav { position: absolute; z-index: 3; display: flex; gap: 12px; }
.d-hero-nav { left: 443px; top: 840px; width: 554px; justify-content: space-between; pointer-events: none; }
.d-hero-nav .navbtn { flex: none; width: 72px; height: 72px; pointer-events: auto; }
.d-hero-nav .navbtn svg { width: 26px; height: 26px; }
/* Over the green ring the buttons need a dark fill to stay visible. */
.d-hero-nav .navbtn, .d-hero-nav .navbtn--prev { background: rgba(7, 7, 7, 0.6); color: var(--white); --stroke: rgba(255, 255, 255, 0.18); }
.d-hero-nav .navbtn:hover:not([disabled]) { background: rgba(7, 7, 7, 0.8); }
.navbtn:focus:not(:focus-visible) { outline: none; }
.m-hero-nav { left: 22.5px; top: 1066px; width: 330px; }

.m-feat { position: relative; height: 812px; overflow: hidden; }
.m-feat__glow .splash--big { left: 47.66px; top: 429.74px; width: 271.19px; height: 230.52px; transform: scaleY(-1); }
.m-feat__glow .splash--small { left: 111.42px; top: 429.74px; width: 143.67px; height: 122.12px; transform: scaleY(-1); mix-blend-mode: overlay; }
.m-feat__glow { position: absolute; inset: 0; animation: breathe 6s ease-in-out infinite; }
.m-feat__tex { left: 0; top: 0; width: 375px; height: 800px; }
.m-feat__in { position: absolute; left: 0; top: 56px; width: 375px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.m-feat__head { padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.m-feat__title { width: 283.83px; font-size: 36px; }
.m-feat__lead { font: 500 16px/24px var(--sans); letter-spacing: -0.02em; color: var(--neutral); }
.m-feat__list { width: 100%; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.mcard { display: flex; align-items: center; gap: 24px; padding: 12px; border-radius: 56px; --stroke: rgba(240, 240, 240, 0.16);
  background: linear-gradient(180deg, rgba(116, 250, 119, 0.08) 0%, rgba(116, 250, 119, 0) 66.33%), linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)), var(--bg); }
.badge--m { padding: 6px; width: 68px; height: 68px; flex: none; }
.badge--m .badge__in { width: 100%; height: 100%; padding: 8px; }
.badge--m .badge__in img { width: 40px; height: 40px; }
.mcard__t { font: 600 18px/28px var(--sans); letter-spacing: -0.02em; font-feature-settings: "lnum" 1, "pnum" 1; }

.m-cta { position: relative; height: 640px; padding: 12px; }
.m-cta__panel { position: relative; width: 351px; height: 616px; border-width: 1px; border-radius: 48px; }
.m-cta__field { left: 0; top: 50%; width: 351px; height: auto; transform: translateY(-50%); }
.m-cta__content { position: absolute; inset: 0; padding: 0 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 3; }
.m-cta__icon { width: 141.6px; height: 141.6px; border-radius: 45.3px; }
.m-cta__text { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.m-cta__title { font-size: 40px; }
.m-cta__sub { font: 700 18px/28px var(--sans); letter-spacing: -0.04em; }
.m-cta__content .btn { width: 100%; }

.m-foot { position: relative; height: 812px; overflow: hidden; }
.m-foot__tex { left: 0; top: 0; width: 375px; height: 800px; }
.m-foot__glow .splash--big { left: 47.66px; top: 799.74px; width: 271.19px; height: 230.52px; transform: scaleY(-1); }
.m-foot__glow .splash--small { left: 111.42px; top: 799.74px; width: 143.67px; height: 122.12px; transform: scaleY(-1); mix-blend-mode: overlay; }
.m-foot__in { position: absolute; left: calc(50% - 0.5px); top: 12px; width: 350px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 54px; }
.seo--m { padding: 24px; }
.m-foot__row { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 32px; }
.m-foot__row img { width: 190.82px; height: 32px; }
.m-foot__row .copy { white-space: nowrap; }

/* ---------- reveal on scroll (content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 calc(var(--ry, 0px) + 36px); filter: blur(8px); transition: opacity 0.9s var(--ease) var(--d, 0ms), translate 1s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms); }
.js .d-feat__copy[data-reveal] { translate: 0 36px; }
.js .why-col--top[data-reveal] { translate: 0 -64px; }
.js .why-col--bottom[data-reveal] { translate: 0 64px; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; filter: none; }

/* Preloader (Figma 10224:74302): the logo fills with green from the bottom as the page loads. */
.preloader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
  /* backdrop = the hero background (same files as the hero, fetched once), placed so the
     field's centre circle sits exactly behind the logo in the middle of the screen */
  --cx: 0px; --cy: 410px; --bw: 975px;
  background: var(--bg) url(assets/img/m-bg-1.webp) no-repeat;
  background-size: calc(var(--bw) * var(--z, 1)) auto;
  background-position: calc(50% - var(--cx) * var(--z, 1)) calc(50vh - var(--cy) * var(--z, 1)); }
@media (min-width: 900px) { .preloader { background-image: url(assets/img/d-bg-1.webp); --bw: 2840px; --cx: 3px; --cy: 405px; } }
@media (min-width: 1441px) { .preloader { background-image: url(assets/img/d1600-bg-1.webp); --cx: 29px; } }
@media (min-width: 1601px) { .preloader { background-image: url(assets/img/d1920-bg-1.webp); --cx: 17.5px; } }
.preloader.is-done { opacity: 0; visibility: hidden; }
/* Safety net: never cover the page for more than 8s, even if the script fails. */
.preloader { animation: pre-out 0.6s ease 8s forwards; }
@keyframes pre-out { to { opacity: 0; visibility: hidden; } }
html:not(.js) .preloader { display: none; }
.preloader__logo { width: 148px; height: auto; overflow: visible; }
.preloader__base path:not(:last-child) { fill: rgba(255, 255, 255, 0.08); }
.preloader__base path:last-child { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.preloader__fill path:not(:last-child) { fill: var(--green); }
.preloader__fill path:last-child { fill: none; stroke: var(--green); stroke-width: 1.24; }
/* glow sits on a wrapper: on the clipped group itself the clip would cut the glow to a square */
.preloader__glow { filter: drop-shadow(0 0 14px rgba(116, 250, 119, 0.55)); }
.preloader__level { transform-box: fill-box; transform: translateY(calc((1 - var(--p, 0)) * 100%)); transition: transform 0.45s var(--ease); }

/* Flame cursor (desktop pointers only): the canvas draws the flame, the native arrow is hidden. */
.comet { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; }
.has-comet, .has-comet * { cursor: none !important; }

@media (prefers-reduced-motion: reduce) {
  .tactic__draw { stroke-dashoffset: 0; } .tactic__head { opacity: 1; } .tactic__ball { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; filter: none; }
}
