/* ═══════════════════════════════════════════════════════════════════
   OpenSky Official Website
   Elite product-focused dark aesthetic — Apple-inspired.
   Typography-first. High contrast. Vast whitespace.
   Fraunces display + Manrope body. Ink-950 / Bone / Solar / Cyan.
   ═══════════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,30..100,0..1&family=Manrope:wght@300..800&family=JetBrains+Mono:ital,wght@0,400..700;1,400..700&display=swap");

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* Typography stacks */
  --font-display: "Fraunces", "Iowan Old Style", "Big Caslon", Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;

  /* Ink + Bone palette */
  --ink-950: #06080b;
  --ink-900: #0a0e12;
  --ink-850: #0d1118;
  --ink-800: #11161c;
  --ink-700: #161d24;
  --paper: #f4ecda;
  --bone: #ece1c4;
  --bone-dim: #b1a78b;
  --bone-faint: #6f6650;
  --bone-whisper: #4a4536;

  /* Hairlines */
  --rule: rgb(236 225 196 / 10%);
  --rule-strong: rgb(236 225 196 / 22%);
  --rule-bold: rgb(236 225 196 / 40%);

  /* Accent signals */
  --solar: #ff7a2c;
  --solar-soft: #f5a574;
  --solar-glow: rgb(255 122 44 / 12%);
  --cyan: #5ee0ff;
  --cyan-soft: rgb(94 224 255 / 10%);
  --verdant: #b2e063;
  --coral: #ff6b6b;
  --amber: #f4c453;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;

  /* Layout */
  --content-max: 1120px;
  --content-narrow: 820px;

  /* Texture */
  --grid-dot: radial-gradient(
    circle at 1px 1px,
    rgb(236 225 196 / 4%) 1px,
    transparent 1.6px
  );
  --grid-size: 28px 28px;

  font-family: var(--font-sans);
  font-feature-settings: "ss01" on, "cv11" on;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink-950);
  color: var(--bone);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

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

/* Scrollbar */
* {
  scrollbar-color: var(--rule-strong) transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

*::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--rule-bold);
}

/* ═══════════════════════════════════════════════════════════════════
   BACKGROUND TEXTURE
   ═══════════════════════════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
}

/* Subtle grid dot overlay */
.grid-texture {
  background: var(--grid-dot);
  background-size: var(--grid-size);
  inset: 0;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 60%), transparent 75%);
  opacity: 0.38;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   AMBIENT GLOW BLOBS
   ═══════════════════════════════════════════════════════════════════ */
.ambient-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.ambient-blob {
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.09;
  position: absolute;
}

.ambient-blob--top {
  background: var(--solar);
  height: 700px;
  right: -15%;
  top: -20%;
  width: 700px;
  animation: drift-slow 24s ease-in-out infinite alternate;
}

.ambient-blob--mid {
  background: var(--cyan);
  bottom: 35%;
  height: 500px;
  left: -10%;
  width: 500px;
  animation: drift-slow 28s ease-in-out infinite alternate-reverse;
}

.ambient-blob--bottom {
  background: var(--solar);
  bottom: -15%;
  height: 500px;
  right: -8%;
  width: 500px;
  animation: drift-slow 22s ease-in-out infinite alternate;
}

@keyframes drift-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.06); }
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION — Frosted Glass
   ═══════════════════════════════════════════════════════════════════ */
