:root {
  --bg: #040914;
  --bg-alt: #071022;
  --surface: rgba(13, 25, 48, 0.56);
  --surface-hover: rgba(20, 38, 70, 0.72);
  --border: rgba(186, 230, 253, 0.16);
  --border-accent: rgba(125, 211, 252, 0.5);
  --frost-highlight: inset 0 1px 0 rgba(224, 242, 254, 0.16);
  --frost-blur: blur(24px) saturate(145%);
  --text: #f0f9ff;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --ice: #38bdf8;
  --ice-light: #bae6fd;
  --indigo: #818cf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-glow: 0 24px 64px -16px rgba(56, 189, 248, 0.24);
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: 84px;
}

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

#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.68;
}

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

.ambient-glow-1 {
  width: 620px;
  height: 620px;
  top: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), rgba(186, 230, 253, 0.08) 45%, transparent 70%);
}

.ambient-glow-2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.2), rgba(129, 140, 248, 0.12) 45%, transparent 70%);
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

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

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -6px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--border-accent);
  background: rgba(30, 41, 59, 0.75);
}

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

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  background: rgba(4, 9, 20, 0.58);
  border-bottom: 1px solid rgba(186, 230, 253, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(4, 9, 20, 0.82);
  border-bottom-color: rgba(186, 230, 253, 0.2);
  box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.65);
}

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

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
}

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

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

.brand-text small {
  font-size: 0.74rem;
  color: var(--ice-light);
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.98);
}

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

.mobile-drawer a {
  font-size: 1rem;
  color: var(--text-soft);
  padding: 6px 0;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--ice-light);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  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-title {
  font-size: clamp(2.35rem, 4.5vw, 3.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(120deg, #e0f2fe 0%, #38bdf8 48%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.075rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

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

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

/* Telemetry Card */
.telemetry-card {
  background: linear-gradient(155deg, rgba(18, 36, 68, 0.66), rgba(7, 16, 34, 0.78));
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-glow), var(--frost-highlight);
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.status-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-pill.online {
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.telemetry-domain {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ping-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ice-light);
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
  transition: background 0.18s ease;
}

.ping-refresh-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.ping-refresh-btn.spinning svg {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.telemetry-row:hover {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.05);
}

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

.node-flag {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ice-light);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

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

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

.node-ping {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.node-ping.good { color: var(--emerald); }
.node-ping.medium { color: var(--amber); }

.ping-bar {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.ping-bar i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.ping-bar i:nth-child(1) { height: 5px; }
.ping-bar i:nth-child(2) { height: 8px; }
.ping-bar i:nth-child(3) { height: 11px; }
.ping-bar i:nth-child(4) { height: 14px; }
.ping-bar i.dim { opacity: 0.25; }

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

.encrypt-tag {
  color: var(--ice-light);
  font-weight: 600;
  white-space: nowrap;
}

/* Unlock Strip */
.unlock-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 17, 32, 0.65);
  padding: 18px 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}

.strip-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.strip-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.strip-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

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

.section-alt {
  background: rgba(10, 17, 32, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--frost-highlight);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--surface-hover);
  box-shadow: var(--shadow-glow), var(--frost-highlight);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--ice-light);
  margin-bottom: 18px;
}

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

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

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Nodes Filter & Grid */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.35);
}

.filter-tab.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--ice);
  color: var(--ice-light);
}

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

.node-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--frost-highlight);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

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

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

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

.region-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.route-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ice-light);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

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

.node-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-tags span {
  font-size: 0.75rem;
  color: var(--text-soft);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  margin-top: 26px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  gap: 4px;
}

.billing-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.billing-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
}

.save-badge {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
  margin-left: 4px;
}

.billing-btn.active .save-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--frost-highlight);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.price-card.featured {
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.16), rgba(13, 25, 48, 0.72) 50%);
  border-color: rgba(125, 211, 252, 0.58);
  box-shadow: var(--shadow-glow), var(--frost-highlight);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  white-space: nowrap;
}

.plan-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  min-height: 40px;
}

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

.price-amount .currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ice-light);
}

.price-amount .price-value {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-amount .price-unit {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--frost-highlight);
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ice-light);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.14);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

.clients-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.client-pill {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--frost-highlight);
}

.client-pill strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ice-light);
  margin-bottom: 4px;
}

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

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

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--frost-highlight);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item.open {
  border-color: var(--border-accent);
}

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

.faq-icon {
  font-size: 1.35rem;
  color: var(--ice-light);
  transition: transform 0.22s ease;
}

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

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 24px 20px;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

/* CTA Banner */
.cta-banner {
  padding: 40px 0 88px;
}

.cta-box {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(186, 230, 253, 0.08) 50%, rgba(129, 140, 248, 0.16));
  border: 1px solid rgba(186, 230, 253, 0.34);
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: var(--shadow-glow), var(--frost-highlight);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-soft);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 9, 17, 0.95);
  padding: 52px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 10px;
}

.footer-domain {
  font-size: 0.82rem;
  color: var(--ice-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-links h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

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

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, rgba(16, 32, 60, 0.86), rgba(7, 14, 28, 0.92));
  border: 1px solid rgba(186, 230, 253, 0.34);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: var(--frost-blur);
  -webkit-backdrop-filter: var(--frost-blur);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), var(--frost-highlight);
  animation: modalIn 0.22s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ice-light);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  margin-bottom: 12px;
}

.modal-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.modal-selected-plan {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-note {
  font-size: 0.78rem !important;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

.modal-note code {
  color: var(--ice-light);
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

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

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

  .clients-bar {
    grid-template-columns: repeat(2, 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,
  .clients-bar {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .metric-divider {
    display: none;
  }

  .hero {
    padding: 48px 0 48px;
  }

  .section {
    padding: 64px 0;
  }
}

/* Scroll reveal (progressive enhancement) */
.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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