:root,
[data-theme="ice"] {
  --bg-base: #060a12;
  --bg-elevated: #0b1220;
  --bg-body-grad: linear-gradient(180deg, #060a12 0%, #080e1a 50%, #050810 100%);
  --bg-nav-scrolled: rgba(6, 10, 18, 0.82);
  --bg-drawer: rgba(8, 13, 24, 0.96);
  --bg-card: rgba(13, 21, 36, 0.72);
  --bg-card-hover: rgba(18, 29, 49, 0.88);
  --bg-telemetry: linear-gradient(180deg, rgba(15, 24, 42, 0.85) 0%, rgba(9, 15, 28, 0.92) 100%);
  --bg-strip: rgba(10, 16, 29, 0.65);
  --bg-section-alt: rgba(10, 16, 29, 0.45);
  --bg-footer: #04070e;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-ice: rgba(125, 211, 252, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --ice-100: #e0f2fe;
  --ice-300: #7dd3fc;
  --ice-400: #38bdf8;
  --ice-500: #0ea5e9;
  --indigo-400: #818cf8;

  --accent-rgb: 56, 189, 248;
  --accent2-rgb: 129, 140, 248;
  --btn-primary-bg: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 55%, #0284c7 100%);
  --btn-primary-text: #04101f;
  --hero-gradient: linear-gradient(120deg, #ffffff 0%, #bae6fd 45%, #38bdf8 85%, #818cf8 100%);
  --snow-color: 224, 242, 254;

  --good: #34d399;
  --mid: #fbbf24;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. 极光紫 Aurora Violet */
[data-theme="aurora"] {
  --bg-base: #090612;
  --bg-elevated: #120c24;
  --bg-body-grad: linear-gradient(180deg, #090612 0%, #100920 50%, #07040e 100%);
  --bg-nav-scrolled: rgba(9, 6, 18, 0.84);
  --bg-drawer: rgba(14, 9, 28, 0.96);
  --bg-card: rgba(22, 14, 42, 0.72);
  --bg-card-hover: rgba(30, 19, 58, 0.88);
  --bg-telemetry: linear-gradient(180deg, rgba(25, 16, 48, 0.86) 0%, rgba(14, 9, 28, 0.94) 100%);
  --bg-strip: rgba(15, 10, 30, 0.65);
  --bg-section-alt: rgba(15, 10, 30, 0.45);
  --bg-footer: #06030c;
  --border-subtle: rgba(192, 132, 252, 0.16);
  --border-ice: rgba(192, 132, 252, 0.4);

  --ice-100: #f3e8ff;
  --ice-300: #d8b4fe;
  --ice-400: #a855f7;
  --ice-500: #9333ea;
  --indigo-400: #f472b6;

  --accent-rgb: 168, 85, 247;
  --accent2-rgb: 244, 114, 182;
  --btn-primary-bg: linear-gradient(135deg, #f3e8ff 0%, #c084fc 55%, #9333ea 100%);
  --btn-primary-text: #120524;
  --hero-gradient: linear-gradient(120deg, #ffffff 0%, #e9d5ff 45%, #c084fc 80%, #f472b6 100%);
  --snow-color: 233, 213, 255;
}

/* 3. 苍翠绿 Alpine Emerald */
[data-theme="emerald"] {
  --bg-base: #050d0a;
  --bg-elevated: #0a1813;
  --bg-body-grad: linear-gradient(180deg, #050d0a 0%, #081510 50%, #040a08 100%);
  --bg-nav-scrolled: rgba(5, 13, 10, 0.84);
  --bg-drawer: rgba(8, 20, 15, 0.96);
  --bg-card: rgba(11, 28, 22, 0.72);
  --bg-card-hover: rgba(15, 38, 30, 0.88);
  --bg-telemetry: linear-gradient(180deg, rgba(13, 33, 26, 0.86) 0%, rgba(8, 20, 15, 0.94) 100%);
  --bg-strip: rgba(8, 21, 16, 0.65);
  --bg-section-alt: rgba(8, 21, 16, 0.45);
  --bg-footer: #030806;
  --border-subtle: rgba(52, 211, 153, 0.16);
  --border-ice: rgba(52, 211, 153, 0.4);

  --ice-100: #d1fae5;
  --ice-300: #6ee7b7;
  --ice-400: #10b981;
  --ice-500: #059669;
  --indigo-400: #2dd4bf;

  --accent-rgb: 16, 185, 129;
  --accent2-rgb: 45, 212, 191;
  --btn-primary-bg: linear-gradient(135deg, #d1fae5 0%, #34d399 55%, #059669 100%);
  --btn-primary-text: #021810;
  --hero-gradient: linear-gradient(120deg, #ffffff 0%, #a7f3d0 45%, #34d399 80%, #2dd4bf 100%);
  --snow-color: 209, 250, 229;
}

/* 4. 霜雪白 Frost Light */
[data-theme="frost"] {
  --bg-base: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-body-grad: linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #e2e8f0 100%);
  --bg-nav-scrolled: rgba(248, 250, 252, 0.88);
  --bg-drawer: rgba(255, 255, 255, 0.98);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --bg-telemetry: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.96) 100%);
  --bg-strip: rgba(255, 255, 255, 0.72);
  --bg-section-alt: rgba(226, 232, 240, 0.45);
  --bg-footer: #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-ice: rgba(2, 132, 199, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --ice-100: #0284c7;
  --ice-300: #0284c7;
  --ice-400: #0ea5e9;
  --ice-500: #0369a1;
  --indigo-400: #6366f1;

  --accent-rgb: 2, 132, 199;
  --accent2-rgb: 99, 102, 241;
  --btn-primary-bg: linear-gradient(135deg, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
  --btn-primary-text: #ffffff;
  --hero-gradient: linear-gradient(120deg, #0f172a 0%, #0284c7 55%, #4f46e5 100%);
  --snow-color: 14, 165, 233;
}

/* 5. 落日金 Solstice Amber */
[data-theme="amber"] {
  --bg-base: #0d0906;
  --bg-elevated: #19110b;
  --bg-body-grad: linear-gradient(180deg, #0d0906 0%, #160e08 50%, #0a0704 100%);
  --bg-nav-scrolled: rgba(13, 9, 6, 0.84);
  --bg-drawer: rgba(22, 14, 8, 0.96);
  --bg-card: rgba(28, 19, 12, 0.75);
  --bg-card-hover: rgba(38, 25, 15, 0.9);
  --bg-telemetry: linear-gradient(180deg, rgba(33, 22, 13, 0.88) 0%, rgba(20, 13, 8, 0.95) 100%);
  --bg-strip: rgba(22, 14, 8, 0.68);
  --bg-section-alt: rgba(22, 14, 8, 0.45);
  --bg-footer: #080503;
  --border-subtle: rgba(251, 191, 36, 0.16);
  --border-ice: rgba(251, 191, 36, 0.42);

  --ice-100: #fef3c7;
  --ice-300: #fcd34d;
  --ice-400: #f59e0b;
  --ice-500: #d97706;
  --indigo-400: #fb7185;

  --accent-rgb: 245, 158, 11;
  --accent2-rgb: 251, 113, 133;
  --btn-primary-bg: linear-gradient(135deg, #fef3c7 0%, #fbbf24 55%, #d97706 100%);
  --btn-primary-text: #1c0f02;
  --hero-gradient: linear-gradient(120deg, #ffffff 0%, #fde68a 45%, #f59e0b 80%, #fb7185 100%);
  --snow-color: 254, 243, 199;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(var(--accent-rgb), 0.13), transparent 60%),
    var(--bg-body-grad);
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Snow Canvas & Ambient Glow */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ambient-glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%);
}

.ambient-glow-2 {
  width: 480px;
  height: 480px;
  bottom: 10%;
  right: -120px;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.16), transparent 70%);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
  padding: 13px 20px;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 26px rgba(var(--accent-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.38);
}

.btn-outline {
  border: 1px solid var(--border-ice);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--ice-100);
}

.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: var(--ice-300);
}

.btn-ghost {
  color: var(--text-secondary);
}

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

.btn-ghost-ice {
  border: 1px solid var(--border-ice);
  color: var(--ice-300);
  background: rgba(var(--accent-rgb), 0.08);
  white-space: nowrap;
}

.btn-ghost-ice:hover {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text-primary);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: var(--bg-nav-scrolled);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ice-300);
}

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

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 24px 24px;
  background: var(--bg-drawer);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 8px 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-drawer-actions {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border-ice);
  color: var(--ice-100);
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.07rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-desc strong {
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
}

.metric-item strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ice-100);
}

.metric-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Telemetry Card */
.telemetry-card {
  background: var(--bg-telemetry);
  border: 1px solid var(--border-ice);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.telemetry-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.dot-ice {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-400);
  box-shadow: 0 0 12px var(--ice-400);
}

.telemetry-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--ice-300);
  border: 1px solid var(--border-ice);
}

.telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition), border-color var(--transition);
}

