/* ════════════════════════════════════════════════════════════
   SIGMA V4 — BASE · tokens, reset, utils, nav, hero
   Direction: terminal-editorial. Near-black field, hairline
   grid, mono microlabels in [brackets], huge grotesk display,
   one electric accent. Floating data chips. Bracket-cornered
   media frames.
   ═══════════════════════════════════════════════════════════ */

:root {
  --h: 135;
  --accent:      oklch(86% 0.26 var(--h));
  --accent-2:    oklch(73% 0.22 var(--h));
  --accent-dim:  oklch(27% 0.08 var(--h));
  --accent-glow: oklch(86% 0.26 var(--h) / .15);
  --accent-line: oklch(86% 0.26 var(--h) / .32);

  --bg:        #050608;
  --bg2:       #090b0e;
  --surface:   #0e1115;
  --surface2:  #14181e;
  --surface3:  #1b2028;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --border3:   rgba(255,255,255,0.20);
  --hairline:  rgba(255,255,255,0.055);

  --text:      #eceff5;
  --text2:     #aeb6c4;
  --muted:     #677082;
  --dim:       #343a47;

  --blue:      #6aa7ff;
  --blue-dim:  #0e1a2d;
  --amber:     #f5a623;
  --amber-dim: #2a1c06;
  --red:       #ff6a6a;
  --red-dim:   #2b0e10;

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --head: 'Urbanist', system-ui, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --pad: 110px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
[data-density="compact"]   { --pad: 80px; }
[data-density="spacious"]  { --pad: 150px; }

[data-bg="warm"]    { --bg: #0a0807; --bg2: #0e0c09; --surface: #151210; --surface2: #1c1814; }
[data-bg="neutral"] { --bg: #070708; --bg2: #0b0b0d; --surface: #121215; --surface2: #18181d; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--head);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 5px; border: 2px solid var(--bg); }

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .rv-in { opacity: 1; transform: none; }
}

/* ─── UTILS ─────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }
.section { padding: var(--pad) 0; position: relative; }
.section-sm { padding: calc(var(--pad) * 0.7) 0; position: relative; }

/* mono microlabel in [ brackets ] */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500;
}
.eyebrow::before { content: '['; color: var(--accent); font-weight: 600; letter-spacing: 0; }
.eyebrow::after  { content: ']'; color: var(--accent); font-weight: 600; letter-spacing: 0; }
.eyebrow--center { display: inline-flex; }

/* editorial section head: label row + huge title left, sub pinned right */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "eye eye" "title sub";
  align-items: end;
  column-gap: 64px;
  row-gap: 26px;
  text-align: left;
  margin-bottom: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.section-head::before, .section-head::after {
  content: '+';
  position: absolute; top: -11px;
  font-family: var(--mono); font-size: 13px;
  color: var(--dim); line-height: 1;
}
.section-head::before { left: -3px; }
.section-head::after { right: -3px; }
.section-head .eyebrow { grid-area: eye; justify-self: start; }

h2.section-title {
  grid-area: title;
  font-family: var(--head);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.02;
  margin-top: 0;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub {
  grid-area: sub;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 460px;
  margin-top: 0;
  justify-self: end;
  text-wrap: pretty;
}

/* inline highlights */
.hl {
  color: var(--accent); font-weight: 600; font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--accent-glow) 62%);
  padding: 0 2px;
}
.hl-strong { color: var(--accent); font-weight: 700; font-style: normal; }
.hl-mark { background: var(--accent); color: #000; font-weight: 600; padding: 1px 7px; border-radius: 4px; }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #000; text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .02em;
  padding: 16px 28px;
  border-radius: 100px;
  position: relative;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px var(--accent-glow), 0 0 0 5px oklch(86% .26 var(--h) / .12);
}
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text2); text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 16px 26px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { color: #fff; border-color: var(--border3); background: rgba(255,255,255,.03); }

/* ─── NAV — floating pill ───────────────────────────────── */
nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  pointer-events: none;
  transition: top .3s var(--ease);
}
.nav-inner {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 0 22px;
  display: flex; align-items: center; gap: 36px;
  height: 60px;
  width: calc(100% - 40px);
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(7,8,11,.6);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
nav.scrolled .nav-inner {
  background: rgba(7,8,11,.82);
  border-color: var(--border2);
  box-shadow: 0 16px 50px -20px rgba(0,0,0,.8);
}
.nav-logo {
  font-family: var(--head);
  font-size: 16px; font-weight: 700;
  color: #fff; text-decoration: none;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 11px;
}
.logo-mark {
  display: block;
  width: 26px; height: 26px;
  box-shadow: 0 0 24px var(--accent-glow);
  border-radius: 7px;
}
.nav-links { display: flex; gap: 6px; list-style: none; margin-left: auto; }
.nav-links a {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text2); text-decoration: none;
  padding: 8px 13px; border-radius: 100px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -6px var(--accent-glow); }

