/* 
   TOKENS
 */
:root {
  --bg:              #060e1c;
  --surface:         #0a1525;
  --surface-el:      #0f1d30;
  --surface-hi:      #162034;
  --border:          #182840;
  --border-hi:       #1e3050;

  --text:            #f0f4ff;
  --text-dim:        #8a9bb8;
  --text-dimmer:     #3d5270;

  --primary:         #2b6bff;
  --primary-lo:      rgba(43,107,255,.12);
  --primary-glow:    rgba(43,107,255,.45);

  --contigo:         #ff4d5e;
  --claromo:         #2fd37a;
  --perrijon:        #3aa8ff;
  --wave-duration:   6800ms;

  --live:            #22d065;
  --dev:             #9b6ffc;
  --beta:            #f5b944;

  --grid:            rgba(20,80,200,.04);
  --mx: 0; --my: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 
   GLOBAL LAYERED BACKGROUND
   1 – grid dots at intersections
   2 – grid lines
   3 – hero ambient glow (radial)
 */
.bg-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-grid {
  display: none;
}
.bg-glow1 {
  background: radial-gradient(ellipse 80% 60% at 8% 40%,
    rgba(43,107,255,.11) 0%, transparent 65%);
}
.bg-glow2 {
  background: radial-gradient(ellipse 60% 50% at 92% 70%,
    rgba(155,111,252,.06) 0%, transparent 65%);
}
/* Noise grain */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
  background-size: 220px;
}

/* 
   LAYOUT
 */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative; z-index: 1;
}
section { position: relative; z-index: 1; }

/* 
   BUTTONS
 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  border-radius: 9px; cursor: pointer;
  text-decoration: none; transition: all .2s;
  padding: 10px 22px; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-fill {
  background: var(--primary);
  color: #fff;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(43,107,255,.3), 0 4px 24px rgba(43,107,255,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-fill:hover {
  background: #3d7aff;
  box-shadow: 0 0 0 1px rgba(43,107,255,.5), 0 6px 32px rgba(43,107,255,.5), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-fill .ico { transition: transform .2s; }
.btn-fill .ico::before { content: "→"; }
.btn-fill:hover .ico { transform: translateX(3px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--surface-el);
  border-color: var(--border-hi);
}

/* 
   NAV
 */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(40px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
#nav.stuck {
  background: rgba(6,14,28,.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-color: var(--border);
}

.nav-brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.nav-mark {
  width: 38px; height: 38px;
  background: transparent;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  box-shadow: none;
  position: relative; overflow: hidden;
}
.nav-mark::after {
  content: none;
}
.nav-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.nav-name {
  font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--text);
}

.nav-menu {
  display: flex; gap: 28px; list-style: none;
}
.nav-menu a {
  font-size: 13.5px; color: var(--text-dim);
  text-decoration: none; font-weight: 500;
  transition: color .15s;
}
.nav-menu a:hover { color: var(--text); }

.nav-end { display: flex; align-items: center; gap: 10px; }

.nav-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-dim);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-icon:hover { color: var(--text); background: var(--surface-el); }
.nav-icon svg { width: 17px; height: 17px; }

/* 
   HERO
 */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px max(40px, calc((100vw - 1080px) / 2)) 80px;
  position: relative; overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(30,100,255,.11) 1px, transparent 1px),
    linear-gradient(rgba(20,80,200,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,80,200,.075) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0,0,0,.35) 55%, #000 76%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(0,0,0,.35) 55%, #000 76%);
  opacity: .95;
  pointer-events: none;
  z-index: 0;
}

/* hero beam — diagonal light stripe top-left */
.hero-beam {
  position: absolute;
  top: -200px; left: -100px;
  width: 500px; height: 800px;
  background: linear-gradient(135deg, rgba(43,107,255,.055) 0%, transparent 55%);
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-wave {
  position: absolute;
  inset: 0 -8% 0 0;
  z-index: 1;
  pointer-events: none;
  background: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(0,0,0,.16) 56%, rgba(0,0,0,.58) 70%, #000 86%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(0,0,0,.16) 56%, rgba(0,0,0,.58) 70%, #000 86%);
  mix-blend-mode: screen;
  opacity: .82;
  overflow: hidden;
}

.hero-grid-wave::before,
.hero-grid-wave::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(94,181,222,.55) 1px, transparent 1px),
    linear-gradient(rgba(94,181,222,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,181,222,.28) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 39%, rgba(0,0,0,.95) 48%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(105deg, transparent 0%, transparent 39%, rgba(0,0,0,.95) 48%, transparent 58%, transparent 100%);
  -webkit-mask-size: 230% 100%;
  mask-size: 230% 100%;
  -webkit-mask-position: 150% 0;
  mask-position: 150% 0;
}

.hero-grid-wave::before {
  opacity: .72;
  animation: gridLineWave var(--wave-duration) cubic-bezier(.42, 0, .18, 1) infinite;
}

