:root {
  --ink: #0b1020;
  --ink-deep: #070b18;
  --blue: #2338ff;
  --paper: #eff0f8;
  --lime: #c8f542;
  --flare: #ff5a1f;
  --ink-soft: #454c66;
  --line-dark: rgba(11, 16, 32, 0.22);
  --line-light: rgba(255, 255, 255, 0.32);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(clamp(20px, 5vw, 64px), calc((100vw - 1312px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html.intro { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, canvas { display: block; max-width: 100%; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 5rem); max-width: 14ch; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 0.5em; }
h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 0.4em; }

:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 4px; }
.flare :focus-visible { outline-color: var(--ink); }

/* ---------- 3D layer, intro cover, lamp ---------- */
#balls { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
html.intro #balls { z-index: 110; }
#cover { display: none; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; background: var(--ink); }
html.js #cover { display: block; }
/* The lamp: one warm light above the top-left corner. Balls are lit and shadowed from the same point. */
.lamp {
  position: fixed; inset: 0; pointer-events: none; z-index: 35;
  background: radial-gradient(circle at 8% -22%, rgba(255, 240, 205, 0.5), rgba(255, 240, 205, 0) 62%);
  mix-blend-mode: soft-light;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: var(--ink);
  color: #fff;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-ball { width: 30px; height: 30px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; font-weight: 500; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--lime); color: var(--ink);
  font: 600 1.05rem/1 var(--body);
  padding: 16px 26px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.light .btn, .flare .btn { background: var(--ink); color: var(--lime); }
.btn-small { padding: 11px 18px; font-size: 0.95rem; }
.btn-big { font-size: 1.2rem; padding: 20px 34px; }
.text-link { font-weight: 600; text-underline-offset: 5px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 112px);
  background: var(--blue); color: #fff;
}
.territory { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.hero-copy, .hero-video { position: relative; z-index: 1; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; margin-top: 1.1em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 2rem; }

.hero-video { margin: 0; }
.video-frame { position: relative; border-radius: 18px; background: #000; box-shadow: 0 0 0 3px #fff, 0 0 0 14px var(--blue), 0 0 0 16px var(--line-light); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.hero-video figcaption { margin-top: 28px; font-size: 0.95rem; opacity: 0.9; }
.play {
  position: absolute; left: 20px; top: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--ink); font: 600 1rem/1 var(--body);
  transition: transform 0.15s ease;
}
.play:hover { transform: translateY(-2px); }
.play svg { width: 30px; height: 30px; fill: var(--ink); }
.play[hidden] { display: none; }

/* ---------- sections ---------- */
.light, .dark, .flare { padding: clamp(56px, 8vw, 112px) var(--gutter); position: relative; }
.wrap { position: relative; z-index: 1; }

.statement { max-width: 22ch; font-size: clamp(2.1rem, 5vw, 4rem); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.trio > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.trio p { color: var(--ink-soft); margin: 0; }

.belief { padding-bottom: clamp(72px, 8vw, 112px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split p { color: var(--ink-soft); }

.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 16px 0; border-top: 2px solid var(--ink); }
.facts > div:last-child { border-bottom: 2px solid var(--ink); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* dark proof band */
.dark { background: var(--ink); color: #fff; }
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 88px); align-items: start; }
.proof h2 { margin: 0; }
.proof p { font-size: 1.25rem; color: #e6e8f5; }

/* price */
.flare { background: var(--flare); color: var(--ink); overflow: hidden; }
.price { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 36px; }
.price h2 { font-size: clamp(3rem, 8vw, 6.5rem); }
.price .muted { font-size: 1rem; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
.form input, .form textarea {
  font: 400 1.05rem/1.4 var(--body); color: var(--ink);
  padding: 14px 16px; background: #fff;
  border: 2px solid var(--line-dark); border-radius: 12px;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form input[aria-invalid="true"] { border-color: #b3261e; }
.form .btn { justify-self: start; }
.form-note { margin: 0; min-height: 1.5em; font-size: 1rem; }
.small { font-size: 1rem; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 28px var(--gutter); background: var(--ink-deep); color: #fff; font-size: 0.95rem;
}
.footer p { margin: 0; }
.brand-foot { font-family: var(--display); font-weight: 800; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-video { order: -1; }
  .hero h1 { max-width: 16ch; }
  .trio, .split, .proof { grid-template-columns: 1fr; }
  .nav-link { display: none; }
  .video-frame { box-shadow: 0 0 0 3px #fff, 0 0 0 10px var(--blue), 0 0 0 12px var(--line-light); }
  .hero-video figcaption { margin-top: 22px; }
}
@media (max-width: 440px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .btn-big { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .play { transition: none; }
}