/* ─── HERO ──────────────────────────────────────────────── */
.hero { padding: 150px 0 0; position: relative; overflow: clip; }

/* editorial frame label row, like a contact sheet */
.hero-toplabel {
  max-width: 1240px; margin: 0 auto 54px;
  padding: 0 32px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-toplabel span { white-space: nowrap; }
.hero-toplabel .htl-r { color: var(--dim); }

.hero-stage { position: relative; }

.hero-grid {
  position: absolute; inset: -150px 0 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px);
  background-size: calc(100% / 4) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 620px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-inner { position: relative; }
.hero-top { text-align: center; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 42px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-family: var(--head);
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 34px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero h1 .strike {
  color: var(--muted);
  position: relative;
  font-weight: 500;
}
.hero h1 .strike::after {
  content: ''; position: absolute;
  left: -2px; right: -2px; top: 54%;
  height: clamp(3px, .07em, 7px);
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(-2deg);
  transform-origin: left center;
  animation: strike-in 1s var(--ease) .9s backwards;
}
@keyframes strike-in { from { scale: 0 1; } to { scale: 1 1; } }

/* staged entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero h1, .hero-sub, .hero-actions { animation: hero-up .9s var(--ease) backwards; }
  .hero h1 { animation-delay: .12s; }
  .hero-sub { animation-delay: .24s; }
  .hero-actions { animation-delay: .34s; }
}
@keyframes hero-up { from { opacity: 0; transform: translateY(30px); } }

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 40px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 84px;
}

/* ─── FLOATING DATA CHIPS (ref: SLOT) ───────────────────── */
.chip {
  --px: 0px; --py: 0px;
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em;
  color: var(--text);
  background: rgba(16,19,24,.82);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 10px 17px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -14px rgba(0,0,0,.9);
  translate: var(--px) var(--py);
  pointer-events: none;
  white-space: nowrap;
}
.chip b { color: var(--accent); font-weight: 700; }
.chip .chip-ic {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.chip--red .chip-ic { background: var(--red); }
.chip--blue .chip-ic { background: var(--blue); }
.chip--amber .chip-ic { background: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .chip { animation: chip-pop .7s var(--ease) backwards; }
  .chip-float { animation: chip-bob 5.2s ease-in-out infinite; }
  .chip:nth-of-type(odd) .chip-float { animation-duration: 6.4s; animation-delay: -2s; }
}
@keyframes chip-pop { from { opacity: 0; transform: scale(.6) translateY(14px); } }
@keyframes chip-bob {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(5px); }
}
.chip-float { display: inline-flex; align-items: center; gap: 9px; }

/* chip placement around the headline — hugging the edges */
.chip-1 { top: 3%;   left: 7%;  animation-delay: .8s; }
.chip-2 { top: 30%;  right: 3.5%; animation-delay: .95s; }
.chip-3 { top: 62%;  left: 4%;  animation-delay: 1.1s; }
.chip-4 { top: 78%;  right: 9%; animation-delay: 1.25s; }
.chip-5 { top: -4%;  right: 23%; animation-delay: 1.4s; }
@media (max-width: 1240px) {
  .chip-2, .chip-5 { display: none; }
  .chip-3 { left: 2%; }
}

/* ─── DEMO VIDEO — bracket-cornered frame (ref 2) ───────── */
.demo-wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 26px;
  position: relative;
}
.demo-shell {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
}
.demo-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.demo-chrome > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.demo-chrome .dc-dots { display: flex; gap: 6px; }
.demo-chrome .dc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface3); display: block; }
.demo-chrome .dc-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600;
}
.demo-chrome .dc-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.demo-video { display: block; width: 100%; height: auto; }

/* corner brackets sitting outside the shell */
.bk {
  position: absolute; width: 22px; height: 22px;
  border: 0 solid var(--border3);
  pointer-events: none;
}
.bk-tl { top: -9px; left: 21px; border-top-width: 1.5px; border-left-width: 1.5px; }
.bk-tr { top: -9px; right: 21px; border-top-width: 1.5px; border-right-width: 1.5px; }
.bk-bl { bottom: 15px; left: 21px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.bk-br { bottom: 15px; right: 21px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* caption row under the frame, contact-sheet style */
.demo-caption {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 16px 4px 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim);
}
.demo-caption b { color: var(--muted); font-weight: 500; }

/* hero → next section divider */
.hero-endline {
  border: 0; height: 1px;
  background: var(--hairline);
  margin: 54px 0 0;
}
