/* ==========================================================================
   OnAFK Commercial Portal — Precision Industrial Ops Design System
   Zero external CDN dependencies. Exact visual DNA of OnAFK OS.
   ========================================================================== */

:root,
html[data-theme="light"] {
  --bg-canvas: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-tinted: #eef1f8;
  --bg-subtle: #eff2f8;
  --bg-hover: #e9eef8;
  --bg-header: rgba(244, 246, 250, 0.86);

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;

  --border-1: rgba(15, 23, 42, 0.085);
  --border-2: rgba(15, 23, 42, 0.15);

  --brand: #5b46f6;
  --brand-hover: #4a35e8;
  --brand-soft: rgba(91, 70, 246, 0.09);
  --brand-border: rgba(91, 70, 246, 0.28);
  --brand-ink: #ffffff;

  --ok: #059669;
  --ok-bright: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.11);
  --ok-border: rgba(16, 185, 129, 0.28);

  --sky: #0284c7;
  --sky-soft: rgba(14, 165, 233, 0.11);
  --sky-border: rgba(14, 165, 233, 0.28);

  --amber: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.12);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 22px 54px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI",
    "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg-canvas: #090b10;
  --bg-surface: #121621;
  --bg-elevated: #171c2a;
  --bg-tinted: #0d1018;
  --bg-subtle: #1a2030;
  --bg-hover: #21283c;
  --bg-header: rgba(9, 11, 16, 0.84);

  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;

  --border-1: rgba(241, 245, 249, 0.085);
  --border-2: rgba(241, 245, 249, 0.16);

  --brand: #7c6bf8;
  --brand-hover: #8f80ff;
  --brand-soft: rgba(124, 107, 248, 0.16);
  --brand-border: rgba(124, 107, 248, 0.38);
  --brand-ink: #ffffff;

  --ok: #34d399;
  --ok-bright: #10b981;
  --ok-soft: rgba(52, 211, 153, 0.13);
  --ok-border: rgba(52, 211, 153, 0.30);

  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --sky-border: rgba(56, 189, 248, 0.32);

  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.13);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.62);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg-canvas);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-1);
  overflow-x: hidden;
  min-height: 100dvh;
}

html[data-theme="light"] body {
  background-image: radial-gradient(
    ellipse 74% 420px at 50% -110px,
    rgba(91, 70, 246, 0.09),
    transparent 74%
  );
  background-repeat: no-repeat;
}

html[data-theme="dark"] body {
  background-image: radial-gradient(
    ellipse 74% 460px at 50% -100px,
    rgba(91, 70, 246, 0.2),
    transparent 72%
  );
  background-repeat: no-repeat;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.text-emerald {
  color: var(--ok);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 32px);
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.96rem;
}

.btn:not(.btn-sm):not(.btn-lg) {
  padding: 11px 18px;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, #6854ff 0%, #5b46f6 55%, #4a35e8 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(91, 70, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7462ff 0%, #634ef8 55%, #513ded 100%);
  box-shadow: 0 6px 20px rgba(91, 70, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-1);
  border-color: var(--border-2);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-border);
  transform: translateY(-1px);
}

.btn-white {
  background: #ffffff;
  color: #1e1b4b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.56);
  transform: translateY(-1px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.live-dot-sm {
  width: 7px;
  height: 7px;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.22);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08);
  }
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-1);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(91, 70, 246, 0.28));
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-wordmark strong {
  font-weight: 800;
  color: var(--text-1);
}

.brand-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-2);
  margin-inline: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-1);
  background: var(--bg-subtle);
}

.nav-product {
  color: var(--text-1);
  font-weight: 600;
}

.ext-icon {
  opacity: 0.52;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-product:hover .ext-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
  border-color: var(--border-2);
}

.lang-toggle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lang-sep {
  opacity: 0.35;
}

.lang-option {
  opacity: 0.52;
  transition: opacity 0.15s ease, color 0.15s ease;
}

