/* ============================================================
   AI Compute Exchange — Global Styles
   Pure CSS, no frameworks, no build tools.
   Mobile-first, H5-compatible.
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0: #05070d;
  --bg-1: #0a0e1a;
  --bg-2: #0f1526;
  --bg-3: #151d33;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text-1: #f0f4ff;
  --text-2: #aab4cc;
  --text-3: #6b7590;
  --accent: #4af0a4;
  --accent-2: #6ba7ff;
  --accent-3: #a78bfa;
  --grad-1: linear-gradient(135deg, #4af0a4 0%, #6ba7ff 100%);
  --grad-2: linear-gradient(135deg, #6ba7ff 0%, #a78bfa 100%);
  --grad-bg: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74,240,164,0.12), transparent);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-1: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(74,240,164,0.15);
  --max-w: 1200px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--text-3); font-size: 0.85em; }
.accent {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #0a1a10;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(74,240,164,0.2);
}
.btn-primary:hover {
  background: #5dfcb4;
  box-shadow: 0 0 30px rgba(74,240,164,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,240,164,0.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(5,7,13,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5,7,13,0.92);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text-1); }

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

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  box-shadow: var(--shadow-1);
}
.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 6px;
  transition: all 0.15s;
}
.lang-opt:hover {
  background: rgba(74,240,164,0.08);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(74,240,164,0.12), transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 20%, rgba(107,167,255,0.1), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(167,139,250,0.08), transparent 60%);
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero .container { position: relative; text-align: center; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(74,240,164,0.08);
  border: 1px solid rgba(74,240,164,0.2);
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  line-height: 1.7;
}

.hero-prompt {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-1);
}
.prompt-label { font-size: 14px; color: var(--text-2); }
.hero-prompt .btn { padding: 10px 20px; font-size: 13px; }

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.hf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}
.hf-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.hf-ico {
  font-size: 18px;
  color: var(--accent);
  width: 28px;
  text-align: center;
}
.hf-text {
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
}

/* ---------- Section Head ---------- */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(74,240,164,0.08);
  border: 1px solid rgba(74,240,164,0.2);
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---------- Local Route Card ---------- */
.local-route { padding: 0 0 100px; }
.route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.route-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-1);
}
.route-left { flex: 1; }
.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.route-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.route-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.route-market { color: var(--accent); }
.route-card p {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Dual Entry ---------- */
.dual-entry { background: linear-gradient(180deg, transparent, rgba(107,167,255,0.04), transparent); }
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dual-card {
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}
.dual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--shadow-glow);
  border-color: var(--accent);
}
.card-left::before, .card-right::before {
  content: '';
  position: absolute;
  top: -50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.card-left::before {
  right: -100px;
  background: var(--accent);
}
.card-right::before {
  left: -100px;
  background: var(--accent-2);
}
.dual-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  position: relative;
}
.dual-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  position: relative;
}
.dual-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
}
.dual-card .btn { position: relative; }

/* ---------- One system ---------- */
.system-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pillar {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.pillar:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.pillar-ico {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.pillar-name {
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Planner ---------- */
.planner {
  background: linear-gradient(180deg, transparent, rgba(167,139,250,0.04), transparent);
}
.planner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.step-card {
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.5;
}
.step-card.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 30px rgba(74,240,164,0.1);
}
.step-card:hover { opacity: 1; border-color: var(--line-strong); }
.step-num {
  font-size: 40px;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step-q {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}
.step-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-btn {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.opt-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,240,164,0.06);
}
.opt-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74,240,164,0.1);
  font-weight: 500;
}

