:root {
  color-scheme: dark;
  --bg: #121218;
  --surface: #181820;
  --elevated: #20202a;
  --line: #30303a;
  --line-soft: rgba(48, 48, 58, 0.72);
  --text: #e6e6eb;
  --secondary: #b4b4c0;
  --muted: #82828e;
  --primary: #ffb347;
  --primary-dim: #dc9632;
  --accent: #67e0e3;
  --accent-dim: #50b4b7;
  --success: #76da85;
  --info: #82aaff;
  --shadow: 0 34px 96px rgba(0, 0, 0, 0.44);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 179, 71, 0.05), transparent 580px),
    linear-gradient(90deg, rgba(103, 224, 227, 0.07), transparent 36%),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(230, 230, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 230, 235, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

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

code,
pre {
  font-family: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
}

code {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5%, 72px);
  border-bottom: 1px solid rgba(48, 48, 58, 0.88);
  background: rgba(18, 18, 24, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 179, 71, 0.58);
  border-radius: 8px;
  background: rgba(255, 179, 71, 0.11);
  color: var(--primary);
  font-weight: 800;
}

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--secondary);
  font-size: 0.92rem;
}

nav a {
  padding: 7px 0;
}

nav a:hover {
  color: var(--accent);
}

main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 18, 24, 0.98) 0%, rgba(18, 18, 24, 0.74) 42%, rgba(18, 18, 24, 0.24) 100%),
    linear-gradient(180deg, rgba(18, 18, 24, 0.2), rgba(18, 18, 24, 0.94));
}

.hero-backdrop img {
  width: 118%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.04) contrast(1.03);
  opacity: 0.82;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  align-self: center;
  padding: 70px clamp(20px, 5%, 72px) 150px;
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 6rem;
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: 3.8rem;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

p {
  color: var(--secondary);
  line-height: 1.68;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 1.26rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--primary);
  color: #121218;
}

.button.secondary {
  border: 1px solid rgba(103, 224, 227, 0.5);
  color: var(--accent);
  background: rgba(103, 224, 227, 0.06);
}

.hero-metrics {
  position: absolute;
  right: clamp(20px, 5%, 72px);
  bottom: 34px;
  left: clamp(20px, 5%, 72px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 48, 58, 0.92);
  border-radius: 8px;
  background: var(--line);
}

.hero-metrics div {
  min-width: 0;
  padding: 17px 18px;
  background: rgba(24, 24, 32, 0.88);
}

dt {
  color: var(--accent);
  font-family: "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 0.78rem;
}

dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
}

.interfaces,
.feature-run,
.system,
.capabilities,
.screens,
.upgrade {
  padding: 78px clamp(20px, 5%, 72px);
}

.interfaces {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
}

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

.section-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 680px;
}

.centered {
  margin: 0 auto 36px;
  text-align: center;
}

.interface-grid,
.capability-grid,
.workflow-list,
.screen-grid,
.upgrade-grid {
  display: grid;
  gap: 16px;
}

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

.interface-grid article,
.capability-grid article,
.workflow-list div,
.command-panel,
.release-links a {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(24, 24, 32, 0.78);
}

.interface-grid article {
  min-width: 0;
  padding: 24px;
}

.interface-grid span,
.component-card span,
.component-core span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary);
  font-family: "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.capabilities {
  background:
    linear-gradient(180deg, rgba(18, 18, 24, 0.98), rgba(24, 24, 32, 0.66)),
    var(--bg);
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 34px auto 0;
}

.capability-grid article {
  min-width: 0;
  padding: 24px;
}

.capability-grid h3 {
  color: var(--text);
}

.capability-grid p {
  margin-bottom: 0;
}

.interface-grid p {
  margin-bottom: 0;
}

.system {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(720px, 1.28fr);
  gap: 44px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(18, 18, 24, 0.96), rgba(32, 32, 42, 0.72)),
    var(--surface);
}

