/* ============================================
   DALIOS Website — Terminal/Military Aesthetic
   ============================================ */

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

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

:root {
  --bg-primary: #1c1917;
  --bg-secondary: #231f1d;
  --bg-card: #2a2523;
  --bg-card-hover: #322c29;
  --border: #3d3835;
  --border-glow: #f59e0b;
  --text-primary: #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent: #f59e0b;
  --accent-dim: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --green: #22c55e;
  --green-dim: #16a34a;
  --red: #ef4444;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --yellow: #eab308;
  --purple: #a855f7;
  --scanline-opacity: 0.03;
  --font-display: 'Orbitron', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Rajdhani', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* ── Scanline Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, var(--scanline-opacity)) 2px,
    rgba(0, 0, 0, var(--scanline-opacity)) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Selection ── */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }

p { font-size: 1.1rem; color: var(--text-secondary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover { color: #fb923c; text-shadow: 0 0 10px var(--accent-glow); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2625, #231f1e, #1c1917);
  backdrop-filter: blur(20px);
  border-bottom: none;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.03);
  overflow: hidden;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
  animation: nav-glow-sweep 2s ease-in-out infinite;
}

@keyframes nav-glow-sweep {
  0% { left: -60%; }
  100% { left: 100%; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── 3D Cash Stack Logo (GTA-style) ── */
/*
 * Nav cash — joined 3D box
 * Box: W=24  H=15  D=5
 */
.cash3d {
  width: 32px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.cash3d-scene {
  width: 24px;
  height: 15px;
  perspective: 150px;
  position: relative;
}
.cash3d-rotator {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cash3dSpin 5s linear infinite;
}
@keyframes cash3dSpin {
  0%   { transform: rotateY(0deg) rotateX(-15deg); }
  100% { transform: rotateY(360deg) rotateX(-15deg); }
}
.cash3d-face {
  position: absolute;
  backface-visibility: visible;
}
/* Front & back */
.cash3d-front,
.cash3d-back {
  width: 24px; height: 15px;
  top: 0; left: 0;
}
.cash3d-front { transform: translateZ(2.5px); }
.cash3d-back  { transform: rotateY(180deg) translateZ(2.5px); }
/* Sides */
.cash3d-right {
  width: 5px; height: 15px;
  top: 0; left: 9.5px;
  transform: rotateY(90deg) translateZ(12px);
}
.cash3d-left {
  width: 5px; height: 15px;
  top: 0; left: 9.5px;
  transform: rotateY(-90deg) translateZ(12px);
}
/* Top & bottom */
.cash3d-top {
  width: 24px; height: 5px;
  top: 5px; left: 0;
  transform: rotateX(90deg) translateZ(7.5px);
}
.cash3d-bottom {
  width: 24px; height: 5px;
  top: 5px; left: 0;
  transform: rotateX(-90deg) translateZ(7.5px);
}
.bill-face {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(0,255,170,0.12) 50%, rgba(0,212,255,0.08) 100%);
  border: 1.5px solid rgba(0,212,255,0.7);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,212,255,0.15);
}
.bill-border {
  position: absolute;
  top: 1px; left: 2px; right: 2px; bottom: 1px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 1px;
}
.bill-oval {
  position: absolute;
  width: 7px; height: 7px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0,255,170,0.35);
  border-radius: 50%;
}
.bill-dollar {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Georgia', serif;
  font-size: 6px;
  font-weight: bold;
  color: rgba(0,212,255,0.9);
  text-shadow: 0 0 4px rgba(0,212,255,0.6), 0 0 8px rgba(0,255,170,0.3);
}
.bill-100 {
  position: absolute;
  bottom: 1px; right: 1px;
  font-family: 'Courier New', monospace;
  font-size: 3px;
  font-weight: bold;
  color: rgba(0,212,255,0.5);
}
.stack-edge {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(90deg, rgba(0,30,40,0.4) 0px, rgba(0,212,255,0.25) 0.8px, rgba(0,30,40,0.4) 1.6px);
  border: 1px solid rgba(0,212,255,0.5);
}
.stack-edge-h {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,30,40,0.4) 0px, rgba(0,212,255,0.25) 0.8px, rgba(0,30,40,0.4) 1.6px);
  border: 1px solid rgba(0,212,255,0.5);
}
.band-face {
  position: absolute;
  backface-visibility: visible;
  background: linear-gradient(90deg, rgba(0,255,170,0.15) 0%, rgba(0,255,170,0.35) 40%, rgba(0,212,255,0.35) 60%, rgba(0,255,170,0.15) 100%);
  border: 1px solid rgba(0,255,170,0.6);
  box-shadow: 0 0 6px rgba(0,255,170,0.3), inset 0 0 4px rgba(0,255,170,0.15);
}
.band-front {
  width: 5px; height: 15px;
  top: 0; left: 9.5px;
  transform: translateZ(2.7px);
}
.band-back {
  width: 5px; height: 15px;
  top: 0; left: 9.5px;
  transform: rotateY(180deg) translateZ(2.7px);
}
.band-top {
  width: 5px; height: 5px;
  top: 5px; left: 9.5px;
  transform: rotateX(90deg) translateZ(7.5px);
}
.band-bottom {
  width: 5px; height: 5px;
  top: 5px; left: 9.5px;
  transform: rotateX(-90deg) translateZ(7.5px);
}
.band-front::after,
.band-back::after {
  display: none;
}
@keyframes cashGlitch {
  0%, 88%, 92%, 100% { filter: none; }
  89% { filter: drop-shadow(2px 0 0 rgba(255,0,64,0.5)) drop-shadow(-2px 0 0 rgba(0,255,136,0.5)); }
  90% { filter: drop-shadow(-1px 0 0 rgba(0,200,255,0.4)) drop-shadow(1px 0 0 rgba(255,0,64,0.4)); }
  91% { filter: none; }
  95% { filter: drop-shadow(1px 0 0 rgba(255,0,64,0.3)); }
  96% { filter: none; }
}