.telemetry-row:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: var(--border-ice);
}

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

.flag {
  font-size: 1.35rem;
}

.node-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.node-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.node-stats {
  text-align: right;
  min-width: 72px;
}

.latency {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.latency.good { color: var(--good); }
.latency.mid { color: var(--mid); }

.load-bar {
  width: 68px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-left: auto;
}

.load-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ice-400), var(--good));
}

.telemetry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.text-ice {
  color: var(--good);
  font-weight: 500;
}

/* Unlock Strip */
.unlock-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-strip);
  padding: 26px 0;
}

.strip-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.strip-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.strip-logos span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.88;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ice-300);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-ice);
  background: var(--bg-card-hover);
}

.feature-highlight {
  border-color: var(--border-ice);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.1), var(--bg-card));
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid var(--border-ice);
  color: var(--ice-300);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Node Filters & Grid */
.node-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.35);
}

.filter-btn.active {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: var(--ice-400);
  color: var(--ice-100);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}

.node-card.hidden {
  display: none;
}

.node-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-ice);
}

.node-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-flag {
  font-size: 1.6rem;
}

.node-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
}

.tag-iplc {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--ice-300);
}

.tag-bgp {
  background: rgba(129, 140, 248, 0.14);
  color: #a5b4fc;
}

.tag-ai {
  background: rgba(52, 211, 153, 0.14);
  color: var(--good);
}

