/* ============================================================================
   Substrate × OVO "RedSun"  —  taste lane
   One continuous unlit field. One warm light source. Everything else gets
   out of the way.

   Reference language reproduced here:
   - single page-level ground colour, every section transparent over it
   - Mulish for display/headings/UI, Inter for body, zero letter-spacing
   - display weight 500 at large sizes (never 700)
   - line-height 1.2 at >=18px, 1.4 at 16px body
   - the sun deployed at five scales: page / card / component / cursor / glyph
   - glass cards at 30% fill with 5% hairlines, generous radii
   - sentence case throughout, uppercase only in the footer + console labels

   Translated: OVO's #f66f14 orange becomes Substrate's burnt amber #e08a2b,
   and the blue-black #060910 ground becomes a green-black #070d09 so the
   whole field reads earthy rather than tech-blue.
   ========================================================================= */

:root {
  /* ground */
  --ground:      #070d09;
  --ground-2:    #0b130e;
  --panel:       rgba(40, 52, 42, 0.30);
  --panel-solid: #0e1711;

  /* ink on dark */
  --cream:  #f2ece1;
  --muted:  #99a29a;
  --faint:  rgba(242, 236, 225, 0.55);

  /* the light */
  --signal:    #e08a2b;
  --signal-lt: #f9cf95;
  --signal-dp: #a55e14;
  --signal-rgb: 224, 138, 43;

  /* light-card zone (the one window the page opens) */
  --oat:        #f2ebdc;
  --oat-2:      #fbf6ec;
  --forest:     #10291d;
  --ink-muted:  #43584b;

  /* edges */
  --line:   rgba(242, 236, 225, 0.07);
  --line-2: rgba(242, 236, 225, 0.13);

  /* the sunrise that lives inside every primary control */
  --sunrise: radial-gradient(circle at 50% 100%, var(--signal-lt), rgba(224, 138, 43, 0) 79%);

  --wrap: 1200px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6, .display {
  font-family: Mulish, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

::selection { background: rgba(var(--signal-rgb), 0.32); color: var(--cream); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--signal); color: #0d1a10; padding: 12px 18px; border-radius: 8px;
  font-family: Mulish, sans-serif; font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--signal-lt); outline-offset: 3px; border-radius: 4px; }

/* --- very fine noise, only to stop the big gradients banding ------------- */
.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* ============================ boot curtain =============================== */
.boot {
  position: fixed; inset: 0; z-index: 200; background: var(--ground);
  display: grid; place-items: center;
}
.boot__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 40px 8px rgba(var(--signal-rgb), 0.55);
}
html.is-booted .boot { display: none; }

/* ============================== navigation ============================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: 16px;
}
.nav__pane {
  display: flex; align-items: center; gap: 24px;
  height: 66px; padding: 0 10px 0 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(11, 19, 14, 0);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
              box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
/* header transform on scroll: the bar contracts into a floating, near-opaque
   pane. No backdrop-filter on a fixed bar (it costs a repaint per frame). */
.nav.is-stuck .nav__pane { transform: translateY(-6px); }
.nav.is-stuck .nav__pane {
  height: 56px; padding: 0 10px 0 18px;
  background: rgba(11, 19, 14, 0.94);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(242, 236, 225, 0.05);
}

.brand {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: Mulish, sans-serif; font-weight: 700; font-size: 21px;
  letter-spacing: 0.01em; flex: none;
  transition: font-size 0.5s var(--ease);
}
.nav.is-stuck .brand { font-size: 19px; }
/* glyph scale of the motif: the filled amber terminal in the wordmark */
.brand__dot {
  width: 0.42em; height: 0.42em; border-radius: 999px;
  background: var(--signal); background-image: var(--sunrise);
  box-shadow: 0 0 14px 2px rgba(var(--signal-rgb), 0.5);
  align-self: center; margin-left: 2px;
}

.nav__links { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.nav__links a { font-size: 15px; line-height: 1.2; color: var(--muted); transition: color 0.3s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--cream); }

.nav__right { display: flex; align-items: center; gap: 18px; flex: none; }
.nav__mail { font-size: 15px; color: var(--muted); transition: color 0.3s var(--ease); }
.nav__mail:hover { color: var(--cream); }

