:root {
  --bg: #0d1117;
  --bg-alt: #121821;
  --surface: #161d27;
  --line: #243041;
  --text: #e6edf3;
  --muted: #8b98a9;
  --accent: #ff7a45;
  --accent-ink: #1a0d06;
  --radius: 14px;
  --wrap: 1120px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.eyebrow { font: 500 .85rem/1.4 var(--mono); color: var(--accent); text-transform: lowercase; letter-spacing: .02em; margin-bottom: 1rem; }
.prompt { color: var(--muted); margin-right: .35em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font: 700 1.1rem var(--mono); }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
@media (max-width: 640px) { nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink) !important;
  font-weight: 650; text-decoration: none; border: 1px solid var(--accent);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #ff8e61; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.1rem; font-family: var(--mono); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background: radial-gradient(600px 300px at 85% 10%, rgba(255, 122, 69, .14), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
          mask-image: linear-gradient(#000 40%, transparent);
}
.hero .lead { margin: 1.5rem 0 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2.75rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 30px; height: 30px; margin-bottom: 1rem; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { border-top: 2px solid var(--line); padding-top: 1.25rem; }
.steps li:first-child { border-top-color: var(--accent); }
.steps p { color: var(--muted); margin: 0; }
.step-no { display: block; font: 600 .9rem var(--mono); color: var(--accent); margin-bottom: .6rem; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { font: 500 .95rem var(--mono); padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

.contact-box {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(135deg, rgba(255, 122, 69, .12), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.contact-box .lead { margin: 0; }
.contact-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
@media (max-width: 800px) { .contact-box { grid-template-columns: 1fr; } }
.btn-lg { overflow-wrap: anywhere; }

/* Pages */
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 2rem; margin: 2rem 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: .15rem; } .facts dd { margin-bottom: .8rem; } }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p { color: #c6d0db; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-name { color: var(--text); font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.copy { grid-column: 1 / -1; font-family: var(--mono); font-size: .82rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
