:root {
  --ink: #c9d1d9;
  --muted: #8b949e;
  --paper: #0d1117;
  --canvas: #0d1117;
  --panel: #161b22;
  --line: #30363d;
  --blue: #58a6ff;
  --blue-dark: #1f6feb;
  --green: #3fb950;
  --accent: #bc8cff;
  --danger: #f85149;
  --code-bg: #0d1117;
  --code-border: #30363d;
  --shadow: 0 16px 48px rgba(1, 4, 9, 0.55);
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --sans: "Aptos", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 16%, rgba(88, 166, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(188, 140, 255, 0.06), transparent 26rem),
    linear-gradient(180deg, #0d1117 0%, #161b22 42%, #0d1117 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: var(--mono);
}

p code,
li code {
  padding: 0.12rem 0.28rem;
  border: 1px solid #30363d;
  border-radius: 5px;
  color: #c9d1d9;
  background: #161b22;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid #30363d;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #58a6ff 0 33%, #3fb950 33% 66%, #bc8cff 66%),
    #0d1117;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.site-nav {
  display: flex;
  gap: clamp(0.7rem, 2vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--blue);
}

.header-action,
.button,
.copy-button,
.tab,
.filter {
  border: 0;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.header-action {
  padding: 0.7rem 1rem;
  color: #fff;
  background: #238636;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(88vh - 72px);
  padding: clamp(2.5rem, 5vw, 4.5rem) 5vw 2.25rem;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.hero-lede,
.section-copy p,
.section-heading p,
.cta-section p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  background: #21262d;
  border: 1px solid var(--line);
}

.install-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161b22;
  box-shadow: 0 10px 40px rgba(35, 43, 52, 0.08);
}

.install-strip code {
  overflow-x: auto;
  padding: 0 0.25rem 0 0.55rem;
  white-space: nowrap;
}

.copy-button {
  min-width: 68px;
  padding: 0.58rem 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 750;
  background: #238636;
}

.copy-button.copied {
  background: #2ea043;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border: 1px solid #30363d;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 5vw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.signal-band div {
  padding: 1.25rem;
  background: #161b22;
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band span {
  margin-top: 0.35rem;
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 5vw;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.section-copy {
  max-width: 660px;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "ok";
  font-size: 0.72rem;
  font-weight: 900;
}

.code-panel,
.terminal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: 8px;
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

.panel-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--code-border);
}

.tab {
  padding: 0.55rem 0.8rem;
  color: #8b949e;
  background: transparent;
}

.tab.active {
  color: #f0f6fc;
  background: #21262d;
}

.code-block,
.terminal-panel pre {
  display: none;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #c9d1d9;
  font-size: clamp(0.85rem, 1.7vw, 1rem);
  line-height: 1.75;
  overflow-x: auto;
}

.code-block.active,
.terminal-panel pre {
  display: block;
}

.floating {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.filter {
  padding: 0.65rem 0.95rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.filter.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.format-card {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161b22;
}

.format-card[hidden] {
  display: none;
}

.format-card span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--blue);
  font-weight: 900;
}

.format-card p,
.reference-list p {
  color: var(--muted);
  line-height: 1.55;
}

.reference-section {
  background:
    linear-gradient(90deg, rgba(88, 166, 255, 0.08), rgba(188, 140, 255, 0.07)),
    var(--canvas);
}

.reference-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.reference-list article {
  min-height: 210px;
  padding: 1rem;
  background: #161b22;
}

.module-section {
  align-items: start;
}

.terminal-panel pre {
  padding-top: 4rem;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin: 0 5vw 5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, #1f6feb, #0d1117),
    var(--blue);
}

.cta-section .eyebrow,
.cta-section p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-section h2 {
  max-width: 820px;
}

.cta-section .button.primary {
  color: #0d1117;
  background: #f0f6fc;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .signal-band,
  .reference-list {
    grid-template-columns: 1fr;
  }

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

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .header-action {
    display: none;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .hero {
    padding-top: 1.25rem;
    gap: 1.5rem;
  }

  .hero-visual img {
    max-height: 210px;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-actions {
    margin: 1.1rem 0 0.75rem;
  }

  .install-strip {
    width: 100%;
    justify-content: space-between;
  }

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

  .floating {
    position: static;
    margin: 0 1rem 1rem auto;
  }
}
