/* Self-hosted variable fonts (SIL OFL 1.1, see fonts/OFL-*.txt). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #0c1210;
  --surface: #111a16;
  --surface-2: #18241f;
  --line: #1e2a25;
  --line-2: #23302b;
  --line-3: #34443d;
  --text: #e8eee9;
  --muted: #b4c1ba;
  --dim: #8d9b94;
  --accent: #9be36a;
  --violet: #c7b3ff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--text); }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.violet { color: var(--violet); }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
}
.btn-sm { padding: 10px 18px; }
.btn-primary { color: var(--bg); background: var(--accent); font-weight: 600; }
.btn-primary:hover { color: var(--bg); background: #b2ee88; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-3); }
.btn-ghost:hover { border-color: var(--dim); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo { stroke: var(--accent); stroke-width: 2; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
}
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero {
  padding-top: 96px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-text { flex: 1 1 520px; min-width: 0; }
.prompt { margin-bottom: 24px; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lede { margin-top: 28px; max-width: 560px; font-size: 19px; color: var(--muted); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.terminal {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}
.terminal-bar { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3a34; }
.terminal-body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  overflow-x: auto;
}
.terminal-body b { font-weight: 400; color: var(--text); }

/* Area strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section { padding-top: 112px; padding-bottom: 40px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head > div { max-width: 640px; }
.section-aside { max-width: 380px; }

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cmd { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.card h3 {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.card p { color: var(--muted); font-size: 16px; }

/* How we work */
.steps-title { margin-bottom: 56px; max-width: 720px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.steps li { padding: 28px 24px 8px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; border-right: 0; }
.step-no { font-family: var(--mono); font-size: 14px; color: var(--violet); }
.steps h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 16px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .steps li:nth-child(2n + 1) { padding-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 24px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
}

/* About */
.section-about { padding-bottom: 112px; }
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about-text { flex: 1 1 420px; min-width: 0; }
.about-text h2 { margin-bottom: 24px; }
.about-text p + p { margin-top: 16px; }
.principles { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.principle { border: 1px solid var(--line-2); border-radius: 14px; padding: 24px 26px; }
.principle h3 { margin-bottom: 6px; font-size: 19px; font-weight: 600; }
.principle p { color: var(--muted); font-size: 16px; }

/* Contact */
.contact-section { padding-bottom: 112px; }
.contact {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 64px);
}
.contact h2 { margin-bottom: 20px; }
.contact .muted { margin-bottom: 28px; }
.email {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--dim);
}

@media (max-width: 640px) {
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .section { padding-top: 80px; }
  .hero-text, .terminal, .about-text, .principles { flex-basis: 100%; }
}
