/* Desktop-first OmniCore — wide layout; mobile stacks below 860px */
:root {
  --bg: #05070a;
  --ink: #f5f7fa;
  --matte: #b0b0b0;
  --cyan: #00c6ff;
  --green: #69f0ae;
  --glass-edge: rgba(0, 198, 255, 0.22);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --page-max: 1240px;
  --pad-x: clamp(1.5rem, 4vw, 3.5rem);
  --block-y: clamp(1.75rem, 3.8vh, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome / Safari / Chromium */
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

#wave-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(0, 198, 255, 0.04), transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(105, 240, 174, 0.03), transparent 40%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.2), rgba(5, 7, 10, 0.42));
}

.page {
  position: relative;
  z-index: 2;
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0.75rem var(--pad-x) 2.75rem;
}

/* —— HERO: brand lockup + code→circuit simulation —— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 1.1fr);
  align-items: stretch;
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  min-height: 0;
  padding: clamp(1.25rem, 3.5vh, 2.25rem) 0 0.85rem;
  border-bottom: none;
}

.hero-left {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
}

.hero-lockup {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  align-content: center;
  min-width: 0;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
  min-width: 0;
}

.hero-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.core {
  position: relative;
  width: clamp(96px, 10vw, 120px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 198, 255, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 45%);
  backdrop-filter: blur(4px);
}

.ring-a {
  inset: 4%;
  border-color: rgba(0, 198, 255, 0.45);
}

.ring-b {
  inset: 24%;
  border-style: dashed;
  animation: spin 14s linear infinite;
}

.ring-c {
  inset: 42%;
  border-color: rgba(255, 255, 255, 0.18);
}

.nucleus {
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 198, 255, 0.55), rgba(0, 114, 255, 0.12) 70%, transparent);
  box-shadow: 0 0 24px rgba(0, 198, 255, 0.35);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.core.is-powered .nucleus {
  box-shadow: 0 0 28px rgba(105, 240, 174, 0.45), 0 0 18px rgba(0, 198, 255, 0.4);
  transform: scale(1.12);
}

.core.is-powered .ring-a {
  border-color: rgba(105, 240, 174, 0.55);
}

.brand {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  line-height: 0.92;
}

/* One optical size for VITO + 9 — no triple-scale clash */
.brand-vito {
  font-weight: 600;
  font-size: clamp(3.4rem, 5.8vw, 4.6rem);
  letter-spacing: 0.14em;
  color: var(--ink);
}

.brand-nine {
  font-weight: 700;
  font-size: clamp(3.6rem, 6vw, 4.85rem);
  letter-spacing: 0;
  margin-inline-start: 0.02em;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(0, 198, 255, 0.35);
  line-height: 0.92;
}

.hero-title {
  margin: 0;
  padding-inline-start: calc(clamp(96px, 10vw, 120px) + clamp(0.85rem, 1.8vw, 1.25rem));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: 0.36em;
  color: rgba(245, 247, 250, 0.88);
}

.lede {
  margin: 0;
  max-width: none;
  padding: 0;
  border-top: none;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  line-height: 1.35;
  white-space: nowrap;
  color: var(--matte);
}

.hero-sim {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  align-content: start;
}

.code-panel {
  border: 1px solid rgba(0, 198, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(8, 14, 22, 0.92), rgba(5, 8, 14, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.code-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(176, 176, 176, 0.35);
}

.code-bar .dot:nth-child(1) { background: rgba(255, 95, 86, 0.75); }
.code-bar .dot:nth-child(2) { background: rgba(255, 189, 46, 0.75); }
.code-bar .dot:nth-child(3) { background: rgba(39, 201, 63, 0.75); }

.code-bar em {
  margin-inline-start: 0.45rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(176, 176, 176, 0.85);
}

.code-stream {
  margin: 0;
  min-height: 9.5rem;
  max-height: 9.5rem;
  padding: 0.7rem 0.85rem;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(180, 210, 230, 0.78);
  white-space: pre-wrap;
}

.code-stream .ln-ok { color: var(--green); }
.code-stream .ln-dim { color: rgba(176, 176, 176, 0.55); }
.code-stream .ln-key { color: var(--cyan); }
.code-stream .cursor {
  display: inline-block;
  width: 0.55ch;
  margin-inline-start: 1px;
  background: var(--cyan);
  animation: caret 0.9s steps(1) infinite;
}

.circuit-board {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0, 198, 255, 0.16);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, rgba(6, 12, 18, 0.7), rgba(4, 8, 12, 0.45));
}

.circuit-board .trace {
  stroke: rgba(0, 198, 255, 0.16);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.35s ease, filter 0.35s ease;
}

.circuit-board .trace.is-live {
  stroke: rgba(0, 198, 255, 0.95);
  filter: drop-shadow(0 0 4px rgba(0, 198, 255, 0.55));
}

.circuit-board .node {
  fill: rgba(0, 198, 255, 0.18);
  stroke: rgba(0, 198, 255, 0.28);
  stroke-width: 1;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.circuit-board .node.is-live {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0, 198, 255, 0.7));
}