.component-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 72px minmax(190px, 0.95fr) 72px minmax(160px, 1fr);
  align-items: center;
  min-height: 260px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 179, 71, 0.08), transparent 44%),
    linear-gradient(315deg, rgba(103, 224, 227, 0.1), transparent 42%),
    rgba(24, 24, 32, 0.78);
  box-shadow: var(--shadow);
}

.component-visual::before {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(103, 224, 227, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.component-card,
.component-core {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(48, 48, 58, 0.95);
  border-radius: 8px;
  background: rgba(18, 18, 24, 0.9);
}

.component-core {
  border-color: rgba(255, 179, 71, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 179, 71, 0.12), transparent),
    rgba(18, 18, 24, 0.96);
}

.component-card strong,
.component-core strong {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.component-card small,
.component-core small {
  display: block;
  margin-top: 12px;
  color: var(--secondary);
  line-height: 1.4;
}

.component-line {
  position: relative;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(103, 224, 227, 0), rgba(103, 224, 227, 0.7), rgba(255, 179, 71, 0.72));
}

.line-right {
  transform: scaleX(-1);
}

.feature-run {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(32, 32, 42, 0.74), rgba(18, 18, 24, 0.86)),
    var(--surface);
}

.feature-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
}

.workflow-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 20px;
}

.workflow-list strong {
  color: var(--primary);
  font-family: "SFMono-Regular", "Cascadia Code", Menlo, monospace;
}

.workflow-list span {
  min-width: 0;
  color: var(--secondary);
  line-height: 1.5;
}

.screens {
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.96), rgba(24, 24, 32, 0.62));
}

.screen {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 48, 58, 0.9);
  border-radius: 8px;
  background: var(--elevated);
  box-shadow: var(--shadow);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

.screen figcaption {
  display: grid;
  gap: 4px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(24, 24, 32, 0.96);
}

.screen figcaption strong {
  color: var(--text);
}

.screen figcaption span {
  color: var(--secondary);
  line-height: 1.5;
}

.primary-screen {
  max-width: 1180px;
  margin: 0 auto 18px;
}

.screen-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.lead-screens {
  align-items: start;
  margin-bottom: 18px;
}

.upgrade {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}

.upgrade-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 0.58fr);
  flex: 1 1 520px;
}

.upgrade > p {
  flex: 1 1 300px;
  margin: 0;
  color: var(--secondary);
}

.upgrade > p strong {
  color: var(--text);
}

.command-panel,
.release-links a {
  min-width: 0;
  overflow: hidden;
}

.release-links {
  display: grid;
  gap: 14px;
}

.release-links a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  color: var(--accent);
  font-family: "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-weight: 800;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 20px;
  color: #e6e6eb;
  font-size: 0.86rem;
  line-height: 1.7;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 5%, 72px) 48px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

footer span {
  color: var(--text);
  font-weight: 800;
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 1280px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3rem;
  }

  .interfaces,
  .feature-run,
  .system,
  .upgrade {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    justify-content: flex-start;
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(18, 18, 24, 0.9) 0%, rgba(18, 18, 24, 0.7) 44%, rgba(18, 18, 24, 0.98) 100%);
  }

  .hero-backdrop img {
    width: 210%;
    object-position: 62% center;
    opacity: 0.66;
  }

  .hero-content {
    align-self: start;
    padding-top: 58px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .hero-metrics {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    margin: 0 16px 48px;
  }

  .screen-grid,
  .upgrade-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .component-visual {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .component-line {
    width: 2px;
    height: 34px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(103, 224, 227, 0.1), rgba(103, 224, 227, 0.72), rgba(255, 179, 71, 0.72));
  }

  .line-right {
    transform: none;
  }

  .workflow-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 460px) {
  .site-header,
  .interfaces,
  .feature-run,
  .system,
  .screens,
  .upgrade,
  footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-metrics {
    right: 16px;
    left: 16px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }

  .screen {
    margin-right: -2px;
    margin-left: -2px;
  }

  .screen figcaption {
    padding: 14px;
  }

  footer {
    flex-direction: column;
  }
}
