/* ============================================================
   WHAT THE SOCIAL — DIGITAL UNIVERSE
   daylight hologram (light, default) / neon void (dark)
   ============================================================ */

:root {
  /* ---- LIGHT THEME (default): daylight hologram ---- */
  --void: #eef2fa;
  --void-2: #e3e9f6;
  --ink: #10182e;
  --ink-dim: #5b6685;

  --cyan: #008cb0;       --cyan-rgb: 0, 140, 176;
  --magenta: #d8136e;    --magenta-rgb: 216, 19, 110;
  --violet: #5e3cf2;     --violet-rgb: 94, 60, 242;
  --lime: #3e8a00;       --lime-rgb: 62, 138, 0;
  --frame-rgb: 16, 24, 46;
  --dim-rgb: 91, 102, 133;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(16, 24, 46, 0.12);
  --surface: rgba(255, 255, 255, 0.72);
  --node-bg: rgba(255, 255, 255, 0.88);
  --header-tint: rgba(238, 242, 250, 0.82);

  --title-ink: #10182e;
  --selection-ink: #ffffff;
  --btn-grad-2: #00b6dd;
  --btn-primary-ink: #ffffff;

  --card-shadow: 0 24px 60px rgba(15, 30, 70, 0.12);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --client-bg: rgba(255, 255, 255, 0.85);
  --vignette-color: rgba(196, 209, 236, 0.6);
  --scanline-color: #28355e;
  --scanline-opacity: 0.035;
  --noise-opacity: 0.04;

  --font-display: "Unbounded", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Albert Sans", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.83, 0, 0.17, 1);
}

[data-theme="dark"] {
  /* ---- DARK THEME: neon void ---- */
  --void: #020308;
  --void-2: #060a16;
  --ink: #e8f0ff;
  --ink-dim: #8b96b8;

  --cyan: #00e5ff;       --cyan-rgb: 0, 229, 255;
  --magenta: #ff2e88;    --magenta-rgb: 255, 46, 136;
  --violet: #7b5cff;     --violet-rgb: 123, 92, 255;
  --lime: #b6ff3c;       --lime-rgb: 182, 255, 60;
  --frame-rgb: 140, 190, 255;
  --dim-rgb: 139, 150, 184;

  --glass: rgba(120, 160, 255, 0.045);
  --glass-edge: rgba(140, 190, 255, 0.16);
  --surface: rgba(4, 7, 18, 0.6);
  --node-bg: rgba(6, 10, 22, 0.85);
  --header-tint: rgba(2, 3, 8, 0.75);

  --title-ink: #ffffff;
  --selection-ink: #020308;
  --btn-grad-2: #69f0ff;
  --btn-primary-ink: #020308;

  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --card-inset: inset 0 1px 0 rgba(180, 220, 255, 0.12);
  --client-bg: rgba(235, 241, 252, 0.94);
  --vignette-color: rgba(1, 2, 6, 0.85);
  --scanline-color: #9db8ff;
  --scanline-opacity: 0.05;
  --noise-opacity: 0.06;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  transition: background-color 0.5s ease, color 0.5s ease;
}

button { font: inherit; color: inherit; cursor: inherit; }

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

::selection { background: var(--magenta); color: var(--selection-ink); }

a { color: inherit; text-decoration: none; }

body[data-state="booting"] { overflow: hidden; }

/* ============ WEBGL CANVAS ============ */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ============ ATMOSPHERE ============ */
.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, var(--vignette-color) 100%);
}

.scanlines {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  opacity: var(--scanline-opacity);
  background: repeating-linear-gradient(0deg, transparent 0 2px, var(--scanline-color) 2px 3px);
  mix-blend-mode: overlay;
}

