/* ============================================
   AlgoSierra — Design System
   Luxury Trading Terminal Aesthetic
   ============================================ */

:root {
  --bg:           #07090d;
  --bg2:          #0b0e14;
  --surface:      #0f1318;
  --surface2:     #151b24;
  --surface3:     #1c2535;
  --surface-hover:#1e2a3c;
  --border:       #1a2538;
  --border2:      #243044;

  --gold:         #c8a84b;
  --gold-dim:     #7d6428;
  --gold-bright:  #e4cc7d;
  --gold-glow:    rgba(200, 168, 75, 0.18);
  --gold-trace:   rgba(200, 168, 75, 0.06);

  --text:         #dde4ed;
  --text-muted:   #5e7088;
  --text-dim:     #2e3d52;

  --green:        #27c98a;
  --green-dim:    rgba(39, 201, 138, 0.12);
  --red:          #e05252;
  --red-dim:      rgba(224, 82, 82, 0.12);
  --amber:        #f0a839;
  --amber-dim:    rgba(240, 168, 57, 0.12);

  --blue:         #5b8fe8;
  --blue-dim:     rgba(91, 143, 232, 0.1);

  --tag-bg:       #0a1220;
  --font-mono:    'IBM Plex Mono', 'Consolas', monospace;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Sora', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius:       6px;
  --radius-lg:    10px;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-gold:  0 0 24px rgba(200, 168, 75, 0.15);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; }

/* ── Body ─────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Subtle grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--gold-bright); }

/* ── Animations ───────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 201, 138, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(39, 201, 138, 0); }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes chart-draw {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Header ───────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.logo-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
  background: none;
  -webkit-text-fill-color: initial;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── Ticker Bar ───────────────────────────── */
.ticker-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 199;
}

.ticker-bar::before,
.ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.ticker-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg2), transparent);
}

.ticker-bar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg2), transparent);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.ticker-symbol {
  color: var(--text-dim);
  text-transform: uppercase;
}

.ticker-price {
  color: var(--text);
  font-weight: 500;
}

.ticker-change.up   { color: var(--green); }
.ticker-change.down { color: var(--red); }

/* ── Main Layout ──────────────────────────── */
main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 48px 100px;
  animation: fadeIn 0.4s ease;
}

/* ── Hero ─────────────────────────────────── */
.hero {
  margin-bottom: 64px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  background: var(--gold-trace);
  animation: fadeUp 0.5s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
  animation: fadeUp 0.5s 0.08s ease both;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  animation: fadeUp 0.5s 0.16s ease both;
}

.hero > p strong {
  color: var(--amber);
  font-weight: 500;
}

/* Hero chart */
.hero-visual {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 380px;
  height: 180px;
  opacity: 0.18;
  pointer-events: none;
  animation: fadeIn 1.2s 0.5s ease both;
}

.hero-visual path {
  stroke-dasharray: 1000;
  animation: chart-draw 2s 0.8s ease forwards;
  stroke-dashoffset: 1000;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.5s 0.24s ease both;
  background: var(--surface);
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease;
}

.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: var(--surface2); }

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--green);
  margin-top: 2px;
}

/* ── Section Header ───────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.28s ease both;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.section-line { flex: 1; height: 1px; background: var(--border); }

.section-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

/* ── Algo Grid ────────────────────────────── */
.algos-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeUp 0.5s 0.32s ease both;
}

.algo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.algo-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dim));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.algo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, var(--gold-trace) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.algo-card:hover {
  background: var(--surface2);
  border-color: var(--border2);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.algo-card:hover::before { transform: scaleY(1); }
.algo-card:hover::after  { opacity: 1; }

.algo-left { position: relative; z-index: 1; }

.algo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.algo-header h2 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.algo-card:hover .algo-header h2 { color: var(--gold); }

.algo-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.algo-status::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
}

.algo-status.active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(39, 201, 138, 0.2);
}
.algo-status.active::before { background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }

.algo-status.testing {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(240, 168, 57, 0.2);
}
.algo-status.testing::before { background: var(--amber); }

.algo-dev-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(240, 168, 57, 0.1);
  color: var(--amber);
  border: 1px solid rgba(240, 168, 57, 0.25);
}

.algo-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 580px;
}

.algo-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.63rem;
  padding: 3px 9px;
  border-radius: 2px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.algo-card:hover .tag {
  border-color: var(--border2);
  color: var(--text-muted);
}

.algo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.algo-features {
  display: flex;
  gap: 20px;
}