.nav__burger {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  align-items: center; justify-content: center; cursor: pointer; border-radius: 10px;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--cream); position: relative; }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ground);
  padding: 110px 24px 40px; display: none; flex-direction: column;
}
.menu.is-open { display: flex; }
.menu a {
  font-family: Mulish, sans-serif; font-size: 30px; font-weight: 500; line-height: 1.2;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: 28px; justify-content: center; }

/* ================================ buttons =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: Mulish, sans-serif; font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.45s var(--ease),
              background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* signature: a miniature sunrise glowing up from the bottom edge of the pill */
.btn--solid {
  color: #0d1a10;
  background-color: var(--signal);
  background-image: var(--sunrise);
  box-shadow: 0 0 0 0 rgba(var(--signal-rgb), 0), 0 8px 26px rgba(var(--signal-rgb), 0.24);
}
.btn--solid:hover {
  box-shadow: 0 0 32px 2px rgba(var(--signal-rgb), 0.45), 0 8px 26px rgba(var(--signal-rgb), 0.3);
}
.btn--ghost {
  color: var(--cream);
  background-color: rgba(40, 52, 42, 0.4);
  background-image: radial-gradient(circle at 50% 100%, rgba(var(--signal-rgb), 0.22), rgba(var(--signal-rgb), 0) 79%);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: rgba(var(--signal-rgb), 0.5); background-color: rgba(40, 52, 42, 0.6); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: Mulish, sans-serif; font-weight: 600; font-size: 15px; color: var(--cream);
}
.tlink svg { transition: transform 0.35s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }
.tlink:hover { color: var(--signal-lt); }

/* ================================= hero ================================= */
.hero {
  position: relative;
  padding: 150px 0 150px;
  overflow: hidden;
  isolation: isolate;
}

/* --- god rays: three white shafts on a -30deg rake, exactly as the
       reference draws them. Almost invisible; entirely responsible for the
       hero not reading flat. --------------------------------------------- */
.rays {
  position: absolute; top: -680px; left: -420px;
  width: 2120px; height: 2232px;
  transform: rotate(-30deg);
  pointer-events: none; z-index: 0;
  will-change: transform;
}
.rays i {
  position: absolute; display: block;
  background: linear-gradient(#fff 5%, transparent 67%);
  opacity: 0.14;
}
.rays i:nth-child(1) { width: 470px; height: 705px; left: 520px; top: 300px; filter: blur(26px); opacity: 0.17; }
.rays i:nth-child(2) { width: 566px; height: 800px; left: 1010px; top: 180px; filter: blur(42px); opacity: 0.13; }
.rays i:nth-child(3) { width: 420px; height: 618px; left: 1600px; top: 380px; filter: blur(34px); opacity: 0.1; }

/* --- the sun: five stacked layers, no bitmap ---------------------------- */
.sun {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; margin-left: -572px; top: 555px;
  width: 1144px; height: 1144px;
  will-change: transform;
}
.sun__rise { position: absolute; inset: 0; will-change: transform, opacity; }
.sun__halo {             /* cold halo behind the disc, separates it from the ground */
  position: absolute; left: -220px; top: -420px; width: 1584px; height: 900px;
  background: radial-gradient(ellipse 48% 42% at 50% 62%, rgba(242, 238, 226, 0.30), rgba(242, 238, 226, 0) 74%);
  z-index: -1;
}
.sun__bloom {              /* atmospheric amber bloom above the rim */
  position: absolute; left: -320px; top: -620px; width: 1784px; height: 1200px;
  background: radial-gradient(ellipse 50% 42% at 50% 62%, rgba(var(--signal-rgb), 0.5), rgba(var(--signal-rgb), 0) 70%);
  will-change: transform;
}
.sun__rotor {              /* the body. rotates on scroll. */
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #0c0703 0%, #130a04 50%, #211005 64%, #3a1c06 73%, #6b390c 80%,
      #a75d13 86%, #d8831f 90.5%, #f4a943 94%, #ffd9a2 96.6%,
      #fff4e2 98.3%, rgba(255, 244, 226, 0) 99.6%);
  will-change: transform;
}
.sun__rotor::before {      /* granulation, so the rotation is legible */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(0, 0, 0, 0.55) 0deg 7.5deg, rgba(255, 200, 130, 0.09) 7.5deg 16.5deg);
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 74%, #000 89%, transparent 95%);
  mask-image: radial-gradient(circle, transparent 58%, #000 74%, #000 89%, transparent 95%);
}
.sun__rotor::after {       /* two soft cool spots on the surface */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 24%, rgba(0, 0, 0, 0.42), transparent 19%),
    radial-gradient(circle at 62% 17%, rgba(0, 0, 0, 0.3), transparent 13%),
    radial-gradient(circle at 74% 46%, rgba(0, 0, 0, 0.3), transparent 16%);
}
.sun__rim {                /* the crest, lit */
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 243, 222, 0.92);
  box-shadow: 0 0 40px 6px rgba(255, 196, 120, 0.6), inset 0 0 34px 3px rgba(255, 170, 80, 0.5);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 20%, rgba(0, 0, 0, 0.08) 40%, transparent 54%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 20%, rgba(0, 0, 0, 0.08) 40%, transparent 54%);
}
.sun__lighting {           /* fixed lighting, does not rotate with the body */
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 58% 15% at 50% 1%, rgba(255, 244, 222, 0.34), rgba(255, 244, 222, 0) 72%),
    radial-gradient(ellipse 66% 26% at 50% 0%, rgba(255, 186, 92, 0.55), rgba(255, 186, 92, 0) 74%),
    linear-gradient(to top, var(--ground) 0%, rgba(7, 13, 9, 0.97) 14%, rgba(7, 13, 9, 0.78) 26%, rgba(7, 13, 9, 0.34) 40%, rgba(7, 13, 9, 0) 54%);
}
.sun__heat {               /* the core's heat, blurred cheaply in CSS */
  position: absolute; left: 114px; top: -70px; width: 915px; height: 599px;
  border-radius: 1000px;
  background: radial-gradient(circle, var(--signal) 36%, transparent 62%);
  filter: blur(16px);
  opacity: 0.46;
}