.noise {
  position: fixed; inset: -50%; z-index: 5; pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  animation: noiseShift 0.6s steps(4) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.grid-floor {
  position: fixed; left: 50%; bottom: -12vh; z-index: 1; pointer-events: none;
  width: 200vw; height: 60vh;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  background:
    linear-gradient(transparent 0%, rgba(var(--cyan-rgb), 0.05) 100%),
    repeating-linear-gradient(90deg, rgba(var(--cyan-rgb), 0.12) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(var(--violet-rgb), 0.12) 0 1px, transparent 1px 80px);
  mask-image: linear-gradient(transparent 0%, black 70%);
  -webkit-mask-image: linear-gradient(transparent 0%, black 70%);
  animation: gridFlow 6s linear infinite;
}
@keyframes gridFlow { to { background-position: 0 0, 0 0, 0 80px; } }

/* ============ CURSOR ============ */
.cursor {
  position: fixed; z-index: 100; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(var(--cyan-rgb), 0.7);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s;
}
[data-theme="dark"] .cursor { mix-blend-mode: screen; }
.cursor::before, .cursor::after {
  content: ""; position: absolute; background: rgba(var(--cyan-rgb), 0.7);
}
.cursor::before { left: 50%; top: -7px; width: 1px; height: 5px; }
.cursor::after { top: 50%; left: -7px; height: 1px; width: 5px; }
.cursor.is-active {
  width: 64px; height: 64px;
  border-color: var(--magenta);
  background: rgba(var(--magenta-rgb), 0.08);
}
.cursor-dot {
  position: fixed; z-index: 101; pointer-events: none;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 24px var(--cyan);
  transform: translate(-50%, -50%);
}

/* ============ HUD ============ */
.hud-corner {
  position: fixed; z-index: 50; width: 26px; height: 26px; pointer-events: none;
  border: 1px solid rgba(var(--cyan-rgb), 0.45);
}
.hud-corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.hud-side {
  position: fixed; top: 50%; z-index: 50; pointer-events: none;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.35em;
  color: rgba(var(--dim-rgb), 0.65);
}
.hud-side--left { left: 22px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.hud-side--right { right: 22px; transform: translateY(-50%); writing-mode: vertical-rl; }
@media (max-width: 900px) { .hud-side { display: none; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
}

.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.8); } }

/* ============ HEADER ============ */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 64px);
  background: linear-gradient(var(--header-tint), transparent);
  backdrop-filter: blur(2px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(var(--cyan-rgb), 0.6));
  animation: spinSlow 14s linear infinite;
}
.brand-mark svg { width: 100%; height: 100%; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.brand-text {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
}
.brand-text em {
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 8px; font-weight: 400; letter-spacing: 0.4em; color: var(--ink-dim);
  margin-top: 3px;
}

.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-dim); position: relative; padding: 6px 2px;
  transition: color 0.3s;
}
.nav a span { position: relative; display: inline-block; }
.nav a span::after {
  content: attr(data-text); position: absolute; inset: 0;
  color: var(--cyan); clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease-snap);
  text-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.8);
}
.nav a:hover span::after { clip-path: inset(0 0 0 0); }
@media (max-width: 900px) { .nav { display: none; } }

.hud-actions { display: flex; align-items: center; gap: 14px; }

.hud-status {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em;
  padding: 10px 18px;
  border: 1px solid rgba(var(--lime-rgb), 0.35); border-radius: 100px;
  color: var(--lime);
  background: rgba(var(--lime-rgb), 0.05);
  transition: background 0.3s, box-shadow 0.3s;
}
.hud-status:hover {
  background: rgba(var(--lime-rgb), 0.12);
  box-shadow: 0 0 24px rgba(var(--lime-rgb), 0.25);
}

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.theme-toggle:hover {
  border-color: rgba(var(--cyan-rgb), 0.6);
  box-shadow: 0 0 18px rgba(var(--cyan-rgb), 0.3);
}
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============ BOOT SEQUENCE ============ */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 42px; background: var(--void);
}
body[data-state="live"] .boot { pointer-events: none; }

.boot-shutter {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--void); z-index: -1;
  transition: transform 1s var(--ease-snap);
}
.boot-shutter--top { top: 0; box-shadow: 0 1px 0 rgba(var(--cyan-rgb), 0.4); }
.boot-shutter--bottom { bottom: 0; box-shadow: 0 -1px 0 rgba(var(--cyan-rgb), 0.4); }

body[data-state="live"] .boot { background: transparent; }
body[data-state="live"] .boot-shutter--top { transform: translateY(-101%); }
body[data-state="live"] .boot-shutter--bottom { transform: translateY(101%); }
body[data-state="live"] .boot-core,
body[data-state="live"] .boot-readout { opacity: 0; transition: opacity 0.4s; }

.boot-core { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.boot-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--cyan); border-right-color: var(--magenta);
  animation: spinSlow 1.2s linear infinite;
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.15), inset 0 0 30px rgba(var(--magenta-rgb), 0.08);
}
.boot-logo {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(var(--cyan-rgb), 0.8);
}
.boot-logo span { color: var(--magenta); text-shadow: 0 0 24px rgba(var(--magenta-rgb), 0.8); }

.boot-readout { width: min(420px, 80vw); display: flex; flex-direction: column; gap: 14px; }
.boot-log {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  color: var(--ink-dim); height: 70px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.boot-log div { animation: bootLine 0.3s var(--ease-out); }
.boot-log .ok { color: var(--lime); }
@keyframes bootLine { from { opacity: 0; transform: translateY(6px); } }

.boot-bar {
  height: 2px; background: rgba(var(--frame-rgb), 0.12); overflow: hidden;
}
.boot-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 14px var(--cyan);
  transition: width 0.2s linear;
}
.boot-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em; color: var(--ink-dim);
}

