/* ==========================================================================
   Claude 头等舱 (ClaudeFirst) — Carbon Obsidian × Champagne Titanium System
   Executive Minimalist Aesthetic (Porsche Design / Linear / Vercel Precision)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-page: #050609;
  --bg-surface: #0b0d12;
  --bg-surface-2: #10131b;
  --bg-subtle: #151923;
  --bg-elevated: #121620;
  --bg-glass: rgba(7, 9, 13, 0.78);

  --ink-1: #f5f7fa;
  --ink-2: #9aa3b2;
  --ink-3: #646e7f;

  --border-1: rgba(255, 255, 255, 0.085);
  --border-2: rgba(255, 255, 255, 0.15);
  --sheen-top: inset 0 1px 0 rgba(255, 255, 255, 0.075);

  /* Signature Champagne Titanium Gold Accent */
  --gold-1: #f7e3b5;
  --gold-2: #dfb668;
  --gold-3: #b08538;
  --brand: #dfb668;
  --brand-hover: #ecc984;
  --brand-ink: #120d03;
  --brand-soft: rgba(223, 182, 104, 0.11);
  --brand-border: rgba(223, 182, 104, 0.36);

  /* Pinpoint Safe-House Emerald (status only, never noisy neon buttons) */
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.1);
  --emerald-border: rgba(16, 185, 129, 0.28);

  --ok: #34d399;
  --ok-bg: rgba(16, 185, 129, 0.1);
  --ok-border: rgba(16, 185, 129, 0.28);

  --warning: #eab308;
  --warning-bg: rgba(234, 179, 8, 0.11);
  --warning-border: rgba(234, 179, 8, 0.3);

  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.32);

  --info: #cbd5e1;
  --info-bg: rgba(255, 255, 255, 0.06);
  --info-border: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.72);

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

[data-theme="light"] {
  --bg-page: #f6f7f9;
  --bg-surface: #ffffff;
  --bg-surface-2: #fafbfc;
  --bg-subtle: #eff1f5;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(246, 247, 249, 0.84);

  --ink-1: #0b0e14;
  --ink-2: #4b5563;
  --ink-3: #6b7280;

  --border-1: rgba(11, 14, 20, 0.09);
  --border-2: rgba(11, 14, 20, 0.17);
  --sheen-top: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --gold-1: #d4a652;
  --gold-2: #a97c2c;
  --gold-3: #875f1a;
  --brand: #a97c2c;
  --brand-hover: #8f6720;
  --brand-ink: #ffffff;
  --brand-soft: rgba(169, 124, 44, 0.09);
  --brand-border: rgba(169, 124, 44, 0.32);

  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.08);
  --emerald-border: rgba(5, 150, 105, 0.28);

  --ok: #059669;
  --ok-bg: rgba(5, 150, 105, 0.08);
  --ok-border: rgba(5, 150, 105, 0.25);

  --warning: #a16207;
  --warning-bg: rgba(202, 138, 4, 0.09);
  --warning-border: rgba(202, 138, 4, 0.26);

  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-border: rgba(220, 38, 38, 0.25);

  --info: #374151;
  --info-bg: rgba(15, 23, 42, 0.05);
  --info-border: rgba(15, 23, 42, 0.12);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.11);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.small { font-size: 12.5px; }
.muted { color: var(--ink-2); }
.row-flex { display: flex; align-items: center; gap: 10px; }
.stack-col { display: flex; flex-direction: column; gap: 16px; }

/* Boot */
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.boot-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.boot-sub { font-size: 13px; color: var(--ink-2); }

/* Toast */
.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  background: var(--bg-elevated);
  color: var(--ink-1);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
}
.toast-item.ok { border-color: var(--ok-border); color: var(--ok); }
.toast-item.err { border-color: var(--danger-border); color: var(--danger); }

/* ==========================================================================
   RESTRAINED LUXURY BUTTONS (Zero Rainbow Clashes)
   ========================================================================== */
.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--sheen-top);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] .td-btn { background: #ffffff; }
.td-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
[data-theme="light"] .td-btn:hover:not(:disabled) {
  border-color: rgba(11, 14, 20, 0.3);
  background: #f3f4f6;
}
.td-btn:disabled { opacity: 0.42; cursor: not-allowed; }

/* Primary: Pure Machined Titanium White in Dark / Deep Obsidian in Light */
.td-btn-primary {
  background: #f5f7fa;
  border-color: #ffffff;
  color: #07090d;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .td-btn-primary {
  background: #0b0e14;
  border-color: #0b0e14;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 14, 20, 0.16);
}
.td-btn-primary:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18);
}
[data-theme="light"] .td-btn-primary:hover:not(:disabled) {
  background: #1f2430;
  border-color: #1f2430;
}