.circuit-board .chip {
  fill: rgba(8, 14, 22, 0.9);
  stroke: rgba(0, 198, 255, 0.28);
  stroke-width: 1.2;
  transition: stroke 0.35s ease, filter 0.35s ease;
}

.circuit-board .chip.is-live {
  stroke: var(--green);
  filter: drop-shadow(0 0 8px rgba(105, 240, 174, 0.35));
}

.circuit-board .chip-label {
  fill: rgba(176, 176, 176, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.circuit-board .chip.is-live + .chip-label,
.circuit-board.is-powered .chip-label {
  fill: var(--green);
}

/* —— SECTIONS —— */
.block {
  position: relative;
  padding: var(--block-y) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.85rem;
}

.block[data-reveal] {
  opacity: 0.4;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.block[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.block-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.block-title.faint {
  opacity: 0.85;
}

.body {
  margin: 0;
  max-width: 68ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--matte);
}

.body.sm {
  font-size: 0.88rem;
}

/* panels — wide desktop trio */
.panel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.panel {
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--glass-edge);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(8, 12, 20, 0.65));
  backdrop-filter: blur(10px);
  min-height: 148px;
}

.panel.is-pulse {
  animation: panel-pulse 1.8s ease-in-out 1;
}

.panel-title {
  margin: 0.65rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.panel-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: linear-gradient(160deg, rgba(0, 198, 255, 0.12), rgba(8, 12, 20, 0.65));
  color: var(--cyan);
}

.panel-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* activation — glass stage: metrics + node mesh + authenticated device */
.activation {
  overflow: visible;
}

.activation-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.15fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.activation-copy {
  display: grid;
  align-content: center;
}

.activation-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.activation-metrics li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 198, 255, 0.18);
  background: linear-gradient(120deg, rgba(0, 198, 255, 0.06), rgba(8, 12, 20, 0.55));
}

.metric-key {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(0, 198, 255, 0.9);
}

.metric-val {
  font-size: 0.88rem;
  color: var(--matte);
}