.hero-grid-wave::after {
  opacity: .18;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, rgba(0,0,0,.42) 64%, #000 86%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, rgba(0,0,0,.42) 64%, #000 86%);
}

@keyframes gridLineWave {
  0% {
    opacity: .12;
    -webkit-mask-position: 155% 0;
    mask-position: 155% 0;
  }
  38% {
    opacity: .74;
  }
  68% {
    opacity: .32;
  }
  100% {
    opacity: .12;
    -webkit-mask-position: -70% 0;
    mask-position: -70% 0;
  }
}

/* hero vignette bottom */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: minmax(360px, 392px) minmax(0, 1fr);
  align-items: center; gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-inner > :first-child {
  min-width: 0;
}

.hero-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 22px;
}

.hero-h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero-h1 .accent {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(43,107,255,.45);
}

.hero-p {
  font-size: 13.5px; color: var(--text-dim);
  line-height: 1.75; max-width: 390px;
  margin-bottom: 38px; font-weight: 400;
}

.hero-ctas { display: flex; gap: 12px; align-items: center; }

.hero-loc {
  margin-top: 28px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dimmer);
}
.hero-loc svg { width: 12px; height: 12px; flex-shrink: 0; }

/* 
   3-D PARALLAX HERO VISUAL
 */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
  height: 548px;
  justify-self: end;
  width: 100%;
}

.scene {
  position: relative;
  width: 100%; max-width: 920px;
  height: 584px;
  display: flex; align-items: center;
  transform:
    rotateX(calc(var(--my) * 7deg))
    rotateY(calc(var(--mx) * 9deg));
  transform-style: preserve-3d;
  transition: transform .15s cubic-bezier(.25,.46,.45,.94);
}

/* top signal intake */
.signal-monitor {
  position: absolute;
  left: 12px;
  top: 40px;
  width: 208px;
  padding: 11px 13px 12px;
  border-radius: 16px;
  border: 1px solid rgba(94,181,222,.16);
  background:
    linear-gradient(145deg, rgba(8,18,34,.97), rgba(6,12,24,.92));
  position: absolute;
  transform-style: preserve-3d;
  transform: translateZ(0);
  box-shadow:
    -1px 1px 0 rgba(1,3,7,.95),
    -2px 2px 0 rgba(1,3,7,.9),
    -14px 22px 28px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.04);
  z-index: 30;
}

.signal-monitor::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px at calc(50% + var(--mx) * 70%) calc(50% + var(--my) * 70%), rgba(255,255,255,.04), transparent 55%);
  pointer-events: none;
}

.signal-monitor.is-wave-sync {
  animation: signalWaveSync .82s ease-out;
}

.signal-monitor-head,
.signal-monitor-body,
.signal-monitor-tail {
  position: relative;
  z-index: 1;
  transform: translateZ(12px);
}

.signal-monitor-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 11px;
}

.signal-monitor-label {
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.signal-monitor-count {
  font-size: 10px;
  color: var(--text-dim);
}

.signal-monitor-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px;
  border-top: 1px solid rgba(94,181,222,.08);
  border-bottom: 1px solid rgba(94,181,222,.08);
}

.signal-copy-live {
  min-height: 44px;
  transition: opacity .22s ease, transform .22s ease;
}

.signal-monitor-tail {
  display: flex;
  margin-top: 10px;
}

.signal-monitor-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(94,181,222,.12);
  border: 1px solid rgba(94,181,222,.18);
  color: #8fd3f0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

.signal-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,22,40,.92);
  border: 1px solid rgba(94,181,222,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateZ(16px);
}

.signal-ico svg {
  width: 20px;
  height: 20px;
}

.sig-stroke {
  stroke: #69b8de;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sig-stroke-faint {
  opacity: .56;
}

.signal-copy {
  transform: translateZ(14px);
}

.signal-copy h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -.01em;
}

.signal-copy p {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-dim);
}

