:root {
  --bg:      #111111;
  --surface: #191919;
  --border:  #2b2b2b;
  --text:    #e8e6df;
  --muted:   #7a7870;
  --accent:  #c8f54a;
  --accent2: #9ecc1e;
  --mono:    'JetBrains Mono', 'Courier New', monospace;
  --sans:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max:     1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Flash */
.flash { padding: 0.875rem 2rem; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.flash-success { background: #1a2e0a; color: var(--accent); border-color: var(--accent); }
.flash-error   { background: #2e0a0a; color: #f56a6a; border-color: #f56a6a; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-brand { font-size: 1rem; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.nav-brand:hover { text-decoration: none; color: var(--accent2); }
.nav-links { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { border-bottom: 1px solid var(--border); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 6rem 2rem; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-family: var(--sans); font-size: 1.05rem; color: var(--muted); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.7; }

/* Button */
.btn {
  display: inline-block; background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700;
  padding: 0.75rem 1.5rem; text-decoration: none; transition: background 0.15s; cursor: pointer;
  border: none;
}
.btn:hover { background: var(--accent2); text-decoration: none; color: var(--bg); }

/* Eyebrow */
.eyebrow { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 0.75rem; }

/* Sections */
.page-section { border-bottom: 1px solid var(--border); }
.page-section.alt { background: var(--surface); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 4rem 2rem; }
.section-inner > h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2.5rem; }
.section-inner > h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2.5rem; }

/* Grid */
.grid-2, .grid-3 { display: grid; border: 1px solid var(--border); margin-top: 2rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cell { padding: 2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-2 > .grid-cell:nth-child(2n),
.grid-3 > .grid-cell:nth-child(3n) { border-right: none; }
.grid-cell h3 { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.grid-cell p  { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* Feature list */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.nl { flex-shrink: 0; font-family: var(--mono); font-size: 0.72rem; color: var(--accent); padding-top: 0.15em; }

/* Stats */
.stat-block { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); height: 100%; }
.stat { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.5rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n { font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }
.stat-l { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* CTA block */
.cta-block { max-width: 600px; }
.cta-block h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.cta-block p  { font-family: var(--sans); color: var(--muted); margin-bottom: 2rem; }

/* Contact */
.contact-intro { font-family: var(--sans); color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.contact-meta { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.contact-meta li { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }
.contact-meta strong { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 0.15rem; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.fg { display: flex; flex-direction: column; gap: 0.4rem; }
.fg label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.fg input, .fg textarea {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--mono); font-size: 0.875rem; padding: 0.6rem 0.875rem;
  width: 100%; outline: none; transition: border-color 0.15s; resize: vertical;
  border-radius: 0; -webkit-appearance: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--accent); }

/* Generic page content */
.page-content { max-width: var(--max); margin: 0 auto; padding: 4rem 2rem; }
.page-content h1 { font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.page-content p  { font-family: var(--sans); color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.page-content a  { color: var(--accent); }
.page-content ul, .page-content ol { margin: 1rem 0 1rem 1.5rem; font-family: var(--sans); color: var(--muted); }
.page-content li { margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  max-width: calc(var(--max) + 4rem); margin: 0 auto;
  font-size: 0.75rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2 > .grid-cell, .grid-3 > .grid-cell { border-right: none; }
  .stat-block { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .hero-inner { padding: 3rem 1.5rem; }
  .section-inner { padding: 3rem 1.5rem; }
  .site-nav { flex-wrap: wrap; gap: 0.75rem; padding: 1rem 1.5rem; }
}
