/* ============================================================
   56KLabz — L.A. Noir Design System v3.0
   "The city doesn't sleep. Neither do your servers."
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Shadows & Depths ── */
  --bg:          #05060a;
  --bg-2:        #07080d;
  --surface:     #0b0c12;
  --surface-2:   #0f1018;
  --card:        #0d0e15;

  /* ── Borders ── */
  --border:      #1c1a24;
  --border-hover:#3a3048;

  /* ── Neon Palette ── */
  --amber:       #e8a020;
  --amber-rgb:   232,160,32;
  --amber-light: #f5be54;
  --amber-dim:   #9a6a14;
  --neon-red:    #d94040;
  --neon-red-rgb:217,64,64;
  --neon-blue:   #4a8fcf;
  --neon-yellow: #f0c040;

  /* ── Text ── */
  --text:        #e8ddc8;          /* warm parchment */
  --text-dim:    #6e6454;
  --text-muted:  #38322a;

  /* ── Typography ── */
  --font:        'Outfit', -apple-system, sans-serif;
  --font-display:'Playfair Display', Georgia, serif;
  --font-mono:   'JetBrains Mono', monospace;

  --radius:      8px;
  --radius-lg:   14px;

  /* ── Glows ── */
  --glow-amber: 0 0 24px rgba(232,160,32,0.2), 0 0 60px rgba(232,160,32,0.06);
  --glow-red:   0 0 24px rgba(217,64,64,0.2),  0 0 60px rgba(217,64,64,0.06);
}

/* ── Keyframes ────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes amberPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(232,160,32,0.25), 0 0 4px rgba(232,160,32,0.5); }
  50%       { box-shadow: 0 0 28px rgba(232,160,32,0.5),  0 0 8px rgba(232,160,32,0.8); }
}
@keyframes redFlicker {
  0%,100% { opacity: 1; }
  92%     { opacity: 1; }
  93%     { opacity: 0.6; }
  94%     { opacity: 1; }
  96%     { opacity: 0.7; }
  97%     { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scanline {
  from { transform: translateY(0); }
  to   { transform: translateY(100vh); }
}
@keyframes venetian {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(0.3deg); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes neonSign {
  0%,100% { text-shadow: 0 0 8px rgba(232,160,32,0.8), 0 0 20px rgba(232,160,32,0.4); }
  50%     { text-shadow: 0 0 16px rgba(232,160,32,1),   0 0 40px rgba(232,160,32,0.6); }
}

/* ── Base ─────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Venetian blind background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 14px,
      rgba(0,0,0,0.25) 15px,
      rgba(0,0,0,0.25) 16px
    );
  pointer-events: none;
  z-index: 0;
  animation: venetian 12s linear infinite;
  opacity: 0.35;
}

/* Warm amber atmospheric vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(232,160,32,0.04) 0%,
    transparent 55%
  ),
  radial-gradient(
    ellipse at 80% 80%,
    rgba(217,64,64,0.03) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
}

/* Film grain overlay — added via JS SVG filter */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.055;
}

/* Scanline overlay */
.scanline {
  position: fixed;
  top: -100%;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(transparent, rgba(232,160,32,0.06), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 6;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Header & Nav ─────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(5,6,10,0.92);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-wrap: wrap;
  gap: 12px;
  transition: border-color 0.3s;
}

.site-header:hover {
  border-color: rgba(232,160,32,0.15);
}

/* Amber header glow line */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,160,32,0.25), transparent);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.logo-lockup:hover { opacity: 0.85; }

.logo-badge {
  background: transparent;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  border: 1px solid var(--amber);
  animation: amberPulse 3s ease-in-out infinite;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn-accent {
  background: transparent;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--amber);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
}

.btn-accent span { position: relative; z-index: 2; }

.btn-accent:hover,
.btn-accent:hover * {
  box-shadow: 0 0 20px rgba(232,160,32,0.4), 0 0 60px rgba(232,160,32,0.15);
  transform: translateY(-1px);
  color: #000 !important;
}

.btn-accent:hover::before { opacity: 1; }
.btn-accent:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-secondary:hover,
.btn-secondary:hover * {
  border-color: var(--amber);
  background: var(--amber);
  color: #000 !important;
  transform: translateY(-1px);
}

.btn-red {
  background: transparent;
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  animation: redFlicker 6s ease-in-out infinite;
}

.btn-red:hover,
.btn-red:hover * {
  background: var(--neon-red);
  color: #000 !important;
  box-shadow: 0 0 20px rgba(217,64,64,0.4);
}

/* ── Announcement Bar ─────────────────────────────────────── */