/* logo block */
.logo-block {
  position: absolute; left: 12px;
  top: 262px;
  width: 156px; height: 156px;
  transform:
    rotateY(22deg) rotateX(15deg) rotateZ(-4deg);
  transform-style: preserve-3d;
  z-index: 40;
}
.ll {
  position: absolute; inset: 0;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
}
.ll-a {
  transform: translateZ(-62px);
  background: #010308;
  border: 1px solid rgba(30,161,255,.04);
  box-shadow: -2px 3px 0 #000, -12px 22px 50px rgba(0,0,0,.95);
}
.ll-b {
  transform: translateZ(-31px);
  background: #020610;
  border: 1px solid rgba(30,161,255,.14);
  box-shadow: -1px 2px 0 #010308, -6px 12px 22px rgba(0,0,0,.65);
}
.ll-c {
  transform: translateZ(0);
  background: linear-gradient(145deg, #061020 0%, #020509 100%);
  border: 1px solid rgba(30,161,255,.7);
  box-shadow:
    -1px 1px 0 #010307, -2px 2px 0 #010307, -3px 3px 0 #010307,
    -4px 4px 0 rgba(30,161,255,.28),
    0 0 28px rgba(30,161,255,.22),
    0 0 60px rgba(30,161,255,.1),
    inset 2px 2px 6px rgba(255,255,255,.09),
    inset -2px -2px 6px rgba(0,0,0,.8);
  overflow: hidden;
}
.ll-c::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 22%, transparent 46%),
    radial-gradient(circle at calc(50% + var(--mx)*80%) calc(50% + var(--my)*80%),
      rgba(255,255,255,.22) 0%, transparent 52%);
  border-radius: inherit;
  mix-blend-mode: screen;
  opacity: .72;
  pointer-events: none;
  transform: translateZ(54px);
  z-index: 3;
}
/* Top edge light */
.ll-c::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(30,161,255,.5),transparent);
  z-index: 4;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: translateZ(48px);
  position: relative; z-index: 2;
  filter:
    drop-shadow(0 0 18px rgba(94,181,222,.9))
    drop-shadow(0 0 40px rgba(94,181,222,.42))
    drop-shadow(0 12px 12px rgba(0,0,0,.6));
}

/* SVG connectors */
.conn-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  transform: none;
  overflow: visible;
  z-index: 2;
}
.cp { fill: none; stroke-width: 2; }
.cp-track {
  stroke: rgba(57,95,148,.56);
  opacity: .42;
  transition: opacity .28s ease, stroke .28s ease;
}
.cp-track-left {
  stroke: rgba(70,132,188,.42);
  opacity: .54;
}
.cp-flow {
  stroke: #1ea1ff;
  filter: drop-shadow(0 0 7px #1ea1ff) drop-shadow(0 0 2px #fff);
  stroke-dasharray: 18 160;
  animation: flow 2.8s linear infinite;
  opacity: .12;
  transition: opacity .28s ease;
}
.cp-flow-left {
  stroke: #69b8de;
  filter: drop-shadow(0 0 8px rgba(105,184,222,.72));
  stroke-dasharray: 22 150;
  opacity: 1;
}
.cp-flow-trunk {
  stroke: #64afff;
  filter: drop-shadow(0 0 10px rgba(100,175,255,.75));
  stroke-dasharray: 24 168;
}
.cp-track.is-active,
.cp-flow.is-active {
  opacity: 1;
}

.cp-track.is-idle {
  opacity: .32;
}

.cp-flow.is-idle {
  opacity: 0;
}
.cp-f2 { animation-delay: .93s; }
.cp-f3 { animation-delay: 1.86s; }
@keyframes flow {
  from { stroke-dashoffset: 178; }
  to   { stroke-dashoffset: 0; }
}

.cpt {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  z-index: 18;
  pointer-events: none;
}
#cps { top:calc(50% - 6px); right:-6px; transform:none; }
.cp-input { top:-6px; left:calc(50% - 6px); transform:none; }
.cp-output { top:calc(50% - 6px); right:-6px; transform:none; }
.cpe { top:calc(50% - 6px); left:-6px; transform:none; }
.cpsrc { bottom:-6px; left:calc(50% - 6px); transform:none; }

.dispatch-node {
  display: none;
}

.dispatch-node::before,
.dispatch-node::after {
  content: none;
}

.dispatch-node::before {
  background: rgba(255,255,255,.88);
  opacity: .16;
}

.dispatch-node::after {
  inset: -4px;
  border: 1px solid rgba(155,111,252,.28);
  animation: dispatchPulse 2.8s ease-in-out infinite;
}

@keyframes dispatchPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.16); }
}

.ll-c .cp-input {
  top: -6px;
  left: calc(50% - 6px);
}

.ll-c .cp-output {
  right: -6px;
}

#cps {
  right: 50%;
}

.process-beam {
  display: none;
}

.dispatch-rail,
#tb1,
#fb1 {
  display: none;
}

/* Cards column */
.cards-col {
  position: absolute; right: 18px;
  top: 96px;
  display: flex; flex-direction: column; gap: 16px;
  transform-style: preserve-3d;
  transform: translateZ(0);
  z-index: 35;
}

.hc {
  width: 224px;
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex; align-items: center; gap: 15px;
  position: relative; transform-style: preserve-3d;
  z-index: 1;
  color: inherit;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s, border-color .35s;
  box-shadow:
    -1px 1px 0 #010307, -2px 2px 0 #010307, -3px 3px 0 #010307,
    -4px 4px 0 #010307, -5px 5px 0 #010307, -6px 6px 0 #010307,
    -7px 7px 0 #010307, -8px 8px 0 rgba(255,255,255,.05),
    -18px 24px 30px rgba(0,0,0,.75),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.4);
}
.hc:focus-visible {
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: 4px;
}
.hc::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(320px at calc(50% + var(--mx)*100%) calc(50% + var(--my)*100%),
    rgba(255,255,255,.04), transparent 52%);
  pointer-events: none; transform: translateZ(1px);
}
/* top edge highlight */
.hc::after {
  content: ''; position: absolute; top:0; left:20%; right:20%; height:1px;
  background: rgba(255,255,255,.07); border-radius: 2px;
}