html[data-lang="en"] [data-lang-badge="en"],
html[data-lang="zh"] [data-lang-badge="zh"] {
  opacity: 1;
  color: var(--brand);
}

.theme-toggle {
  width: 36px;
  padding: 0;
}

html[data-theme="light"] .icon-sun {
  display: none;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  padding: 0;
}

.mobile-nav {
  border-top: 1px solid var(--border-1);
  background: var(--bg-surface);
  padding: 16px 0 20px;
  box-shadow: var(--shadow-md);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.mobile-nav-section a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 550;
  color: var(--text-1);
}

.mobile-nav-section a:hover {
  background: var(--bg-subtle);
}

.mobile-nav-cta {
  width: 100%;
}

/* ==========================================================================
   Hero Section & Live Telemetry Preview Console
   ========================================================================== */
.hero-section {
  padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  margin-bottom: 20px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4.1vw, 3.55rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-1);
  text-wrap: balance;
}

.hero-line {
  display: block;
}

html[data-lang="zh"] .hero-title {
  font-size: clamp(2.15rem, 3.7vw, 3.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 560px;
}

.hero-subtitle strong {
  color: var(--text-1);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

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

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

.proof-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.proof-label {
  font-size: 0.78rem;
  color: var(--text-3);
}

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

/* Telemetry Console Card */
.console-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-1);
  min-width: 0;
}

.console-window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.console-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-2);
}

.console-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-sep {
  opacity: 0.45;
}

.eco-chip {
  font-size: 0.7rem;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-border);
  white-space: nowrap;
}

.console-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-1);
}

.ckpi {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ckpi-highlight {
  background: var(--ok-soft);
  border-color: var(--ok-border);
}

.ckpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
}

.ckpi-val {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.ckpi-sub {
  font-size: 0.7rem;
  color: var(--text-2);
}

.console-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-1);
  flex-wrap: wrap;
}

.console-tab {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.console-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-1);
}

.console-tab.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
}

.console-sync-text {
  margin-left: auto;
  font-size: 0.71rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.console-rig-list {
  display: flex;
  flex-direction: column;
}

.rig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
  transition: background-color 0.14s ease;
}

.rig-row:last-child {
  border-bottom: 0;
}

.rig-row:hover {
  background: var(--bg-subtle);
}

.rig-row.is-hidden {
  display: none;
}

.rig-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rig-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-ok {
  background: var(--ok-bright);
}

.status-ai {
  background: var(--brand);
}

.rig-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}

.coin-pill {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 5px;
}

.coin-neb {
  background: var(--brand-soft);
  color: var(--brand);
}

.coin-prl {
  background: var(--sky-soft);
  color: var(--sky);
}

.coin-ai {
  background: var(--amber-soft);
  color: var(--amber);
}

.miner-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-3);
}

.rig-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-2);
  flex-wrap: wrap;
}

.rig-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.rig-hash {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-1);
}

.rig-fee-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-eco {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.badge-indigo {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-1);
  font-size: 0.74rem;
  color: var(--text-2);
}

.console-foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mcp-chip {
  font-size: 0.66rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--sky-soft);
  color: var(--sky);
  border: 1px solid var(--sky-border);
  white-space: nowrap;
}

.console-foot-right {
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
}

/* ==========================================================================
   Shared Sections & Headers
   ========================================================================== */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

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

.section-header {
  max-width: 720px;
  margin: 0 auto clamp(34px, 4.5vw, 52px);
  text-align: center;
}

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

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-1);
  text-wrap: balance;
}

.section-subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ==========================================================================
   3-Pillar Ecosystem Grid
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.pillar-card-accent {
  border-color: var(--ok-border);
}

