@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --black:  #0a0a08;
  --cream:  #f5f0e8;
  --acid:   #c8f000;
  --rust:   #d94f2b;
  --ink:    #1a1a14;
  --muted:  #8a8878;
  --border: rgba(245,240,232,0.12);
  --cost-cheap:  #c8f000;
  --cost-mid:    #f5c400;
  --cost-exp:    #d94f2b;
  --speed-fast:  #c8f000;
  --speed-med:   #f5c400;
  --speed-slow:  #d94f2b;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: none; }
img, svg { display: block; max-width: 100%; }

/* ── Custom Cursor ─────────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--acid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.15s ease;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(200,240,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
body.cursor-hover #cursor-dot { transform: translate(-50%,-50%) scale(2.5); background: var(--acid); }
body.cursor-hover #cursor-ring { width: 48px; height: 48px; border-color: var(--acid); }

/* ── Grain overlay ─────────────────────────────────────────────── */
#grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9997;
  animation: grain 0.8s steps(2) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10%       { transform: translate(-2%,-3%); }
  20%       { transform: translate(3%,1%); }
  30%       { transform: translate(-1%,4%); }
  40%       { transform: translate(2%,-2%); }
  50%       { transform: translate(-3%,3%); }
  60%       { transform: translate(1%,-1%); }
  70%       { transform: translate(-2%,2%); }
  80%       { transform: translate(3%,-3%); }
  90%       { transform: translate(-1%,1%); }
}

/* ── Page transition ───────────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9990;
  transform: translateY(100%);
  pointer-events: none;
}
body.transition-out #page-transition { animation: slide-in 0.35s cubic-bezier(0.76,0,0.24,1) forwards; }
body.transition-in  #page-transition { animation: slide-out 0.35s cubic-bezier(0.76,0,0.24,1) forwards; }
@keyframes slide-in  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slide-out { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, backdrop-filter 0.3s, background 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  backdrop-filter: blur(20px);
  background: rgba(10,10,8,0.8);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
}
.nav-logo .ai { color: var(--acid); }
.nav-logo .miser { color: var(--cream); }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--acid);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--acid); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  color: var(--cream);
  transition: color 0.2s;
}
.nav-mobile-overlay a:hover, .nav-mobile-overlay a.active { color: var(--acid); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px 32px;
  margin-top: 120px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand .nav-logo { font-size: 28px; margin-bottom: 8px; }
.footer-tagline {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 220px;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 12px; color: var(--muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--cream); }
.footer-meta { text-align: right; }
.footer-updated { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.footer-copy { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.footer-suggest a {
  font-size: 11px;
  color: var(--acid);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.footer-suggest a:hover { border-color: var(--acid); }

/* ── Utilities ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.page-wrap { padding-top: 60px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-value { background: var(--acid); color: var(--black); }
.badge-provider {
  background: var(--border);
  color: var(--cream);
  border: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px;
  background: rgba(245,240,232,0.07);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  white-space: nowrap;
}

/* Cost cell colors */
.cost-cheap { color: var(--cost-cheap); }
.cost-mid   { color: var(--cost-mid); }
.cost-exp   { color: var(--cost-exp); }

/* Speed dots */
.speed-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.speed-dot.fast   { background: var(--speed-fast); }
.speed-dot.medium { background: var(--speed-med); }
.speed-dot.slow   { background: var(--speed-slow); }

/* Section labels */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-label::before { content: '— '; }

h1, h2, h3, .display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

/* Interactive hover class */
.hoverable { transition: color 0.2s, background 0.2s; }
.hoverable:hover { color: var(--acid); }

/* CTA buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  color: var(--cream);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--cream); color: var(--black); }
.btn-acid { border-color: var(--acid); color: var(--acid); }
.btn-acid:hover { background: var(--acid); color: var(--black); border-color: var(--acid); }
.btn-fill { background: var(--acid); color: var(--black); border-color: var(--acid); }
.btn-fill:hover { background: var(--cream); border-color: var(--cream); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { text-align: left; }
  .footer { padding: 40px 20px 24px; }
}
