@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Syne:wght@600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-deep: #0a0f1c;
  --ink: #f1f5ff;
  --muted: rgba(241, 245, 255, 0.7);
  --accent: #59f7ff;
  --accent-soft: rgba(89, 247, 255, 0.18);
  --panel: rgba(11, 18, 34, 0.8);
  --glow: rgba(89, 247, 255, 0.55);
  --max-width: 980px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0c172a 0%, var(--bg) 45%, #030509 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

main {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

main > section {
  position: relative;
  z-index: 1;
}

body::before,
body::after,
main::before,
main::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(89, 247, 255, 0.08), transparent 55%),
    radial-gradient(circle at 50% 55%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.65) 100%);
  opacity: 1;
}

body::after {
  background-image:
    linear-gradient(90deg, rgba(89, 247, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(89, 247, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(89, 247, 255, 0.75) 0 1.2px, transparent 2.8px),
    radial-gradient(circle, rgba(125, 177, 255, 0.45) 0 1px, transparent 2.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 0 0.9px, transparent 2px);
  background-size: 180px 180px, 180px 180px, 160px 160px, 110px 110px, 220px 220px;
  background-position: 0 0, 0 0, 0 -600px, 90px -1200px, -40px -900px;
  opacity: 0.6;
  animation: starRain 16s linear infinite;
}

main::before {
  background-image:
    repeating-linear-gradient(
      110deg,
      rgba(89, 247, 255, 0.08) 0 1px,
      transparent 1px 160px
    ),
    repeating-linear-gradient(
      12deg,
      rgba(89, 247, 255, 0.06) 0 1px,
      transparent 1px 220px
    ),
    radial-gradient(circle at 30% 40%, rgba(89, 247, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(89, 247, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 20%, rgba(89, 247, 255, 0.16) 0 2px, transparent 3px);
  background-size: 140% 140%;
  background-position: 0 0;
  opacity: 0.18;
  animation: streamSlide 36s linear infinite;
}

main::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><rect width='240' height='240' fill='none'/><text x='18' y='42' font-size='16' fill='%2359f7ff' fill-opacity='0.08'>1010 0110</text><text x='140' y='80' font-size='14' fill='%2359f7ff' fill-opacity='0.06'>0x9f4b</text><text x='28' y='140' font-size='12' fill='%2359f7ff' fill-opacity='0.06'>KEY</text><text x='120' y='180' font-size='12' fill='%2359f7ff' fill-opacity='0.05'>AEAD</text><text x='60' y='210' font-size='11' fill='%2359f7ff' fill-opacity='0.05'>LOCK</text></svg>");
  background-size: 240px 240px;
  opacity: 0.08;
  filter: blur(0.4px);
  animation: glyphFade 24s ease-in-out infinite;
}

.scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.scene-layer.is-ready {
  opacity: 1;
}

.scene-layer.is-disabled {
  display: none;
}

.scene-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
  isolation: isolate;
  --hero-progress: 0;
  --hero-logo-progress: 0;
  --hero-features-progress: 0;
  --hero-logo-shift: 0px;
  --hero-logo-scale: 1;
  --hero-features-opacity: 0;
  --hero-features-shift: 16px;
  --hero-feature-shift: 12px;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(89, 247, 255, 0.15), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(125, 177, 255, 0.12), transparent 52%),
    linear-gradient(135deg, rgba(9, 16, 30, 0.9), rgba(4, 8, 16, 0.4));
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(60deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 160px 160px;
  opacity: 0.35;
}

.hero::after {
  background: radial-gradient(circle at 50% 10%, rgba(89, 247, 255, 0.1), transparent 55%);
  opacity: 0.8;
}

.hero-3d {
  z-index: 1;
  pointer-events: none;
}

.hero-3d canvas {
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.45));
}

.hero-3d.is-ready {
  opacity: 0.95;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  width: min(100%, 1200px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s ease;
  text-align: center;
}

.hero-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(0) translateY(0) scale(1);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}

.hero.hero--scrub .hero-brand {
  transition: none;
  transform: translateX(var(--hero-logo-shift, 0px)) scale(var(--hero-logo-scale, 1));
}

