/* GazeLynx — landing page. Colours follow the desktop app. */

:root {
  color-scheme: dark;
  --bg: #050914;
  --surface: #0c1424;
  --surface-2: #101a2e;
  --line: #162032;
  --line-2: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-soft: #93c5fd;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --cyan-deep: #0e7490;

  --wrap: 1200px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --sans: "Segoe UI Variable Display", "Segoe UI", "Inter", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: var(--gutter); }

.h2 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 500;
  max-width: 16ch;
  text-wrap: balance;
}
.lead { margin-top: 20px; max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); text-wrap: pretty; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------------- motion primitives ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.word { display: inline-block; white-space: pre; }
.word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em);
  filter: blur(10px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
[data-split].is-in .word > span { opacity: 1; transform: none; filter: none; }

/* ---------------- nav ---------------- */

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled {
  background: rgba(5, 9, 20, .7);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--line);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-mark { width: 24px; height: 24px; display: block; }
.nav-links { display: flex; gap: 6px; font-size: .92rem; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, .08); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang-switch { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: color .25s, background .25s; }
.lang-switch:hover { color: var(--text); background: rgba(148, 163, 184, .1); }
.nav-status { display: inline-block; font-size: .85rem; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}
@media (max-width: 420px) { .nav .nav-status { display: none; } }

/* ---------------- hero ---------------- */

.hero { padding-top: clamp(130px, 18vh, 190px); }
.hero-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
:lang(ru) .hero-title { max-width: 16ch; }
.hero-title {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 500;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-sub { margin-top: 26px; color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.25rem); max-width: 46ch; text-wrap: balance; transition-delay: .35s; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; transition-delay: .5s; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 500; font-size: .98rem;
  transition: background .25s, color .25s, transform .4s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #dbe4ef; }
.btn-dark { background: rgba(148, 163, 184, .1); }
.btn-dark:hover { background: rgba(148, 163, 184, .18); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-media-wrap { transition-delay: .65s; margin-top: clamp(8px, 3vw, 40px); }
.hero-media {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  max-height: 86vh;
  transform-origin: 50% 30%;
  isolation: isolate;
}
/* the smoke dissolves into the page instead of sitting in a frame; the eye stays crisp */
.hero-media canvas, .hero-media-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0,0,0,.88) 30%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.15) 80%, transparent 98%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0,0,0,.88) 30%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.15) 80%, transparent 98%);
}
.hero-media-fallback { z-index: -1; background: radial-gradient(ellipse at 50% 50%, #1d4ed8 0, #0b1f4d 35%, #050914 70%); }
.hero-eye {
  position: absolute; left: 50%; top: 50%;
  width: 40%; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  overflow: visible;
  will-change: transform;
}
@media (max-width: 720px) { .hero-media { aspect-ratio: 1 / 1.15; } }

/* ---------------- statement ---------------- */

.statement { padding: clamp(120px, 18vw, 230px) 0; }
.statement-text {
  font-size: clamp(1.8rem, 4.2vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 500;
}
.statement-text .w { color: #1b2740; transition: color .5s; }
.statement-text .w.is-lit { color: var(--text); }
.statement-text .w.is-acc.is-lit { color: var(--cyan-soft); }

/* ---------------- segmented control + analytics demo ---------------- */

.demo { margin: 0; }
.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.seg { position: relative; display: inline-flex; padding: 4px; background: var(--surface); border-radius: 999px; max-width: 100%; }
.seg-btn {
  position: relative; z-index: 1;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  font-size: .92rem; color: var(--muted); white-space: nowrap;
  transition: color .3s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on { color: var(--bg); }
.seg-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0;
  background: var(--text); border-radius: 999px;
  transition: left .5s var(--ease), width .5s var(--ease);
}
@media (max-width: 480px) { .seg-btn { padding: 8px 12px; font-size: .85rem; } }
.link-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: .92rem; padding: 8px 4px; }
.link-btn:hover { color: var(--text); }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 640px) { .stage { aspect-ratio: 4 / 5; border-radius: 20px; } }
.stage-heat, .stage-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .5s; }
.stage-heat { filter: blur(1.5px); }
.cap { margin-top: 16px; color: var(--faint); font-size: .9rem; }

.mock { position: absolute; inset: 0; padding: 4.5% 5.5%; display: flex; flex-direction: column; gap: 6%; }
.mock span { display: block; border-radius: 6px; background: #142035; }
.m-nav { display: flex; align-items: center; gap: 3%; height: 6%; }
.m-logo { width: 9%; height: 100%; background: #1b2944 !important; }
.m-link { width: 7%; height: 40%; }
.m-nav .m-link:first-of-type { margin-left: auto; }
.m-btn { width: 10%; height: 90%; border-radius: 999px !important; background: #1b2944 !important; }
.m-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; flex: 1.4; }
.m-copy { display: flex; flex-direction: column; gap: 7%; justify-content: center; }
.m-h1 { height: 13%; width: 92%; background: #1d2b47 !important; }
.m-p { height: 5%; width: 88%; }
.short { width: 58% !important; }
.m-cta { width: 34%; height: 12%; border-radius: 999px !important; background: #d7e0ec !important; margin-top: 4%; opacity: .85; }
.m-img { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #13284f, #0b1428); }
.m-sun { position: absolute; right: 18%; top: 18%; width: 18%; aspect-ratio: 1; border-radius: 50% !important; background: #24406e !important; }
.m-hill { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; border-radius: 50% 50% 0 0 !important; background: #0e1a33 !important; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; flex: 1; }
.m-card { border-radius: 12px; background: #0f1a2e; padding: 5%; display: flex; flex-direction: column; gap: 9%; }
.m-thumb { height: 42%; background: #172540 !important; }
@media (max-width: 640px) {
  .m-hero { grid-template-columns: 1fr; }
  .m-cards { grid-template-columns: 1fr 1fr; }
  .m-cards .m-card:last-child { display: none; }
}

/* ---------------- how it works (scroll story) ---------------- */

.how { padding-bottom: clamp(110px, 15vw, 190px); }
.how-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.how-steps { padding: 18vh 0 30vh; }
.how-step {
  min-height: 52vh;
  padding-top: 8px;
  opacity: .28;
  transition: opacity .6s var(--ease);
}
.how-step.is-on { opacity: 1; }
.how-step h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.035em; font-weight: 500; line-height: 1.1; }
.how-step p { margin-top: 14px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 36ch; }

.how-visual-wrap { position: sticky; top: calc(50vh - min(26vw, 280px)); align-self: start; }
.how-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
}
.viz-bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(29, 78, 216, .35), transparent 70%),
    radial-gradient(35% 35% at 75% 70%, rgba(34, 211, 238, .18), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(6%, -4%) rotate(8deg); } }
.how-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.how-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line-2); transition: width .5s var(--ease), background .5s; }
.how-dots i.is-on { width: 22px; background: var(--text); }

.viz {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.96); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.viz.is-on { opacity: 1; transform: none; filter: none; }

.screen {
  position: relative; width: 74%; aspect-ratio: 16 / 10;
  border-radius: 14px; background: #050914;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -20px rgba(0, 0, 0, .6);
  overflow: hidden;
}

/* setup */
.viz-setup svg { width: 82%; height: auto; overflow: visible; }
.s-monitor { fill: #101a2e; stroke: #334155; stroke-width: 2; }
.s-stand { fill: none; stroke: #334155; stroke-width: 6; stroke-linecap: round; }
.s-cam { fill: var(--cyan); }
.s-head { fill: #101a2e; stroke: #334155; stroke-width: 2; }
.s-eye { fill: var(--text); }
.s-beam { stroke: var(--blue-soft); stroke-width: 2; stroke-dasharray: 4 8; fill: none; opacity: .7; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.s-gaze { transform-box: view-box; transform-origin: 268px 132px; animation: look 6s var(--ease) infinite; }
.s-gaze line { stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.s-gaze circle { fill: var(--cyan); }
@keyframes look {
  0%, 18% { transform: rotate(-9deg); }
  25%, 43% { transform: rotate(4deg); }
  50%, 68% { transform: rotate(-2deg); }
  75%, 93% { transform: rotate(9deg); }
  100% { transform: rotate(-9deg); }
}

/* calibrate */
.cp:nth-child(1) { --x: 8%; --y: 12%; }
.cp:nth-child(2) { --x: 50%; --y: 12%; }
.cp:nth-child(3) { --x: 92%; --y: 12%; }
.cp:nth-child(4) { --x: 92%; --y: 50%; }
.cp:nth-child(5) { --x: 50%; --y: 50%; }
.cp:nth-child(6) { --x: 8%; --y: 50%; }
.cp:nth-child(7) { --x: 8%; --y: 88%; }
.cp:nth-child(8) { --x: 50%; --y: 88%; }
.cp:nth-child(9) { --x: 92%; --y: 88%; }
.cp {
  position: absolute; left: var(--x); top: var(--y);
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #1e293b;
  transition: background .4s, transform .5s var(--ease);
}
.cp::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--cyan-soft); opacity: 0; }
.cp.is-active { background: var(--text); }
.cp.is-active::before { animation: shrink .9s var(--ease) forwards; }
.cp.is-done { background: var(--cyan-deep); transform: scale(.8); }
@keyframes shrink { 0% { opacity: 0; transform: scale(2); } 30% { opacity: 1; } 100% { opacity: 1; transform: scale(.6); } }
.calib-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #101a2e; }
.calib-bar span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .6s var(--ease); }

/* track */
.desk { background: linear-gradient(160deg, #0b1630, #050914); }
.win { position: absolute; border-radius: 8px; background: #101a2e; box-shadow: 0 0 0 1px var(--line-2); }
.w1 { left: 7%; top: 10%; width: 46%; height: 52%; }
.w2 { left: 58%; top: 16%; width: 35%; height: 34%; }
.w3 { left: 36%; top: 62%; width: 44%; height: 28%; }
.gaze-dot {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; border: 3px solid var(--cyan);
  box-shadow: 0 0 24px rgba(34, 211, 238, .5);
  animation: saccades 7s infinite;
}
@keyframes saccades {
  0%, 14% { left: 20%; top: 26%; animation-timing-function: var(--ease); }
  17%, 30% { left: 40%; top: 27%; animation-timing-function: var(--ease); }
  33%, 46% { left: 74%; top: 30%; animation-timing-function: var(--ease); }
  49%, 62% { left: 72%; top: 42%; animation-timing-function: var(--ease); }
  65%, 80% { left: 54%; top: 76%; animation-timing-function: var(--ease); }
  83%, 97% { left: 24%; top: 50%; animation-timing-function: var(--ease); }
  100% { left: 20%; top: 26%; }
}

/* review */
.viz-review { grid-template-rows: auto auto; align-content: center; gap: 22px; }
.spot {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 254, 255, .9), rgba(34, 211, 238, .55) 30%, rgba(59, 130, 246, .25) 60%, transparent 72%);
  filter: blur(2px);
  opacity: 0; transform: scale(.6);
  animation: spot 8s var(--ease) infinite;
}
.sp1 { left: 12%; top: 16%; width: 22%; aspect-ratio: 1; animation-delay: .2s; }
.sp2 { left: 40%; top: 12%; width: 15%; aspect-ratio: 1; animation-delay: 1.4s; }
.sp3 { left: 62%; top: 34%; width: 26%; aspect-ratio: 1; animation-delay: 2.8s; }
.sp4 { left: 26%; top: 56%; width: 18%; aspect-ratio: 1; animation-delay: 4.2s; }
@keyframes spot { 0% { opacity: 0; transform: scale(.6); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: scale(.9); } }
.timeline { position: relative; width: 74%; height: 6px; border-radius: 999px; background: #101a2e; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue-deep), var(--cyan)); animation: tl 8s linear infinite; }
.tl-head { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--text); animation: tlh 8s linear infinite; }
@keyframes tl { from { width: 0; } to { width: 100%; } }
@keyframes tlh { from { left: 0; } to { left: 100%; } }

@media (max-width: 880px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-visual-wrap { order: -1; top: 76px; z-index: 2; padding-bottom: 12px; background: linear-gradient(var(--bg) 85%, transparent); }
  .how-visual { aspect-ratio: 4 / 3; max-height: 46vh; }
  .how-steps { padding: 6vh 0 10vh; }
  .how-step { min-height: 42vh; }
}

/* ---------------- principles ---------------- */

.principles { padding-bottom: clamp(110px, 15vw, 190px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; gap: 44px; } }
.card:nth-child(2) { transition-delay: .12s; }
.card:nth-child(3) { transition-delay: .24s; }
.card h3 { margin-top: 22px; font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

.art {
  position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  background: var(--surface);
  transition: transform .8s var(--ease);
  isolation: isolate;
}
.card:hover .art { transform: scale(.98); }
.art span { position: absolute; border-radius: 50%; filter: blur(34px); animation: blob 14s ease-in-out infinite alternate; }
.art span:nth-child(1) { width: 70%; height: 80%; left: -10%; top: -10%; }
.art span:nth-child(2) { width: 60%; height: 70%; right: -15%; bottom: -20%; animation-duration: 17s; animation-delay: -5s; }
.art span:nth-child(3) { width: 40%; height: 45%; left: 35%; top: 30%; animation-duration: 11s; animation-delay: -3s; }
.art-1 span:nth-child(1) { background: #1d4ed8; }
.art-1 span:nth-child(2) { background: #0e7490; }
.art-1 span:nth-child(3) { background: #67e8f9; opacity: .55; }
.art-2 span:nth-child(1) { background: #0b1f4d; }
.art-2 span:nth-child(2) { background: #22d3ee; opacity: .7; }
.art-2 span:nth-child(3) { background: #3b82f6; }
.art-3 span:nth-child(1) { background: #0e7490; }
.art-3 span:nth-child(2) { background: #1e3a8a; }
.art-3 span:nth-child(3) { background: #93c5fd; opacity: .5; }
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.15); }
  100% { transform: translate(-6%, 14%) scale(.9); }
}
.art::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 6px solid rgba(248, 250, 252, .85);
  mix-blend-mode: overlay;
}

/* ---------------- status ---------------- */

.status { position: relative; padding: clamp(140px, 20vw, 260px) 0; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -2; }
.aurora span { position: absolute; left: 50%; top: 50%; border-radius: 50%; filter: blur(80px); opacity: .5; animation: aur 20s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 28vw; margin: -14vw 0 0 -30vw; background: #1d4ed8; }
.aurora span:nth-child(2) { width: 36vw; height: 24vw; margin: -8vw 0 0 -4vw; background: #0e7490; animation-duration: 24s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 22vw; height: 16vw; margin: -10vw 0 0 -12vw; background: #22d3ee; opacity: .28; animation-duration: 16s; }
@keyframes aur { to { transform: translate(8vw, 4vw) scale(1.2) rotate(20deg); } }
.status::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, transparent, var(--bg) 75%); }
.status-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.status-title { font-size: clamp(2.4rem, 6.5vw, 5rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 500; max-width: 12ch; text-wrap: balance; }
.status-text { margin-top: 24px; max-width: 50ch; color: #cbd5e1; font-size: clamp(1.02rem, 1.8vw, 1.15rem); text-wrap: balance; }

@keyframes blink { 50% { opacity: .35; } }

/* ---------------- what you need ---------------- */

.needs { padding-bottom: clamp(110px, 15vw, 190px); }
.needs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .needs-grid { grid-template-columns: 1fr; } }
.need {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 3vw, 36px);
  border-radius: 22px; background: var(--surface);
}
.need:nth-child(2) { transition-delay: .1s; }
.need:nth-child(3) { transition-delay: .2s; }
.need-icon { width: 44px; height: 44px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.need h3 { margin-top: 26px; font-size: 1.4rem; font-weight: 500; letter-spacing: -.025em; }
.need p { margin-top: 6px; color: var(--muted); }
/* the light card starts dim and switches on under the pointer */
.need-light { background: #070c18; transition: background .6s var(--ease); }
.need-light .need-icon { stroke: #475569; transition: stroke .4s; }
.need-light h3, .need-light p { transition: color .4s; }
.need-light h3 { color: #64748b; }
.need-light p { color: #475569; }
.need-glow {
  position: absolute; inset: -40% -20% auto; height: 140%; z-index: -1;
  background: radial-gradient(50% 45% at 18% 20%, rgba(224, 242, 254, .22), rgba(103, 232, 249, .08) 45%, transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.need-light:hover, .need-light.is-lit { background: var(--surface); }
.need-light:hover .need-glow, .need-light.is-lit .need-glow { opacity: 1; }
.need-light:hover .need-icon, .need-light.is-lit .need-icon { stroke: #fde68a; }
.need-light:hover h3, .need-light.is-lit h3 { color: var(--text); }
.need-light:hover p, .need-light.is-lit p { color: var(--muted); }

/* ---------------- the app (mockups) ---------------- */

.app { padding-bottom: clamp(110px, 15vw, 190px); }
.app-tabs { margin-bottom: 18px; }
.app-frame {
  margin: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid #334155;
  background: #0f172a;
  box-shadow: 0 50px 120px -40px rgba(29, 78, 216, .45);
}
.app-titlebar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: #0b1220; border-bottom: 1px solid #1e293b; font-size: 13px; color: #a9b7ca; }
.app-titlebar span { margin-right: auto; }
.app-titlebar i { width: 12px; height: 2px; background: #475569; margin-left: 10px; }
.app-titlebar i:nth-of-type(2) { height: 10px; background: none; border: 2px solid #475569; width: 11px; }
.app-titlebar i:nth-of-type(3) { height: 2px; transform: rotate(45deg); box-shadow: 0 0 0 0 #475569; position: relative; }
.app-titlebar i:nth-of-type(3)::after { content: ""; position: absolute; inset: 0; background: #475569; transform: rotate(90deg); }
.app-body { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; font-family: "Segoe UI", "Inter", sans-serif; }
@media (max-width: 640px) { .app-body { aspect-ratio: 4 / 5; } }
.app-screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.app-screen.is-on { opacity: 1; visibility: visible; }

/* calibration, drawn the way the app paints its targets */
.scr-calib { background: #050914; }
.ac-target {
  position: absolute; left: 50%; top: 50%;
  width: 5cqw; height: 5cqw; min-width: 26px; min-height: 26px;
  border-radius: 50%; background: #0e7490; border: .45cqw solid #67e8f9;
  transform: translate(-50%, -50%);
  transition: left .55s var(--ease), top .55s var(--ease);
  display: grid; place-items: center;
}
.ac-target i { width: 32%; height: 32%; border-radius: 50%; background: #f8fafc; }
.ac-target.is-shrinking { animation: acShrink 1.4s var(--ease) forwards; }
@keyframes acShrink { 0% { transform: translate(-50%, -50%) scale(1.5); } 100% { transform: translate(-50%, -50%) scale(.55); } }
.ac-text { position: absolute; left: 0; right: 0; top: 8%; text-align: center; color: #94a3b8; font-size: max(11px, 1.4cqw); }
.ac-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: #101a2e; }
.ac-bar span { display: block; height: 100%; width: 0; background: #22d3ee; transition: width .5s var(--ease); }

/* live marker over a desktop */
.scr-live { background: linear-gradient(135deg, #0b1f4d, #050914 55%, #0c3442); overflow: hidden; }
.al-win { position: absolute; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); }
.al-bar { height: 7%; min-height: 14px; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.al-bar i { width: 7px; height: 7px; border-radius: 50%; }
.al-bar span { margin-left: 12px; height: 45%; width: 40%; border-radius: 999px; }
.al-page { padding: 5% 6%; display: flex; flex-direction: column; gap: 4.5%; height: 93%; }
.al-page .l { display: block; height: 3.2%; min-height: 5px; width: 92%; border-radius: 4px; }
.al-page .big { height: 6%; }
.al-page .w80 { width: 80%; } .al-page .w70 { width: 70%; } .al-page .w60 { width: 60%; } .al-page .w50 { width: 50%; } .al-page .w40 { width: 40%; }
.al-browser { left: 5%; top: 6%; width: 58%; height: 78%; background: #f8fafc; }
.al-browser .al-bar { background: #e2e8f0; }
.al-browser .al-bar i { background: #cbd5e1; }
.al-browser .al-bar span { background: #f8fafc; }
.al-browser .l { background: #cbd5e1; }
.al-browser .big { background: #64748b; }
.al-img { display: block; height: 26%; border-radius: 6px; background: linear-gradient(135deg, #bfdbfe, #a5f3fc); }
.al-notes { right: 5%; top: 20%; width: 30%; height: 48%; background: #1e293b; }
.al-notes .al-bar { background: #172033; }
.al-notes .al-bar i { background: #475569; }
.al-notes .l { background: #475569; }
.al-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6.5%; min-height: 18px; background: rgba(11, 18, 32, .92); display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; }
/* floating control panel, in the app's colours */
.ap {
  position: absolute; right: 3.5%; bottom: 10%;
  width: 30%; min-width: 210px;
  padding: max(12px, 1.6cqw);
  border-radius: 14px;
  background: rgba(15, 23, 42, .9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid #334155;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color: #f8fafc;
  font-size: max(11px, 1.15cqw);
  display: flex; flex-direction: column; gap: max(8px, 1cqw);
}
.ap-head { display: flex; align-items: center; gap: 8px; }
.ap-head b { font-size: 1.12em; font-weight: 700; margin-right: auto; }
.ap-live { display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em; border-radius: 999px; background: rgba(34, 197, 94, .12); color: #86efac; font-weight: 600; font-size: .92em; }
.ap-live i { width: .55em; height: .55em; border-radius: 50%; background: #22c55e; animation: blink 1.6s steps(2) infinite; }
.ap-point { display: flex; align-items: baseline; justify-content: space-between; padding: .8em .9em; border-radius: 10px; background: #0b1220; }
.ap-point span { color: #a9b7ca; }
.ap-point b { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-weight: 600; color: #67e8f9; font-variant-numeric: tabular-nums; }
.ap-row { display: flex; align-items: center; gap: 8px; padding: .15em .1em; }
.ap-row > span:first-child { margin-right: auto; color: #e2e8f0; }
.ap-switch { position: relative; flex: none; width: 2.6em; height: 1.5em; border-radius: 999px; background: #334155; transition: background .35s var(--ease); }
.ap-switch::after { content: ""; position: absolute; top: .2em; left: .2em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #f8fafc; transition: transform .35s var(--ease); }
.ap-switch.is-on { background: #2563eb; }
.ap-switch.is-on::after { transform: translateX(1.1em); }
.ap-rec { display: inline-flex; align-items: center; gap: .4em; color: #fca5a5; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.ap-rec.is-on { opacity: 1; }
.ap-rec i { width: .55em; height: .55em; border-radius: 50%; background: #ef4444; animation: blink 1.2s steps(2) infinite; }
.ap-rec b { font-weight: 600; }
.ap-foot { display: flex; padding-top: .2em; }
.ap-btn { flex: 1; text-align: center; padding: .65em 1em; border-radius: 8px; background: #2563eb; font-weight: 700; }
@container (max-width: 520px) {
  .al-notes { display: none; }
  .al-browser { width: 88%; }
  /* compact panel on phones: status and the two switches only */
  .ap { left: auto; right: 5%; bottom: 10%; width: 60%; min-width: 0; padding: 10px 11px; gap: 7px; font-size: 10.5px; border-radius: 11px; }
  .ap-point, .ap-foot { display: none; }
  .ap-head img { width: 14px; height: 14px; }
}

/* the app's overlay marker: dark halo r15 w7, cyan ring r10 w4, white dot r3.2 */
.al-marker {
  position: absolute; left: 30%; top: 30%;
  width: 3.4cqw; height: 3.4cqw; min-width: 26px; min-height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #f8fafc 0 17%, transparent 18% 42%, #22d3ee 43% 64%, rgba(2, 6, 23, .95) 65% 98%, transparent 100%);
  transition: left .12s cubic-bezier(.3, .7, .2, 1), top .12s cubic-bezier(.3, .7, .2, 1);
}

/* ---------------- privacy ---------------- */

.privacy { padding-bottom: clamp(110px, 15vw, 190px); }
.flow { margin: 0 0 clamp(40px, 6vw, 72px); }
.flow svg { width: 100%; height: auto; display: block; overflow: visible; }
.f-box { fill: rgba(12, 20, 36, .7); stroke: #1e293b; stroke-width: 1.5; }
.f-boxlabel { fill: #94a3b8; font-size: 18px; font-family: var(--sans); }
.f-line, .f-out { stroke: #334155; stroke-width: 2; stroke-dasharray: 4 9; fill: none; animation: flow 1.2s linear infinite; }
.f-pkt { fill: #67e8f9; }
.f-pkt2 { fill: #f8fafc; }
.f-node > circle:first-child { fill: #0c1424; stroke: #1e293b; stroke-width: 2; }
.f-ico { fill: none; stroke: #94a3b8; stroke-width: 3; }
.f-core > circle:first-child { stroke: #1e3a5f; }
.f-ring { fill: #050914; stroke: #22d3ee; stroke-width: 9; }
.f-dot { fill: #f8fafc; }
.f-hit { fill: #22d3ee; stroke: none; }
.f-label { fill: #f8fafc; font-size: 20px; font-family: var(--sans); text-anchor: middle; }
.f-wall { stroke: #ef4444; stroke-width: 5; stroke-linecap: round; }
.f-cloud path:first-child { fill: none; stroke: #475569; stroke-width: 2.5; }
.f-x { stroke: #ef4444; stroke-width: 3.5; stroke-linecap: round; fill: none; }
.f-note { fill: #94a3b8; font-size: 18px; font-family: var(--sans); }
@media (max-width: 640px) {
  .f-label { font-size: 30px; }
  .f-boxlabel, .f-note { font-size: 28px; }
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts li { display: flex; gap: 16px; align-items: flex-start; }
.facts li:nth-child(2) { transition-delay: .08s; }
.facts li:nth-child(3) { transition-delay: .16s; }
.facts li:nth-child(4) { transition-delay: .24s; }
.fact-ico { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(34, 211, 238, .12); margin-top: 2px; }
.fact-ico::after { content: ""; position: absolute; left: 11px; top: 7px; width: 6px; height: 12px; border: solid var(--cyan); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.facts h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; }
.facts p { margin-top: 4px; color: var(--muted); }

/* ---------------- use cases ---------------- */

.uses { padding-bottom: clamp(110px, 15vw, 190px); }
.use {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-bottom: clamp(96px, 13vw, 160px);
}
.use:nth-of-type(even) .use-text { order: 2; }
.use-wide { grid-template-columns: 1fr; gap: 36px; margin-bottom: 28px; }
.use-wide .use-text { max-width: 620px; order: 0 !important; }
@media (max-width: 880px) {
  .use { grid-template-columns: 1fr; }
  .use:nth-of-type(even) .use-text { order: 0; }
}
.use-kind { color: var(--cyan-soft); font-weight: 500; font-size: .98rem; margin-bottom: 12px; }
.use-text h3 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.use-text > p:not(.use-kind):not(.use-hint) { margin-top: 16px; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.12rem); max-width: 44ch; }
.use-hint { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; color: var(--faint); font-size: .92rem; }
.use-hint::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--cyan); flex: none; }
.use-demo { position: relative; border-radius: 26px; background: var(--surface); overflow: hidden; }

/* gaze marker that replaces the cursor inside the demos */
.gaze-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle closest-side, #f8fafc 0 17%, transparent 18% 42%, #22d3ee 43% 64%, rgba(2, 6, 23, .9) 65% 98%, transparent 100%);
  opacity: 0; transition: opacity .25s;
}
.has-gaze { cursor: none; }
.has-gaze * { cursor: none !important; }
.has-gaze.is-hover .gaze-cursor { opacity: 1; }

/* accessibility: dwell player */
.player { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.pl-art { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b1f4d; isolation: isolate; }
.pl-art span { position: absolute; border-radius: 50%; filter: blur(30px); animation: blob 9s ease-in-out infinite alternate; animation-play-state: paused; }
.pl-art span:nth-child(1) { width: 70%; height: 90%; left: -10%; top: -20%; background: #1d4ed8; }
.pl-art span:nth-child(2) { width: 60%; height: 80%; right: -10%; bottom: -30%; background: #22d3ee; opacity: .7; animation-duration: 12s; }
.player.is-playing .pl-art span { animation-play-state: running; }
.pl-art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 6px solid rgba(248, 250, 252, .85); mix-blend-mode: overlay; }
.pl-meta { display: flex; flex-direction: column; }
.pl-meta b { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.pl-meta span { color: var(--muted); font-size: .95rem; }
.pl-progress { height: 4px; border-radius: 999px; background: #1e293b; overflow: hidden; }
.pl-progress span { display: block; height: 100%; width: 0; background: var(--text); }
.pl-controls { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 40px); padding: 6px 0 4px; }
.dwell {
  position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: #101a2e; color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .35s var(--ease), background .3s;
}
.dwell.big { width: 84px; height: 84px; background: var(--text); color: var(--bg); }
.dwell:focus-visible { outline-offset: 6px; }
.dwell-ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); pointer-events: none; }
.dwell-ring circle { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 289.03; stroke-dashoffset: 289.03; transition: stroke-dashoffset .2s ease-out; }
.dwell.is-dwelling .dwell-ring circle { stroke-dashoffset: 0; transition: stroke-dashoffset .8s linear; }
.dwell.is-fired { animation: fired .45s var(--ease); }
@keyframes fired { 40% { transform: scale(.88); } 100% { transform: scale(1); } }
.pl-ico { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dwell.big .pl-ico { width: 30px; height: 30px; }
.ico-pause { display: none; }
.player.is-playing .ico-play, .replay.is-playing .ico-play { display: none; }
.player.is-playing .ico-pause, .replay.is-playing .ico-pause { display: block; }

/* interaction: attention-aware reader */
.reader { height: clamp(360px, 46vw, 460px); }
.rd-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #101a2e; z-index: 2; }
.rd-progress span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .4s var(--ease); }
.rd-view {
  position: absolute; inset: 0; overflow: hidden; padding: clamp(28px, 4vw, 44px);
  -webkit-mask-image: linear-gradient(transparent 0, #000 9%, #000 80%, transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 9%, #000 80%, transparent 100%);
}
.rd-text { transition: transform .9s var(--ease); }
.rd-text p { margin: 0 0 1em; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.55; letter-spacing: -.01em; }
.rd-text span { color: #334155; transition: color .35s; }
.rd-text span.is-read { color: #64748b; }
.rd-text span.is-focus { color: var(--text); }
.rd-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.rd-edge span { width: 46px; height: 4px; border-radius: 999px; background: #1e293b; overflow: hidden; position: relative; }
.rd-edge span::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* research: session replay */
.rp-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rp-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #0b1f4d 0%, #1d4ed8 58%, #67e8f9 72%, #0c1424 72.2%); }
.rp-sun { position: absolute; left: 66%; top: 30%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: #f8fafc; box-shadow: 0 0 60px 20px rgba(248, 250, 252, .35); }
.rp-hill { position: absolute; bottom: -18%; border-radius: 50% 50% 0 0; }
.rp-hill.h1 { left: -15%; width: 70%; height: 50%; background: #101a2e; }
.rp-hill.h2 { right: -20%; width: 75%; height: 42%; background: #0c1424; }
.rp-boat { position: absolute; left: 28%; top: 64%; width: 9%; height: 4%; background: #050914; clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); }
.rp-boat::before { content: ""; }
.rp-title { position: absolute; left: 6%; top: 8%; width: 36%; height: 7%; border-radius: 6px; background: rgba(248, 250, 252, .9); box-shadow: 0 2.4em 0 -0.6em rgba(248, 250, 252, .45); }
#rpCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rp-controls { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #0b1220; }
.rp-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; }
.rp-play svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rp-range { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: #1e293b; outline-offset: 6px; cursor: pointer; }
.rp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; }
.rp-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; }
.rp-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; min-width: 4.5ch; text-align: right; }

/* ---------------- footer ---------------- */

.footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 88px) 0 32px; color: var(--muted); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.footer .brand { color: var(--text); }
.foot-brand p { margin-top: 14px; max-width: 30ch; }
.foot-brand .nav-status { margin-top: 18px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 0 0 6px; font-size: .9rem; font-weight: 500; color: var(--text); }
.foot-col a { transition: color .2s; width: fit-content; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: clamp(48px, 7vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .word > span { opacity: 1; transform: none; filter: none; }
}