.nav {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  height: 64px;
  transition:
    background var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.nav--scrolled {
  background: rgb(6 8 11 / 72%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

.nav__brand {
  align-items: center;
  color: var(--paper);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 620;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav__logo-mark {
  align-items: center;
  background: rgb(236 225 196 / 6%);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
  flex-shrink: 0;
}

.nav__logo-mark img {
  height: 65%;
  object-fit: contain;
  width: 65%;
}

.nav__links {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 32px);
}

.nav__links a {
  color: var(--bone-dim);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--solar-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__menu-toggle {
  display: none !important;
}

.nav__language-toggle {
  align-items: center;
  background: rgb(236 225 196 / 5%);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--bone);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.04em;
  min-width: 74px;
  padding: 3px;
  position: relative;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.nav__language-toggle:hover,
.nav__language-toggle:focus-visible {
  background: rgb(236 225 196 / 8%);
  border-color: var(--rule-bold);
  color: var(--solar-soft);
}

.nav__language-thumb {
  background: var(--solar);
  border-radius: 999px;
  bottom: 3px;
  box-shadow: 0 8px 16px -12px rgb(255 122 44 / 60%);
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform var(--dur-fast) var(--ease-out);
  width: calc(50% - 3px);
}

.nav__language-toggle[data-lang="en"] .nav__language-thumb {
  transform: translateX(100%);
}

.nav__language-option {
  align-items: center;
  color: var(--bone-dim);
  display: inline-flex;
  height: 100%;
  justify-content: center;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
  width: 34px;
  z-index: 1;
}

.nav__language-toggle[data-lang="zh"] .nav__language-option--zh,
.nav__language-toggle[data-lang="en"] .nav__language-option--en {
  color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION SYSTEM — Full-bleed alternating panels
   ═══════════════════════════════════════════════════════════════════ */
.section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 48px);
  position: relative;
}

.section--alt {
  background: var(--ink-900);
}

.section__inner {
  margin-inline: auto;
  max-width: var(--content-max);
  position: relative;
}

.section__header {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: var(--content-narrow);
}

.section__label {
  color: var(--solar);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section__title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 640;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0 0 20px;
}

.section__lead {
  color: var(--bone-dim);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  max-width: 680px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  min-height: 100dvh;
  padding: clamp(100px, 14vw, 160px) clamp(20px, 4vw, 48px) clamp(60px, 8vw, 100px);
  position: relative;
}

.hero__inner {
  margin-inline: auto;
  max-width: var(--content-max);
  width: 100%;
  display: contents;
}

.hero__copy {
  max-width: 640px;
}

.hero__headline {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 0.94;
  margin: 0;
}

.hero__headline-accent {
  color: var(--solar);
}

.hero__subtitle {
  color: var(--bone-dim);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.65;
  margin: 28px 0 0;
  max-width: 580px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 40px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-value {
  color: var(--paper);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__stat-label {
  color: var(--bone-faint);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ═══════════════════════════════════════════════════════════════════
   PLANETARY ORB — Signature Element
   ═══════════════════════════════════════════════════════════════════ */
.orb-container {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.orb {
  position: relative;
  width: clamp(280px, 36vw, 440px);
  height: clamp(280px, 36vw, 440px);
}

/* Core body */
.orb__body {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 38% 32%,
      rgb(255 122 44 / 18%) 0%,
      rgb(94 224 255 / 6%) 25%,
      rgb(6 8 11 / 50%) 55%,
      transparent 100%
    );
  box-shadow:
    0 0 140px -40px rgb(255 122 44 / 22%),
    0 0 220px -60px rgb(94 224 255 / 10%),
    inset 0 0 100px -20px rgb(236 225 196 / 3%);
  position: relative;
  animation: orb-breathe 8s ease-in-out infinite;
}

/* Orbital rings */
.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid rgb(236 225 196 / 10%);
  pointer-events: none;
}

.orb__ring--outer {
  inset: -14%;
  transform: rotateX(76deg) rotateZ(-22deg);
}

.orb__ring--mid {
  inset: -4%;
  border-color: rgb(236 225 196 / 14%);
  transform: rotateX(72deg) rotateZ(-16deg);
}

.orb__ring--inner {
  inset: 8%;
  border-color: rgb(255 122 44 / 14%);
  border-width: 0.5px;
  transform: rotateX(68deg) rotateZ(-10deg);
}

/* Orbiting particle */
.orb__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--solar-soft);
  box-shadow: 0 0 8px 2px rgb(255 122 44 / 40%);
  pointer-events: none;
}

.orb__particle--1 {
  top: 10%;
  left: 50%;
  animation: orbit-a 12s linear infinite;
  animation-delay: 0s;
}

.orb__particle--2 {
  top: 30%;
  right: 8%;
  animation: orbit-b 16s linear infinite;
  animation-delay: -4s;
}

.orb__particle--3 {
  bottom: 18%;
  left: 12%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px rgb(94 224 255 / 40%);
  animation: orbit-c 14s linear infinite;
  animation-delay: -8s;
}

@keyframes orb-breathe {
  0%, 100% { box-shadow: 0 0 140px -40px rgb(255 122 44 / 22%), 0 0 220px -60px rgb(94 224 255 / 10%), inset 0 0 100px -20px rgb(236 225 196 / 3%); }
  50% { box-shadow: 0 0 180px -30px rgb(255 122 44 / 28%), 0 0 260px -50px rgb(94 224 255 / 14%), inset 0 0 120px -15px rgb(236 225 196 / 5%); }
}

@keyframes orbit-a {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

@keyframes orbit-b {
  from { transform: rotate(120deg) translateX(160px) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(160px) rotate(-480deg); }
}

@keyframes orbit-c {
  from { transform: rotate(240deg) translateX(120px) rotate(-240deg); }
  to { transform: rotate(600deg) translateX(120px) rotate(-600deg); }
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  font-size: 0.9rem;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.01em;
  min-height: 48px;
  padding: 12px 22px;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--solar);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--solar);
  border-color: var(--solar);
  color: var(--ink-950);
}

.btn--primary:hover {
  background: var(--solar-soft);
  border-color: var(--solar-soft);
  box-shadow: 0 0 0 1px rgb(255 122 44 / 20%), 0 10px 24px -12px rgb(255 122 44 / 28%);
}

.btn--outline {
  background: transparent;
  color: var(--bone);
}

.btn--outline:hover {
  background: rgb(236 225 196 / 5%);
  border-color: var(--rule-bold);
}

/* ═══════════════════════════════════════════════════════════════════
   STAT STRIP — Horizontal stat display
   ═══════════════════════════════════════════════════════════════════ */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 28px;
}

.stat-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-strip__value {
  color: var(--paper);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-strip__label {
  color: var(--bone-faint);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════════════════════ */
.data-table-wrap {
  overflow-x: auto;
  margin-top: 44px;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--rule);
  padding: 14px 18px;
  text-align: left;
}

.data-table th {
  color: var(--bone-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 14px;
  text-transform: uppercase;
  vertical-align: bottom;
}

.data-table td {
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on;
  font-size: 0.86rem;
}

.data-table tbody tr {
  transition: background var(--dur-fast) var(--ease-out);
}

.data-table tbody tr:hover {
  background: rgb(236 225 196 / 3%);
}

.data-table .cell--highlight {
  color: var(--bone);
  font-weight: 600;
}

.data-table .cell--accent {
  color: var(--solar);
}

/* ═══════════════════════════════════════════════════════════════════
   TIER BADGES
   ═══════════════════════════════════════════════════════════════════ */
.tier-badge {
  border-radius: 3px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
}

.tier-badge--l1 { background: var(--cyan-soft); color: var(--cyan); }
.tier-badge--l2 { background: var(--solar-glow); color: var(--solar-soft); }
.tier-badge--l3 { background: rgb(178 224 99 / 14%); color: var(--verdant); }
.tier-badge--l4 { background: rgb(244 196 83 / 14%); color: var(--amber); }
.tier-badge--l5 { background: rgb(255 107 107 / 14%); color: var(--coral); }

/* ═══════════════════════════════════════════════════════════════════
   SPEC LIST — Clean big list items
   ═══════════════════════════════════════════════════════════════════ */
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-list li {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}

.spec-list li:first-child {
  border-top: 1px solid var(--rule);
}

.spec-list__label {
  color: var(--bone-faint);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.spec-list__value {
  color: var(--bone);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
}

.spec-list__value strong {
  color: var(--paper);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURE CARDS — Large, airy cards
   ═══════════════════════════════════════════════════════════════════ */
.cards {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  margin-top: 48px;
}

.card {
  background: rgb(236 225 196 / 3%);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 36px);
  transition:
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.card:hover {
  border-color: var(--rule-strong);
  background: rgb(236 225 196 / 5%);
}

.card__icon {
  color: var(--solar);
  margin-bottom: 18px;
}

.card__title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.card__desc {
  color: var(--bone-dim);
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0;
}

.card__desc + .card__desc {
  margin-top: 10px;
}

.card__split {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.card__split-item {
  align-items: center;
  background: rgb(236 225 196 / 4%);
  border: 1px solid var(--rule);
  border-radius: 5px;
  display: flex;
  gap: 9px;
  padding: 9px 12px;
}

.card__split-pct {
  color: var(--solar);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on;
  font-size: 0.82rem;
  font-weight: 700;
}

.card__split-label {
  color: var(--bone-dim);
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════════════
   PROTECTION STAGES
   ═══════════════════════════════════════════════════════════════════ */
.protection-stages {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.protection-stage {
  border: 1px solid var(--rule);
  border-radius: 10px;
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  transition:
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.protection-stage:hover {
  border-color: var(--rule-strong);
}

.protection-stage--warn {
  background: rgb(244 196 83 / 4%);
  border-color: rgb(244 196 83 / 16%);
}

.protection-stage--alert {
  background: rgb(255 122 44 / 4%);
  border-color: rgb(255 122 44 / 16%);
}

.protection-stage--critical {
  background: rgb(255 107 107 / 4%);
  border-color: rgb(255 107 107 / 16%);
}

.protection-stage__icon {
  margin-bottom: 16px;
}

.protection-stage__badge {
  border-radius: 3px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.protection-stage--warn .protection-stage__badge { background: rgb(244 196 83 / 14%); color: var(--amber); }
.protection-stage--alert .protection-stage__badge { background: var(--solar-glow); color: var(--solar-soft); }
.protection-stage--critical .protection-stage__badge { background: rgb(255 107 107 / 14%); color: var(--coral); }

.protection-stage__title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.protection-stage__condition {
  color: var(--bone-faint);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on;
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.protection-stage__action {
  color: var(--bone);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 10px;
}

.protection-stage__detail {
  color: var(--bone-dim);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   CIRCUIT BREAKER — Terminal condition banner
   ═══════════════════════════════════════════════════════════════════ */
.circuit-breaker {
  align-items: flex-start;
  background: rgb(255 107 107 / 3%);
  border: 1px solid rgb(255 107 107 / 18%);
  border-radius: 10px;
  display: flex;
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(22px, 3vw, 32px);
}

.circuit-breaker__icon {
  color: var(--coral);
  flex-shrink: 0;
}

.circuit-breaker__title {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.circuit-breaker__desc {
  color: var(--bone-dim);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.layout-2col {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════════════════════
   ENDURING CONSENSUS BOX — Large featured box
   ═══════════════════════════════════════════════════════════════════ */
.hedong-box {
  background: rgb(236 225 196 / 2%);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(22px, 3vw, 34px);
}

.hedong-box__title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.hedong-visual {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hedong-visual__asset {
  align-items: center;
  background: rgb(236 225 196 / 4%);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 22px;
}

.hedong-visual__amount {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on;
  font-size: 1.5rem;
  font-weight: 700;
}

.hedong-visual__unit {
  color: var(--bone-faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hedong-visual__sep {
  color: var(--bone-faint);
  font-size: 1.2rem;
  font-weight: 300;
}

.hedong-visual__arrow {
  color: var(--solar);
  font-size: 1.4rem;
}

.hedong-visual__result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hedong-visual__result-main {
  color: var(--verdant);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 620;
}

.hedong-visual__result-sub {
  color: var(--bone-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* ═══════════════════════════════════════════════════════════════════
   REFERRAL TREE
   ═══════════════════════════════════════════════════════════════════ */
.referral-levels {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(10, 1fr);
  margin-bottom: 20px;
}

.referral-levels__node {
  aspect-ratio: 1;
  border-radius: 4px;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.referral-levels__node--active {
  background: var(--solar-glow);
  border: 1px solid rgb(255 122 44 / 30%);
}

.referral-levels__node--locked {
  background: rgb(236 225 196 / 3%);
  border: 1px solid var(--rule);
}

.referral-legend {
  display: flex;
  gap: 24px;
  font-size: 0.76rem;
}

.referral-legend__item {
  align-items: center;
  color: var(--bone-dim);
  display: flex;
  gap: 8px;
}

.referral-legend__dot {
  border-radius: 3px;
  height: 10px;
  width: 10px;
  flex-shrink: 0;
}

.referral-legend__dot--active {
  background: var(--solar);
}

.referral-legend__dot--locked {
  background: rgb(236 225 196 / 6%);
  border: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--rule);
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px);
}

.footer__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-inline: auto;
  max-width: var(--content-max);
  text-align: center;
}

.footer__brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.footer__brand img {
  height: 36px;
  width: 36px;
}

.footer__name {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 620;
}

.footer__tagline {
  color: var(--bone-faint);
  font-size: 0.8rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  justify-content: center;
}

.footer__links a {
  color: var(--bone-dim);
  font-size: 0.82rem;
  font-weight: 650;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--solar-soft);
}

.footer__copy {
  color: var(--bone-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-feature-settings: "tnum" on;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS — Reveal on scroll
   ═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}

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

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats,
  .hero__actions {
    justify-content: center;
  }

  .orb-container {
    order: -1;
  }

  .protection-stages {
    grid-template-columns: 1fr;
  }

  .layout-2col {
    grid-template-columns: 1fr;
  }

  .referral-levels {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links {
    background: rgb(10 14 18 / 96%);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--rule-strong);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    gap: 0;
    left: 50%;
    max-height: 65vh;
    overflow-y: auto;
    padding: 6px;
    position: fixed;
    top: 72px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 200;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    border-radius: 7px;
    padding: 13px 16px;
    font-size: 0.88rem;
  }

  .nav__links a:hover {
    background: rgb(236 225 196 / 5%);
  }

  .nav__menu-toggle {
    display: flex !important;
  }

  .hero {
    min-height: auto;
    padding: clamp(80px, 14vw, 120px) clamp(16px, 3vw, 28px) clamp(48px, 6vw, 72px);
  }

  .hero__headline {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-value {
    font-size: 1.4rem;
  }

  .section {
    padding: clamp(60px, 10vw, 90px) clamp(16px, 3vw, 28px);
  }

  .section__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
    font-size: 0.7rem;
  }

  .stat-strip {
    gap: 20px;
  }

  .stat-strip__value {
    font-size: 1.2rem;
  }

  .circuit-breaker {
    flex-direction: column;
  }

  .referral-levels {
    grid-template-columns: repeat(5, 1fr);
  }

  .hedong-visual {
    justify-content: center;
  }

  .orb {
    width: 220px;
    height: 220px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2.2rem, 13vw, 3rem);
  }

  .orb {
    width: 180px;
    height: 180px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 5px;
    font-size: 0.64rem;
  }

  .card__split {
    grid-template-columns: 1fr;
  }

  .protection-stages {
    gap: 14px;
  }

  .footer__links {
    gap: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════════ */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
