:root {
  --bg: #070718;
  --bg-soft: #0d1030;
  --panel: rgba(11, 16, 43, 0.78);
  --panel-strong: rgba(15, 22, 58, 0.92);
  --text: #f4f7ff;
  --muted: #aeb8d8;
  --cyan: #00f5ff;
  --pink: #ff2bd6;
  --green: #40ff9f;
  --yellow: #ffe066;
  --line: rgba(255, 255, 255, 0.12);
  --shadow-cyan: 0 0 26px rgba(0, 245, 255, 0.42);
  --shadow-pink: 0 0 26px rgba(255, 43, 214, 0.35);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(0, 245, 255, 0.14), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(255, 43, 214, 0.14), transparent 30%), var(--bg);
  overflow-x: hidden;
}

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

p {
  color: var(--muted);
  line-height: 1.75;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.25;
}

.orb-a {
  left: -150px;
  top: 120px;
  background: var(--cyan);
}

.orb-b {
  right: -160px;
  bottom: 40px;
  background: var(--pink);
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 72%, transparent);
  opacity: 0.34;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 36px, var(--max));
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 24, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #061018;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--shadow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: inset 0 0 18px rgba(0, 245, 255, 0.12);
}

.nav-toggle {
  display: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  font-size: 1.4rem;
}

.section-pad {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.78fr;
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 76px);
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Orbitron", sans-serif;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.75rem, 7vw, 6.7rem);
  letter-spacing: -0.06em;
  text-shadow: 0 0 28px rgba(0, 245, 255, 0.14);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: 180ms ease;
}

.btn-primary {
  color: #051019;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 245, 255, 0.58);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 43, 214, 0.55);
  box-shadow: var(--shadow-pink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 38px;
}

.hero-stats article,
.glass-card,
.mode-card,
.mini-card,
.policy-hero,
.cta {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-stats article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  color: var(--green);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-device {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 390px);
  padding: 20px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow: 0 0 42px rgba(0,245,255,0.19), 0 35px 120px rgba(0,0,0,0.55);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,245,255,0.55), transparent, rgba(255,43,214,0.45));
  z-index: -1;
  filter: blur(10px);
  opacity: 0.55;
}

.screen-header,
.screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,0.28);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
}

.puzzle-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,245,255,0.05));
}

.node,
.path {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
}

.node {
  color: #061018;
  box-shadow: 0 0 22px currentColor;
}

.n1 { background: var(--cyan); }
.n2 { background: var(--pink); color: #fff; }
.n3 { background: var(--green); }
.n4 { background: var(--yellow); }

.path {
  position: relative;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
}

.path::after {
  content: "";
  width: 72%;
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 18px rgba(0,245,255,0.38);
}

.p3::after,
.p5::after,
.p8::after { background: linear-gradient(90deg, var(--pink), var(--yellow)); }
.p4::after,
.p7::after,
.p10::after { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.p11::after,
.p12::after { background: linear-gradient(90deg, var(--yellow), var(--green)); }

.section-card {
  padding: 46px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13,16,48,0.86), rgba(8,10,30,0.58));
}

.section-head {
  max-width: 790px;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,
.mode-card,
.mini-card {
  border-radius: var(--radius-lg);
}

.glass-card {
  padding: 26px;
}

.icon-dot {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 22px;
  border-radius: 50%;
}

.icon-dot.cyan { background: var(--cyan); box-shadow: var(--shadow-cyan); }
.icon-dot.pink { background: var(--pink); box-shadow: var(--shadow-pink); }
.icon-dot.green { background: var(--green); box-shadow: 0 0 26px rgba(64,255,159,0.4); }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  min-height: 410px;
}

.mode-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,0.22), transparent 68%);
}

.mode-number {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border-radius: 20px;
  border: 1px solid rgba(0,245,255,0.38);
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  box-shadow: inset 0 0 22px rgba(0,245,255,0.12);
}

.mode-card ul,
.policy-content ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.mini-card {
  padding: 22px;
}

.mini-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.mini-card span {
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 88px;
  padding: 44px;
  border-radius: var(--radius-xl);
}

.cta p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 16px;
}

.footer a,
.policy-content a {
  color: var(--cyan);
}

.policy-page {
  max-width: 980px;
}

.policy-hero {
  padding: 44px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
}

.policy-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.policy-content {
  padding: 44px;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 700ms ease;
}

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

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 7, 24, 0.94);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .mode-grid,
  .feature-grid.three,
  .feature-grid.four,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .cta {
    align-items: flex-start;
  }

  .section-card,
  .policy-hero,
  .policy-content,
  .cta {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .section-pad {
    width: min(100% - 26px, var(--max));
    padding: 66px 0;
  }

  .topbar,
  .footer {
    width: min(100% - 26px, var(--max));
  }

  .brand span:last-child {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
