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

:root {
  --bg: #0a0b0d;
  --surface: #111317;
  --surface-hover: #171a1f;
  --text: #f2f3f5;
  --muted: #9da3ad;
  --line: #272b32;
  --accent: #a8ff78;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

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

.nav {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #0a0b0d;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.github-link {
  color: var(--muted);
  font-size: 14px;
}

.github-link:hover { color: var(--text); }

.hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 150px;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .section-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.hero h1 {
  margin: 22px 0 25px;
  max-width: 850px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(58px, 9vw, 112px);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero h1 span { color: var(--muted); }

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--accent);
  color: #0a0b0d;
  border-color: var(--accent);
}

.button.secondary { color: var(--text); }

.button.secondary:hover { background: var(--surface); }

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 50px;
  border-bottom: 1px solid var(--line);
}

.section h2, .closing h2 {
  margin: 0 0 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.intro p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 280px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .2s, background .2s, border-color .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: #3b414a;
}

.card-number {
  color: var(--muted);
  font-size: 12px;
}

.service-card h3 {
  margin: auto 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  letter-spacing: -.025em;
}

.service-card h3 span { color: var(--accent); }

.service-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.domain {
  color: var(--accent);
  font-size: 12px;
  font-family: monospace;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px 55px;
}

.principles strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
}

.principles p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tech-list span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: monospace;
  font-size: 13px;
}

.closing {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0;
  text-align: center;
}

.closing h2 {
  max-width: 720px;
  margin: 20px auto 35px;
}

footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: #686e77;
  font-size: 12px;
}

@media (max-width: 800px) {
  .hero { padding: 90px 0 100px; }
  .section { grid-template-columns: 1fr; gap: 25px; padding: 75px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 520px) {
  .nav, .hero, .section, .closing, footer {
    width: min(var(--max), calc(100% - 32px));
  }
  .hero h1 { font-size: 55px; }
  .hero-copy { font-size: 17px; }
  footer { flex-direction: column; gap: 5px; }
}