/* Hero large cash stack */
/*
 * Hero cash — one solid 3D rectangular block
 * Box: W=60  H=36  D=14 (thin stack of bills)
 * Front/Back = bill face,  4 edges = stacked paper lines
 */
.cash3d-hero {
  width: 60px;
  height: 36px;
  transform: scale(4);
}
.cash3d-hero .cash3d-scene {
  width: 60px;
  height: 36px;
  perspective: 300px;
}
/* Front & Back — bill faces */
.cash3d-hero .cash3d-front,
.cash3d-hero .cash3d-back {
  width: 60px; height: 36px;
  top: 0; left: 0;
  transform-origin: center center;
}
.cash3d-hero .cash3d-front { transform: translateZ(7px); }
.cash3d-hero .cash3d-back  { transform: rotateY(180deg) translateZ(7px); }
/* Right & Left — stack depth edges */
.cash3d-hero .cash3d-right {
  width: 14px; height: 36px;
  top: 0; left: 23px;
  transform-origin: center center;
  transform: rotateY(90deg) translateZ(30px);
}
.cash3d-hero .cash3d-left {
  width: 14px; height: 36px;
  top: 0; left: 23px;
  transform-origin: center center;
  transform: rotateY(-90deg) translateZ(30px);
}
/* Top & Bottom — stack depth edges */
.cash3d-hero .cash3d-top {
  width: 60px; height: 14px;
  top: 11px; left: 0;
  transform-origin: center center;
  transform: rotateX(90deg) translateZ(18px);
}
.cash3d-hero .cash3d-bottom {
  width: 60px; height: 14px;
  top: 11px; left: 0;
  transform-origin: center center;
  transform: rotateX(-90deg) translateZ(18px);
}
/* Hero bill face — blue theme (default) */
.cash3d-hero .bill-oval { width: 16px; height: 16px; }
.cash3d-hero .bill-dollar {
  font-size: 14px;
  color: rgba(0,212,255,0.9);
  text-shadow: 0 0 6px rgba(0,212,255,0.6);
}
.cash3d-hero .bill-100 { font-size: 7px; }
/* Band wrapping around the stack — green */
.cash3d-hero .band-face {
  background: linear-gradient(90deg, rgba(34,197,94,0.2) 0%, rgba(34,197,94,0.6) 40%, rgba(22,163,74,0.6) 60%, rgba(34,197,94,0.2) 100%);
  border: 1px solid rgba(34,197,94,0.8);
  box-shadow: 0 0 8px rgba(34,197,94,0.4), inset 0 0 4px rgba(34,197,94,0.2);
}
.cash3d-hero .band-front,
.cash3d-hero .band-back {
  width: 14px; height: 36px;
  top: 0; left: 23px;
}
.cash3d-hero .band-front { transform: translateZ(7.2px); }
.cash3d-hero .band-back  { transform: rotateY(180deg) translateZ(7.2px); }
.cash3d-hero .band-top,
.cash3d-hero .band-bottom {
  width: 14px; height: 14px;
  left: 23px;
  top: 11px;
}
.cash3d-hero .band-top { transform: rotateX(90deg) translateZ(18px); }
.cash3d-hero .band-bottom { transform: rotateX(-90deg) translateZ(18px); }
.cash3d-hero .band-front::after,
.cash3d-hero .band-back::after { display: none; }