.hero.hero--centered .hero-brand {
  transform: translateX(0) translateY(0) scale(1);
}

.hero.hero--logo-left .hero-brand {
  transform: translateX(var(--hero-left-shift, -260px)) scale(0.92);
}

.logo {
  width: min(88vw, 760px);
  max-width: 760px;
  filter: drop-shadow(0 20px 50px rgba(2, 12, 24, 0.6));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: clamp(280px, 44vw, 520px);
  height: clamp(90px, 12vw, 140px);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  bottom: clamp(2.2rem, 6vw, 4.2rem);
  left: 50%;
  transform: translateX(-50%);
  filter: blur(6px);
  opacity: 0.45;
  z-index: 0;
}

.hero-core {
  z-index: 1;
}

.hero-core {
  position: absolute;
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(6, 12, 22, 0.9) 0%, rgba(5, 9, 18, 0.9) 55%, rgba(5, 7, 12, 0.75) 100%);
  box-shadow:
    0 0 60px rgba(3, 8, 16, 0.6),
    inset 0 0 40px rgba(89, 247, 255, 0.08);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

.hero-core::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(89, 247, 255, 0.12);
  box-shadow:
    0 0 0 20px rgba(89, 247, 255, 0.05),
    0 0 0 42px rgba(89, 247, 255, 0.03);
  opacity: 0.7;
}

.hero-core::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(89, 247, 255, 0.45);
  box-shadow: 0 0 16px rgba(89, 247, 255, 0.35);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: corePulse 24s ease-in-out infinite;
}

.hero-tagline {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 245, 255, 0.5);
  max-width: 48ch;
  line-height: 1.6;
  z-index: 2;
}

.hero-features {
  position: absolute;
  right: clamp(-2rem, -1vw, 0rem);
  top: 50%;
  --hero-features-x: 8rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  text-align: left;
  padding-right: 1.4rem;
  opacity: 0;
  transform: translateY(calc(-50% + 16px)) translateX(var(--hero-features-x, 0));
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hero.hero--scrub .hero-features {
  transition: none;
  opacity: var(--hero-features-opacity, 0);
  transform: translateY(calc(-50% + var(--hero-features-shift, 16px)))
    translateX(var(--hero-features-x, 0));
}

.hero-feature {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero.hero--scrub .hero-feature {
  transition: none;
  opacity: var(--hero-features-opacity, 0);
  transform: translateY(var(--hero-feature-shift, 12px));
}

.hero-feature:nth-child(1) {
  color: var(--accent);
}

.hero-feature:nth-child(2) {
  color: rgba(241, 245, 255, 0.92);
}

.hero-feature:nth-child(3) {
  color: rgba(137, 202, 255, 0.9);
}

.hero-dot {
  color: var(--accent);
  margin-left: 0.05rem;
  opacity: 0.8;
}

.hero.hero--features-visible .hero-features {
  opacity: 1;
  transform: translateY(-50%);
}

.hero.hero--features-visible .hero-feature {
  opacity: 1;
  transform: translateY(0);
}

.hero.hero--features-visible .hero-feature:nth-child(1) {
  transition-delay: 0ms;
}

.hero.hero--features-visible .hero-feature:nth-child(2) {
  transition-delay: 140ms;
}

.hero.hero--features-visible .hero-feature:nth-child(3) {
  transition-delay: 280ms;
}

body.hero-locked {
  overflow: hidden;
  touch-action: none;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

body.is-loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
}

body:not(.is-loaded) .hero-3d {
  opacity: 0;
}

.hero-text .scroll-hint {
  align-items: flex-start;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: pulse 2.8s ease-in-out infinite;
}

.narrative {
  position: relative;
  padding: 6rem 1.5rem 8rem;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.22) 0%, rgba(6, 11, 20, 0.28) 100%),
    radial-gradient(circle at 20% 80%, rgba(89, 247, 255, 0.12), transparent 55%);
}