.activation-viz {
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  border: 1px solid rgba(0, 198, 255, 0.28);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(ellipse at 70% 50%, rgba(105, 240, 174, 0.08), transparent 45%),
    rgba(6, 10, 16, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.activation-grid {
  position: absolute;
  inset: 18px 38% 18px 18px;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 12px;
  opacity: 0.85;
  pointer-events: none;
}

.grid-dot {
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 50%;
  background: rgba(0, 198, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 198, 255, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.grid-dot.is-lit {
  background: rgba(105, 240, 174, 0.95);
  box-shadow: 0 0 10px rgba(105, 240, 174, 0.55);
  transform: scale(1.35);
}

.activation-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.link-path {
  fill: none;
  stroke: rgba(105, 240, 174, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: link-flow 2.8s linear infinite;
}

.link-path:nth-child(2) { animation-delay: -0.9s; opacity: 0.75; }
.link-path:nth-child(3) { animation-delay: -1.7s; opacity: 0.6; }

.device {
  position: absolute;
  top: 50%;
  right: 8%;
  z-index: 2;
  width: 108px;
  aspect-ratio: 10 / 16;
  transform: translateY(-50%);
}

.device-glass {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 32, 0.92), rgba(6, 10, 16, 0.96));
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(105, 240, 174, 0.12);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 10px 9px 12px;
  gap: 8px;
}

.device-notch {
  width: 36%;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.device-screen {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(105, 240, 174, 0.28);
  background: rgba(105, 240, 174, 0.06);
}

.auth-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(105, 240, 174, 0.75);
  animation: auth-blink 2.2s ease-in-out infinite;
}

.auth-label {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(105, 240, 174, 0.95);
}

/* APP.ECOSYSTEM — modular constellation stage */
.eco-stage {
  position: relative;
  margin-top: 0.55rem;
  padding: 1.15rem 1.1rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 198, 255, 0.2);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 198, 255, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(10, 16, 24, 0.92), rgba(5, 8, 12, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.eco-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 198, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 198, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
}

.eco-hub {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 0.55rem 1.35rem;
}

.eco-hub-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(105, 240, 174, 0.35);
  box-shadow: 0 0 18px rgba(105, 240, 174, 0.12);
  animation: eco-ring 3.8s ease-in-out infinite;
}

.eco-hub-core {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--green);
  text-shadow: 0 0 16px rgba(105, 240, 174, 0.35);
}

.eco-mods {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.eco-mod {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  min-height: 148px;
  padding: 0.85rem 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 198, 255, 0.2);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(0, 198, 255, 0.07), rgba(6, 10, 16, 0.88));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(10px);
  opacity: 0.45;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.eco-mod.is-live {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(105, 240, 174, 0.42);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(105, 240, 174, 0.1);
}

.eco-led {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(176, 176, 176, 0.35);
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.eco-mod.is-live .eco-led {
  background: var(--green);
  box-shadow: 0 0 10px rgba(105, 240, 174, 0.75);
  animation: eco-led 1.8s ease-in-out infinite;
}

.eco-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 198, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cyan);
}

.eco-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.eco-mod.is-live .eco-icon {
  color: var(--green);
  border-color: rgba(105, 240, 174, 0.4);
}

.eco-name {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(245, 247, 250, 0.94);
}

.eco-tag {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--matte);
}

.eco-bus {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 18px;
  margin-top: 0.95rem;
  overflow: hidden;
}

.eco-bus-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 198, 255, 0.35) 0 6px,
    transparent 6px 12px
  );
}

.eco-bus-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.85);
  transform: translate(-50%, -50%);
  animation: eco-bus 3.6s linear infinite;
}

/* CLOUD.LAYER — mesh + racks stage */
.cloud-stage {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.25fr);
  gap: 0.9rem;
}

.cloud-metrics {
  display: grid;
  gap: 0.65rem;
}

.cloud-metric {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 198, 255, 0.18);
  background: linear-gradient(145deg, rgba(10, 16, 24, 0.9), rgba(5, 8, 12, 0.7));
  opacity: 0.4;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.cloud-metric.is-live {
  opacity: 1;
  transform: none;
  border-color: rgba(0, 198, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.08);
}

.cloud-metric-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.cloud-metric-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 250, 0.94);
}

.cloud-metric-note {
  font-size: 0.72rem;
  color: var(--matte);
}