.hc-b { border: 1px solid rgba(255,77,94,.24); --rim: rgba(255,77,94,.62); }
.hc-p { border: 1px solid rgba(47,211,122,.22); --rim: rgba(47,211,122,.58); }
.hc-y { border: 1px solid rgba(58,168,255,.24); --rim: rgba(58,168,255,.58); }

.hc:hover {
  transform: translateX(-5px) translateY(-5px) translateZ(18px);
  border-color: var(--rim);
  box-shadow:
    -1px 1px 0 #010307, -2px 2px 0 #010307, -3px 3px 0 #010307,
    -4px 4px 0 #010307, -5px 5px 0 #010307, -6px 6px 0 #010307,
    -7px 7px 0 #010307, -8px 8px 0 #010307, -9px 9px 0 #010307,
    -10px 10px 0 #010307, -11px 11px 0 var(--rim),
    -26px 36px 40px rgba(0,0,0,.92),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.hc.is-active {
  border-color: var(--rim);
  box-shadow:
    -1px 1px 0 #010307, -2px 2px 0 #010307, -3px 3px 0 #010307,
    -4px 4px 0 #010307, -5px 5px 0 #010307, -6px 6px 0 #010307,
    -7px 7px 0 #010307, -8px 8px 0 rgba(255,255,255,.05),
    -18px 24px 30px rgba(0,0,0,.75),
    0 0 26px color-mix(in srgb, var(--rim) 34%, transparent),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.35);
}

.hc.is-idle {
  opacity: .82;
}


.hc-ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface-el);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transform: translateZ(32px);
  box-shadow: -4px 8px 16px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .35s;
  overflow: hidden;
}
.hc:hover .hc-ico { transform: translateZ(48px) rotateY(-8deg); }
.hc-b .hc-ico { border: 1px solid rgba(255,77,94,.42); }
.hc-p .hc-ico { border: 1px solid rgba(47,211,122,.36); }
.hc-y .hc-ico { border: 1px solid rgba(58,168,255,.38); }
.hc-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.hc-ico svg { width: 21px; height: 21px; }
.ic-b { fill: var(--contigo); filter: drop-shadow(0 0 7px rgba(255,77,94,.72)); }
.ic-p { fill: var(--claromo); filter: drop-shadow(0 0 7px rgba(47,211,122,.72)); }
.ic-y { fill: var(--perrijon); filter: drop-shadow(0 0 7px rgba(58,168,255,.72)); }

.hc-txt { flex: 1; transform: translateZ(20px); transition: transform .35s; }
.hc:hover .hc-txt { transform: translateZ(30px); }
.hc-txt h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; letter-spacing: -.01em; }
.hc-txt p  { font-size: 11px; color: var(--text-dim); line-height: 1.38; margin-bottom: 8px; }

.hdot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
}
.hd { width: 6px; height: 6px; border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
.hd-live  { background: var(--live);    color: var(--live);    box-shadow: 0 0 8px var(--live); }
.hd-dev   { background: var(--dev);     color: var(--text-dim); box-shadow: 0 0 8px var(--dev); }
.hd-beta  { background: var(--beta);    color: var(--beta);    box-shadow: 0 0 8px var(--beta); }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .55; }
}

@keyframes signalWaveSync {
  0% {
    box-shadow:
      -1px 1px 0 rgba(1,3,7,.95),
      -2px 2px 0 rgba(1,3,7,.9),
      -14px 22px 28px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.04);
    border-color: rgba(94,181,222,.16);
  }
  36% {
    box-shadow:
      -1px 1px 0 rgba(1,3,7,.95),
      -2px 2px 0 rgba(1,3,7,.9),
      -14px 22px 28px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.04);
    border-color: rgba(94,181,222,.48);
  }
  100% {
    box-shadow:
      -1px 1px 0 rgba(1,3,7,.95),
      -2px 2px 0 rgba(1,3,7,.9),
      -14px 22px 28px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.04);
    border-color: rgba(94,181,222,.16);
  }
}

@media (min-width: 1400px) {
  .hero-inner {
    max-width: 1380px;
    grid-template-columns: minmax(384px, 428px) minmax(0, 1fr);
    gap: 56px;
  }

  .hero-visual {
    height: 568px;
  }

  .scene {
    max-width: 880px;
    height: 596px;
  }

  .signal-monitor {
    left: 18px;
    top: 34px;
    width: 214px;
  }

  .logo-block {
    left: 18px;
    top: 272px;
    width: 162px;
    height: 162px;
  }

  .cards-col {
    right: 18px;
    top: 102px;
  }

  .hc {
    width: 232px;
  }
}

