:root {
  --bg: #0b0d10;
  --bg-elevated: #12151a;
  --bg-card: #161a21;
  --border: #262b36;
  --border-soft: #1e232c;
  --text: #f2f4f7;
  --muted: #9aa3b2;
  --accent: #3e8ed0;
  --accent-soft: rgba(62, 142, 208, 0.14);
  --success: #48c78e;
  --warn: #ffb74d;
  --narrow: 42rem;
  --wide: 56rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100%;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.narrow {
  max-width: var(--narrow);
  margin-left: auto;
  margin-right: auto;
}

.wide {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}

.section {
  background: transparent;
  padding: 5.5rem 1.5rem;
}

.section-alt {
  background: var(--bg-elevated) !important;
}

.hero-space {
  padding: 7rem 1.5rem 5rem;
}

@media (max-width: 768px) {
  .hero-space { padding: 4.5rem 1.25rem 3.5rem; }
  .section { padding: 4rem 1.25rem; }
}

.nav-bar {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  color: var(--text) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a:not(.button) {
  color: var(--muted) !important;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:not(.button):hover {
  color: var(--text) !important;
}

@media (max-width: 640px) {
  .nav-links .hide-mobile { display: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.display-title {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text) !important;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted) !important;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text) !important;
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--muted) !important;
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 2.75rem;
}

.centered .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.muted { color: var(--muted) !important; }
.text-main { color: var(--text) !important; }

a:not(.button) {
  color: #8ec5f0;
}

a:not(.button):hover {
  color: #b3d9f5;
}

.button.is-info {
  background-color: var(--accent);
  border-color: transparent;
  font-weight: 600;
}

.button.is-info:hover {
  background-color: #4a9adb;
}

.button.is-ghost-light {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 600;
}

.button.is-ghost-light:hover {
  border-color: #3a4252;
  background: var(--bg-elevated);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-github {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
  vertical-align: -0.12em;
}

.button.icon-github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.button.is-small.icon-github-link .icon-github {
  width: 0.95em;
  height: 0.95em;
}

a.icon-github-link:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  text-align: left;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted) !important;
  margin: 0;
  line-height: 1.55;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-soft);
}

.step:last-child {
  border-bottom: 1px solid var(--border-soft);
}

.step-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted) !important;
  margin: 0;
  font-size: 1rem;
}

code, .code-pill {
  background: #080a0d;
  color: #8ee0b8;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  font-size: 0.88em;
  border: 1px solid var(--border-soft);
}

.code-block {
  background: #080a0d;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #8ee0b8;
  overflow-x: auto;
}

.faq-list {
  border-top: 1px solid var(--border);
}

details.faq-item {
  border-bottom: 1px solid var(--border);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

details.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  padding: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 38rem;
}

.footer {
  background: transparent;
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 1.5rem 3rem;
  color: var(--muted);
}

.footer p {
  font-size: 0.75rem;
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: #5c6370;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.legal {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text) !important;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  margin: 2.25rem 0 0.85rem;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 1.05rem;
}

.legal ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.3rem 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.5rem 0 1.5rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.6rem 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
}

.legal td:first-child {
  color: var(--text);
  font-weight: 600;
  width: 34%;
  padding-right: 1rem;
}

.legal a {
  word-break: break-word;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.25rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta span::before {
  content: "·";
  margin-right: 1.25rem;
  color: #4b5563;
}

.hero-meta span:first-child::before {
  content: none;
  margin: 0;
}

.buttons.centered {
  justify-content: center;
}

.source-card p:last-child {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  word-break: break-word;
}

.prose p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.disclaimer-quiet {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b7380 !important;
  text-align: center;
}
