:root {
  color-scheme: dark;
  --background: #071119;
  --background-deep: #040b11;
  --panel: #0d1b26;
  --panel-raised: #122332;
  --line: #274052;
  --line-bright: #3e6277;
  --text: #eff8f7;
  --muted: #a7bac6;
  --cyan: #5de1d4;
  --cyan-deep: #173f41;
  --violet: #bc8cff;
  --orange: #ffb454;
  --green: #7ee787;
  --shadow: 0 30px 80px rgb(0 0 0 / 35%);
  --content: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgb(30 109 112 / 18%), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgb(116 73 180 / 16%), transparent 32rem),
    var(--background);
  line-height: 1.6;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a1fff5;
}

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

code,
pre,
.eyebrow,
.metric,
.brand-kicker,
.step-number,
.signal {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  padding: 0.12rem 0.32rem;
  border: 1px solid rgb(93 225 212 / 18%);
  border-radius: 0.35rem;
  color: #b9fff7;
  background: rgb(93 225 212 / 8%);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: #dffbf8;
  background: #050d13;
  font-size: 0.86rem;
  line-height: 1.6;
}

pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font-size: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  color: #041113;
  background: var(--cyan);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(62 98 119 / 60%);
  background: rgb(4 11 17 / 86%);
  backdrop-filter: blur(18px);
}

.header-inner,
.content,
.footer-inner {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--cyan);
  border-radius: 0.6rem;
  place-items: center;
  color: var(--cyan);
  background: var(--cyan-deep);
  box-shadow: inset 0 0 0 3px rgb(7 17 25 / 60%);
  font-weight: 800;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text);
}

.content {
  padding-block: 5.5rem 7rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  min-height: 34rem;
}

.hero-copy {
  max-width: 47rem;
}

.eyebrow,
.brand-kicker {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.page-intro h1 {
  max-width: 20ch;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line-bright);
  border-radius: 0.65rem;
  color: var(--text);
  background: var(--panel);
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  border-color: var(--cyan);
  color: #041413;
  background: var(--cyan);
}

.button:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: var(--panel-raised);
}

.button-primary:hover {
  color: #041413;
  background: #9af8ef;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.signal {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  color: var(--muted);
  background: rgb(13 27 38 / 78%);
  font-size: 0.72rem;
}

.hero-console {
  position: relative;
  min-height: 25rem;
  border: 1px solid var(--line-bright);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgb(93 225 212 / 8%), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.console-status {
  color: var(--green);
}

.console-body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.console-metric {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgb(4 11 17 / 55%);
}

.console-metric strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.4rem;
}

.console-metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.console-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.console-flow b {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  color: var(--text);
  background: var(--background-deep);
}

.section {
  padding-top: 7rem;
}

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

.section-heading p,
.card p,
.step p,
.callout p,
.page-intro p,
.prose p,
.prose li,
td {
  color: var(--muted);
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

.screenshot-caption {
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--background-deep);
  font-size: 0.8rem;
}

.alignment-blocker-frame {
  margin-top: 1rem;
}

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

.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: linear-gradient(155deg, rgb(18 35 50 / 92%), rgb(9 20 29 / 92%));
}

.card-accent {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.diagram-frame {
  padding: clamp(0.7rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #07121a;
  box-shadow: var(--shadow);
}

.diagram-frame img {
  width: 100%;
}

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

.mode-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
}

.mode-card ul,
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.mode-card li + li,
.prose li + li {
  margin-top: 0.45rem;
}

.page-intro {
  max-width: 55rem;
  padding: 3rem 0 2rem;
}

.prose {
  max-width: 52rem;
}

.prose h2 {
  margin-top: 4rem;
}

.prose h3 {
  margin-top: 2.25rem;
}

.prose-wide {
  max-width: none;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--panel);
}

.step-number {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  place-items: center;
  color: var(--cyan);
  font-weight: 800;
}

.step h3 {
  margin-top: 0.2rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line-bright);
  border-left: 0.3rem solid var(--cyan);
  border-radius: 0.65rem;
  background: var(--panel);
}

.callout-warning {
  border-left-color: var(--orange);
}

.callout strong {
  display: block;
  margin-bottom: 0.3rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: var(--background-deep);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.image-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
  align-items: start;
  gap: 1rem;
}

.image-pair .mobile-frame {
  max-width: 24rem;
  justify-self: center;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 7rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-bright);
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgb(93 225 212 / 12%), rgb(188 140 255 / 9%)),
    var(--panel);
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--background-deep);
}

.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    padding-block: 0.8rem;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .card-grid,
  .mode-grid,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-console {
    min-height: auto;
  }

  .image-pair .mobile-frame {
    justify-self: start;
  }

  .cta,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.4rem;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .content,
  .footer-inner {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .content {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .section {
    padding-top: 5rem;
  }

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

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