@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0d12;
  --bg-panel: #11151c;
  --bg-panel-alt: #151a22;
  --border: #232a35;
  --border-soft: #1a2029;
  --text: #e7e9ed;
  --text-dim: #8b93a1;
  --text-faint: #5b6270;
  --accent: #f2a93b;
  --accent-soft: rgba(242, 169, 59, 0.1);
  --live: #4ade80;
  --testing: #f2a93b;
  --build: #6b7280;
  --radius: 3px;
  --container: 1120px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border-soft);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 18px 0 18px;
}

.hero p.lead {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero .actions { display: flex; gap: 14px; }

/* ---------- Status panel (signature element) ---------- */
.status-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.status-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--live);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.status-row:last-child { border-bottom: none; }

.status-row-name {
  font-size: 14px;
  font-weight: 500;
}

.status-row-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.pill-live { color: var(--live); background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.3); }
.pill-testing { color: var(--testing); background: rgba(242, 169, 59, 0.08); border-color: rgba(242, 169, 59, 0.3); }
.pill-build { color: var(--build); background: rgba(107, 114, 128, 0.12); border-color: rgba(107, 114, 128, 0.35); }

/* ---------- Generic sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-border { border-bottom: 1px solid var(--border-soft); }

.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin-top: 10px;
}
.section-head p { color: var(--text-dim); margin-top: 12px; }

/* Three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: var(--bg-panel);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pillar p { color: var(--text-dim); font-size: 14.5px; }

/* Services cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 6px;
  padding: 26px 24px;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-top: 6px;
}

.service-card p.desc {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 12px;
}

/* CTA band */
.cta-band {
  background: var(--bg-panel-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* About page */
.statement {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 24ch;
  margin-bottom: 28px;
}

.about-copy { max-width: 64ch; color: var(--text-dim); font-size: 15.5px; }
.about-copy p + p { margin-top: 16px; }

.approach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}

.approach-step {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 10px 16px;
  border-radius: var(--radius);
}

.approach-arrow {
  color: var(--text-faint);
  padding: 0 14px;
  font-family: var(--font-mono);
}

/* Contact page */
.contact-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 48px 40px;
}

.contact-box .eyebrow { display: block; margin-bottom: 16px; }

.contact-box h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-box p { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }

.email-link {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  border-bottom: 1px solid rgba(242, 169, 59, 0.4);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 28px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-tagline {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 8px;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--accent); }

.disclaimer {
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
  max-width: 80ch;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .footer-top { flex-direction: column; }
}