.hero__content { position: relative; z-index: 2; text-align: center; will-change: transform, opacity; }

/* two-tone split pill */
.flag {
  display: inline-flex; align-items: center; gap: 0;
  border-radius: 999px; padding: 3px; background: rgba(40, 52, 42, 0.5);
  border: 1px solid var(--line-2); font-size: 14px; line-height: 1;
}
.flag__a {
  background: var(--signal); background-image: var(--sunrise); color: #0d1a10;
  font-family: Mulish, sans-serif; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.flag__b { padding: 7px 13px; color: var(--cream); display: inline-flex; align-items: center; gap: 6px; }

.hero h1 {
  margin: 26px auto 0; max-width: 21ch;
  font-size: clamp(38px, 5.1vw, 65px); line-height: 1.2; font-weight: 500;
}
.hero__lead {
  margin: 22px auto 0; max-width: 640px;
  font-size: 16px; line-height: 1.4; color: var(--muted);
}
.hero__acts { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* --- the console standing on the horizon ------------------------------- */
.hero__stage { position: relative; z-index: 2; margin-top: 330px; perspective: 1500px; }
.console-tilt { transform-origin: 50% 0%; will-change: transform; }
.console {
  position: relative;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 32, 24, 0.94), rgba(9, 15, 11, 0.97));
  box-shadow: 0 -1px 0 rgba(249, 207, 149, 0.16) inset, 0 50px 130px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 0%;
  will-change: transform;
}
.console__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}
.console__title { font-family: Mulish, sans-serif; font-weight: 600; font-size: 15px; }
.console__sim {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--signal-lt); border: 1px solid rgba(var(--signal-rgb), 0.4);
  padding: 5px 10px; border-radius: 999px;
}
.console__sim b { width: 5px; height: 5px; border-radius: 999px; background: var(--signal); }
.console__clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.console__grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.console__left { padding: 24px 20px 22px; border-right: 1px solid var(--line); }
.console__right { padding: 24px 20px 22px; }

.klabel {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}