/* Heavy glitch effect on hero cash — separate div so it doesn't fight scale/spin */
.hero-cash-glitch {
  animation: cashGlitchMove 3s ease-in-out infinite, sceneFlicker 3s ease infinite;
  display: inline-block;
}

@keyframes cashGlitchMove {
  0%, 70% { transform: translate(0, 0) skew(0); filter: none; }
  71% { transform: translate(12px, -5px) skewX(-8deg); filter: hue-rotate(90deg) brightness(2) saturate(3); }
  72% { transform: translate(-15px, 6px) skewX(10deg); filter: hue-rotate(-60deg) brightness(0.4); }
  73% { transform: translate(8px, -3px) skewX(-5deg) scaleX(1.1); filter: brightness(3) saturate(4) hue-rotate(120deg); }
  74% { transform: translate(-10px, 8px) skewX(12deg) scaleY(0.9); filter: hue-rotate(-120deg) brightness(0.3); }
  75% { transform: translate(18px, 0) skewX(-12deg); filter: brightness(4) contrast(2); }
  76% { transform: translate(-6px, -8px) skewX(6deg); filter: hue-rotate(180deg) brightness(1.5); }
  77% { transform: translate(0, 0) skew(0); filter: none; }
  85% { transform: translate(0, 0) skew(0); filter: none; }
  86% { transform: translate(-10px, 3px) skewX(8deg); filter: brightness(0.2) hue-rotate(-90deg); }
  87% { transform: translate(15px, -5px) skewX(-14deg) scaleX(0.9); filter: saturate(5) brightness(3); }
  88% { transform: translate(-18px, 2px) skewX(10deg); filter: hue-rotate(240deg) brightness(2); }
  89% { transform: translate(8px, -8px) skewX(-6deg); filter: brightness(5) contrast(3); }
  90% { transform: translate(-4px, 4px) skewX(4deg); filter: hue-rotate(60deg); }
  91% { transform: translate(0, 0) skew(0); filter: none; }
}

@keyframes sceneFlicker {
  0%, 100% { opacity: 1; }
  71% { opacity: 1; }
  71.5% { opacity: 0; }
  72% { opacity: 0.7; }
  72.5% { opacity: 0; }
  73% { opacity: 1; }
  73.5% { opacity: 0.1; }
  74% { opacity: 0.8; }
  75% { opacity: 0; }
  75.5% { opacity: 1; }
  86% { opacity: 1; }
  86.5% { opacity: 0; }
  87% { opacity: 0.5; }
  87.5% { opacity: 0; }
  88% { opacity: 1; }
  88.5% { opacity: 0; }
  89% { opacity: 0.6; }
  89.5% { opacity: 1; }
}

