:root {
  --bg: #07090d;
  --surface: #0f131a;
  --stroke: #1c2433;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --accent: #6ee7ff;
  --accent-dim: rgba(110, 231, 255, 0.14);
  --radius: 10px;
  --max: 1080px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Consolas", "ui-monospace", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.92);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  overflow-x: hidden;
}

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

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--stroke);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 650;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 22ch;
}

.hero-lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #041016;
  border-color: var(--accent);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

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

.btn-ghost:hover {
  border-color: var(--muted);
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--stroke);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.meta-cell {
  background: var(--surface);
  padding: 16px 18px;
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.meta-value {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--stroke);
}

.section:last-of-type {
  border-bottom: none;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 12px;
  font-weight: 650;
}

.section-intro {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 28px;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

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

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.posts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.post h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.post p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.post-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.faq details {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 8px;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links-row a {
  display: inline-flex;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.links-row a:hover {
  border-color: var(--muted);
  text-decoration: none;
}

.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 8px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 12px 16px;
    min-width: 200px;
  }

  .nav.is-open {
    display: flex;
  }
}
