:root {
  color-scheme: dark;
  --bg: #030406;
  --bg-soft: #071014;
  --panel: rgba(11, 18, 24, 0.88);
  --panel-strong: rgba(15, 25, 34, 0.96);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(48, 245, 211, 0.36);
  --text: #f6fbff;
  --muted: #a9bac2;
  --accent: #30f5d3;
  --accent-2: #7aa8ff;
  --gold: #f7cf63;
  --danger: #ff6f91;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(48, 245, 211, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 245, 211, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(48, 245, 211, 0.18), transparent 30rem),
    radial-gradient(circle at 84% 4%, rgba(122, 168, 255, 0.14), transparent 28rem),
    linear-gradient(145deg, #010203 0%, #071216 48%, #030406 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #00110f;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.site-header nav a,
.site-footer,
.muted {
  color: var(--muted);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-header nav a {
  border: 1px solid var(--line);
  padding: 10px 13px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  gap: 28px;
  min-height: 72vh;
  align-items: center;
  padding: 56px 0 40px;
}

.hero-copy,
.hero-panel,
.feature-card,
.split-section,
.connect-band,
.content-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(30px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 940px;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.94;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.32rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.tagline {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.hero-text {
  max-width: 720px;
}

.action-row,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 900;
  color: var(--text);
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #00110f;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(48, 245, 211, 0.08);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.hero-panel {
  padding: 18px;
}

.terminal-card {
  min-height: 420px;
  border: 1px solid rgba(48, 245, 211, 0.22);
  background:
    linear-gradient(rgba(48, 245, 211, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 245, 211, 0.06) 1px, transparent 1px),
    rgba(0, 0, 0, 0.35);
  background-size: 22px 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.dot-row {
  position: absolute;
  display: flex;
  gap: 7px;
}

.dot-row i {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
}

.mono-label {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-line {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.copy-line strong,
.copy-line span {
  display: block;
}

.copy-line span {
  margin-top: 4px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-card {
  padding: 24px;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.feature-card span {
  color: var(--gold);
  font-weight: 900;
}

.split-section,
.connect-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  margin-top: 16px;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-list div,
.step-list li,
.legal-list li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.status-list strong,
.status-list span {
  display: block;
}

.status-list span {
  margin-top: 5px;
  color: var(--muted);
}

.connect-band {
  grid-template-columns: minmax(0, 1fr) auto;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.page-hero {
  padding: 56px 0 22px;
}

.content-card {
  padding: clamp(24px, 5vw, 48px);
  margin: 16px 0;
}

.step-list,
.legal-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.step-list strong,
.legal-list strong {
  display: block;
  margin-bottom: 6px;
}

code {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
  color: var(--accent);
  padding: 2px 6px;
}

.notice {
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  background: rgba(48, 245, 211, 0.08);
}

.notice.warning {
  border-left-color: var(--gold);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.resource-grid,
.manual-grid,
.faq-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.resource-grid,
.manual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card,
.manual-card,
.faq-item,
.metric-card,
.guide-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.manual-card h3,
.faq-item h3,
.guide-section h2 {
  margin-bottom: 8px;
}

.manual-card p,
.faq-item p,
.metric-card p,
.guide-section p {
  margin-bottom: 0;
}

.metric-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.8rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 16px;
}

.toc a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover,
.site-header nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.guide-section {
  margin-bottom: 16px;
  scroll-margin-top: 20px;
}

.two-col {
  columns: 2 260px;
  column-gap: 28px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.pill {
  border: 1px solid var(--line-strong);
  background: rgba(48, 245, 211, 0.08);
  color: var(--text);
  padding: 8px 10px;
  font-weight: 800;
}

.site-map-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-map-list a {
  display: block;
  border: 1px solid var(--line);
  padding: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.print-only {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 30px 0 42px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .split-section,
  .connect-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid,
  .manual-grid,
  .metric-grid,
  .guide-layout,
  .site-map-list {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .page-actions,
  .toc,
  .button {
    display: none !important;
  }

  main,
  .page-shell {
    width: 100%;
    margin: 0;
  }

  .content-card,
  .guide-section,
  .hero-copy,
  .feature-card {
    box-shadow: none;
    border-color: #bbb;
    break-inside: avoid;
  }

  p,
  .muted {
    color: #222;
  }

  a {
    color: #111;
  }

  .print-only {
    display: block;
  }
}