.nav-brand h1 {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand .version {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section ── */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #fb923c;
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(249, 115, 22, 0.15);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  background: rgba(249, 115, 22, 0.05);
  color: var(--accent);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Hero Section (Landing) ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .grid-overlay {
  display: none;
}

.hero-bg .radial-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 40%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  min-height: 2rem;
}

.hero-tag::before {
  content: '>';
  color: var(--green);
  font-weight: 700;
  opacity: 0.5;
}

.hero-tag .pulse {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--green);
}

.hero-tag-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.tag-prefix {
  color: var(--green);
  margin-right: 0.5em;
  font-weight: 700;
  opacity: 0.7;
}

.tag-typing {
  color: var(--accent);
  min-width: 20ch;
}

.tag-cursor {
  color: var(--green);
  font-size: 0.7em;
  animation: blink-cursor 0.7s step-end infinite;
  margin-left: 1px;
}

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

/* ── Hero Status Bar ── */
.hero-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hsb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hsb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.hsb-dot--green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 3s infinite;
}

.hsb-dot--amber {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite 0.5s;
}

.hsb-sep {
  color: var(--border);
  font-size: 0.5rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #f97316, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: center;
}

.hero-stat .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

/* ── Terminal Preview ── */
.terminal-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 3rem auto 0;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  min-height: 200px;
}

.terminal-body .prompt {
  color: var(--green);
}

.terminal-body .command {
  color: var(--text-primary);
}

.terminal-body .output {
  color: var(--text-muted);
}

.terminal-body .accent {
  color: var(--accent);
}

.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  composes: card;
}

.feature-card .feature-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-item .stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* ── Tech Stack ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: calc(25% - 0.75rem);
  min-width: 200px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--bg-card-hover);
}

.tech-item .tech-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.tech-item .tech-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-item .tech-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Ops Demo (Radar + Log) ── */
.ops-demo-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 800px;
  margin: 0 auto;
}

.ops-demo-radar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 9, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}

.ops-demo-radar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, rgba(255,140,0,0.015) 1px, transparent 2px);
  animation: radarStaticFlicker 0.15s steps(3) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes radarStaticFlicker {
  0%   { opacity: 0.4; }
  33%  { opacity: 0.7; }
  66%  { opacity: 0.3; }
  100% { opacity: 0.5; }
}

.ops-demo-radar-wrap {
  position: relative;
  width: 130px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.demo-radar-svg {
  width: 120px;
  height: 120px;
}

.demo-radar-beam {
  transform-origin: 60px 60px;
  animation: demoBeamSpin 3s linear infinite;
}

@keyframes demoBeamSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.demo-blip {
  opacity: 0;
  animation: demoBlipPulse 3s ease infinite;
}

.demo-blip--green { fill: #22c55e; }
.demo-blip--amber { fill: #f59e0b; }
.demo-blip--red { fill: #ef4444; }

@keyframes demoBlipPulse {
  0% { opacity: 0; r: 1; }
  15% { opacity: 0.9; r: 2.5; }
  80% { opacity: 0.3; r: 1.5; }
  100% { opacity: 0; r: 1; }
}

.demo-center-dot {
  animation: demoCenterPulse 1.5s ease infinite;
}

@keyframes demoCenterPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.5; }
}

.demo-radar-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,140,0,0.12) 30%, rgba(255,140,0,0.2) 50%, rgba(255,140,0,0.12) 70%, transparent 90%);
  animation: demoScanline 2.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes demoScanline {
  from { top: 0; }
  to { top: 100%; }
}

.demo-radar-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 2px;
}

.demo-radar-dot {
  color: #22c55e;
  animation: demoRadarDotPulse 2s ease infinite;
  margin-right: 4px;
  font-size: 7px;
}

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

.demo-radar-telemetry {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 6px;
  gap: 1px;
  pointer-events: none;
}

.demo-telem-line {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  color: rgba(255,140,0,0.22);
  line-height: 1.3;
  text-transform: uppercase;
  animation: telemFlash 3.5s ease forwards;
}

.demo-telem-line.tl-green { color: rgba(0,204,68,0.25); }
.demo-telem-line.tl-red { color: rgba(255,60,60,0.25); }

