:root {
  --bg: #0b1220;
  --bg-2: #111827;
  --card: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --orange: #f97316;
  --orange-2: #fb923c;
  --orange-deep: #c2410c;
  --radius: 1rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Outfit, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.16), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(59, 130, 246, 0.1), transparent 32%),
    linear-gradient(180deg, #0b1220 0%, #111827 48%, #0b1220 100%);
}

a { color: inherit; text-underline-offset: 0.16em; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }
::selection { background: var(--orange); color: #fff; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand img { width: 36px; height: 36px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-desktop a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-mobile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 0 12px 10px;
  border-top: 1px solid var(--line);
}

.nav-mobile a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 8px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.16);
}

.hero {
  display: grid;
  gap: 28px;
  padding: 40px 0 20px;
}

h1, h2, h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 750;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }

.orange { color: var(--orange-2); }

.lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12), 0 24px 50px rgba(0,0,0,0.28);
}

.panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

pre, code { font-family: "IBM Plex Mono", ui-monospace, monospace; }

pre {
  margin: 0;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.section { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 28px; }

.grid {
  display: grid;
  gap: 14px;
}

.rails { grid-template-columns: 1fr; }
.steps { grid-template-columns: 1fr; }
.split { display: grid; gap: 28px; }

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

.card .meta {
  color: var(--orange-2);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.14);
  color: var(--orange-2);
  font-weight: 750;
  margin-bottom: 12px;
}

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.list strong { color: var(--text); }
.list a { color: var(--orange-2); text-decoration: none; }
.list a:hover { text-decoration: underline; }

.site-footer { padding: 20px 0 36px; }
.legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.legal a { color: var(--muted); }

.page { padding: 40px 0 80px; }
.page .prose { max-width: 720px; }
.page .prose h1 { margin-bottom: 12px; }
.page .prose h2 { margin: 32px 0 10px; font-size: 1.4rem; }
.page .prose p, .page .prose li { color: var(--muted); }
.page .prose a { color: var(--orange-2); }

.kicker {
  display: inline-block;
  color: var(--orange-2);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

@media (min-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 48px)); }
  .nav-mobile { display: none; }
  .nav-desktop { display: flex; }
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: end; padding-top: 64px; }
  .rails, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .legal { display: flex; justify-content: space-between; align-items: flex-start; }
  .split { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .rails { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