/* ============ LAYOUT ============ */
main { position: relative; z-index: 10; }

.section {
  position: relative;
  padding: clamp(90px, 14vh, 160px) clamp(24px, 7vw, 110px);
  max-width: 1500px; margin: 0 auto;
}

.section-head { margin-bottom: clamp(48px, 7vh, 80px); max-width: 720px; }

.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.4em;
  color: var(--cyan); padding: 7px 14px;
  border: 1px solid rgba(var(--cyan-rgb), 0.25);
  background: rgba(var(--cyan-rgb), 0.04);
  margin-bottom: 22px;
}
.tag--accent { color: var(--magenta); border-color: rgba(var(--magenta-rgb), 0.3); background: rgba(var(--magenta-rgb), 0.05); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800; letter-spacing: 0.02em; line-height: 1.05;
  background: linear-gradient(120deg, var(--title-ink) 30%, var(--cyan) 70%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-sub {
  margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-dim); line-height: 1.7; max-width: 56ch;
}
.section-sub strong { color: var(--ink); font-weight: 500; }

/* ============ HERO ============ */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 140px clamp(20px, 6vw, 80px) 100px;
}

.hero-kicker { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.hero-kicker .tag { margin-bottom: 0; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 10.5vw, 150px);
  line-height: 0.98; letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-line { display: block; }
.hero-line--glow {
  background: linear-gradient(95deg, var(--cyan) 10%, var(--violet) 50%, var(--magenta) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(var(--cyan-rgb), 0.35)) drop-shadow(0 0 60px rgba(var(--magenta-rgb), 0.2));
}

.hero-sub {
  margin-top: 34px; max-width: 60ch;
  font-size: clamp(15px, 1.8vw, 19px); line-height: 1.75; color: var(--ink-dim);
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

.hero-cta { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em;
  padding: 17px 30px; overflow: hidden;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.2s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }

.btn--primary {
  color: var(--btn-primary-ink); font-weight: 500;
  background: linear-gradient(100deg, var(--cyan), var(--btn-grad-2));
  border-color: transparent;
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.35);
}
.btn--primary:hover { box-shadow: 0 0 56px rgba(var(--cyan-rgb), 0.6); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(110%); }

.btn--ghost { color: var(--ink); }
.btn--ghost:hover {
  border-color: rgba(var(--magenta-rgb), 0.6);
  box-shadow: 0 0 30px rgba(var(--magenta-rgb), 0.2), inset 0 0 24px rgba(var(--magenta-rgb), 0.06);
}

.btn--lg { padding: 22px 38px; font-size: 13px; }

/* ---- floating holo cards ---- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow), var(--card-inset);
}

.holo {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px; min-width: 180px; text-align: left;
  border-radius: 10px;
  animation: float 7s ease-in-out infinite;
}
.holo::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
}
.holo--1 { top: 24%; left: clamp(8px, 6vw, 110px); animation-delay: 0s; }
.holo--2 { top: 56%; right: clamp(8px, 6vw, 110px); animation-delay: -2.5s; }
.holo--3 { bottom: 13%; left: clamp(8px, 12vw, 220px); animation-delay: -5s; }
@media (max-width: 1100px) { .holo--3 { display: none; } }
@media (max-width: 760px) { .holo { display: none; } }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-16px) rotate(0.4deg); }
}

.holo-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.35em; color: var(--ink-dim); }
.holo-value {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  text-shadow: 0 0 18px rgba(var(--cyan-rgb), 0.5);
}
.holo-value i { font-style: normal; color: var(--magenta); }
.holo-value--sm { font-size: 12px; letter-spacing: 0.2em; display: flex; align-items: center; gap: 8px; color: var(--lime); text-shadow: none; }
.holo-foot { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em; color: var(--ink-dim); }

.holo-spark { width: 100%; height: 30px; margin-top: 6px; }
.holo-spark polyline {
  fill: none; stroke: var(--cyan); stroke-width: 1.5;
  filter: drop-shadow(0 0 4px var(--cyan));
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: spark 3s var(--ease-out) 1.2s forwards;
}
@keyframes spark { to { stroke-dashoffset: 0; } }

.holo-bars { display: flex; gap: 5px; align-items: flex-end; height: 30px; margin-top: 6px; }
.holo-bars i {
  flex: 1; height: var(--h); border-radius: 1px;
  background: linear-gradient(180deg, var(--magenta), rgba(var(--magenta-rgb), 0.15));
  box-shadow: 0 0 8px rgba(var(--magenta-rgb), 0.5);
  transform-origin: bottom; animation: barGrow 1s var(--ease-out) backwards;
}
.holo-bars i:nth-child(2) { animation-delay: 0.1s; }
.holo-bars i:nth-child(3) { animation-delay: 0.2s; }
.holo-bars i:nth-child(4) { animation-delay: 0.3s; }
.holo-bars i:nth-child(5) { animation-delay: 0.4s; }
@keyframes barGrow { from { transform: scaleY(0); } }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.4em; color: var(--ink-dim);
}
.scroll-hint i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip {
  from { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  to { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ MARQUEE ============ */
.marquee {
  position: relative; z-index: 10; overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(var(--cyan-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--magenta-rgb), 0.15);
  background: var(--surface);
  backdrop-filter: blur(6px);
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.card {
  position: relative; padding: 34px 28px 28px; border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.15s linear, box-shadow 0.4s;
  overflow: hidden;
  --mx: 50%; --my: 50%;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--cyan-rgb), 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ga, 0deg), transparent 10%, var(--cyan) 22%, transparent 34%, transparent 58%, var(--magenta) 72%, transparent 86%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::after { opacity: 1; animation: borderSpin 3s linear infinite; }
@property --ga { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --ga: 360deg; } }