@keyframes telemFlash {
  0%   { opacity: 0; transform: translateX(-3px); }
  5%   { opacity: 0.9; transform: translateX(1px); }
  8%   { opacity: 0; transform: translateX(-1px); }
  12%  { opacity: 0.8; transform: translateX(0); }
  70%  { opacity: 0.4; }
  100% { opacity: 0; }
}

.ops-demo-terminal {
  background: rgba(12, 10, 9, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 260px;
}

.ops-demo-term-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.ops-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ops-demo-term-title {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-left: 6px;
}

.ops-demo-term-body {
  flex: 1;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  overflow: hidden;
}

.ops-demo-line {
  white-space: nowrap;
  overflow: hidden;
  animation: opsLineIn 0.3s ease both;
}

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

.ops-demo-ts { color: var(--text-muted); margin-right: 8px; }
.ops-demo-cmd { color: #f59e0b; font-weight: 700; margin-right: 8px; }
.ops-demo-msg { color: #22c55e; }
.ops-demo-msg.warn { color: #f59e0b; }
.ops-demo-msg.err { color: #ef4444; }

@media (max-width: 768px) {
  .ops-demo-grid {
    grid-template-columns: 1fr;
  }
  .ops-demo-radar {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Docs Page ── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding-top: calc(64px + 2rem);
  min-height: 100vh;
}

.docs-sidebar {
  position: sticky;
  top: calc(64px + 2rem);
  height: fit-content;
  max-height: calc(100vh - 64px - 4rem);
  overflow-y: auto;
  padding-bottom: 2rem;
}

.docs-sidebar-section {
  margin-bottom: 2rem;
}

.docs-sidebar-section h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.docs-sidebar-section a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s ease;
}

.docs-sidebar-section a:hover,
.docs-sidebar-section a.active {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.05);
  border-left-color: var(--accent);
}

.docs-content {
  padding-bottom: 4rem;
  max-width: 800px;
}

.docs-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.docs-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}

.docs-content p {
  margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.docs-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.docs-content li code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--accent);
}

/* Code blocks in docs */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.code-block-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.code-block-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.code-block-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  line-height: 1.7;
}

.code-block code {
  color: var(--text-secondary);
}
.code-block code .keyword { color: var(--purple); }
.code-block code .string { color: var(--green); }
.code-block code .comment { color: var(--text-muted); }
.code-block code .function { color: var(--blue); }
.code-block code .variable { color: var(--accent); }

/* Info/Warning boxes */
.callout {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border-left: 3px solid;
  font-size: 0.95rem;
}

.callout-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--blue);
}
.callout-info p { color: #93c5fd; }

.callout-warning {
  background: rgba(234, 179, 8, 0.08);
  border-color: var(--yellow);
}
.callout-warning p { color: #fde047; }

.callout-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--red);
}
.callout-danger p { color: #fca5a5; }

/* Table in docs */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.docs-table th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.docs-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.docs-table tr:hover td {
  background: rgba(249, 115, 22, 0.03);
}

/* ── Dashboard Page ── */
.dashboard-wrap {
  padding-top: 64px;
}

.dashboard-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-tabs {
  display: flex;
  gap: 0.25rem;
}

.dashboard-tab {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-card);
}