.stat { padding: 14px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat__v {
  font-family: Mulish, sans-serif; font-weight: 500; font-size: 34px; line-height: 1.2;
  color: var(--signal-lt); font-variant-numeric: tabular-nums;
}
.stat__l { margin-top: 4px; font-size: 14px; color: var(--cream); }
.stat__f { margin-top: 6px; }
.chip {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px;
}

.meter { margin-top: 12px; }
.meter__row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.meter__row span:first-child { width: 74px; color: var(--muted); }
.meter__track { flex: 1; height: 3px; background: rgba(242, 236, 225, 0.08); border-radius: 999px; overflow: hidden; }
.meter__fill { height: 100%; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left center; transition: transform 0.9s var(--ease); }
.meter__row.is-done .meter__fill { background: var(--signal-dp); }
.meter__pct { width: 38px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.feed { margin-top: 12px; height: 196px; overflow: hidden; position: relative; }
.feed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(rgba(9, 15, 11, 0), #090f0b 88%); pointer-events: none;
}
.feed li {
  display: flex; gap: 10px; align-items: baseline; padding: 6px 0;
  font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(242, 236, 225, 0.04);
}
.feed li b { color: var(--cream); font-weight: 500; font-variant-numeric: tabular-nums; }
.feed li i { font-style: normal; margin-left: auto; color: rgba(242, 236, 225, 0.35); font-size: 12px; }
.feed ol { list-style: none; margin: 0; padding: 0; }

.console__foot {
  padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* =============================== marquee ================================ */
.strip { padding: 26px 0 8px; position: relative; z-index: 2; }
.strip__lead { text-align: center; font-size: 15px; color: var(--muted); }
.marquee { margin-top: 22px; overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ground), rgba(7, 13, 9, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ground), rgba(7, 13, 9, 0)); }
.marquee__track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.marquee__track > div { display: flex; }
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 34px; height: 44px; opacity: 0.7; white-space: nowrap;
  font-family: Mulish, sans-serif; font-weight: 600; font-size: 15px; color: var(--cream);
}
.mark svg { flex: none; color: var(--signal); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ================================ layout ================================ */
.section { position: relative; z-index: 2; padding: 96px 0; }
.section--tight { padding-top: 40px; }
.head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.head h2 { font-size: clamp(30px, 3.5vw, 47px); line-height: 1.2; }
.head p { margin: 18px auto 0; max-width: 62ch; font-size: 16px; line-height: 1.4; color: var(--muted); }

/* =============================== bento ================================== */
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a b d"
    "c c d";
}
.bento > :nth-child(1) { grid-area: a; }
.bento > :nth-child(2) { grid-area: b; }
.bento > :nth-child(3) { grid-area: c; }
.bento > :nth-child(4) { grid-area: d; }

.card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--panel);
  min-height: 300px; padding: 28px;
  transition: border-color 0.7s var(--ease);
}
/* the light that turns on inside the card. nothing moves. 700ms. */
.card__light {
  position: absolute; inset: 0; z-index: -1; opacity: 0;
  transition: opacity 0.7s var(--ease);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--signal-rgb), 0.20), rgba(var(--signal-rgb), 0) 62%),
    radial-gradient(70% 60% at 50% 108%, rgba(var(--signal-rgb), 0.14), rgba(var(--signal-rgb), 0) 70%);
}
.card:hover .card__light, .card:focus-within .card__light { opacity: 1; }
.card:hover { border-color: rgba(var(--signal-rgb), 0.26); }

.card h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
.card p { margin: 10px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 34ch; }
.card__k { font-size: 13px; color: var(--signal-lt); margin-bottom: 12px; }

/* cropped instrument fragments that bleed out of their own bounds */
.frag { position: absolute; pointer-events: none; }
.frag--rows { right: -60px; bottom: -18px; width: 400px; display: grid; gap: 8px; }
.frag--rows div {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border-radius: 10px; background: rgba(242, 236, 225, 0.05); font-size: 13px; color: var(--muted);
  border: 1px solid var(--line);
}
.frag--rows div:first-child {
  background: var(--signal); background-image: var(--sunrise); color: #0d1a10; border-color: transparent;
  font-weight: 600;
}
.frag--rows i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.7; flex: none; }

