:root {
  color-scheme: dark;
  --bg: #090b12;
  --surface: #111522;
  --surface-2: #171d2d;
  --text: #f2f5ff;
  --text-muted: #b6bed6;
  --border: #2a3044;
  --accent: #ff8a3d;
  --accent-2: #d95a1f;
  --max-width: 1160px;
  --radius: 14px;
  --space: clamp(1rem, 2vw, 1.5rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(100% 100% at 50% 0%, #171b2c 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
.section { padding: clamp(2.8rem, 7vw, 5.2rem) 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-logo {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  display: block;
}
.brand-name { letter-spacing: 0.08em; font-size: 0.9rem; }

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; justify-content: flex-end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
}
.button-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #140a04;
  border-color: transparent;
}
.button-secondary { background: var(--surface-2); color: var(--text); }

.hero {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 1rem; }
.hero p { color: var(--text-muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.card h3 { margin-top: 0.2rem; margin-bottom: 0.5rem; }
.card p { margin-top: 0; color: var(--text-muted); }
.pill, .tag {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.page-title { margin: 0 0 0.7rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-lead { margin: 0; color: var(--text-muted); max-width: 68ch; }
.list-clean { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.7rem; }
.list-clean li { border-bottom: 1px solid var(--border); padding-bottom: 0.7rem; }

.site-footer { border-top: 1px solid var(--border); background: #080a11; padding-top: 2rem; }
.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-title { margin: 0 0 0.4rem; font-weight: 700; }
.footer-copy { color: var(--text-muted); margin: 0 0 0.7rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-list a, .site-footer a { color: var(--text-muted); }
.footer-list a:hover, .site-footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 1.6rem; padding: 1rem 0 1.8rem; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; padding: 0.8rem 0; }
  .brand, .header-actions { justify-self: center; }
}
