/* ==========================================================================
   Gelendzhik CDN — landing page
   Dark premium UI · neon blue × magenta · glassmorphism
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Base */
  --bg: #05060a;
  --bg-2: #0a0c14;
  --ink: #eef3ff;
  --ink-dim: rgba(222, 232, 255, 0.64);
  --ink-mute: rgba(222, 232, 255, 0.38);

  /* Neon palette */
  --blue: #00e5ff;
  --blue-2: #2f7bff;
  --purple: #7a3cff;
  --magenta: #e03cff;

  /* Glass */
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-blur: 18px;

  /* Gradients */
  --grad-neon: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 35%, var(--purple) 65%, var(--magenta) 100%);

  /* Type */
  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animatable angle for rotating conic borders */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

::selection { background: rgba(224, 60, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.mono { font-family: var(--f-mono); letter-spacing: 0.02em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--bg-2);
  border: 1px solid var(--blue);
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.gradient-text {
  background: var(--grad-neon);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.accent-blue { color: var(--blue); font-weight: 500; }
.accent-magenta { color: var(--magenta); font-weight: 500; }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  will-change: transform;
}
.ambient__orb--blue    { background: var(--blue-2);  top: -25vmax; left: -20vmax; animation: drift 28s ease-in-out infinite alternate; }
.ambient__orb--purple  { background: var(--purple);  bottom: -30vmax; right: -20vmax; animation: drift 34s ease-in-out infinite alternate-reverse; }
.ambient__orb--magenta { background: var(--magenta); top: 40%; left: 50%; width: 35vmax; height: 35vmax; opacity: 0.08; animation: drift 40s ease-in-out infinite alternate; }

@keyframes drift {
  to { transform: translate3d(8vmax, 6vmax, 0) scale(1.1); }
}

/* Film grain for a cinematic texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft glow that follows the cursor (desktop only, positioned by JS) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: -1;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.09), rgba(122, 60, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow.is-active { opacity: 1; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.logo__text b {
  margin-left: 6px;
  font-weight: 700;
  color: var(--blue);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}
.logo__mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), inset 0 0 12px rgba(122, 60, 255, 0.35);
  display: grid;
  place-items: center;
}
.logo__mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue), 0 0 0 5px rgba(224, 60, 255, 0.25);
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(0.7); opacity: 0.7; }
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-dim);
}
.nav a {
  position: relative;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--grad-neon);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.status-pill__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29ffb4;
  box-shadow: 0 0 10px #29ffb4;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow__line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
  box-shadow: 0 0 8px var(--blue);
}

.section {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
}
.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__title {
  margin-top: 20px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 22px;
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-dim);
}

/* ---------- Glass panel (shared) ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Images with gradient fallback ---------- */
.image-slot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(122, 60, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0, 229, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #080a14 0%, #05060a 100%);
}
.image-slot__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-slot::after {
  /* Neon inner frame + blur sheen */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.18),
    inset 0 0 120px rgba(122, 60, 255, 0.18);
  pointer-events: none;
}

.image-slot__tag {
  position: absolute;
  z-index: 2;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--ink-mute);
  border: 1px dashed rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.6s;
}

.image-slot--hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.image-slot--hero .image-slot__tag { right: 24px; bottom: 24px; }

.image-slot--portrait {
  border-radius: calc(var(--radius) - 6px);
  aspect-ratio: 4 / 5;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.image-slot--portrait .image-slot__tag { left: 16px; top: 16px; }

.image-slot__rings {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}
.image-slot__rings i {
  grid-area: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.35);
  animation: ring 4s ease-out infinite;
}
.image-slot__rings i:nth-child(1) { width: 30%; aspect-ratio: 1; }
.image-slot__rings i:nth-child(2) { width: 55%; aspect-ratio: 1; animation-delay: 1.3s; border-color: rgba(122, 60, 255, 0.35); }
.image-slot__rings i:nth-child(3) { width: 80%; aspect-ratio: 1; animation-delay: 2.6s; border-color: rgba(224, 60, 255, 0.3); }