.cloud-viz {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid rgba(0, 198, 255, 0.2);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 198, 255, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(10, 16, 24, 0.92), rgba(5, 8, 12, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.cloud-viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 198, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.cloud-viz-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
  min-height: 220px;
  padding: 0.85rem 0.85rem 0.35rem;
}

.cloud-mesh {
  position: relative;
  min-height: 200px;
}

.cloud-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cloud-link {
  fill: none;
  stroke: rgba(0, 198, 255, 0.28);
  stroke-width: 1.4;
  stroke-dasharray: 5 8;
  animation: link-flow 2.8s linear infinite;
}

.cloud-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transform: translate(-50%, -50%);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: rgba(5, 10, 16, 0.92);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(245, 247, 250, 0.88);
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.12);
  white-space: nowrap;
}

.cloud-node::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.7);
}

.cloud-node-core {
  border-color: rgba(105, 240, 174, 0.55);
  color: var(--green);
  box-shadow: 0 0 18px rgba(105, 240, 174, 0.2);
  padding-inline: 0.85rem;
}

.cloud-node-core::before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(105, 240, 174, 0.8);
}

.cloud-racks {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 7px;
  height: 100%;
  min-height: 140px;
  padding: 0.25rem 0.15rem 1.25rem;
}

.cloud-rack {
  position: relative;
  width: 22px;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, rgba(28, 36, 48, 0.95), rgba(8, 10, 14, 0.98));
  animation: rise-rack 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.cloud-rack-beam {
  position: absolute;
  inset: 14% 30%;
  background: linear-gradient(180deg, transparent, rgba(0, 198, 255, 0.65), transparent);
  animation: rack-beam 2.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.cloud-rack em {
  position: absolute;
  left: 50%;
  bottom: -1.1rem;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(176, 176, 176, 0.7);
}

.cloud-telemetry {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(180, 210, 230, 0.78);
}

.cloud-telemetry span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cloud-telemetry i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(105, 240, 174, 0.75);
  animation: eco-led 1.8s ease-in-out infinite;
}

/* CORE.STACK — layered prestige stage */
.stack-stage {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 198, 255, 0.2);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 198, 255, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(10, 16, 24, 0.94), rgba(5, 8, 12, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stack-layer {
  display: grid;
  gap: 0.55rem;
}

.stack-layer-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: rgba(0, 198, 255, 0.85);
}

.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.tech {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "mark name"
    "mark role";
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  min-height: 78px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 198, 255, 0.18);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(0, 0, 0, 0.28);
  opacity: 0.4;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.tech.is-live {
  opacity: 1;
  transform: none;
  border-color: rgba(0, 198, 255, 0.38);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 18px rgba(0, 198, 255, 0.08);
}

.tech-mark {
  grid-area: mark;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: linear-gradient(160deg, rgba(0, 198, 255, 0.14), rgba(8, 12, 20, 0.75));
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.tech.is-live .tech-mark {
  color: var(--green);
  border-color: rgba(105, 240, 174, 0.42);
}

.tech-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 250, 0.96);
}

.tech-role {
  grid-area: role;
  font-size: 0.72rem;
  color: var(--matte);
}

/* FOOTER — luxury seal (horizontal) */
.site-footer {
  position: relative;
  margin-top: 0.25rem;
  padding: clamp(2rem, 5vh, 3.25rem) 0 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(420px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 198, 255, 0.55),
    rgba(105, 240, 174, 0.55),
    rgba(0, 198, 255, 0.55),
    transparent
  );
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.35);
}

.footer-seal {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0 auto;
}

.footer-lockup {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  white-space: nowrap;
}

.footer-mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
}

.footer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 198, 255, 0.3);
}

.footer-ring-a {
  inset: 6%;
  border-color: rgba(0, 198, 255, 0.45);
}

.footer-ring-b {
  inset: 28%;
  border-style: dashed;
  animation: spin 18s linear infinite;
}

.footer-nucleus {
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(105, 240, 174, 0.65), rgba(0, 198, 255, 0.2) 70%, transparent);
  box-shadow: 0 0 20px rgba(105, 240, 174, 0.35);
}