.frag--tile {
  right: -46px; bottom: -30px; width: 330px; padding: 16px 18px;
  border-radius: 14px; background: rgba(242, 236, 225, 0.045); border: 1px solid var(--line);
}
.frag--tile .klabel { font-size: 10px; }
.frag--tile b {
  display: block; margin-top: 6px; font-family: Mulish, sans-serif; font-weight: 500; font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.frag--tile svg { margin-top: 8px; width: 100%; height: 42px; color: var(--signal); }

.frag--graph { right: -30px; top: 62px; width: 420px; height: 250px; color: var(--signal); opacity: 0.9; }
.frag--graph svg { width: 100%; height: 100%; }

/* card scale of the motif: the ray fan */
.fan-wrap { position: absolute; left: 50%; top: -8px; width: 320px; height: 300px; transform: translateX(-50%); pointer-events: none; }
.fan {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 158deg at 50% 100%,
    var(--signal) 0deg 2.6deg, rgba(var(--signal-rgb), 0) 2.6deg 6.2deg);
  clip-path: polygon(50% 100%, 6% 0%, 94% 0%);
  -webkit-mask-image: linear-gradient(to top, #000 6%, rgba(0, 0, 0, 0.85) 46%, transparent 100%);
  mask-image: linear-gradient(to top, #000 6%, rgba(0, 0, 0, 0.85) 46%, transparent 100%);
  opacity: 0.9;
}
.fan-glow {
  position: absolute; left: 50%; top: -40px; width: 420px; height: 420px; margin-left: -210px;
  background: radial-gradient(circle at 50% 70%, rgba(var(--signal-rgb), 0.3), rgba(var(--signal-rgb), 0) 62%);
}
.fan-tile {
  position: absolute; left: 50%; bottom: -20px; margin-left: -64px;
  width: 128px; height: 128px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(52, 66, 54, 0.95), rgba(18, 27, 20, 0.98));
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.fan-tile svg { color: var(--cream); }
.card--tall { min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; }
.card--tall .fan-wrap { top: -10px; }

/* ============================ alternating rows ========================== */
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  margin-top: 40px;
}
.row + .row { margin-top: 120px; }
.row--flip .row__copy { order: 2; }
.row h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; max-width: 16ch; }
.row p { margin: 20px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 46ch; }
.row .tlink { margin-top: 26px; }
.checks { list-style: none; margin: 34px 0 0; padding: 0; }
.checks li { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding: 9px 0; font-size: 16px; line-height: 1.35; }
.checks span {
  flex: none; width: 22px; height: 22px; border-radius: 6px; margin-top: 1px;
  background: var(--signal); background-image: var(--sunrise);
  display: grid; place-items: center; color: #0d1a10;
}

.scene {
  position: relative; height: 560px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, rgba(36, 46, 38, 0.6), rgba(8, 14, 10, 0.95));
  will-change: transform, opacity;
}

/* scene 1: the sun seen as orbital rings */
.rings { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: 720px; height: 720px; }
.rings i {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%);
  border: 1.5px solid rgba(var(--signal-rgb), 0.5);
}
.rings i:nth-child(1) { width: 700px; height: 700px; opacity: 0.16; }
.rings i:nth-child(2) { width: 540px; height: 540px; opacity: 0.28; }
.rings i:nth-child(3) { width: 400px; height: 400px; opacity: 0.45; }
.rings i:nth-child(4) { width: 276px; height: 276px; opacity: 0.7; border-width: 2px; }
.rings i:nth-child(5) {
  width: 168px; height: 168px; border: 0;
  background: radial-gradient(circle, var(--signal-lt) 0%, var(--signal) 42%, rgba(var(--signal-rgb), 0) 72%);
  filter: blur(6px);
}
.rings-mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 14, 10, 0.95) 4%, rgba(8, 14, 10, 0) 52%);
}
.rings-plate {
  position: absolute; left: 50%; top: 50%; margin: -46px 0 0 -46px; width: 92px; height: 92px;
  border-radius: 24px; background: rgba(12, 20, 14, 0.9); border: 1px solid rgba(var(--signal-rgb), 0.4);
  display: grid; place-items: center; color: var(--signal-lt);
  box-shadow: 0 0 60px rgba(var(--signal-rgb), 0.35);
}