/* Signature Champagne Gold (First-Class Featured CTA) */
.td-btn-gold,
.td-btn-emerald,
[data-theme="light"] .td-btn-gold,
[data-theme="light"] .td-btn-emerald {
  background: linear-gradient(135deg, #f5e0b2 0%, #dfb668 55%, #c59642 100%);
  border-color: rgba(212, 166, 82, 0.72);
  color: #140e03;
  font-weight: 750;
  box-shadow: 0 6px 22px rgba(223, 182, 104, 0.24);
}
.td-btn-gold:hover:not(:disabled),
.td-btn-emerald:hover:not(:disabled),
[data-theme="light"] .td-btn-gold:hover:not(:disabled),
[data-theme="light"] .td-btn-emerald:hover:not(:disabled) {
  filter: brightness(1.05);
  background: linear-gradient(135deg, #f5e0b2 0%, #dfb668 55%, #c59642 100%);
  border-color: #d4a652;
  box-shadow: 0 8px 28px rgba(223, 182, 104, 0.34);
}

.td-btn-dark {
  background: #151923;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f7fa;
}
.td-btn-dark:hover:not(:disabled) { background: #1d2331; border-color: var(--brand-border); }

.td-btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.td-btn-sm { height: 33px; padding: 0 12px; font-size: 12.5px; }
.td-btn-xs { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.td-btn-icon { width: 34px; padding: 0; }

/* Tags */
.td-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border-1);
  background: var(--bg-subtle);
  color: var(--ink-2);
  white-space: nowrap;
}
.td-tag-brand { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }
.td-tag-ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok); }
.td-tag-warn { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.td-tag-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.td-tag-info { background: var(--info-bg); border-color: var(--info-border); color: var(--info); }
.td-tag-neutral { background: var(--bg-subtle); border-color: var(--border-1); color: var(--ink-2); }

.tier-pill-pro {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

/* Inputs */
.td-input, .td-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--bg-page);
  color: var(--ink-1);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.td-input:focus, .td-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.code-block {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #040508;
  color: #d6dce6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   BRAND LOGO LOCKUP
   ========================================================================== */
.cf-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-1);
  text-decoration: none;
}
.cf-logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(207, 160, 68, 0.24));
}
.cf-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.cf-logo-zh {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.cf-logo-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-top: 2px;
  text-transform: uppercase;
}

/* ==========================================================================
   LANDING PAGE — Executive Carbon Obsidian × Champagne Gold Architecture
   ========================================================================== */
.cp-landing {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
.cp-ambient-glow {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 1080px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 35%, rgba(223, 182, 104, 0.11), rgba(255, 255, 255, 0.035) 42%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .cp-ambient-glow {
  background: radial-gradient(ellipse at 50% 35%, rgba(169, 124, 44, 0.08), transparent 68%);
}

.cp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-1);
}
.cp-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 74px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cp-nav-links { display: flex; align-items: center; gap: 30px; }
.cp-nav-links a {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cp-nav-links a:hover { color: var(--ink-1); }
.cp-nav-actions { display: flex; align-items: center; gap: 10px; }

.cp-wrap {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Split Widescreen Gallery Hero */
.cp-hero {
  padding: 82px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 56px;
  align-items: center;
}
.cp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 24px;
  box-shadow: var(--sheen-top);
}
[data-theme="light"] .cp-kicker { background: #ffffff; }
@keyframes cpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); opacity: 0.85; }
}
.cp-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: cpPulse 2.4s ease-in-out infinite;
}
.cp-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.038em;
  font-weight: 850;
}
.cp-hero-gradient {
  background: linear-gradient(125deg, #ffffff 0%, #f5e0b2 48%, #dfb668 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .cp-hero-gradient {
  background: linear-gradient(125deg, #0b0e14 0%, #9b7024 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cp-hero-lead {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 540px;
}
.cp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.cp-cta-lg { height: 48px; padding: 0 24px; font-size: 14.5px; border-radius: 11px; }

.cp-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border-1);
}
.cp-tele-item { display: flex; flex-direction: column; gap: 4px; }
.cp-tele-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-1);
}
.cp-tele-lab { font-size: 12.5px; color: var(--ink-3); }