.device-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(100%, 1100px);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.device {
  width: clamp(160px, 20vw, 260px);
  filter: drop-shadow(0 20px 50px rgba(2, 12, 24, 0.6));
  animation: device-breathe 4.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.device-right {
  animation-delay: 1s;
}

.link-line {
  position: relative;
  flex: 1;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.bridge-3d {
  inset: -20% -8%;
  z-index: 1;
  pointer-events: none;
}

.bridge-3d.is-ready {
  opacity: 0.95;
}

.device-bridge.is-3d .link-line,
.device-bridge.is-3d .packet,
.device-bridge.is-3d .lock-indicator,
.device-bridge.is-3d .hacker-figure {
  opacity: 0.12;
  filter: blur(0.3px);
}

.link-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(89, 247, 255, 0.1), rgba(89, 247, 255, 0.6), rgba(89, 247, 255, 0.1));
  box-shadow: 0 0 18px rgba(89, 247, 255, 0.25);
  overflow: hidden;
}

.link-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(89, 247, 255, 0.8) 0 14px,
    rgba(89, 247, 255, 0) 14px 28px
  );
  opacity: 0.4;
  animation: data-flow 2.8s linear infinite;
}

.link-track::after {
  content: "";
  position: absolute;
  inset: -4px 0;
  background: radial-gradient(circle, rgba(89, 247, 255, 0.35), transparent 60%);
  opacity: 0.25;
  animation: encrypt-glow 2.4s ease-in-out infinite;
}

.packet {
  position: absolute;
  top: 50%;
  left: 0%;
  min-width: clamp(190px, 22vw, 260px);
  max-width: 320px;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  color: #e7feff;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(89, 247, 255, 0.45);
  box-shadow: 0 0 18px rgba(89, 247, 255, 0.25);
  transform: translate(-50%, -160%);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.packet-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.packet-body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e7feff;
  margin: 0;
  white-space: pre-wrap;
}

.packet-plain {
  animation: packet-plain 6s ease-in-out infinite;
}

.packet-cipher {
  animation: packet-cipher 6s ease-in-out infinite;
}

.lock-indicator {
  position: absolute;
  left: 50%;
  top: 72%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.9);
  animation: lock-reveal 6s ease-in-out infinite;
  pointer-events: none;
}

.lock-indicator img {
  width: clamp(96px, 11vw, 150px);
  filter: drop-shadow(0 10px 25px rgba(2, 10, 22, 0.5));
}

.lock-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hacker-figure {
  position: absolute;
  left: 50%;
  top: 72%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  animation: hacker-peek 6s ease-in-out infinite;
  pointer-events: none;
}

.hacker-figure img {
  width: clamp(120px, 14vw, 180px);
  filter: drop-shadow(0 18px 40px rgba(2, 10, 22, 0.6));
}