.recommend {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s;
}
.recommend.pulse {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(74,240,164,0.2);
}
.rec-label {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(74,240,164,0.08);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rec-body { padding: 28px; }
.rec-tag {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.rec-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rec-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.rec-meta-item { display: flex; flex-direction: column; gap: 4px; }
.rec-meta-item .muted { font-size: 12px; }
.rec-meta-item strong { font-size: 14px; color: var(--text-1); }
.rec-desc {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* ---------- Lifecycle ---------- */
.lifecycle { background: linear-gradient(180deg, transparent, rgba(74,240,164,0.03), transparent); }
.life-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.life-step {
  position: relative;
  padding: 24px 16px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}
.life-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg-2);
}
.life-step:last-child::after { display: none; }
.life-step:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.life-step.active {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(74,240,164,0.15);
}
.life-step.active::after { border-color: var(--accent); }
.life-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-3);
  margin-bottom: 10px;
}
.life-step.active .life-num {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.life-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.life-step p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

.life-detail {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.life-detail-inner { padding: 32px; }
.life-stage-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.life-stage-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.life-detail-text {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.7;
}
.life-progress { margin-bottom: 24px; }
.life-progress .muted {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}
.life-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}
.life-bar-fill {
  height: 100%;
  background: var(--grad-1);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.life-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---------- Partnership ---------- */
.partnership { background: linear-gradient(180deg, transparent, rgba(107,167,255,0.04), transparent); }
.part-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.ladder-item {
  position: relative;
  padding: 28px 16px 32px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}
.ladder-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: background 0.3s;
}
.ladder-item:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.ladder-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(74,240,164,0.12);
  transform: translateY(-6px);
}
.ladder-item.active::before { background: var(--grad-1); }
.ladder-level {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg-3);
  border-radius: 100px;
  margin-bottom: 12px;
}
.ladder-item.active .ladder-level {
  color: var(--accent);
  background: rgba(74,240,164,0.12);
}
.ladder-item h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.part-compare {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.compare-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.compare-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  flex-basis: 100%;
}
.compare-model {
  font-size: 22px;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-desc {
  font-size: 14px;
  color: var(--text-2);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.compare-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}
.compare-cell .muted { font-size: 12px; }
.compare-cell strong {
  font-size: 15px;
  color: var(--text-1);
  font-weight: 600;
}
.compare-action { text-align: right; }

/* ---------- Capacity Value ---------- */
.capacity-value { }
.cv-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.cv-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
}
.cv-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-1);
}
.slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.slider-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  outline: none;
}
.slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(74,240,164,0.5);
  transition: transform 0.2s;
}
.slider-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-wrap input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px rgba(74,240,164,0.5);
}
.slider-val {
  min-width: 56px;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.2s;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.active {
  background: rgba(74,240,164,0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.cv-result {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cv-result::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 250px;
  height: 250px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.cv-result-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 16px;
  position: relative;
}
.cv-yield-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  position: relative;
}
.cv-yield-val {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
}
.cv-yield-val sup { font-size: 28px; }
.cv-meter {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.cv-meter-fill {
  height: 100%;
  background: var(--grad-1);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.cv-result-meta {
  margin-bottom: 20px;
  position: relative;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.meta-row:last-child { border-bottom: none; }
.meta-row .muted { font-size: 13px; }
.meta-row strong { font-size: 14px; color: var(--text-1); }
.cv-note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 14px;
  position: relative;
}
.disclaimer {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 16px;
  line-height: 1.5;
  opacity: 0.7;
  position: relative;
}

/* ---------- Infrastructure ---------- */
.infrastructure { background: linear-gradient(180deg, transparent, rgba(167,139,250,0.04), transparent); }
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.infra-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s;
}
.infra-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(74,240,164,0.1);
}
.infra-img {
  aspect-ratio: 3 / 2;
  background: var(--bg-3);
  overflow: hidden;
}
.infra-img svg {
  width: 100%;
  height: 100%;
}
.infra-card h3 {
  padding: 20px 20px 6px;
  font-size: 16px;
  font-weight: 600;
}
.infra-card p {
  padding: 0 20px 20px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- Markets ---------- */
.markets { }
.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.mtab {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.2s;
}
.mtab:hover {
  border-color: var(--line-strong);
  color: var(--text-1);
}
.mtab.active {
  background: var(--accent);
  color: #0a1a10;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(74,240,164,0.25);
}

.market-detail {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.market-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(74,240,164,0.06);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.market-signal .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
.market-signal strong {
  font-size: 13px;
  color: var(--text-1);
  font-weight: 600;
}
.signal-badge {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(74,240,164,0.12);
  border-radius: 100px;
}
.market-info { padding: 32px 28px; }
.market-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.market-info p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.market-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.market-note {
  padding: 14px 28px;
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}

/* ---------- CTA ---------- */
.cta { padding: 100px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(74,240,164,0.12), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(107,167,255,0.08), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-left { flex: 1; }
.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.cta-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .nav-logo {
  font-size: 20px;
  margin-bottom: 12px;
  display: inline-block;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fcol { display: flex; flex-direction: column; gap: 10px; }
.fcol h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.fcol a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}
.fcol a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-lang select {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.footer-lang select:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 960px) {

  .video-showcase {
    margin: 0 16px;
    border-radius: 18px;
  }
  .video-badge-row {
    bottom: 16px;
    gap: 8px;
  }
  .vbadge {
    padding: 6px 12px;
    font-size: 12px;
  }

  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hero { padding: calc(var(--nav-h) + 60px) 0 72px; }
  .hero-features { grid-template-columns: 1fr; max-width: 360px; }
  .dual-grid { grid-template-columns: 1fr; }
  .system-pillars { grid-template-columns: 1fr; }
  .planner-steps { grid-template-columns: 1fr; }
  .life-steps { grid-template-columns: repeat(3, 1fr); }
  .life-step:nth-child(3)::after { display: none; }
  .life-step:nth-child(n+4) { margin-top: 0; }
  .part-ladder { grid-template-columns: repeat(3, 1fr); }
  .ladder-item:nth-child(3)::after { display: none; }
  .cv-layout { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .cta-buttons { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 600px) {

  /* Video showcase mobile */
  .video-section {
    padding: 40px 0;
  }
  .video-section .section-head {
    margin-bottom: 24px;
  }
  .video-section .section-title {
    font-size: 22px;
  }
  .video-showcase {
    margin: 0 12px;
    border-radius: 14px;
  }
  .loop-video {
    max-height: 45vh;
    object-fit: cover;
  }
  .video-badge-row {
    bottom: 12px;
    gap: 6px;
  }
  .vbadge {
    padding: 5px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .vbadge-dot {
    width: 5px;
    height: 5px;
  }

  :root { --nav-h: 60px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 15px; }
  .hero-prompt {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 16px;
    width: 100%;
  }
  .prompt-label { text-align: center; }
  .hero-prompt .btn { width: 100%; }

  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; }

  .route-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .dual-card { padding: 32px 24px; }
  .dual-title { font-size: 22px; }

  .life-steps { grid-template-columns: repeat(2, 1fr); }
  .life-step::after { display: none; }

  .part-ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder-item::after { display: none; }

  .cv-controls, .cv-result { padding: 24px; }
  .cv-yield-val { font-size: 44px; }
  .cv-yield-val sup { font-size: 22px; }

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

  .market-signal { padding: 12px 20px; }
  .signal-badge { margin-left: 0; }
  .market-info { padding: 24px 20px; }
  .market-info h3 { font-size: 22px; }
  .market-actions { flex-direction: column; }
  .market-actions .btn { width: 100%; }

  .cta-inner { padding: 32px 20px; }
  .cta-title { font-size: 24px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; }

  .life-detail-inner { padding: 24px; }
  .rec-body { padding: 24px; }
  .part-compare { padding: 24px; }
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---------- Selection ---------- */
::selection {
  background: rgba(74,240,164,0.3);
  color: var(--text-1);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