@media (min-width: 1001px) and (max-width: 1279px) {
  #nav {
    padding: 0 max(40px, calc((100vw - 1080px) / 2));
  }

  .nav-menu {
    gap: 22px;
  }

  .hero {
    padding: 94px max(40px, calc((100vw - 1080px) / 2)) 72px;
  }

  .hero-inner {
    max-width: 1080px;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 34px;
  }

  .hero-h1 {
    font-size: clamp(36px, 4.4vw, 54px);
  }

  .hero-p {
    max-width: 360px;
    margin-bottom: 30px;
  }

  .hero-visual {
    height: 500px;
  }

  .scene {
    max-width: 760px;
    height: 520px;
  }

  .signal-monitor {
    left: 12px;
    top: 34px;
    width: 200px;
  }

  .logo-block {
    left: 12px;
    top: 252px;
    width: 138px;
    height: 138px;
  }

  .cards-col {
    right: -10px;
    top: 84px;
    gap: 10px;
  }

  .hc {
    width: 196px;
    padding: 12px 13px;
    gap: 12px;
  }

  .hc-ico {
    width: 38px;
    height: 38px;
  }

  .hc-txt h4 {
    font-size: 12px;
  }

  .hc-txt p,
  .hdot {
    font-size: 10px;
  }
}

/* 
   PRODUCTS SECTION
 */
.sec-products {
  padding: 100px 0;
  overflow: hidden;
}

.prod-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-bottom: 80px; align-items: end;
}

.eyebrow {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}

.sec-h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -.025em;
  line-height: 1.1;
}

.sec-sub {
  font-size: 15.5px; color: var(--text-dim);
  line-height: 1.7; max-width: 380px; align-self: end;
}

/* Product row */
.prod-row {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
  padding: 72px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
/* Ambient glow on product row */
.prod-row::before {
  content: '';
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  pointer-events: none;
  opacity: .55;
}
.prod-row.r-blue::before  { left: -100px; background: radial-gradient(circle, rgba(255,77,94,.09), transparent 70%); }
.prod-row.r-purple::before{ right: -100px; background: radial-gradient(circle, rgba(47,211,122,.08), transparent 70%); }
.prod-row.r-yellow::before{ left: -100px; background: radial-gradient(circle, rgba(58,168,255,.08), transparent 70%); }

.prod-row.rev { direction: rtl; }
.prod-row.rev > * { direction: ltr; }

/* Phone mockup */
.mockup-wrap {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  isolation: isolate;
}

.prod-copy {
  max-width: 560px;
}
.mockup-glow {
  position: absolute;
  width: 540px; height: 460px; border-radius: 50%;
  pointer-events: none;
  transform: translateY(42px) scaleX(1.1);
  filter: blur(14px) saturate(1.35);
  mix-blend-mode: screen;
  opacity: .9;
  animation: glowBreath 5.8s ease-in-out infinite;
  z-index: 0;
}
.mg-blue   { background: radial-gradient(ellipse at center, rgba(255,77,94,.72) 0%, rgba(255,77,94,.34) 28%, rgba(255,77,94,.12) 52%, transparent 76%); }
.mg-purple { background: radial-gradient(ellipse at center, rgba(47,211,122,.62) 0%, rgba(47,211,122,.30) 28%, rgba(47,211,122,.11) 52%, transparent 76%); }
.mg-yellow { background: radial-gradient(ellipse at center, rgba(58,168,255,.66) 0%, rgba(58,168,255,.32) 28%, rgba(58,168,255,.12) 52%, transparent 76%); }
.mg-blue { animation-name: glowBreathBlue; }
.mg-purple { animation-name: glowBreathPurple; animation-delay: .4s; }
.mg-yellow { animation-name: glowBreathYellow; animation-delay: .8s; }

@keyframes glowBreath {
  0%, 100% {
    opacity: .58;
    filter: blur(16px) saturate(1.18);
    transform: translateY(48px) scaleX(.96) scaleY(.88);
  }
  50% {
    opacity: 1;
    filter: blur(11px) saturate(1.5);
    transform: translateY(36px) scaleX(1.22) scaleY(1.12);
  }
}

@keyframes glowBreathBlue {
  0%, 100% { opacity: .56; filter: blur(16px) saturate(1.15); transform: translateY(48px) scaleX(.96) scaleY(.88); }
  50% { opacity: 1; filter: blur(11px) saturate(1.55); transform: translateY(36px) scaleX(1.22) scaleY(1.12); }
}

@keyframes glowBreathPurple {
  0%, 100% { opacity: .52; filter: blur(16px) saturate(1.12); transform: translateY(48px) scaleX(.95) scaleY(.87); }
  50% { opacity: .95; filter: blur(11px) saturate(1.45); transform: translateY(36px) scaleX(1.2) scaleY(1.1); }
}

@keyframes glowBreathYellow {
  0%, 100% { opacity: .54; filter: blur(16px) saturate(1.14); transform: translateY(48px) scaleX(.95) scaleY(.87); }
  50% { opacity: .98; filter: blur(11px) saturate(1.48); transform: translateY(36px) scaleX(1.21) scaleY(1.11); }
}

.phone {
  width: clamp(248px, 20.5vw, 280px);
  background: linear-gradient(145deg, #162238 0%, #020711 42%, #101827 100%);
  border-radius: 48px;
  border: 1px solid rgba(255,255,255,.13);
  overflow: visible;
  box-shadow:
    0 56px 100px rgba(0,0,0,.68),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -18px 26px rgba(0,0,0,.34);
  transform: rotate(-3.5deg);
  position: relative; z-index: 1;
  will-change: transform;
}
.phone-screen {
  aspect-ratio: 1080 / 2400;
  padding: 10px;
  background: linear-gradient(145deg, #141d2f 0%, #02060d 52%, #121b2b 100%);
}
.phone-screen-alt { transform: rotate(3deg); }
.mg-blue + .phone {
  box-shadow:
    0 56px 100px rgba(0,0,0,.68),
    0 26px 90px rgba(255,77,94,.32),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -18px 26px rgba(0,0,0,.34);
}
.mg-purple + .phone {
  box-shadow:
    0 56px 100px rgba(0,0,0,.68),
    0 26px 90px rgba(47,211,122,.28),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -18px 26px rgba(0,0,0,.34);
}
.mg-yellow + .phone {
  box-shadow:
    0 56px 100px rgba(0,0,0,.68),
    0 26px 90px rgba(58,168,255,.30),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -18px 26px rgba(0,0,0,.34);
}
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border-radius: 35px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.20),
    inset 0 0 22px rgba(0,0,0,.18);
}
.phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 35px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.62);
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: auto;
}
.phone-inner { padding: 18px 14px; min-height: 330px; }