.announcement-bar {
  background: rgba(232,160,32,0.06);
  border-bottom: 1px solid rgba(232,160,32,0.15);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.announcement-bar strong { color: var(--amber); }
.announcement-bar a      { color: var(--amber); text-decoration: underline; }

/* ── Hero ─────────────────────────────────────────────────── */

.hero-section {
  padding: 80px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Street lamp amber spotlight */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 700px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(232,160,32,0.08) 0%,
    rgba(232,160,32,0.03) 30%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  animation: fadeUp 0.5s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title .neon-word {
  color: var(--amber);
  animation: neonSign 4s ease-in-out infinite;
  display: inline-block;
  font-style: normal;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── Cards ────────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Art deco corner accent */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-radius: var(--radius) 0 0 0;
  transition: border-color 0.3s;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  border-radius: 0 0 var(--radius) 0;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: rgba(232,160,32,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--glow-amber);
}

.card:hover::before {
  border-color: var(--amber);
}

.card:hover::after {
  border-color: var(--amber);
  opacity: 0.4;
}

.card-amber {
  border-color: rgba(232,160,32,0.2);
  box-shadow: var(--glow-amber);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card-desc {
  font-size: 0.91rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── Feature Icons ────────────────────────────────────────── */

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.feature-icon-amber  { border-color: rgba(232,160,32,0.3);  background: rgba(232,160,32,0.05); }
.feature-icon-red    { border-color: rgba(217,64,64,0.3);   background: rgba(217,64,64,0.05);  }
.feature-icon-blue   { border-color: rgba(74,143,207,0.3);  background: rgba(74,143,207,0.05); }
.feature-icon-yellow { border-color: rgba(240,192,64,0.3);  background: rgba(240,192,64,0.05); }

/* ── Badges ───────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.badge-amber  { background: rgba(232,160,32,0.1);  color: var(--amber);       border: 1px solid rgba(232,160,32,0.3); }
.badge-red    { background: rgba(217,64,64,0.1);   color: var(--neon-red);    border: 1px solid rgba(217,64,64,0.3);  }
.badge-gold   { background: rgba(240,192,64,0.1);  color: var(--neon-yellow); border: 1px solid rgba(240,192,64,0.3); }
.badge-blue   { background: rgba(74,143,207,0.1);  color: var(--neon-blue);   border: 1px solid rgba(74,143,207,0.3); }
.badge-gray   { background: rgba(255,255,255,0.05);color: var(--text-dim);    border: 1px solid var(--border); }
.badge-cyan   { background: rgba(232,160,32,0.1);  color: var(--amber);       border: 1px solid rgba(232,160,32,0.3); }

/* ── Section Headers ──────────────────────────────────────── */

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-top: 10px;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Stat Bar ─────────────────────────────────────────────── */

.stat-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: 28px 40px;
  flex: 1;
  min-width: 140px;
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--surface);
  transition: background 0.3s;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover {
  background: var(--surface-2);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-item:hover::before { opacity: 0.5; }

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--amber);
  display: block;
  line-height: 1;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

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

/* ── Terminal (Amber Phosphor CRT) ────────────────────────── */

.terminal-window {
  background: #030202;
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(232,160,32,0.05),
    0 24px 60px rgba(0,0,0,0.8),
    var(--glow-amber);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

/* CRT screen effect */
.terminal-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.terminal-header {
  background: #0a0604;
  border-bottom: 1px solid rgba(232,160,32,0.12);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot-red    { background: #c0392b; }
.terminal-dot-yellow { background: #e67e22; }
.terminal-dot-green  { background: #7f8c1a; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-dim);
  margin-left: auto;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.term-line   { display: flex; gap: 8px; }
.term-prompt { color: var(--neon-red); font-weight: 700; }
.term-cmd    { color: var(--amber); }
.term-out    { color: #5a4a2a; padding-left: 16px; }
.term-ok     { color: var(--amber); }
.term-warn   { color: var(--neon-red); }
.term-cursor { display: inline-block; animation: blink 1.2s infinite; color: var(--amber); }

/* ── Gauges ───────────────────────────────────────────────── */

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gauge-item {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(232,160,32,0.1);
  border-radius: 4px;
  padding: 10px 12px;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--amber-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.gauge-bar {
  height: 3px;
  background: rgba(232,160,32,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.gauge-fill         { height: 100%; border-radius: 2px; }
.gauge-fill-cpu     { background: var(--amber);       width: 23%; }
.gauge-fill-ram     { background: var(--neon-red);    width: 61%; }
.gauge-fill-disk    { background: var(--neon-yellow);  width: 44%; }
.gauge-fill-net     { background: var(--neon-blue);   width: 78%; }

.gauge-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
}

/* ── Divider ──────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 60px 0;
  border: none;
}

.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,160,32,0.3), transparent);
  border: none;
  margin: 0;
}

/* ── Pricing ──────────────────────────────────────────────── */

.price-tag {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 4px;
  text-shadow: 0 0 20px rgba(232,160,32,0.3);
}

.price-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.feature-list { list-style: none; margin: 20px 0 24px; }

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li strong { color: var(--text); }
.feature-list li::before {
  content: '—';
  color: var(--amber-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Modal / Form ─────────────────────────────────────────── */

.hidden { display: none !important; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.9), var(--glow-amber);
  animation: scaleIn 0.25s ease both;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--amber-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.08);
}

.reply-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.reply-box:hover { border-color: rgba(232,160,32,0.2); }

/* ── Scroll Reveal ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.83rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,160,32,0.2), transparent);
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .card.card-amber > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .card.card-amber { padding: 24px !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    gap: 4px;
    margin-top: 6px;
  }

  .nav-link, .btn-secondary, .btn-accent {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .card { padding: 20px 16px !important; }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-section { padding: 48px 0 28px; }

  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }

  .terminal-window { animation: none; }

  .stat-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .modal-card { padding: 20px 16px !important; }
}