.feature-item {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
}

.feature-item .check { color: var(--green); }

/* Sparkline */
.algo-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.sparkline-wrap {
  width: 140px;
  height: 48px;
  position: relative;
}

.sparkline-wrap svg {
  width: 100%; height: 100%;
  overflow: visible;
}

.algo-perf-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
  text-align: right;
}

.algo-perf-badge.up   { background: var(--green-dim); color: var(--green); }
.algo-perf-badge.warn { background: var(--amber-dim); color: var(--amber); }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 0.76rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border-radius: var(--radius);
  transition: all 0.22s ease;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-trace);
  box-shadow: 0 0 12px rgba(200, 168, 75, 0.08);
}

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #07090d;
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #07090d;
  box-shadow: 0 4px 20px rgba(200, 168, 75, 0.3);
  transform: translateY(-1px);
}

/* ── Footer ───────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 48px;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.6;
}

.footer-text {
  font-size: 0.73rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

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

.footer-links a {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ── About Page ───────────────────────────── */
.about-container {
  max-width: 820px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.about-card.full { grid-column: 1 / -1; }

.about-card h2 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 0.9rem;
}

.about-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-card li {
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.6;
}

.about-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  top: 2px;
}

.warning-box {
  background: rgba(240, 168, 57, 0.06);
  border: 1px solid rgba(240, 168, 57, 0.2);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 4px;
}

.warning-box p { color: var(--text-muted); margin: 0; font-size: 0.875rem; line-height: 1.7; }
.warning-box strong { color: var(--amber); }

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--blue-dim);
  border: 1px solid rgba(91, 143, 232, 0.2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue);
  margin: 3px;
}

/* ── Get Started Section ───────────────────────── */
.get-started {
  margin-top: 48px;
  animation: fadeUp 0.5s 0.36s ease both;
}

.get-started-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-card {
  background: var(--surface);
  padding: 28px 24px;
  position: relative;
}

.step-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.step-card:nth-child(1)::before { background: var(--blue); }
.step-card:nth-child(2)::before { background: var(--gold); }
.step-card:nth-child(3)::before { background: var(--green); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ── Installation Page ────────────────────────── */
.install-header {
  text-align: center;
  padding-bottom: 40px;
}

.install-header .back-link {
  justify-content: center;
}

.install-header h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  margin: 16px 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.install-header h1 .gold {
  color: var(--gold);
  font-style: italic;
}

.install-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.install-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.install-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.install-step { position: relative; }

.step-blue::before { background: var(--blue); }
.step-gold::before { background: var(--gold); }
.step-green::before { background: var(--green); }

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.step-header h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.step-blue .step-header h2 { color: var(--blue); }
.step-gold .step-header h2 { color: var(--gold); }
.step-green .step-header h2 { color: var(--green); }

.step-content {
  padding: 24px;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.step-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.step-content ul li {
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.step-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.install-tip {
  background: rgba(91, 143, 232, 0.08);
  border: 1px solid rgba(91, 143, 232, 0.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 16px;
}

.install-tip p { margin: 0; }
.install-tip strong { color: var(--blue); }

.install-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.install-option {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.install-option.recommended {
  border-color: rgba(200, 168, 75, 0.3);
}

.badge-recommended {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: #07090d;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.install-option h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.install-option p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.install-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.install-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.install-list .list-marker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  background: var(--gold-trace);
  padding: 4px 8px;
  border-radius: 2px;
  min-width: 28px;
  text-align: center;
}

.code-filename {
  font-family: var(--font-mono);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--gold);
  font-size: 0.85em;
}

.code-path {
  font-family: var(--font-mono);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.85em;
}

.install-video {
  margin-top: 16px;
}

.video-placeholder {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 24px rgba(200, 168, 75, 0.12);
}

.play-icon {
  font-size: 2rem;
  color: var(--gold);
}

.video-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  nav, main { padding-left: 24px; padding-right: 24px; }
  footer { padding-left: 24px; padding-right: 24px; }

  .hero h1 { font-size: 2.4rem; }
  .hero-visual { display: none; }
  .hero-stats { overflow-x: auto; }

  .algo-card { grid-template-columns: 1fr; }
  .algo-right { flex-direction: row; align-items: center; justify-content: space-between; }

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

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

  .install-options { grid-template-columns: 1fr; }

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

  .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .algo-card { padding: 20px; }
  .algo-header { flex-wrap: wrap; }
  .sparkline-wrap { width: 100px; }
}