.dashboard-tab.active {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.online { background: var(--green); }
.status-dot.warning { background: var(--yellow); }
.status-dot.offline { background: var(--red); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 1.5rem 2rem;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.dash-panel-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dash-panel-body {
  padding: 1rem;
}

.dash-panel.span-8 { grid-column: span 8; }
.dash-panel.span-6 { grid-column: span 6; }
.dash-panel.span-4 { grid-column: span 4; }
.dash-panel.span-3 { grid-column: span 3; }
.dash-panel.span-12 { grid-column: span 12; }

/* Dashboard metric cards */
.metric-card {
  text-align: center;
  padding: 1rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.metric-value.positive { color: var(--green); }
.metric-value.negative { color: var(--red); }
.metric-value.neutral { color: var(--accent); }

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* Chart placeholder */
.chart-container {
  width: 100%;
  height: 250px;
  position: relative;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Signal rows */
.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 42, 58, 0.5);
  font-size: 0.85rem;
}

.signal-row:last-child { border-bottom: none; }

.signal-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.signal-badge.buy {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.signal-badge.sell {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.signal-badge.hold {
  background: rgba(234, 179, 8, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.signal-ticker {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.signal-info {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Alert feed */
.alert-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 42, 58, 0.5);
  font-size: 0.8rem;
}

.alert-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.alert-text {
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 220px 1fr; gap: 2rem; }
  .dashboard-grid { grid-template-columns: repeat(6, 1fr); }
  .dash-panel.span-8,
  .dash-panel.span-6,
  .dash-panel.span-4,
  .dash-panel.span-3 { grid-column: span 6; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-mobile-toggle { display: block; }

  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }

  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }

  .dashboard-tabs { overflow-x: auto; }
  .dashboard-header { flex-direction: column; gap: 1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-panel.span-8,
  .dash-panel.span-6,
  .dash-panel.span-4,
  .dash-panel.span-3 { grid-column: span 1; }

  .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ── Hero Screenshot ── */
.hero-screenshot {
  margin: 3rem auto 0;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(249, 115, 22, 0.08);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Showcase Grid ── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.showcase-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.showcase-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.showcase-item img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-label {
  padding: 1.25rem;
}

.showcase-label h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.showcase-label p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Download Grid ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.download-card.coming-soon {
  opacity: 0.6;
}

.download-card .download-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.download-card .download-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── Broker Grid ── */
.broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

a.broker-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.broker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.broker-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--bg-card-hover);
}

.broker-item strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.broker-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Preview / Screenshots Page ── */
.preview-section {
  margin-bottom: 4rem;
}

.preview-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.preview-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  width: 50px;
  text-align: right;
}

.preview-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.preview-header p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.preview-image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.preview-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer Legal ── */
.footer-legal {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }
.footer-sep { margin: 0 8px; opacity: 0.4; color: var(--text-muted); }
.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

/* ── Legal Modal ── */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-modal-overlay.hidden { display: none; }
.legal-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 640px;
  max-width: 94vw;
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.legal-modal-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}
.legal-modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.legal-modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  border-color: var(--accent);
}
.legal-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.legal-modal-body h2 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 18px 0 8px;
  text-transform: uppercase;
}
.legal-modal-body h2:first-child { margin-top: 0; }
.legal-modal-body p { margin: 0 0 10px; color: var(--text-secondary); }
.legal-modal-body ul { margin: 0 0 10px 18px; color: var(--text-secondary); }
.legal-modal-body li { margin-bottom: 4px; }
.legal-modal-body code {
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* ── Download Stats Counter ── */
.download-stats {
  display: none;
  margin-top: 0.75rem;
}
.download-stats.visible {
  display: block;
}
.download-stats-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  display: inline-block;
}
#download-count {
  font-weight: 700;
  font-size: 1rem;
}

/* ── Rex Mascot ── */
.rex-mascot {
  display: block;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(210,180,140,0.4));
  transition: transform 0.3s ease;
}
.rex-mascot:hover {
  transform: scale(1.05) rotate(-2deg);
}
.rex-hero {
  position: absolute;
  right: -30px;
  bottom: -10px;
  max-width: 160px;
  z-index: 2;
  animation: rexFloat 3s ease-in-out infinite;
}
.rex-section {
  max-width: 200px;
  margin: 0 auto;
}
.rex-cta {
  max-width: 220px;
}
.rex-inline {
  display: inline-block;
  vertical-align: middle;
  max-width: 120px;
}
@keyframes rexFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* CTA with Rex layout */
.cta-with-rex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-with-rex .cta-text {
  text-align: center;
}

/* Features section Rex accent */
.features-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.features-section-header .section-header {
  flex: 1;
  min-width: 300px;
}

/* ── Responsive additions ── */
@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .broker-grid { grid-template-columns: 1fr; }
  .preview-header { flex-direction: column; gap: 0.75rem; }
  .preview-number { text-align: left; }
  .rex-hero { display: none; }
  .rex-mascot { max-width: 140px; }
  .rex-cta { max-width: 160px; }
  .cta-with-rex { gap: 1.5rem; }
}
