@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* RGB channels (no rgb() wrapper — Tailwind injects that) */
  --navy-950: 4 7 15;
  --navy-900: 8 12 20;
  --navy-800: 13 20 32;
  --navy-700: 20 32 46;
  --amber-saar: 244 195 67;
  --cream: 232 227 217;
  --cream-muted: 158 154 146;
  --cream-dim: 90 87 80;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  background-color: rgb(8 12 20);
  color: rgb(232 227 217);
  font-family: 'DM Sans', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Subtle grid texture */
.grid-bg {
  background-image:
    linear-gradient(rgba(244,195,67,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,195,67,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Noise grain overlay */
.noise::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
}

/* Serif headline */
.display-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Terminal */
.terminal {
  background: #0A0E17;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-bar {
  background: #13192A;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Copy button */
.copy-btn {
  background: rgba(244,195,67,0.08);
  border: 1px solid rgba(244,195,67,0.2);
  color: rgb(244 195 67);
  transition: all 0.2s ease;
  cursor: pointer;
}
.copy-btn:hover {
  background: rgba(244,195,67,0.15);
  border-color: rgba(244,195,67,0.4);
}

/* Feature card */
.feature-card {
  background: rgba(13,20,32,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(244,195,67,0.18);
  transform: translateY(-2px);
}

/* Section divider — amber line above section labels */
.section-divider {
  width: 32px;
  height: 1px;
  background: rgba(244,195,67,0.4);
  margin: 0 auto 20px;
}

/* Stat number */
.stat-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: rgb(244 195 67);
}

/* Amber underline hover */
.amber-underline {
  position: relative;
}
.amber-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(244 195 67);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.amber-underline:hover::after { transform: scaleX(1); }

/* Typewriter cursor */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: rgb(244 195 67);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