.node-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.node-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
}

.node-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto 42px;
}

.billing-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.billing-btn.active {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--ice-100);
}

.discount-pill {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.18);
  color: var(--good);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.pricing-popular {
  border-color: var(--ice-400);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12) 0%, var(--bg-card) 100%);
  box-shadow: 0 20px 50px rgba(var(--accent-rgb), 0.14);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.76rem;
  font-weight: 700;
}

.plan-head h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.plan-head p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 24px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ice-300);
}

.amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features strong {
  color: var(--text-primary);
}

.check {
  color: var(--ice-400);
  font-weight: 700;
}

.ondemand-banner {
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
  border: 1px dashed rgba(125, 211, 252, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ondemand-banner h4 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.ondemand-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Steps & Platforms */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice-300);
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.platform-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.platform-item strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.platform-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--ice-300);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Bottom CTA */
.cta-banner {
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent2-rgb), 0.1));
  border-top: 1px solid var(--border-ice);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner h2 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.cta-inner p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  background: var(--bg-footer);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--ice-300);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 15, 0.76);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #0b1220;
  border: 1px solid var(--border-ice);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.modal-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ice-300);
  margin-bottom: 6px;
}

.modal-header h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 18px;
}

.modal-tab {
  padding: 8px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--ice-100);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.94rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus {
  border-color: var(--ice-400);
}

.modal-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--good);
  min-height: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .nodes-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .features-grid,
  .nodes-grid,
  .pricing-grid,
  .steps-grid,
  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    gap: 18px;
  }

  .ondemand-banner,
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Light Theme Surface Polish */
[data-theme="frost"] .billing-toggle,
[data-theme="frost"] .ondemand-banner {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="frost"] .filter-btn,
[data-theme="frost"] .platform-item,
[data-theme="frost"] .telemetry-row {
  background: rgba(15, 23, 42, 0.03);
}

[data-theme="frost"] .load-bar {
  background: rgba(15, 23, 42, 0.1);
}

/* Floating 5-Theme Switcher */
.theme-switcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-ice);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.theme-switcher-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-right: 4px;
  white-space: nowrap;
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.theme-dot:hover {
  transform: scale(1.14);
}

.theme-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.16);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.45);
}

.theme-dot[data-set-theme="ice"] { background: linear-gradient(135deg, #0ea5e9, #818cf8); }
.theme-dot[data-set-theme="aurora"] { background: linear-gradient(135deg, #a855f7, #f472b6); }
.theme-dot[data-set-theme="emerald"] { background: linear-gradient(135deg, #10b981, #2dd4bf); }
.theme-dot[data-set-theme="frost"] { background: linear-gradient(135deg, #f8fafc, #38bdf8); }
.theme-dot[data-set-theme="amber"] { background: linear-gradient(135deg, #f59e0b, #fb7185); }

@media (max-width: 720px) {
  .theme-switcher {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
  }
  .theme-switcher-label {
    display: none;
  }
}