/* Hero Live Vault Stage with Floating Telemetry HUD & Metallic Sheen */
.cp-hero-visual {
  position: relative;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(145deg, rgba(223, 182, 104, 0.55), rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.cp-hero-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.52), 0 0 42px rgba(223, 182, 104, 0.14);
}
.cp-hero-visual-inner {
  position: relative;
  border-radius: 20.5px;
  overflow: hidden;
  background: #020408;
}
.cp-vault-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #020408;
  overflow: hidden;
}
.cp-vault-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.cp-stage-ctrl {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cp-hero-visual-inner:hover .cp-stage-ctrl {
  opacity: 1;
  transform: translateY(0);
}
.cp-stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.cp-stage-btn:hover {
  border-color: rgba(223, 182, 104, 0.65);
  color: #f5e0b2;
}
.cp-hero-visual-inner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-hero-visual:hover .cp-hero-visual-inner img { transform: scale(1.028); }
.cp-vault-float-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 8, 12, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(223, 182, 104, 0.34);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  color: #f5e0b2;
  letter-spacing: 0.04em;
}
.cp-vault-float-left {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.08em;
}
.cp-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(6, 8, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #9aa3b2;
}
.cp-hud-status { display: flex; align-items: center; gap: 7px; color: #f5f7fa; font-weight: 650; }

/* Sections & Editorial Rhythm */
.cp-section { padding: 76px 0; border-top: 1px solid var(--border-1); }
.cp-section-band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: rgba(255, 255, 255, 0.018);
}
[data-theme="light"] .cp-section-band {
  background: #eff1f5;
}
.cp-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.cp-sec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.cp-sec-title {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.cp-sec-sub { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); max-width: 640px; }

/* Interactive Cursor-Spotlight Rim Glow on Machined Cards */
.cp-spot-card {
  position: relative;
}
.cp-spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgba(223, 182, 104, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}
.cp-spot-card:hover::before { opacity: 1; }

/* Mini Terminal Preview Inside Two-Step Cards */
.cp-mini-term {
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #cbd5e1;
  position: relative;
  z-index: 1;
}
.cp-mini-term .t-dim { color: #64748b; }
.cp-mini-term .t-gold { color: #f0ca7a; }
.cp-mini-term .t-ok { color: #34d399; font-weight: 700; }

/* First-Class Boarding Pass Perforation on Featured Pricing Card */
.cp-pass-divider {
  position: relative;
  margin: 18px -26px 20px;
  border-top: 1px dashed rgba(223, 182, 104, 0.35);
}
.cp-pass-divider::before,
.cp-pass-divider::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1px solid rgba(223, 182, 104, 0.42);
}
.cp-pass-divider::before { left: -8px; }
.cp-pass-divider::after { right: -8px; }
.cp-pass-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 10px;
  opacity: 0.88;
}

/* Two-Step Machined Cards */
.cp-twostep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cp-step-box {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-surface-2) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-1);
  box-shadow: var(--sheen-top), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cp-step-box::after {
  content: attr(data-step-wm);
  position: absolute;
  right: 20px;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 74px;
  font-weight: 850;
  line-height: 1;
  color: var(--ink-1);
  opacity: 0.04;
  pointer-events: none;
}
.cp-step-box:hover { border-color: var(--brand-border); transform: translateY(-2px); }
.cp-step-box.step-two { border-color: var(--brand-border); }
.cp-step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.cp-step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-1);
  border: 1px solid var(--border-2);
}
[data-theme="light"] .cp-step-num { background: var(--bg-subtle); }
.cp-step-box.step-two .cp-step-num {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
}
.cp-step-box h3 { margin: 2px 0 0; font-size: 19px; font-weight: 780; letter-spacing: -0.02em; position: relative; z-index: 1; }
.cp-step-box p { margin: 0; font-size: 13.8px; color: var(--ink-2); line-height: 1.66; max-width: 440px; position: relative; z-index: 1; }
.cp-step-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }

/* 4-Column Executive Feature Row (No dated thick left borders!) */
.cp-bento-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cp-arch-card {
  padding: 24px 22px;
  border-radius: 15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--sheen-top);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cp-arch-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.cp-arch-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-2);
  color: var(--brand);
}
.cp-arch-card.emerald .cp-arch-icon { color: var(--emerald); border-color: var(--emerald-border); background: var(--emerald-soft); }
.cp-arch-card h3 { margin: 0; font-size: 15.5px; font-weight: 750; letter-spacing: -0.015em; }
.cp-arch-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }

/* Pricing Grid */
.cp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.cp-plan {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--sheen-top);
  display: flex;
  flex-direction: column;
}
.cp-plan-main {
  border: 1px solid rgba(223, 182, 104, 0.52);
  background: radial-gradient(ellipse at 50% -10%, rgba(223, 182, 104, 0.14), transparent 58%), var(--bg-surface);
  box-shadow: inset 0 1px 0 rgba(247, 227, 181, 0.22), 0 18px 48px rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .cp-plan-main {
  background: radial-gradient(ellipse at 50% -10%, rgba(169, 124, 44, 0.08), transparent 55%), #ffffff;
  box-shadow: 0 14px 36px rgba(169, 124, 44, 0.12);
}
.cp-plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f7e3b5, #dfb668);
  color: #140e03;
}
.cp-plan-lab { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.cp-plan-main .cp-plan-lab { color: var(--brand); }
.cp-plan-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink-1);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.cp-plan-price small { font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.cp-plan-cap { margin: 0 0 18px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.cp-plan ul {
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-1);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  flex: 1;
}
.cp-plan li { position: relative; padding-left: 16px; line-height: 1.52; }
.cp-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
}
.cp-plan-main li::before { background: var(--brand); }
.cp-plan li b { color: var(--ink-1); }

/* Sealed Warranty Banner */
.cp-warranty-bar {
  margin-top: 22px;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--sheen-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cp-warranty-bar strong { display: block; font-size: 14px; color: var(--ink-1); margin-bottom: 3px; }
.cp-warranty-bar p { margin: 0; font-size: 12.8px; color: var(--ink-2); }

/* Upcoming Flagship Matrix */
.cp-upcoming-wrap {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 15px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-2);
}
.cp-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cp-upcoming-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cp-upcoming-card {
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-1);
}
.cp-upcoming-card h4 { margin: 8px 0 4px; font-size: 14.5px; font-weight: 720; }
.cp-upcoming-card p { margin: 0; font-size: 12.5px; color: var(--ink-2); }

/* FAQ */
.cp-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-faq-grid details {
  padding: 16px 20px;
  border-radius: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--sheen-top);
}
.cp-faq-grid summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--ink-1); }
.cp-faq-grid details p { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }

/* Footer */
.cp-footer {
  margin-top: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border-1);
  color: var(--ink-3);
  font-size: 12.5px;
}
.cp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cp-footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cp-footer-links button { background: none; border: none; padding: 0; color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.cp-footer-links button:hover { color: var(--brand); }

.floating-support-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--bg-elevated);
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.floating-support-btn:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ==========================================================================
   AUTH VIEW
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-back-bar {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.auth-back-btn { background: none; border: none; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.auth-back-btn:hover { color: var(--brand); }
.auth-single-card {
  width: 100%;
  max-width: 460px;
  padding: 30px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--sheen-top), var(--shadow-lg);
}
.auth-brand-head { text-align: center; margin-bottom: 20px; }
.auth-app-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-app-icon img { width: 64px; height: 64px; filter: drop-shadow(0 6px 18px rgba(223, 182, 104, 0.24)); }
.auth-brand-head h1 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.auth-brand-head p { margin: 0; font-size: 12.5px; color: var(--ink-2); }

.seg-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-1);
  margin-bottom: 14px;
}
.seg-tab-btn { height: 32px; border: none; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.seg-tab-btn.active { background: var(--bg-surface-2); color: var(--ink-1); border: 1px solid var(--brand-border); }

.cdk-hint-banner {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.demo-quick-bar {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

/* ==========================================================================
   CONSOLE DASHBOARD — Executive Mission Control
   ========================================================================== */
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-1);
}
.portal-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 62px;
  padding: 6px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-1);
  flex-shrink: 0;
}
.portal-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav-tab-btn:hover { color: var(--ink-1); background: var(--bg-subtle); }
.nav-tab-btn.active { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-border); }
.nav-count-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--ink-1);
  border: 1px solid var(--border-1);
}
.portal-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.user-email-pill {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-2);
}