.hacker-tag {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-sticky {
  position: relative;
  display: flex;
  justify-content: center;
}

.story-lines {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  perspective: 900px;
  transform-style: preserve-3d;
}

.story-line {
  position: relative;
  display: block;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  min-height: 52vh;
  width: 100%;
  max-width: 48ch;
  margin: 0 auto;
  padding: 0 0.75rem;
  text-wrap: balance;
  opacity: var(--line-opacity, 0.25);
  transform:
    translateY(var(--line-shift, 0px))
    translateZ(var(--line-depth, 0px))
    rotateX(var(--line-rotate, 0deg))
    scale(var(--line-scale, 1));
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.story-logo {
  display: block;
  width: clamp(320px, 40vw, 480px);
  margin: 1.2rem auto 0;
  filter: drop-shadow(0 12px 28px rgba(2, 10, 22, 0.45)) drop-shadow(0 0 12px rgba(89, 247, 255, 0.15));
}

.accent {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(89, 247, 255, 0.45);
}

.network {
  padding: 5rem 1.5rem 7rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(89, 247, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(6, 10, 20, 0.62), rgba(3, 7, 15, 0.7));
}

.network-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.network-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.network-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
}

.network-title {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
  margin: 0;
}

.network-summary {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

.network-viz {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  isolation: isolate;
}

.network-3d {
  z-index: 2;
  pointer-events: auto;
}

.network-3d.is-ready {
  opacity: 0.98;
}

.network-2d {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.network-viz.is-3d .network-2d {
  opacity: 0;
  pointer-events: none;
}

.network-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 160px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(7, 12, 24, 0.92);
  border: 1px solid rgba(89, 247, 255, 0.35);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.network-tooltip.is-visible {
  opacity: 1;
}

.network-tooltip strong {
  display: block;
  font-size: 0.78rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.network-lines .line {
  stroke: rgba(89, 247, 255, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6 12;
  animation: line-dash 3.6s linear infinite;
}

.network-lines .line-2 {
  animation-delay: 0.4s;
}

.network-lines .line-3 {
  animation-delay: 0.8s;
}

.network-lines .line-4 {
  animation-delay: 1.2s;
}

.network-lines .line-5 {
  animation-delay: 1.6s;
}

.network-lines .line-6 {
  animation-delay: 2s;
}

.sink-node {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 18vw, 200px);
  display: grid;
  place-items: center;
  gap: 0.4rem;
  z-index: 3;
}

.sink-screen {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(89, 247, 255, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(89, 247, 255, 0.4);
  box-shadow: 0 20px 40px rgba(2, 8, 18, 0.6), inset 0 0 30px rgba(89, 247, 255, 0.2);
  position: relative;
}

.sink-screen::after {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 10px;
  border: 1px solid rgba(89, 247, 255, 0.4);
  background: rgba(6, 12, 24, 0.6);
}

.sink-base {
  width: 52%;
  height: 12px;
  border-radius: 999px;
  background: rgba(89, 247, 255, 0.3);
  box-shadow: 0 0 18px rgba(89, 247, 255, 0.25);
}

.sink-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.node {
  position: absolute;
  width: clamp(90px, 12vw, 140px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.node img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 45px rgba(2, 12, 24, 0.6));
}

.node::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px solid rgba(89, 247, 255, 0.45);
  opacity: 0.5;
  animation: node-pulse 3.4s ease-out infinite;
}

.node::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  border: 1px dashed rgba(89, 247, 255, 0.25);
  opacity: 0.4;
  animation: node-pulse 3.4s ease-out infinite;
  animation-delay: 1.2s;
}

.node-1 {
  left: 12%;
  top: 18%;
}

.node-2 {
  left: 86%;
  top: 20%;
}

.node-3 {
  left: 10%;
  top: 56%;
}

.node-4 {
  left: 88%;
  top: 60%;
}

.node-5 {
  left: 22%;
  top: 84%;
}

.node-6 {
  left: 74%;
  top: 88%;
}

.lwc-tag {
  position: absolute;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(89, 247, 255, 0.16);
  border: 1px solid rgba(89, 247, 255, 0.5);
  color: #e6fbff;
  box-shadow: 0 0 16px rgba(89, 247, 255, 0.25);
  transform: translate(-50%, -50%);
  animation: lwc-pulse 2.6s ease-in-out infinite;
  z-index: 2;
}

.tag-1 {
  left: 28%;
  top: 30%;
}

.tag-2 {
  left: 70%;
  top: 32%;
  animation-delay: 0.4s;
}

.tag-3 {
  left: 24%;
  top: 66%;
  animation-delay: 0.8s;
}

.tag-4 {
  left: 72%;
  top: 70%;
  animation-delay: 1.2s;
}

.tag-5 {
  left: 48%;
  top: 78%;
  animation-delay: 1.6s;
}

.final {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem 6rem;
  background:
    radial-gradient(circle at 70% 20%, rgba(89, 247, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(6, 10, 20, 0.65), rgba(3, 6, 13, 0.75));
}

.coming-soon {
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(89, 247, 255, 0.35);
  animation: slow-glow 4s ease-in-out infinite;
  text-align: center;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes slow-glow {
  0%,
  100% {
    text-shadow: 0 0 24px rgba(89, 247, 255, 0.25);
  }
  50% {
    text-shadow: 0 0 42px rgba(89, 247, 255, 0.45);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0.7;
  }
}

@keyframes data-flow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 160px 0;
  }
}

@keyframes encrypt-glow {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes packet-plain {
  0% {
    left: 0%;
    opacity: 0;
    transform: translate(-50%, -160%) scale(0.96);
  }
  12% {
    opacity: 1;
  }
  48% {
    left: 55%;
    opacity: 1;
    transform: translate(-50%, -160%) scale(1);
  }
  60% {
    opacity: 0;
    transform: translate(-50%, -160%) scale(0.96);
  }
  100% {
    left: 60%;
    opacity: 0;
  }
}

@keyframes packet-cipher {
  0%,
  50% {
    left: 0%;
    opacity: 0;
    transform: translate(-50%, -160%) scale(0.96);
  }
  62% {
    left: 10%;
    opacity: 1;
    transform: translate(-50%, -160%) scale(1);
  }
  92% {
    left: 100%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translate(-50%, -160%) scale(0.96);
  }
}

@keyframes hacker-peek {
  0%,
  18% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.92);
  }
  30%,
  52% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.92);
  }
}