.card:hover {
  box-shadow: var(--card-shadow), 0 0 40px rgba(var(--cyan-rgb), 0.08), var(--card-inset);
}

.card-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--magenta); opacity: 0.85;
}
.card-icon {
  width: 44px; height: 44px; margin-bottom: 22px; color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb), 0.5));
  transform: translateZ(30px);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: 0.04em; margin-bottom: 12px; transform: translateZ(20px);
}
.card p { font-size: 14px; line-height: 1.7; color: var(--ink-dim); transform: translateZ(12px); }
.card-tag {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.32em;
  color: var(--violet); border: 1px solid rgba(var(--violet-rgb), 0.3);
  padding: 5px 10px; border-radius: 100px;
}

/* ============ ORBIT (D2C 360) ============ */
.section--orbit { text-align: center; }
.section--orbit .section-head { margin-inline: auto; }

.orbit {
  position: relative;
  width: min(640px, 88vw); height: min(640px, 88vw);
  margin: 0 auto;
}
.orbit-core {
  position: absolute; top: 50%; left: 50%;
  width: 158px; height: 158px; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-color: rgba(var(--magenta-rgb), 0.4);
  box-shadow: 0 0 60px rgba(var(--magenta-rgb), 0.25), 0 0 140px rgba(var(--cyan-rgb), 0.12),
              inset 0 0 40px rgba(var(--magenta-rgb), 0.08);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  50% { box-shadow: 0 0 90px rgba(var(--magenta-rgb), 0.4), 0 0 180px rgba(var(--cyan-rgb), 0.2), inset 0 0 50px rgba(var(--magenta-rgb), 0.14); }
}
.orbit-core-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.5em; color: var(--ink-dim); }
.orbit-core-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.orbit-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px dashed rgba(var(--frame-rgb), 0.22);
  transform: translate(-50%, -50%);
}
.orbit-ring--1 { width: 62%; height: 62%; animation: orbitSpin 26s linear infinite; }
.orbit-ring--2 { width: 96%; height: 96%; border-style: solid; border-color: rgba(var(--violet-rgb), 0.18); animation: orbitSpin 44s linear infinite reverse; }
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-node { position: absolute; top: 50%; left: 50%; }
/* nodes ride the spinning ring; counter-rotation keeps labels upright */
.orbit-ring--1 .orbit-node { animation: counterSpin1 26s linear infinite; }
.orbit-ring--2 .orbit-node { animation: counterSpin2 44s linear infinite; }
@keyframes counterSpin1 {
  from { transform: rotate(var(--a)) translateX(calc(min(640px, 88vw) * 0.31)) rotate(calc(-1 * var(--a) - 0deg)); }
  to   { transform: rotate(var(--a)) translateX(calc(min(640px, 88vw) * 0.31)) rotate(calc(-1 * var(--a) - 360deg)); }
}
@keyframes counterSpin2 {
  from { transform: rotate(var(--a)) translateX(calc(min(640px, 88vw) * 0.48)) rotate(calc(-1 * var(--a) + 0deg)); }
  to   { transform: rotate(var(--a)) translateX(calc(min(640px, 88vw) * 0.48)) rotate(calc(-1 * var(--a) + 360deg)); }
}