/* scene 2: a stack of cards tilted in 3d, one of them lit */
.stack { position: absolute; inset: 0; perspective: 1100px; display: grid; place-items: center; }
.stack__inner { transform-style: preserve-3d; transform: rotateX(54deg) rotateZ(-36deg); }
.stack__c {
  width: 360px; height: 74px; border-radius: 12px; margin-bottom: 20px;
  background: rgba(46, 58, 48, 0.7); border: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  font-size: 14px; color: var(--muted);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}
.stack__c b { width: 26px; height: 26px; border-radius: 8px; background: rgba(242, 236, 225, 0.12); flex: none; }
.stack__c--lit {
  background: var(--signal); background-image: var(--sunrise); color: #0d1a10; border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0 60px 6px rgba(var(--signal-rgb), 0.45), 0 24px 40px rgba(0, 0, 0, 0.5);
}
.stack__c--lit b { background: rgba(13, 26, 16, 0.35); }

/* =============================== plans ================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; perspective: 1200px; }
.plan {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
  padding: 30px 26px; will-change: transform, opacity;
  transition: border-color 0.7s var(--ease);
}
.plan:hover { border-color: rgba(var(--signal-rgb), 0.4); }
.plan:hover .card__light, .plan:focus-within .card__light { opacity: 1; }
.plan--lead {
  border-color: rgba(var(--signal-rgb), 0.55);
  padding: 44px 30px;
  background: linear-gradient(180deg, rgba(48, 60, 46, 0.4), rgba(24, 34, 26, 0.35));
}
.plan__n {
  font-family: Mulish, sans-serif; font-weight: 500; font-size: 40px; line-height: 1.2;
  color: var(--signal-lt); font-variant-numeric: tabular-nums;
}
.plan--lead .plan__n { font-size: 52px; }
.plan__name { margin-top: 6px; font-family: Mulish, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.2; }
.plan__d { margin: 12px 0 24px; font-size: 16px; line-height: 1.4; color: var(--muted); min-height: 90px; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 18px; }
.plan .checks { margin-top: 0; }
.plan .checks li { min-height: 34px; padding: 6px 0; font-size: 15px; }
.plan .checks span { width: 20px; height: 20px; }
.plan .tlink { margin-top: 2px; }

/* ======================== evidence (the light zone) ===================== */
.ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.evc {
  position: relative; border-radius: 14px; overflow: hidden;
  min-height: 480px; padding: 28px 26px;
  background: var(--oat); color: var(--forest);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.evc:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.evc--img { background: var(--oat-2) center/cover no-repeat; }
.evc > * { position: relative; }
.evc .evc__scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--oat) 50%, rgba(242, 235, 220, 0.62) 76%, rgba(242, 235, 220, 0.18) 100%); }
.evc__go {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 9px;
  background: var(--forest); color: var(--oat); display: grid; place-items: center; z-index: 2;
  transition: transform 0.4s var(--ease);
}
.evc:hover .evc__go { transform: translate(3px, -3px); }
.evc__who { padding-right: 56px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); }
.evc__t { margin-top: 14px; font-family: Mulish, sans-serif; font-weight: 600; font-size: 23px; line-height: 1.22; max-width: 19ch; }
.evc__b { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.evc__m { margin-top: auto; padding-top: 24px; }
.evc__v { font-family: Mulish, sans-serif; font-weight: 600; font-size: 40px; line-height: 1.1; color: var(--forest); font-variant-numeric: tabular-nums; }
.evc__l { margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.evc__f {
  display: inline-block; margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-muted); border: 1px solid rgba(16, 41, 29, 0.28); border-radius: 999px; padding: 3px 9px;
}

.honesty {
  margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  max-width: 820px; padding: 22px 26px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(40, 52, 42, 0.22);
}
.honesty b { font-family: Mulish, sans-serif; font-weight: 600; font-size: 16px; white-space: nowrap; }
.honesty p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }

/* ================================= CTA ================================== */
.cta { position: relative; z-index: 2; padding: 40px 0 96px; }
.cta__panel {
  position: relative; overflow: hidden; border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 34, 26, 0.75), rgba(10, 17, 12, 0.9));
  display: grid; grid-template-columns: 1.14fr 0.86fr; align-items: center;
  min-height: 460px; will-change: transform, opacity;
}
.cta__copy { padding: 64px 20px 64px 60px; position: relative; z-index: 2; }
.cta__panel h2 { font-size: clamp(27px, 2.8vw, 39px); line-height: 1.2; max-width: 17ch; }
.cta__panel p { margin: 18px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 46ch; }
.cta__art { position: relative; align-self: stretch; overflow: hidden; }
.cta__art img {
  position: absolute; left: -5%; top: -6%;
  width: 122%; max-width: none; height: 112%;
  object-fit: cover; object-position: 62% 46%; opacity: 0.92;
}
.cta__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 17, 12, 1) 0%, rgba(10, 17, 12, 0.72) 16%, rgba(10, 17, 12, 0.28) 38%, rgba(10, 17, 12, 0) 62%);
}
/* the sun setting behind the product: a bloom along the panel's bottom edge */
.cta__set {
  position: absolute; left: 50%; bottom: -420px; margin-left: -820px; width: 1640px; height: 840px;
  background: radial-gradient(ellipse 44% 44% at 50% 50%, rgba(var(--signal-rgb), 0.34), rgba(var(--signal-rgb), 0) 68%);
  pointer-events: none; z-index: 3;
}