.pillar-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.pillar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon-indigo {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.pillar-icon-emerald {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.pillar-icon-sky {
  background: var(--sky-soft);
  color: var(--sky);
  border: 1px solid var(--sky-border);
}

.pillar-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.pillar-name-row h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.product-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.pill-indigo {
  background: var(--brand-soft);
  color: var(--brand);
}

.pill-emerald {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill-sky {
  background: var(--sky-soft);
  color: var(--sky);
}

.pillar-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 2px;
}

.pillar-rate-badge {
  font-size: 0.69rem;
  font-weight: 750;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.pillar-desc {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.89rem;
  line-height: 1.5;
  color: var(--text-1);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ok-soft);
  border: 1.5px solid var(--ok);
  box-shadow: inset 0 0 0 3px var(--bg-surface);
}

.pillar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-1);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
  transition: gap 0.15s ease;
}

.pillar-link:hover {
  gap: 10px;
}

/* ==========================================================================
   Interactive Savings Calculator
   ========================================================================== */
.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.36fr);
  gap: 24px;
  align-items: start;
}

.calc-controls {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-head label,
.control-label-static {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
}

.num-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-2);
}

.num-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.num-prefix,
.num-suffix {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-3);
}

.num-input {
  width: 72px;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-1);
  text-align: right;
  outline: none;
}

.control-badge {
  font-size: 0.82rem;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.control-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-surface);
  box-shadow: 0 1px 6px rgba(91, 70, 246, 0.45);
  cursor: pointer;
  transition: transform 0.14s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-surface);
  box-shadow: 0 1px 6px rgba(91, 70, 246, 0.45);
  cursor: pointer;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-pill {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-1);
  background: var(--bg-subtle);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.14s ease;
}

.preset-pill:hover {
  border-color: var(--brand-border);
  color: var(--text-1);
}

.preset-pill.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
}

.seg-btn {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.14s ease;
}

.seg-btn.is-active {
  background: var(--bg-surface);
  color: var(--text-1);
  border-color: var(--border-2);
  box-shadow: var(--shadow-xs);
}

.calc-gross-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  font-size: 0.85rem;
  color: var(--text-2);
}

.calc-gross-summary strong {
  font-size: 1.05rem;
  color: var(--text-1);
}

/* Calculator Output Panel */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.savings-hero-card {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--ok-border);
  box-shadow: var(--shadow-md);
  background-image: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.08) 0%,
    rgba(91, 70, 246, 0.06) 100%
  );
}

.savings-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ok);
  margin-bottom: 14px;
}

.savings-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.savings-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.savings-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}

.savings-big {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
}

.savings-sub {
  font-size: 0.76rem;
  color: var(--text-3);
}

.stack-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stack-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.stack-card-winner {
  border-color: var(--ok-border);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.stack-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stack-tag {
  font-size: 0.7rem;
  font-weight: 750;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.stack-tag-muted {
  background: var(--bg-subtle);
  color: var(--text-2);
}

.stack-tag-indigo {
  background: var(--brand-soft);
  color: var(--brand);
}

.stack-tag-emerald {
  background: var(--ok-soft);
  color: var(--ok);
}

.stack-pct {
  font-size: 1.05rem;
  font-weight: 850;
}

.stack-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.stack-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.fill-muted {
  background: var(--text-3);
}

.fill-indigo {
  background: var(--brand);
}

.fill-emerald {
  background: var(--ok-bright);
}

.stack-breakdown {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
}

.stack-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stack-breakdown dt {
  color: var(--text-2);
}

.stack-breakdown dd {
  margin: 0;
  font-weight: 650;
  color: var(--text-1);
}

.stack-total {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px dashed var(--border-2);
}

.stack-total dt,
.stack-total dd {
  font-weight: 800;
  font-size: 0.86rem;
}

.stack-save-pill {
  margin-top: auto;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 750;
  background: var(--brand-soft);
  color: var(--brand);
}

.pill-winner {
  background: var(--ok-soft);
  color: var(--ok);
}

.calc-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.55;
}

/* ==========================================================================
   Transparent Pricing & Miner-First Promise Strip
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
}

.plan-card-featured {
  border: 2px solid var(--brand);
  box-shadow: 0 14px 36px rgba(91, 70, 246, 0.16);
}

.recommended-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6854ff 0%, #5b46f6 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(91, 70, 246, 0.35);
}

.plan-head h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 850;
}

.plan-tagline {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--text-2);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.plan-price strong {
  font-size: 2.2rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price span {
  font-size: 0.85rem;
  color: var(--text-3);
}

.plan-callout {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.callout-subtle {
  background: var(--bg-subtle);
  color: var(--text-2);
  border: 1px solid var(--border-1);
}

.callout-emerald {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}

.callout-indigo {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

/* Promise Strip */
.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.promise-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promise-icon-emerald {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok-border);
}