/* Notch */
.pnotch {
  width: 56px; height: 5px; background: #0d1e30;
  border-radius: 3px; margin: 0 auto 14px;
}

/* Generic phone ui parts */
.ph { /* phone header */
  font-size: 9px; color: var(--text-dim); margin-bottom: 10px; font-weight: 500;
}
.prow {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10px; color: var(--text-dim);
}
.prow strong { color: var(--text); font-size: 10.5px; font-weight: 600; }
.pbadge {
  font-size: 8.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.b-done    { background: rgba(34,208,101,.14); color: var(--live); }
.b-prog    { background: rgba(43,107,255,.14);  color: var(--primary); }
.b-pend    { background: rgba(245,185,68,.12);  color: var(--beta); }
.b-dev     { background: rgba(155,111,252,.14); color: var(--dev); }

/* Claromo screen */
.pstat {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px; text-align: center; margin-bottom: 8px;
}
.pstat .amount {
  font-size: 24px; font-weight: 800;
  color: var(--text); letter-spacing: -.03em; line-height: 1;
}
.pstat .lbl { font-size: 9px; color: var(--text-dim); margin-top: 4px; }
.minichart {
  height: 60px;
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 8px; position: relative;
}
.minichart svg { width:100%; height:100%; }
.prow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Perrijón screen */
.pmap {
  background: #081018;
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 128px; overflow: hidden;
  position: relative; margin-bottom: 8px;
}
.pmap-inner { width: 100%; height: 100%; position: relative; }
.pxp {
  position: absolute; bottom:8px; right:8px;
  background: rgba(245,185,68,.18); color: var(--beta);
  font-size: 10px; font-weight: 800;
  padding: 4px 9px; border-radius: 7px;
  border: 1px solid rgba(245,185,68,.3);
  letter-spacing: .02em;
}
.pmission {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 11px;
  margin-bottom: 6px;
}
.pmission-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.pmission strong { font-size: 10.5px; font-weight: 600; }
.pmission-sub { font-size: 9px; color: var(--text-dim); }

/* Product copy */
.prod-num {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--text-dimmer); margin-bottom: 10px;
}
.prod-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}

.prod-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-el);
  box-shadow:
    -3px 6px 14px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.prod-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-logo-badge svg {
  width: 22px;
  height: 22px;
}

.prod-title-contigo .prod-logo-badge {
  border: 1px solid rgba(255,77,94,.42);
}

.prod-title-claromo .prod-logo-badge {
  border: 1px solid rgba(47,211,122,.36);
}

.prod-title-perrijon .prod-logo-badge {
  border: 1px solid rgba(58,168,255,.38);
}

.prod-name {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
}
.pn-blue   { color: var(--contigo); text-shadow: 0 0 30px rgba(255,77,94,.28); }
.pn-purple { color: var(--claromo); text-shadow: 0 0 30px rgba(47,211,122,.28); }
.pn-yellow { color: var(--perrijon); text-shadow: 0 0 30px rgba(58,168,255,.28); }

