:root {
  --bg: #060a13;
  --bg-surface: #0c1120;
  --bg-card: #111827;
  --bg-terminal: #0d1117;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #475569;
  --border: rgba(255, 255, 255, 0.06);
  --red: #ef4444;
  --yellow: #eab308;
  --green: #22c55e;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 6rem 3rem 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 540px;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2rem;
}

/* ── HERO CTA ── */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #060a13;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.cta-primary:hover {
  background: #00e87a;
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.cta-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Terminal */
.hero-terminal {
  position: relative;
  z-index: 1;
  width: 480px;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 255, 136, 0.05), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
}

.terminal-line { white-space: pre; }
.t-muted { color: var(--text-dim); }
.t-cmd { color: var(--text); }
.t-accent { color: var(--accent); font-weight: 500; }
.t-white { color: var(--text); }
.t-num { color: var(--accent-blue); }
.t-green { color: var(--green); font-weight: 500; }
.t-yellow { color: var(--yellow); font-weight: 500; }

/* ── PROBLEM ── */
.problem {
  padding: 8rem 3rem;
  background: var(--bg-surface);
}

.problem-content {
  max-width: 1100px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  max-width: 600px;
}

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

.problem-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.problem-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FEATURES ── */
.features {
  padding: 8rem 3rem;
}

.features-content {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 4rem;
}

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

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-col {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.feature-col.infra {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.04) 0%, var(--bg-card) 100%);
}

.feature-col.ops {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, var(--bg-card) 100%);
}

.col-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2rem;
}

.infra .col-tag {
  color: var(--accent);
  background: var(--accent-dim);
}

.ops .col-tag {
  color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-list li:last-child { margin-bottom: 0; }

.feature-icon {
  flex-shrink: 0;
  font-size: 0.5rem;
  margin-top: 0.5rem;
}

.infra .feature-icon { color: var(--accent); }
.ops .feature-icon { color: var(--accent-blue); }

.feature-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── GRID VISUAL ── */
.grid-visual {
  padding: 8rem 3rem;
  background: var(--bg-surface);
}

.grid-visual-content {
  max-width: 1100px;
  margin: 0 auto;
}

.grid-header {
  max-width: 640px;
  margin-bottom: 4rem;
}

.grid-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.grid-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.stat {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── CLOSING ── */
.closing {
  padding: 10rem 3rem;
  text-align: center;
}

.closing-content {
  max-width: 800px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.closing h2 .accent {
  color: var(--accent);
}

/* ── FOOTER ── */
.site-footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-sep { color: var(--text-dim); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-built {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-built a {
  color: var(--accent);
  text-decoration: none;
}

.footer-built a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    gap: 3rem;
  }
  .hero-sub { margin: 0 auto; }
  .hero-terminal { width: 100%; max-width: 480px; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-split { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .problem, .features, .grid-visual, .closing {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-terminal { font-size: 0.65rem; }
  .terminal-body { padding: 12px; overflow-x: auto; }
  .stats-row { grid-template-columns: 1fr; }
  .feature-col { padding: 1.5rem; }
  .closing h2 { font-size: 1.3rem; }
  .footer-content { flex-direction: column; gap: 0.5rem; }
}