.orbit-node {
  margin: -14px 0 0 -44px; width: 88px; text-align: center;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em;
  color: var(--ink); padding: 8px 4px;
  background: var(--node-bg);
  border: 1px solid rgba(var(--cyan-rgb), 0.35); border-radius: 100px;
  box-shadow: 0 0 18px rgba(var(--cyan-rgb), 0.18);
  backdrop-filter: blur(4px);
}
.orbit-ring--2 .orbit-node { border-color: rgba(var(--magenta-rgb), 0.4); box-shadow: 0 0 18px rgba(var(--magenta-rgb), 0.2); }

.orbit-dust {
  position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.08), transparent 65%);
  animation: corePulse 6s ease-in-out infinite;
}

.orbit-caption { margin: 56px auto 0; max-width: 56ch; color: var(--ink-dim); line-height: 1.7; }
.orbit-caption strong { color: var(--cyan); font-weight: 500; letter-spacing: 0.05em; }

/* ============ SIGNALS ============ */
.signals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.signal {
  padding: 40px 28px; border-radius: 14px; text-align: center;
  position: relative; overflow: hidden;
}
.signal::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}
.signal-value {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); font-weight: 800;
  background: linear-gradient(180deg, var(--title-ink), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(var(--cyan-rgb), 0.35));
}
.signal-label {
  display: block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.32em; color: var(--ink-dim);
}

/* ============ CLIENTS ============ */
.section--clients { text-align: center; padding-top: 0; }
.section--clients .section-head { margin-inline: auto; }
.section--clients .section-sub { margin-inline: auto; }

.clients {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px;
}
.client {
  display: grid; place-items: center;
  min-width: 190px; min-height: 92px; padding: 24px 34px;
  border-radius: 12px; position: relative; overflow: hidden;
  background: var(--client-bg); /* logos stay true-color: light chips in both themes */
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.client::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.client:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--cyan-rgb), 0.45);
  box-shadow: var(--card-shadow), 0 0 36px rgba(var(--cyan-rgb), 0.16), var(--card-inset);
}
.client:hover::before { opacity: 0.8; }

.client img {
  max-height: 38px; max-width: 140px; width: auto; height: auto;
  object-fit: contain; display: block;
  transition: transform 0.35s var(--ease-out);
}
.client:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
  .client { min-width: 150px; min-height: 76px; padding: 18px 22px; flex: 1 1 40%; }
  .client img { max-height: 30px; max-width: 116px; }
}

/* ============ PROCESS ============ */
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px;
}
.step {
  padding: 34px 28px; border-radius: 14px; position: relative;
  transition: transform 0.15s linear, box-shadow 0.4s;
}
.step:nth-child(even) { transform: translateY(26px); }
@media (max-width: 760px) { .step:nth-child(even) { transform: none; } }

.step-phase {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.4em; color: var(--magenta);
}
.step h3 {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800;
  margin: 14px 0 12px; letter-spacing: 0.04em;
  background: linear-gradient(110deg, var(--title-ink), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { font-size: 14px; line-height: 1.7; color: var(--ink-dim); }

/* ============ CONTACT ============ */
.section--contact { text-align: center; padding-bottom: 140px; }
.contact-inner { max-width: 880px; margin: 0 auto; }
.contact-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(36px, 7.5vw, 96px); line-height: 1.04; letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.contact-title-glow {
  background: linear-gradient(95deg, var(--magenta), var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(var(--magenta-rgb), 0.35));
}
.section--contact .section-sub { margin-inline: auto; }

.contact-links {
  margin-top: 46px; display: flex; gap: 18px; justify-content: center; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
}
.contact-links a { color: var(--ink-dim); transition: color 0.3s, text-shadow 0.3s; }
.contact-links a:hover { color: var(--cyan); text-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.8); }
.contact-links i { color: rgba(var(--dim-rgb), 0.4); font-style: normal; }

/* ============ FOOTER ============ */
.footer {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px clamp(24px, 5vw, 64px) 34px;
  border-top: 1px solid rgba(var(--frame-rgb), 0.1);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.28em; color: var(--ink-dim);
  background: var(--surface); backdrop-filter: blur(8px);
}
.footer-mid { color: var(--cyan); opacity: 0.7; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .signals .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .signals .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4), .signals .reveal:nth-child(4) { transition-delay: 0.24s; }
.cards .reveal:nth-child(5) { transition-delay: 0.32s; }
.cards .reveal:nth-child(6) { transition-delay: 0.4s; }
.cards .reveal:nth-child(7) { transition-delay: 0.48s; }
.cards .reveal:nth-child(8) { transition-delay: 0.56s; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