@keyframes ring {
  0%   { transform: scale(0.6); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* ---------- Hero layers ---------- */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Perspective neon grid floor (synthwave horizon) */
.hero__floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 55%;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 60, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
  opacity: 0.35;
  animation: floor-move 6s linear infinite;
}
@keyframes floor-move {
  to { background-position: 0 64px, 0 0; }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 80% 60% at 30% 45%, transparent 0%, rgba(5, 6, 10, 0.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.6) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 4; }
.scroll-cue { z-index: 4; }

.hero__title {
  margin-top: 28px;
  font-family: var(--f-display);
  font-weight: 500;
  /* Long Russian words («Инфраструктура») must fit on narrow screens */
  font-size: clamp(28px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title-top {
  display: block;
  font-weight: 300;
  color: var(--ink);
}
.hero__title .gradient-text {
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.25));
}

.hero__subtitle {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}

/* ---------- Primary CTA: "Connect to Node" ---------- */
.btn-node {
  --angle: 0deg;
  position: relative;
  display: inline-flex;
  padding: 1.5px; /* border thickness */
  border-radius: 999px;
  background: conic-gradient(from var(--angle), var(--blue), var(--purple), var(--magenta), var(--blue-2), var(--blue));
  animation: spin-angle 4s linear infinite;
  transition: transform 0.35s var(--ease-out), box-shadow 0.4s;
  will-change: transform;
  isolation: isolate;
}
@keyframes spin-angle { to { --angle: 360deg; } }

.btn-node__glow {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(18px);
  opacity: 0.45;
  transition: opacity 0.4s, filter 0.4s;
}

.btn-node__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px 18px 24px;
  border-radius: inherit;
  background: linear-gradient(180deg, #0c0f1c, #06070d);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition: background 0.4s;
}

/* Shine sweep on hover */
.btn-node__inner::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease-out);
}
/* Radial highlight that follows pointer (--mx/--my set by JS) */
.btn-node__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-node__pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}
.btn-node__pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping {
  from { transform: scale(0.5); opacity: 1; }
  to   { transform: scale(2.2); opacity: 0; }
}

.btn-node__label,
.btn-node__icon { position: relative; z-index: 1; }

.btn-node__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.5s var(--ease-out);
}

.btn-node:hover .btn-node__glow,
.btn-node:focus-visible .btn-node__glow { opacity: 0.9; filter: blur(26px); }
.btn-node:hover .btn-node__inner::before { left: 120%; }
.btn-node:hover .btn-node__inner::after { opacity: 1; }
.btn-node:hover .btn-node__icon { transform: translateX(5px); }
.btn-node:hover { animation-duration: 1.6s; }
.btn-node:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 18px 26px;
  font-size: 15px;
  color: var(--ink-dim);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.05);
}

/* ---------- Hero stats ---------- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 760px;
}
.stat {
  padding: 22px 40px 0 0;
  margin-right: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.stat:last-child { border-right: 0; margin-right: 0; }
.stat dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat dd {
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat small {
  margin-left: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--blue);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.scroll-cue__track {
  position: relative;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2));
  overflow: hidden;
}
.scroll-cue__dot {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: scroll-dot 2.2s var(--ease-out) infinite;
}
@keyframes scroll-dot {
  from { top: -14px; }
  to   { top: 48px; }
}

/* ==========================================================================
   NETWORK MAP
   ========================================================================== */
.network__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.network__panel {
  padding: 0;
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--ink-mute);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-bar__dots { display: inline-flex; gap: 6px; }
.panel-bar__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.panel-bar__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #29ffb4;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.map {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 60%, rgba(0, 229, 255, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.2), rgba(5, 6, 10, 0.6));
}
.map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: manipulation;
}
.map__canvas.is-hovering { cursor: pointer; }
.map__canvas:focus-visible { outline-offset: -4px; }

.map__tooltip {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 12px;
  pointer-events: none;
  background: rgba(10, 12, 22, 0.72);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
  will-change: transform;
}
.map__tooltip[hidden] { display: block; opacity: 0; }
.map__tooltip h4 {
  margin: 0 0 2px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.map__tooltip p { color: var(--ink-dim); margin-bottom: 10px; font-size: 13px; }
.map__tooltip dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
}
.map__tooltip dt { color: var(--ink-mute); }
.map__tooltip dd { text-align: right; color: var(--ink); }

.map__legend {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
}
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.lg--core  { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.lg--edge  { background: var(--blue);    box-shadow: 0 0 8px var(--blue); }
.lg--up    { background: transparent; border: 1px solid var(--purple); transform: rotate(45deg); border-radius: 1px; }
.lg--pulse { width: 16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); }

/* Side metrics */
.network__side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.metric { padding: 22px 22px 20px; border-radius: 18px; }
.metric__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.metric__value {
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.metric__value small {
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--blue);
}
.metric__value--node {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--blue);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}
.metric__value--shield {
  font-family: var(--f-mono);
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--magenta);
  text-shadow: 0 0 16px rgba(224, 60, 255, 0.55);
}
.metric__sub { margin-top: 6px; font-size: 13px; color: var(--ink-dim); }

.meter {
  margin-top: 14px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-neon);
  box-shadow: 0 0 10px var(--blue);
  transition: width 1s var(--ease-out);
}

