:root {
  color-scheme: dark;
  --bg: #08090c;
  --panel: #11151a;
  --panel-2: #161b21;
  --text: #f4f0e8;
  --muted: #a7b0b7;
  --quiet: #707b84;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #e8793a;
  --orange-2: #ffb15f;
  --ice: #8ed7e8;
  --green: #8dd18a;
  --red: #e86161;
  --shadow: rgba(0, 0, 0, 0.42);
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(8, 9, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navlinks a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text);
  border-color: var(--orange);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 116px clamp(22px, 5vw, 72px) 56px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/hero-kit.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.76) 34%, rgba(8, 9, 12, 0.22) 72%),
    linear-gradient(0deg, rgba(8, 9, 12, 1) 0%, rgba(8, 9, 12, 0.04) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
  color: #d7dde0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button,
.copy {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button {
  min-width: 156px;
  padding: 0 18px;
}

.button.primary {
  background: var(--orange);
  color: #1b0e07;
  border-color: var(--orange);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
}

.status-grid div {
  min-height: 82px;
  padding: 16px;
  background: rgba(13, 16, 20, 0.82);
}

.status-grid dt {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-grid dd {
  margin: 4px 0 0;
  color: var(--green);
  font-weight: 800;
}

.band {
  padding: clamp(56px, 8vw, 104px) clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-band {
  padding-top: 38px;
  padding-bottom: 38px;
  background: #0b0d10;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: 32px;
  align-items: start;
}

.intro-grid p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.flow-grid li {
  min-height: 288px;
  padding: 24px;
  background: var(--panel);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 40px;
  border: 1px solid rgba(232, 121, 58, 0.54);
  border-radius: 50%;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-grid p,
.sticky-copy p,
.download-layout p,
.field-grid p,
.proof-card p {
  color: var(--muted);
}

.split-band {
  background: #0a0d10;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 104px;
}

.callout {
  margin-top: 22px;
  padding: 16px;
  color: #ffdfb9;
  border: 1px solid rgba(232, 121, 58, 0.42);
  border-radius: 8px;
  background: rgba(232, 121, 58, 0.09);
}

.command-stack,
.deploy-steps {
  display: grid;
  gap: 16px;
}

.command-panel,
.dns-card,
.proof-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px var(--shadow);
}

.panel-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
}

.copy {
  min-width: 72px;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ice);
  background: #0b1014;
}

.copy.copied {
  color: #08110a;
  background: var(--green);
  border-color: var(--green);
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #dfe7e9;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  background: #090b0e;
}

pre.wrap-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.download-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.wide {
  min-width: 0;
}

.signals-band {
  background: #0d1013;
}

.signals-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.signals-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(180px, 0.65fr) minmax(240px, 1fr);
  gap: 1px;
}

.signals-table span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--panel);
}

.signals-table .table-head span {
  min-height: 48px;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #14181d;
}

.signals-table code,
.dns-card code {
  color: var(--ice);
}

.field-band {
  background: #090c0e;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

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

.setting-grid div {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  background: var(--panel-2);
}

.setting-grid span {
  color: var(--muted);
}

.setting-grid strong {
  color: var(--green);
  font-size: 1.3rem;
}

.dns-card {
  padding: 22px;
}

.dns-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.dns-card dl div {
  min-height: 82px;
  padding: 14px;
  background: #0b0f13;
}

.dns-card dt {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dns-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ice);
  font-weight: 800;
}

.proof-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.proof-card img {
  width: 180px;
  aspect-ratio: 9 / 14;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
}

.footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(22px, 5vw, 72px);
  color: var(--quiet);
  border-top: 1px solid var(--line);
  background: #07080b;
}

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

  .status-grid,
  .flow-grid,
  .intro-grid,
  .split,
  .download-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid li {
    min-height: 220px;
  }

  .sticky-copy {
    position: static;
  }

  .signals-table,
  .signals-table [role="row"] {
    display: block;
  }

  .signals-table [role="row"] {
    border-bottom: 1px solid var(--line);
  }

  .signals-table [role="row"]:last-child {
    border-bottom: 0;
  }

  .signals-table span {
    min-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .signals-table .table-head {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 64px;
  }

  .hero {
    min-height: 88vh;
    padding: 98px 18px 34px;
  }

  .hero-content {
    width: min(calc(100vw - 36px), 354px);
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11.5vw, 3.05rem);
    overflow-wrap: break-word;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 9, 12, 1) 0%, rgba(8, 9, 12, 0.22) 48%),
      linear-gradient(90deg, rgba(8, 9, 12, 0.92) 0%, rgba(8, 9, 12, 0.48) 100%);
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .status-grid,
  .setting-grid,
  .dns-card dl,
  .proof-card {
    grid-template-columns: 1fr;
  }

  .band {
    padding-left: 18px;
    padding-right: 18px;
  }

  pre {
    font-size: 0.78rem;
  }

  .proof-card img {
    width: 100%;
    max-height: 320px;
  }
}