.footer-brand {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  font-family: var(--font-display);
  line-height: 0.88;
}

.footer-vito {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: 0.18em;
  color: var(--ink);
}

.footer-nine {
  font-weight: 700;
  font-size: clamp(2.6rem, 4.5vw, 3.5rem);
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(0, 198, 255, 0.4);
  line-height: 0.82;
}

.footer-divider {
  width: 1px;
  height: 2rem;
  flex: 0 0 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}

.footer-tag {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.36em;
  color: rgba(245, 247, 250, 0.88);
}

.footer-pillars {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(180, 210, 230, 0.78);
  white-space: nowrap;
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--matte);
  white-space: nowrap;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes panel-pulse {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 18px rgba(0, 198, 255, 0.16); }
}
@keyframes eco-ring {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes eco-led {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes eco-bus {
  from { left: 2%; }
  to { left: 98%; }
}
@keyframes link-flow {
  to { stroke-dashoffset: -64; }
}

@keyframes auth-blink {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes rise-rack {
  0%, 100% { transform: translateY(10%); }
  50% { transform: translateY(0); }
}
@keyframes rack-beam {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

/* Tablet */
@media (max-width: 980px) {
  .page {
    --page-max: 100%;
  }

  .cloud-stage {
    grid-template-columns: 1fr;
  }
}

/* Mobile — stack only here */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    padding: 1.35rem 0 0.75rem;
    row-gap: 0.75rem;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-lockup {
    width: 100%;
    justify-items: center;
    align-content: start;
    text-align: center;
    gap: 0.55rem;
  }

  .hero-brand-row {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero-title {
    padding-inline-start: 0;
  }

  .lede {
    white-space: normal;
    text-align: center;
    max-width: 34ch;
  }

  .hero-sim {
    width: 100%;
  }

  .code-stream {
    min-height: 8rem;
    max-height: 8rem;
    font-size: 0.68rem;
  }

  .core {
    width: 92px;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .activation-stage {
    grid-template-columns: 1fr;
  }

  .activation-metrics li {
    grid-template-columns: 6.2rem minmax(0, 1fr);
  }

  .activation-viz {
    min-height: 220px;
  }

  .activation-grid {
    inset: 16px 42% 16px 14px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }

  .device {
    width: 92px;
    right: 6%;
  }

  .cloud-stage {
    grid-template-columns: 1fr;
  }

  .cloud-viz {
    min-height: 260px;
  }

  .cloud-viz-main {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cloud-racks {
    min-height: 96px;
    height: 96px;
    justify-content: center;
    padding-bottom: 1.15rem;
  }

  .cloud-rack {
    width: 18px;
  }

  .stack {
    grid-template-columns: 1fr;
  }

  .tech {
    min-height: 70px;
  }

  .footer-lockup {
    gap: 0.65rem;
  }

  .footer-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .footer-vito {
    font-size: 1.55rem;
    letter-spacing: 0.12em;
  }

  .footer-nine {
    font-size: 2.1rem;
  }

  .footer-tag {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
  }

  .footer-pillars,
  .footer-meta {
    white-space: normal;
    max-width: 34ch;
  }

  .eco-mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eco-mod {
    min-height: 132px;
  }

  .eco-bus {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .eco-mods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring-b,
  .footer-ring-b,
  .eco-hub-ring,
  .eco-led,
  .eco-bus-pulse,
  .cloud-rack,
  .cloud-rack-beam,
  .cloud-link,
  .cloud-telemetry i,
  .link-path,
  .auth-dot,
  .code-stream .cursor,
  .block[data-reveal] {
    animation: none !important;
    transition: none !important;
  }

  .eco-mod,
  .cloud-metric,
  .tech {
    opacity: 1;
    transform: none;
  }

  .block[data-reveal] {
    opacity: 1;
    transform: none;
  }
}