.portal-ann-bar {
  background: linear-gradient(90deg, rgba(223, 182, 104, 0.09), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--border-1);
}
.portal-ann-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.portal-main { max-width: 1440px; width: 100%; margin: 0 auto; padding: 24px 28px 52px; }

.bento-card {
  padding: 20px 22px;
  border-radius: 15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--sheen-top);
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 15px; font-weight: 750; display: inline-flex; align-items: center; gap: 7px; }

.pin-setup-card {
  padding: 18px 22px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(223, 182, 104, 0.09), rgba(255, 255, 255, 0.02) 55%, var(--bg-surface));
  border: 1px solid var(--brand-border);
  box-shadow: var(--sheen-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pin-setup-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-card {
  padding: 17px 19px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  box-shadow: var(--sheen-top);
}
.kpi-label { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.kpi-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.kpi-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr); gap: 16px; }
.quota-metric-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.quota-metric-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-1);
}
.quota-metric-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 850; margin: 4px 0; }

.quota-bar-block {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-1);
  margin-bottom: 10px;
}
.quota-bar-head, .quota-bar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.quota-bar-foot { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.progress-track { width: 100%; height: 7px; border-radius: 999px; background: var(--bg-page); overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #dfb668, #f7e3b5); transition: width 0.3s ease; }
.progress-fill.ok { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-fill.warn { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress-fill.danger { background: linear-gradient(90deg, #dc2626, #f87171); }
.progress-fill.ink { background: linear-gradient(90deg, #94a3b8, #f1f5f9); }

/* Executive Key Vault Card */
.sk-dark-card {
  padding: 20px;
  border-radius: 15px;
  background: radial-gradient(ellipse at 100% 0%, rgba(223, 182, 104, 0.14), transparent 55%), #080a0f;
  border: 1px solid rgba(223, 182, 104, 0.32);
  color: #f5f7fa;
  box-shadow: inset 0 1px 0 rgba(247, 227, 181, 0.16);
}
.sk-pill-box {
  margin: 12px 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(3, 4, 7, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f5e0b2;
  word-break: break-all;
}

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-item {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-wrap { width: 100%; overflow-x: auto; }
.td-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.td-table th { text-align: left; padding: 10px 12px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.td-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-1); vertical-align: middle; }
.td-table tr:last-child td { border-bottom: none; }

.ref-hero-card {
  border-color: var(--brand-border);
  background: radial-gradient(ellipse at 85% 0%, rgba(223, 182, 104, 0.12), transparent 55%), var(--bg-surface);
}
.p3-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.p3-step-card { padding: 13px 15px; border-radius: 11px; background: var(--bg-surface-2); border: 1px solid var(--border-1); }
.p3-step-card.done { border-color: var(--emerald-border); background: var(--emerald-soft); }
.p3-step-card.next { border-color: var(--brand-border); background: var(--brand-soft); }
.p3-pct { font-family: var(--font-mono); font-size: 12px; font-weight: 750; color: var(--brand); }
.ref-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.remote-steps-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.remote-step-pill { padding: 13px 15px; border-radius: 11px; background: var(--bg-surface-2); border: 1px solid var(--border-1); font-size: 12.8px; color: var(--ink-2); line-height: 1.58; }
.remote-step-pill b { display: block; color: var(--ink-1); font-size: 13.5px; margin-bottom: 4px; }

/* Modals & Drawers */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 3, 6, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.drawer-backdrop { justify-content: flex-end; padding: 0; }
.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--sheen-top), var(--shadow-lg);
  padding: 22px 24px;
}
.drawer-panel {
  width: 100%;
  max-width: 580px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal-header, .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border-1); }
.drawer-head { padding: 16px 20px; margin-bottom: 0; }
.drawer-body { padding: 18px 20px 30px; overflow-y: auto; flex: 1; }
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 750; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-1); background: var(--bg-subtle); color: var(--ink-1); font-size: 18px; cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-1); }

/* Responsive */
@media (max-width: 1024px) {
  .cp-bento-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-topbar-inner { flex-wrap: wrap; }
}
@media (max-width: 920px) {
  .cp-hero, .cp-twostep-grid, .cp-pricing-grid, .cp-upcoming-grid, .cp-faq-grid,
  .overview-grid, .ref-split, .p3-stepper, .remote-steps-mini { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-nav-links { display: none; }
}
@media (max-width: 560px) {
  .cp-bento-4, .kpi-row, .quota-metric-pair, .check-grid, .cp-telemetry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