.prod-tagline {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.018em; line-height: 1.24;
  margin-bottom: 18px;
}
.prod-body {
  font-size: 15.5px; color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}
.prod-footer {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.prod-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: gap .2s;
}
.prod-link:hover { gap: 11px; }
.pl-b { color: var(--contigo); }
.pl-p { color: var(--claromo); }
.pl-y { color: var(--perrijon); }

.prod-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.revenue-line {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dimmer);
}
.ps-dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}

/* 
   APPROACH SECTION
 */
.sec-approach {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
/* subtle blue ambient top */
.sec-approach::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(43,107,255,.3), transparent);
}

.approach-grid {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
}

.approach-hd {
  grid-column: 1;
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  position: relative;
}
.approach-hd::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,107,255,.04), transparent 60%);
  pointer-events: none;
}
.approach-hd .eyebrow { margin-bottom: 24px; display: block; }
.approach-h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.18;
}

.acard {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background .25s;
}
.acard:last-child { border-right: none; }
.acard:hover { background: rgba(43,107,255,.025); }

.acard-ico {
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: border-color .25s, box-shadow .25s;
}
.acard:hover .acard-ico {
  border-color: rgba(43,107,255,.4);
  box-shadow: 0 0 14px rgba(43,107,255,.15);
}
.acard-ico svg { width: 21px; height: 21px; }

.acard h3 {
  font-size: 14px; font-weight: 700;
  line-height: 1.35; margin-bottom: 14px;
  letter-spacing: -.01em;
}
.acard p {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.72;
}

/* 
   FOUNDER
 */
.sec-founder {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(420px, 500px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.founder-photo-wrap {
  position: relative;
  width: 100%;
}

/* atmospheric photo placeholder */
.founder-photo {
  width: 100%;
  aspect-ratio: 964 / 530;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: #060e1a;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.founder-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.03);
  background: #060e1a;
}

.founder-photo-glow,
.founder-photo-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.founder-photo-glow {
  background:
    radial-gradient(circle at 22% 42%, rgba(43,107,255,.18), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(43,107,255,.12), transparent 26%);
  mix-blend-mode: screen;
}

.founder-photo-tint {
  background:
    linear-gradient(180deg, rgba(3,8,16,.06) 0%, rgba(3,8,16,0) 30%, rgba(3,8,16,.22) 100%),
    linear-gradient(135deg, rgba(4,12,26,.16) 0%, rgba(4,12,26,0) 42%, rgba(4,12,26,.12) 100%);
}

.founder-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.founder-name { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 5px; }
.founder-title { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; font-weight: 500; }
.founder-bio {
  font-size: 13.5px; color: var(--text-dim);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 28px;
}

.founder-links { display: flex; gap: 20px; }
.flink {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim); text-decoration: none;
  transition: color .2s;
}
.flink:hover { color: var(--text); }
.flink svg { width: 16px; height: 16px; }

/* 
   CTA BOTTOM
 */
.sec-cta {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  position: relative;
}
.sec-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 200% at 50% 50%, rgba(43,107,255,.04), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 48px;
}
.cta-p {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700; line-height: 1.4;
  letter-spacing: -.02em; max-width: 520px;
}
.cta-p .hl { color: var(--primary); }
.cta-p .hy { color: var(--perrijon); }
.cta-btns { display: flex; gap: 12px; flex-shrink: 0; }

/* 
   FOOTER
 */
footer {
  border-top: 1px solid var(--border);
  max-width: 1160px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dimmer);
  position: relative; z-index: 1;
}
.foot-brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.foot-mark {
  width: 24px; height: 24px;
  background: #0f1027;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(94,181,222,.24);
  box-shadow: 0 0 10px rgba(94,181,222,.28);
  overflow: hidden;
}
.foot-mark img { width: 100%; height: 100%; object-fit: cover; }
.foot-brand span { color: var(--text-dim); font-size: 12px; font-weight: 600; letter-spacing: .04em; }

.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--text-dimmer); text-decoration: none; transition: color .15s; }
.foot-links a:hover { color: var(--text-dim); }
.foot-link-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-dimmer);
  text-decoration: none;
  transition: color .15s;
  font: inherit;
  cursor: pointer;
}
.foot-link-btn:hover { color: var(--text-dim); }

/* Cookie consent */
.cookie-consent[hidden],
.cookie-modal[hidden] {
  display: none !important;
}
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  margin: 0 auto;
  max-width: 620px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(12, 24, 42, .97), rgba(7, 16, 30, .98));
  box-shadow: 0 26px 52px rgba(0,0,0,.55);
  padding: 12px;
}
.cookie-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}
.cookie-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.45;
}
.cookie-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-btn {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-primary {
  background: #2b6bff;
  border-color: #2b6bff;
  color: #fff;
}
.cookie-btn-secondary {
  background: rgba(255,255,255,.02);
  color: var(--text);
}
.cookie-btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(2,8,16,.66);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-panel {
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(12, 24, 42, .98), rgba(7, 16, 30, .99));
  box-shadow: 0 26px 52px rgba(0,0,0,.55);
  padding: 16px;
}
.cookie-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}
.cookie-row h4 {
  margin: 0 0 4px;
  font-size: 13px;
}
.cookie-row p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}
.cookie-row input[type="checkbox"] {
  margin-right: 8px;
}