@keyframes lock-reveal {
  0%,
  48% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.85);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }
}
@keyframes device-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes line-dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes node-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.15;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes lwc-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes starRain {
  0% {
    background-position: 0 0, 0 0, 0 -600px, 90px -1200px, -40px -900px;
  }
  100% {
    background-position: 180px 120px, -120px 180px, 0 1600px, 90px 1400px, -40px 1200px;
  }
}

@keyframes streamSlide {
  0% {
    background-position: 0 0, 0 0, 20% 40%, 70% 60%, 50% 20%;
  }
  100% {
    background-position: -220px 160px, 160px -200px, 30% 44%, 74% 66%, 54% 24%;
  }
}

@keyframes glyphFade {
  0%,
  100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after,
  main::before,
  main::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 4rem 1.25rem 5rem;
  }

  .hero-content {
    position: static;
    min-height: auto;
    padding: 0;
    text-align: center;
  }

  .hero-brand {
    transform: translateX(0) translateY(0) scale(1) !important;
  }

  .hero-features {
    position: static;
    align-items: center;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
  }

  .hero-feature {
    opacity: 1;
    transform: translateY(0);
  }

  .logo {
    width: min(98vw, 600px);
    margin: 0 auto;
  }

  .scroll-hint {
    letter-spacing: 0.2em;
  }

  .narrative {
    padding: 4.5rem 1.25rem 5.5rem;
  }

  .device-bridge {
    flex-direction: column;
    gap: 1.5rem;
  }

  .bridge-3d {
    inset: -25% -4%;
  }

  .link-line {
    width: min(300px, 80vw);
    min-height: 190px;
  }

  .packet {
    min-width: clamp(160px, 72vw, 230px);
    max-width: 260px;
  }

  .packet-body {
    font-size: 0.72rem;
  }

  .hacker-figure img {
    width: clamp(90px, 22vw, 130px);
  }

  .lock-indicator img {
    width: clamp(70px, 18vw, 100px);
  }

  .story-lines {
    perspective: none;
  }

  .story-line {
    min-height: 44vh;
    max-width: 42ch;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    transform: translateY(var(--line-shift, 0px));
  }

  .story-logo {
    width: min(70vw, 220px);
    margin-top: 0.8rem;
  }

  .network {
    padding: 4rem 1.25rem 6rem;
  }

  .network-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .network-text {
    align-items: center;
  }

  .network-summary {
    max-width: 42ch;
  }

  .network-lines .line,
  .node::before,
  .node::after,
  .link-track::before,
  .link-track::after,
  .device {
    animation: none;
  }

  .node img {
    filter: none;
  }

  .narrative .content {
    border-radius: 22px;
  }

  .network-tooltip {
    display: none;
  }

  body::after {
    opacity: 0.18;
  }

  main::before,
  main::after {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .scroll-hint {
    font-size: 0.75rem;
  }

  .coming-soon {
    font-size: clamp(2rem, 9vw, 3.2rem);
    letter-spacing: 0.12em;
  }
}
