/* ============================================================
   ScoreShift Capital Intelligence Suite™ — Design System
   Bloomberg Terminal × Apple Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0A0F1E;
  --bg-secondary: #0D1428;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(13, 20, 40, 0.7);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-input-focus: rgba(255, 255, 255, 0.09);

  --gold: #C9A84C;
  --gold-light: #E2C070;
  --gold-dim: rgba(201, 168, 76, 0.2);
  --gold-glow: rgba(201, 168, 76, 0.15);

  --white: #FFFFFF;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 168, 76, 0.3);
  --border-gold-strong: rgba(201, 168, 76, 0.6);

  --green: #00D395;
  --green-dim: rgba(0, 211, 149, 0.15);
  --yellow: #F5C842;
  --yellow-dim: rgba(245, 200, 66, 0.15);
  --red: #FF4D6D;
  --red-dim: rgba(255, 77, 109, 0.15);
  --blue: #4D9EFF;
  --blue-dim: rgba(77, 158, 255, 0.15);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 24px rgba(201, 168, 76, 0.2);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.06);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-primary);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background mesh ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 10%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(77, 158, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0, 211, 149, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.font-mono { font-family: var(--font-mono); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--white-60); }
.text-dim { color: var(--white-40); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--bg-primary);
  letter-spacing: -0.05em;
}

.nav-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-title span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-60);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: var(--white-05);
}

.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold) !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
  background: var(--white-05);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--border-gold-strong);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl { padding: 20px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--white-05);
  border: 1px solid var(--border);
  color: var(--white-60);
  font-size: 16px;
}

.btn-icon:hover { color: var(--white); background: var(--white-10); }

/* ── Glass Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card), var(--shadow-inset);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card), var(--shadow-gold), var(--shadow-inset);
  transform: translateY(-2px);
}

.card-gold {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(201, 168, 76, 0.02) 100%);
}

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

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 13px;
  color: var(--white-60);
  margin-top: 4px;
}

/* ── Badge / Tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,211,149,0.3); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245,200,66,0.3); }
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,77,109,0.3); }
.badge-blue { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(77,158,255,0.3); }
.badge-pulse::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-label .tooltip-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white-10);
  color: var(--white-40);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: var(--transition);
  position: relative;
}

.form-label .tooltip-icon:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

.form-label .tooltip-icon .tooltip-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #1a2540;
  border: 1px solid var(--border);
  color: var(--white-80);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: 200px;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  z-index: 100;
  white-space: normal;
  line-height: 1.5;
}

.form-label .tooltip-icon:hover .tooltip-text { opacity: 1; }

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:hover { border-color: var(--white-20); background: var(--bg-input-focus); }

.form-input:focus {
  border-color: var(--border-gold-strong);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder { color: var(--white-20); font-family: var(--font-ui); }

.form-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,77,109,0.15); }
.form-input.valid { border-color: var(--green); }

.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 36px 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.form-select:hover { border-color: var(--white-20); background-color: var(--bg-input-focus); }
.form-select:focus { border-color: var(--border-gold-strong); box-shadow: 0 0 0 3px var(--gold-glow); background-color: var(--bg-input-focus); }
.form-select option { background: #1a2540; color: var(--white); }

/* Input prefix/suffix wrapper */
.input-wrapper {
  position: relative;
}

.input-prefix, .input-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white-40);
  pointer-events: none;
}

.input-prefix { left: 14px; }
.input-suffix { right: 14px; }
.input-wrapper .form-input.has-prefix { padding-left: 28px; }
.input-wrapper .form-input.has-suffix { padding-right: 44px; }

/* Error message */
.form-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

/* ── Slider ── */
.slider-wrapper { position: relative; }

.form-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--white-10);
  outline: none;
  cursor: pointer;
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
  transition: var(--transition-spring);
}

.form-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.6);
}

.form-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--white-40);
  font-family: var(--font-mono);
}

.slider-value {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── Metric Display ── */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.metric-card:hover { border-color: var(--border-gold); }

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-value.positive { color: var(--green); }
.metric-value.negative { color: var(--red); }
.metric-value.neutral { color: var(--gold); }
.metric-value.large { font-size: 32px; }

.metric-sub {
  font-size: 12px;
  color: var(--white-40);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.metric-delta.up { color: var(--green); }
.metric-delta.down { color: var(--red); }

/* ── Risk Gauge ── */
.risk-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.risk-gauge {
  position: relative;
  width: 140px;
  height: 80px;
  overflow: hidden;
}

.risk-gauge svg { width: 140px; height: 140px; transform: translateY(-60px); }

.risk-score-display {
  text-align: center;
}

.risk-score-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.risk-score-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white-40);
  margin-top: 4px;
}