/* 
   SCROLL ANIMATIONS
 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu { opacity: 0; animation: fadeUp .75s ease forwards; }
.fu1 { animation-delay: .08s; }
.fu2 { animation-delay: .22s; }
.fu3 { animation-delay: .36s; }
.fu4 { animation-delay: .50s; }
.fu5 { animation-delay: .64s; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .75s ease, transform .75s ease; }
.reveal.on { opacity: 1; transform: none; }

/* 
   RESPONSIVE
 */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 500px; justify-self: center; }
  .scene { max-width: 760px; height: 520px; }
  .signal-monitor { left: 50%; top: 38px; width: 210px; transform: translateX(-50%); }
  .logo-block { left: 300px; top: 186px; width: 142px; height: 142px; }
  .cards-col { right: 10px; top: 44px; }
  .hc { width: 224px; }
  .prod-intro { grid-template-columns: 1fr; gap: 16px; }
  .prod-row { grid-template-columns: 1fr; gap: 48px; }
  .prod-row.rev { direction: ltr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-hd { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--border); }
  .acard:nth-child(2) { border-right: 1px solid var(--border); }
  .acard:nth-child(3) { border-top: 1px solid var(--border); border-right: none; }
  .acard:last-child   { border-top: 1px solid var(--border); }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo-wrap { max-width: 280px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .hero-inner {
    gap: 34px;
  }
  .hero-visual {
    height: auto;
    margin-top: -4px;
    padding-bottom: 8px;
  }
  .scene {
    max-width: min(100%, 680px);
    height: 708px;
    transform: none;
  }
  .signal-monitor {
    left: 50%;
    top: 18px;
    width: min(calc(100% - 44px), 320px);
    transform: translateX(-50%);
  }
  .logo-block {
    left: 50%;
    top: 222px;
    width: 138px;
    height: 138px;
    transform: translateX(-50%) rotateY(18deg) rotateX(12deg) rotateZ(-4deg);
  }
  .cards-col {
    left: 50%;
    right: auto;
    top: 404px;
    width: min(calc(100% - 34px), 420px);
    gap: 14px;
    transform: translateX(-50%);
  }
  .hc {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .hero-beam { display: none; }
  .wrap { padding: 0 22px; }
  .hero { padding: 90px 22px 60px; }
  .hero-inner {
    gap: 26px;
  }
  .hero-h1 {
    font-size: clamp(32px, 11.6vw, 50px);
    margin-bottom: 18px;
  }
  .hero-p {
    font-size: 12.6px;
    line-height: 1.68;
    max-width: none;
    margin-bottom: 22px;
  }
  .hero-ctas {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-loc {
    margin-top: 18px;
  }
  .hero-visual {
    display: flex;
    height: auto;
    margin-top: -6px;
    padding-bottom: 4px;
  }
  .scene {
    max-width: 100%;
    height: 730px;
    transform: none;
  }
  .signal-monitor {
    left: 50%;
    top: 8px;
    width: min(100%, 286px);
    transform: translateX(-50%);
  }
  .logo-block {
    left: 50%;
    top: 198px;
    width: 124px;
    height: 124px;
    transform: translateX(-50%) rotateY(16deg) rotateX(11deg) rotateZ(-4deg);
  }
  .dispatch-node {
    right: -36px;
    width: 28px;
    height: 28px;
  }
  .process-beam {
    width: 34px;
  }
  .process-beam-in {
    left: -26px;
  }
  .process-beam-out {
    right: -32px;
  }
  .cards-col {
    left: 50%;
    right: auto;
    top: 336px;
    width: min(100%, 324px);
    gap: 12px;
    transform: translateX(-50%);
  }
  .hc {
    width: 100%;
    padding: 12px 14px;
  }
  .hero::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 12%, rgba(0,0,0,.8) 34%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 12%, rgba(0,0,0,.8) 34%, #000 100%);
    opacity: .62;
  }
  .hero-grid-wave {
    inset: 20% 0 0 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.26) 18%, rgba(0,0,0,.9) 42%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.26) 18%, rgba(0,0,0,.9) 42%, #000 100%);
    opacity: .54;
  }
  #nav { padding: 0 22px; }
  .nav-menu { display: none; }
  .nav-end .nav-icon {
    display: none;
  }
  .nav-end .btn {
    padding-inline: 14px;
    font-size: 12px;
  }
  .prod-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mockup-glow {
    width: 390px;
    height: 360px;
  }
  footer { flex-direction: column; gap: 18px; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-hd { grid-column: 1; }
  .acard { border-right: none; border-top: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