/* ==========================================================================
   BENEFITS CARDS
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  perspective: 1200px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  min-height: 400px;
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

/* Gradient hairline border revealed on hover (mask trick) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.8), transparent 40%, transparent 60%, rgba(224, 60, 255, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.25;
  transition: opacity 0.5s;
  pointer-events: none;
}

/* Pointer spotlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(0, 229, 255, 0.1), rgba(122, 60, 255, 0.06) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 60px -20px rgba(0, 229, 255, 0.35);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  color: var(--blue);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.12), rgba(122, 60, 255, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 30px -6px rgba(0, 229, 255, 0.5), inset 0 0 16px rgba(0, 229, 255, 0.1);
  transform: translateZ(30px);
  transition: color 0.4s, box-shadow 0.4s;
}
.card__icon svg { width: 28px; height: 28px; filter: drop-shadow(0 0 6px currentColor); }
.card:hover .card__icon { color: var(--magenta); box-shadow: 0 0 40px -6px rgba(224, 60, 255, 0.7), inset 0 0 16px rgba(224, 60, 255, 0.15); }

.card__index {
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card__title {
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card__text {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-dim);
  flex: 1;
}
.card__metric {
  margin-top: 28px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--blue);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   CONNECT (live network onboarding)
   ========================================================================== */
.connect__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
}
.connect__panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 60, 255, 0.22), transparent 65%);
  pointer-events: none;
}
.connect__copy { position: relative; }
.connect__visual {
  position: relative;
  display: grid;
  gap: 16px;
}

/* Onboarding steps with a neon connector line */
.steps {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  max-width: 520px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--magenta));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  opacity: 0.6;
}
.steps li {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 12px;
  color: var(--blue);
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: #07090f;
  box-shadow: 0 0 18px -4px rgba(0, 229, 255, 0.55);
}
.steps h3 {
  margin: 2px 0 2px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
}
.steps p { font-size: 14px; color: var(--ink-dim); }

/* DNS record snippet */
.dns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  max-width: 520px;
  margin-top: 28px;
  padding: 12px 12px 12px 18px;
  font-size: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 6, 10, 0.55);
}
.dns__k { color: var(--ink-dim); }
.dns__t {
  padding: 2px 8px;
  font-size: 11px;
  color: var(--magenta);
  border: 1px solid rgba(224, 60, 255, 0.4);
  border-radius: 6px;
}
.dns__v { color: var(--blue); text-shadow: 0 0 12px rgba(0, 229, 255, 0.45); }
.dns__copy {
  margin-left: auto;
  padding: 6px 12px;
  font: inherit;
  font-size: 11px;
  color: var(--ink-dim);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.dns__copy:hover { color: var(--ink); border-color: rgba(0, 229, 255, 0.45); }
.dns__copy.is-done { color: #29ffb4; border-color: rgba(41, 255, 180, 0.45); }

/* Uptime history (status-page style) */
.uptime { padding: 18px 18px 14px; border-radius: 16px; }
.uptime__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.uptime__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #29ffb4;
}
.uptime__bars {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 2px;
  height: 30px;
  margin-top: 14px;
}
.uptime__bars i {
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(0, 229, 255, 0.35));
  opacity: 0.75;
  transform-origin: bottom;
  transition: opacity 0.2s, transform 0.2s;
}
.uptime__bars i.is-warn { background: linear-gradient(180deg, var(--magenta), rgba(224, 60, 255, 0.35)); }
.uptime__bars i:hover { opacity: 1; transform: scaleY(1.15); }
.uptime__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.signup {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  margin-top: 28px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(5, 6, 10, 0.5);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.signup:focus-within {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.08), 0 0 30px rgba(0, 229, 255, 0.15);
}
.signup input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.signup input::placeholder { color: var(--ink-mute); }
.signup__btn {
  padding: 12px 22px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #05060a;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--blue), #8fd8ff);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.4);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
}
.signup__btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(100deg, var(--blue), var(--magenta));
  box-shadow: 0 0 36px rgba(224, 60, 255, 0.45);
  color: #fff;
}
.signup__msg {
  position: absolute;
  left: 22px;
  top: calc(100% + 10px);
  font-size: 12px;
  color: var(--ink-dim);
}
.signup__msg.is-ok { color: #29ffb4; }
.signup__msg.is-err { color: #ff6b9a; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer__meta { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; }
.footer__copy { font-size: 13px; color: var(--ink-mute); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Cards keep their own tilt transform after reveal */
.card.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
/* After reveal, remove delay so hover/tilt responds instantly */
.reveal.is-settled { transition-delay: 0ms; }
.card.reveal.is-settled {
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

/* No-JS fallback: show everything */
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network__layout { grid-template-columns: 1fr; }
  .network__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .connect__panel { grid-template-columns: 1fr; }
  .image-slot--portrait { aspect-ratio: 16 / 10; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { margin-right: 0; padding-right: 20px; border-right: 0; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--container)); }
  .status-pill { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .network__side { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 5; }
  .map__legend { gap: 12px; left: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn-node__inner, .btn-ghost { justify-content: center; }
  .signup { border-radius: 20px; }
  .signup__btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