/* ── Risk Flags ── */
.risk-flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.risk-flag-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.risk-flag.flag-green { background: var(--green-dim); border: 1px solid rgba(0,211,149,0.2); color: #00e8a8; }
.risk-flag.flag-yellow { background: var(--yellow-dim); border: 1px solid rgba(245,200,66,0.2); color: #f5d442; }
.risk-flag.flag-red { background: var(--red-dim); border: 1px solid rgba(255,77,109,0.2); color: #ff6b85; }

/* ── Sensitivity Table ── */
.sensitivity-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.sensitivity-table th {
  padding: 8px 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-40);
}

.sensitivity-table td {
  padding: 10px 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.sensitivity-table td.pos { background: rgba(0,211,149,0.15); color: #00e8a8; }
.sensitivity-table td.neu { background: rgba(245,200,66,0.12); color: #f5d442; }
.sensitivity-table td.neg { background: rgba(255,77,109,0.15); color: #ff6b85; }
.sensitivity-table td.center-cell { ring: 2px; outline: 2px solid var(--gold); }

/* ── Section Headings ── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 17px;
  color: var(--white-60);
  line-height: 1.6;
  max-width: 560px;
}

/* ── Separator ── */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 32px 0;
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .container-wide { padding: 0 16px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-xl { padding: 16px 24px; font-size: 15px; }
}

/* ── Tool Layout ── */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) { .tool-layout { grid-template-columns: 1fr; } }

/* ── Page Header ── */
.page-header {
  padding: 120px 0 48px;
  position: relative;
  z-index: 1;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-40);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--white-40); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--white-20); }

/* ── Hero Elements ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
  50% { box-shadow: 0 0 16px 2px rgba(201, 168, 76, 0.2); }
}

/* ── Tool Icon ── */
.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.tool-icon-gold {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.08));
  border: 1px solid var(--border-gold);
}

.tool-icon-green {
  background: linear-gradient(135deg, rgba(0,211,149,0.2), rgba(0,211,149,0.06));
  border: 1px solid rgba(0,211,149,0.3);
}

.tool-icon-blue {
  background: linear-gradient(135deg, rgba(77,158,255,0.2), rgba(77,158,255,0.06));
  border: 1px solid rgba(77,158,255,0.3);
}

/* ── Locked tool overlay ── */
.tool-locked {
  position: relative;
  overflow: hidden;
}

.tool-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(2px);
  border-radius: inherit;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 8px;
}

.lock-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.6));
}

.lock-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(77,158,255,0.04) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Print / Copy buttons ── */
.action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Qualification Score ── */
.qual-progress {
  height: 6px;
  background: var(--white-10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.qual-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-up { animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-scale-in { animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Footer ── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  color: var(--white-40);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a { color: var(--white-40); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }

/* ── Responsive Nav ── */
.nav-toggle {
  display: none;
  background: var(--white-05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--white);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0; right: 0;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-md); }
  .nav-toggle { display: flex; }
}

/* ── Number input fix on mobile ── */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Print styles ── */
@media print {
  .nav, .btn, .action-bar { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  body { background: white; color: black; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--white-10); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-20); }

/* ── Step process ── */
.step-list {
  display: flex;
  gap: 0;
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), var(--border), var(--border), var(--border-gold));
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 16px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: var(--transition-spring);
}

.step-item:hover .step-num {
  background: var(--gold-dim);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.step-desc {
  font-size: 12px;
  color: var(--white-40);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .step-list { flex-direction: column; gap: 24px; }
  .step-list::before { display: none; }
  .step-item { flex-direction: row; text-align: left; gap: 16px; }
}

/* ── Waitlist Form ── */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form .form-input {
  flex: 1;
  font-family: var(--font-ui);
}

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
}

/* ── Premium tools grid ── */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.premium-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.premium-tool-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.premium-tool-card .tool-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-40);
  margin-bottom: 6px;
}

.premium-tool-card .tool-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-80);
  line-height: 1.3;
}

.premium-tool-card .lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
  opacity: 0.6;
}

/* ── Toast notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1a2540;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--white);
  box-shadow: var(--shadow-card);
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: all;
  max-width: 300px;
}

.toast.success { border-color: rgba(0,211,149,0.4); }
.toast.error { border-color: rgba(255,77,109,0.4); }

@keyframes fadeOut { to { opacity: 0; transform: translateY(8px); } }

/* ── Tier Badge Large ── */
.tier-badge-xl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  border: 2px solid;
}

.tier-A { background: rgba(0,211,149,0.1); border-color: rgba(0,211,149,0.4); color: var(--green); }
.tier-B { background: rgba(77,158,255,0.1); border-color: rgba(77,158,255,0.4); color: var(--blue); }
.tier-C { background: rgba(245,200,66,0.1); border-color: rgba(245,200,66,0.4); color: var(--yellow); }
.tier-D { background: rgba(255,77,109,0.1); border-color: rgba(255,77,109,0.4); color: var(--red); }

/* ── Gauge bar ── */
.gauge-bar-wrap {
  height: 8px;
  background: var(--white-10);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.gauge-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Recent activity ── */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-text { flex: 1; font-size: 13px; }
.activity-title { font-weight: 600; color: var(--white); }
.activity-time { font-size: 11px; color: var(--white-40); margin-top: 2px; }
.activity-result { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--gold); }