.promise-item h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-1);
}

.promise-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ==========================================================================
   B2B Spotlight: GPU Idle-Revenue for AI Clusters
   ========================================================================== */
.idle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.idle-title,
.idle-subtitle {
  text-align: left;
}

.idle-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0 28px;
}

.idle-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.idle-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  flex-shrink: 0;
}

.idle-point h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
}

.idle-point p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

.idle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Preempt Simulator Card */
.preempt-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
}

.preempt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.preempt-node-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-1);
}

.preempt-sub {
  font-size: 0.76rem;
  color: var(--text-3);
}

.preempt-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  gap: 3px;
}

.preempt-btn {
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.14s ease;
}

.preempt-btn.is-active {
  background: var(--bg-surface);
  color: var(--text-1);
  border-color: var(--border-2);
  box-shadow: var(--shadow-xs);
}

.gpu-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.gpu-slot {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gpu-slot.is-ai {
  border-color: var(--brand-border);
}

.gpu-slot.is-mining {
  border-color: var(--ok-border);
}

.gpu-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gpu-id {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-2);
}

.gpu-state-pill {
  font-size: 0.67rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 999px;
}

.pill-ai {
  background: var(--brand-soft);
  color: var(--brand);
}

.pill-mine {
  background: var(--ok-soft);
  color: var(--ok);
}

.gpu-task {
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--text-1);
}

.gpu-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--border-1);
  overflow: hidden;
}

.gpu-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.gpu-slot.is-ai .gpu-bar span {
  background: var(--brand);
}

.gpu-slot.is-mining .gpu-bar span {
  background: var(--ok-bright);
}

.gpu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--text-2);
}

.preempt-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-1);
}

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

.preempt-stat span {
  font-size: 0.7rem;
  color: var(--text-3);
}

.preempt-stat strong {
  font-size: 0.82rem;
  font-weight: 800;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 860px;
}

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

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

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

.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--text-1);
  cursor: pointer;
}

.faq-trigger:hover {
  background: var(--bg-subtle);
}

.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-panel {
  padding: 0 20px 18px;
}

.faq-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ==========================================================================
   Bottom CTA Banner & Footer
   ========================================================================== */
.cta-section {
  padding-top: 12px;
}

.cta-banner {
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #5b46f6 0%, #432fd1 55%, #2b238a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 46px rgba(91, 70, 246, 0.3);
}

.cta-banner-copy {
  max-width: 600px;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.cta-banner p {
  margin: 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--border-1);
  background: var(--bg-surface);
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-tagline {
  margin: 14px 0 16px;
  font-size: 0.88rem;
  color: var(--text-2);
  max-width: 340px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ok-soft);
  border: 1px solid var(--ok-border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ok);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color 0.14s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

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

.footer-domain-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .primary-nav {
    display: none;
  }

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

  .hero-grid,
  .calc-shell,
  .idle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars-grid,
  .pricing-grid,
  .promise-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-cta {
    display: none;
  }

  .console-kpis,
  .savings-metrics-row,
  .stack-compare-grid,
  .gpu-slots-grid,
  .preempt-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .segmented-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-divider {
    display: none;
  }

  .console-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 8px;
  }

  .brand-pill {
    display: none;
  }

  .console-window-dots {
    display: none;
  }

  .rig-row {
    flex-wrap: wrap;
  }

  .rig-metrics {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 6px;
    border-top: 1px dashed var(--border-1);
  }

  .hero-actions .btn,
  .idle-actions .btn,
  .cta-banner-actions .btn {
    width: 100%;
  }
}