.form { margin-top: 30px; max-width: 460px; }
.form label { display: block; font-size: 14px; color: var(--cream); margin-bottom: 8px; }
.form__field { display: flex; gap: 8px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 14, 10, 0.7); }
.form input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--cream);
  font: 400 15px/1.2 Inter, sans-serif; padding: 0 14px; border-radius: 999px;
}
.form input::placeholder { color: rgba(242, 236, 225, 0.5); }
.form input:focus { outline: none; }
.form__field:focus-within { border-color: rgba(var(--signal-rgb), 0.6); }
.form__help { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.form__err { margin: 10px 0 0; font-size: 13px; color: var(--signal-lt); display: none; }
.form.is-err .form__err { display: block; }
.form.is-err .form__field { border-color: var(--signal); }
.form__ok { display: none; margin-top: 30px; font-size: 16px; color: var(--cream); }
.form.is-ok .form__ok { display: flex; align-items: center; gap: 10px; }
.form.is-ok .form__field, .form.is-ok .form__help, .form.is-ok label { display: none; }

/* ================================ footer ================================ */
.foot { position: relative; z-index: 2; padding: 80px 0 30px; border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: 45% 1fr; gap: 60px; }
.foot h3 { margin-top: 24px; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.18; font-weight: 400; max-width: 16ch; }
.foot__b { margin: 22px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 46ch; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot__cols h4 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.2; }
.foot__cols ul { list-style: none; margin: 18px 0 0; padding: 0; }
.foot__cols li { margin-bottom: 12px; }
.foot__cols a { font-size: 15px; line-height: 1.2; color: var(--faint); transition: color 0.3s var(--ease); }
.foot__cols a:hover { color: var(--cream); }
.foot__bar {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}

/* ============================ cursor light ============================== */
.cursor { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.cursor i {
  position: absolute; left: 0; top: 0; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 200px;
  background: radial-gradient(circle, rgba(var(--signal-rgb), 0.18), rgba(var(--signal-rgb), 0) 70%);
  filter: blur(18px);
  will-change: transform;
}

/* ============================== responsive ============================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__mail { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__pane { justify-content: space-between; }
  .nav__right { margin-left: auto; }
  .row { grid-template-columns: 1fr; gap: 44px; }
  .row--flip .row__copy { order: 0; }
  .scene { height: 420px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c c" "d d"; }
  .card--tall { min-height: 460px; }
  .plans { grid-template-columns: 1fr; }
  .plan--lead { padding: 34px 26px; }
  .ev { grid-template-columns: 1fr 1fr; }
  .cta__panel { grid-template-columns: minmax(0, 1fr); }
  .cta__copy { min-width: 0; max-width: 100%; padding: 48px 32px; }
  .cta__art { height: 260px; order: -1; }
  .cta__art img { width: 100%; }
  .cta__art::after { background: linear-gradient(0deg, rgba(10, 17, 12, 0.95), rgba(10, 17, 12, 0) 60%); }
  .foot__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 120px 0 90px; }
  /* the reference's mobile hero is hard left, with full-width stacked buttons */
  .hero__content { text-align: left; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); max-width: none; margin: 22px 0 0; }
  /* mobile nav is wordmark + menu, as the reference's is */
  .nav__right > .btn { display: none; }
  .nav__pane { padding-right: 0; }
  .console__bar { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; }
  .console__title { font-size: 14px; }
  .console__sim { margin-left: auto; font-size: 10px; padding: 4px 8px; }
  .console__clock { font-size: 12px; }
  .console__left, .console__right { padding: 20px 16px 18px; }
  .feed li i { display: none; }
  .feed li { font-size: 12.5px; }
  .console__foot { padding: 12px 16px; font-size: 12.5px; }
  .hero__lead { font-size: 15px; max-width: 34ch; margin: 22px 0 0; }
  .hero__acts { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__acts .btn { width: 100%; }
  .hero__acts .btn { height: 52px; font-size: 16px; }
  .flag { font-size: 13px; }
  .sun { width: 720px; height: 720px; margin-left: -360px; top: 545px; }
  .sun__halo { left: -140px; top: -270px; width: 1000px; height: 580px; }
  .sun__bloom { left: -200px; top: -390px; width: 1120px; height: 760px; }
  .sun__heat { left: 72px; top: -44px; width: 576px; height: 377px; }
  .rays { top: -520px; left: -600px; transform: rotate(-30deg) scale(0.8); }
  .hero__stage { margin-top: 170px; }
  .console__grid { grid-template-columns: 1fr; }
  .console__left { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat__v { font-size: 28px; }
  .feed { height: 150px; }
  .section { padding: 68px 0; }
  .head { margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; gap: 16px; }
  .card { min-height: 280px; padding: 24px; }
  /* the ray fan gets its own reserved band at the top; text starts below it */
  .card--tall { min-height: 450px; }
  .card--tall .fan-wrap { width: 268px; height: 250px; top: -6px; }
  .card--tall .fan-tile { width: 108px; height: 108px; margin-left: -54px; border-radius: 26px; }
  .card--tall .fan-tile svg { width: 38px; height: 38px; }
  .frag--rows { width: 320px; right: -50px; }
  .frag--tile { width: 280px; right: -40px; }
  .frag--graph { width: 320px; height: 190px; right: -46px; top: auto; bottom: -22px; opacity: 0.5; }
  .scene { height: 320px; }
  .rings { width: 460px; height: 460px; }
  .rings i:nth-child(1) { width: 440px; height: 440px; }
  .rings i:nth-child(2) { width: 340px; height: 340px; }
  .rings i:nth-child(3) { width: 250px; height: 250px; }
  .rings i:nth-child(4) { width: 170px; height: 170px; }
  .rings i:nth-child(5) { width: 110px; height: 110px; }
  .stack__c { width: 250px; height: 58px; }
  .ev { grid-template-columns: 1fr; }
  .evc { min-height: 400px; }
  .honesty { grid-template-columns: 1fr; gap: 10px; }
  .cta { padding: 20px 0 68px; }
  .cta__copy { padding: 40px 22px 44px; }
  .cta__panel h2, .cta__panel p, .form { max-width: 100%; }
  /* the fused desktop pill splits into a stacked field + full-width button */
  .form__field {
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 0; border: 0; background: none; border-radius: 0;
  }
  .form input {
    width: 100%; height: 50px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(8, 14, 10, 0.7);
    font-size: 16px;
  }
  .form__field:focus-within { border-color: transparent; }
  .form input:focus { border-color: rgba(var(--signal-rgb), 0.6); }
  .form.is-err .form__field { border-color: transparent; }
  .form.is-err .form__field input { border-color: var(--signal); }
  .form__field .btn { width: 100%; height: 50px; font-size: 16px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .marquee::before, .marquee::after { width: 60px; }
  .mark { padding: 0 20px; font-size: 14px; }
}

/* ========================= reduced motion =============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
  .cursor { display: none; }
}
