/* ============================================
   INFERENCERACKS.COM — Premium Dark Theme
   Built for the pitch: inference is the dominant
   AI workload, and the inference rack is the unit.
   ============================================ */

:root {
  --bg-0: #05060a;
  --bg-1: #0b0d14;
  --bg-2: #131722;
  --bg-3: #1c2233;
  --line: #232b42;
  --line-soft: #303a5a;
  --ink-0: #f8fafc;
  --ink-1: #d8dce8;
  --ink-2: #9aa3bd;
  --ink-3: #6b7390;
  --accent: #fbbf24;     /* served amber */
  --accent-2: #f97316;   /* throughput orange */
  --accent-3: #f43f5e;   /* live traffic red */
  --hot: #ec4899;
  --good: #22c55e;
  --cool: #38bdf8;
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(251,191,36,0.16), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(244,63,94,0.16), transparent 60%),
               linear-gradient(180deg, #05060a 0%, #0b0d14 100%);
  --grad-cta: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #f43f5e 100%);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-narrow { width: min(820px, 92vw); margin: 0 auto; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,6,10,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink-0); letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad-cta);
  box-shadow: 0 0 24px rgba(251,191,36,0.45);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  background: var(--bg-0);
}
.brand-mark::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-2); padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--ink-0); background: var(--bg-2); }
.nav-links a.cta {
  color: #1a1100; background: var(--accent); font-weight: 700;
  padding: 9px 16px;
}
.nav-links a.cta:hover { background: #fcd34d; color: #1a1100; }

@media (max-width: 900px) {
  .nav-links a:not(.cta):not(.home) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(251,191,36,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,63,94,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.eyebrow.live { color: #fecaca; background: rgba(244,63,94,0.10); border-color: rgba(244,63,94,0.30); }
.eyebrow.live .dot { background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); }

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink-0); font-weight: 800;
  max-width: 18ch;
}
.hero h1 .grad {
  background: var(--grad-cta);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  max-width: 660px; font-size: 19px; color: var(--ink-2);
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; font-weight: 600;
  font-size: 15.5px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-cta); color: #1a1100;
  box-shadow: 0 12px 36px rgba(251,191,36,0.25);
}
.btn-primary:hover { color: #1a1100; }
.btn-ghost {
  background: transparent; color: var(--ink-0);
  border-color: var(--line-soft);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--ink-0); border-color: var(--ink-3); }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding: 72px 0; }
.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink-0); margin: 0 0 14px; letter-spacing: -0.025em;
  font-weight: 700; line-height: 1.15;
}
.section h2 .grad {
  background: var(--grad-cta);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section .sub {
  color: var(--ink-2); font-size: 18px; max-width: 720px; margin: 0 0 48px;
}

/* ============ STATS GRID ============ */
.stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-cta);
  opacity: 0.8;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 600; color: var(--ink-0);
  letter-spacing: -0.02em; line-height: 1.1;
}
.stat .num .unit { color: var(--accent); font-size: 22px; margin-left: 2px; }
.stat .label { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.4; }

/* ============ CARDS / FEATURE GRID ============ */
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-soft); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(251,191,36,0.10);
  border: 1px solid rgba(251,191,36,0.25);
  color: var(--accent);
  font-family: var(--font-mono); font-weight: 700; font-size: 18px;
}
.card.red .icon { background: rgba(244,63,94,0.10); border-color: rgba(244,63,94,0.25); color: var(--accent-3); }
.card.orange .icon { background: rgba(249,115,22,0.10); border-color: rgba(249,115,22,0.25); color: var(--accent-2); }
.card.cool .icon { background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.25); color: var(--cool); }
.card.green .icon { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.25); color: var(--good); }
.card h3 { color: var(--ink-0); font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ============ COMPARE TABLE ============ */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 16px 18px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--bg-2); color: var(--ink-0); font-weight: 600;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--ink-0); font-weight: 500; }
.compare td.training { color: #c4b5fd; }
.compare td.inference { color: var(--accent); }
.compare .check { color: var(--good); font-weight: 700; }
.compare .cross { color: #f87171; font-weight: 700; }

/* ============ QUOTE ============ */
.quote {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px; margin: 32px 0;
}
.quote p { font-size: 19px; color: var(--ink-0); margin: 0 0 12px; font-style: italic; line-height: 1.5; }
.quote cite { color: var(--ink-2); font-size: 14px; font-style: normal; }
.quote cite b { color: var(--ink-1); font-weight: 600; }

/* ============ BACKERS / LOGOS STRIP ============ */
.backers {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0;
  padding: 0; list-style: none;
}
.backers li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink-0); font-weight: 600; font-size: 14px;
}
.backers li .pill {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  background: rgba(251,191,36,0.08); padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(251,191,36,0.2);
}

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
}
.tl-item { position: relative; margin-bottom: 32px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-0); border: 3px solid var(--accent);
  box-shadow: 0 0 14px rgba(251,191,36,0.5);
}
.tl-item .yr {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px;
}
.tl-item h4 { color: var(--ink-0); margin: 0 0 6px; font-size: 18px; }
.tl-item p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--grad-hero);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(251,191,36,0.18), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--ink-0); margin: 0 0 12px; }
.cta-banner p { color: var(--ink-2); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }

/* ============ FORMS ============ */
.form {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.form label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-0); border: 1px solid var(--line);
  color: var(--ink-0); font-family: inherit; font-size: 15px;
  margin-bottom: 18px;
  transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.15);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-1); border-top: 1px solid var(--line);
  padding: 48px 0 32px; color: var(--ink-3); font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: var(--ink-0); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink-0); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--ink-3); font-size: 13px;
}

/* ============ UTILS ============ */
.mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-mute { color: var(--ink-2); }
.center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.kbd {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px; color: var(--ink-1);
}
.badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11.5px; padding: 3px 8px; border-radius: 4px;
  background: rgba(251,191,36,0.10); color: var(--accent);
  border: 1px solid rgba(251,191,36,0.25);
}
.badge.warn { background: rgba(244,63,94,0.10); color: var(--accent-3); border-color: rgba(244,63,94,0.25); }
.badge.hot { background: rgba(249,115,22,0.10); color: var(--accent-2); border-color: rgba(249,115,22,0.25); }

/* Pulse animation used to signal "live" elements */
.live-pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(244,63,94,0.5);
  animation: heartbeat 1.4s ease-out infinite;
}
@keyframes heartbeat {
  0% { box-shadow: 0 0 0 0 rgba(244,63,94,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(244,63,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}
