:root {
  color-scheme: light dark;
  --bg: #f5f2ec;
  --text: #1c2024;
  --muted: #697077;
  --line: rgba(28, 32, 36, 0.12);
  --panel: rgba(255, 255, 255, 0.74);
  --ink: #0f1720;
  --accent: #d45b2c;
  --green: #128a53;
  --blue: #1f6feb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

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

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 242, 236, 0.1), rgba(245, 242, 236, 0.96)),
    radial-gradient(circle at 72% 28%, rgba(212, 91, 44, 0.18), transparent 30%),
    linear-gradient(135deg, #f3ede2 0%, #e5edf0 55%, #f7f4ee 100%);
}

.terminal {
  position: absolute;
  top: 6vh;
  left: max(20px, 7vw);
  width: min(780px, 62vw);
  border: 1px solid rgba(15, 23, 32, 0.18);
  border-radius: 18px;
  background: #071826;
  box-shadow: 0 30px 80px rgba(15, 23, 32, 0.26);
  overflow: hidden;
}

.traffic {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic span:nth-child(2) {
  background: #febc2e;
}

.traffic span:nth-child(3) {
  background: #28c840;
}

.terminal__body {
  min-height: 250px;
  padding: 28px;
  color: #e8edf2;
  font: 500 18px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal__body p {
  margin: 0 0 14px;
}

.muted {
  color: rgba(232, 237, 242, 0.55);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

.hud-card {
  position: absolute;
  right: max(20px, 8vw);
  top: 35vh;
  width: min(650px, 48vw);
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  background: rgba(245, 247, 247, 0.74);
  box-shadow: 0 24px 70px rgba(15, 23, 32, 0.24);
  backdrop-filter: blur(22px) saturate(1.16);
}

.hud-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  min-height: 74px;
  align-items: center;
  padding: 9px 22px;
  border-bottom: 1px solid rgba(28, 32, 36, 0.08);
}

.hud-row:last-child {
  border-bottom: 0;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.icon--t {
  background: #176d83;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #495057;
  font-size: 14px;
  font-weight: 700;
}

.meta strong {
  color: #096b43;
}

.meta .need {
  color: #945300;
}

.body {
  margin-top: 3px;
  color: #1f2428;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.35;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 48vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(72px, 11vw, 150px);
  line-height: 0.85;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #2f363d;
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.34;
  font-weight: 720;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  font-weight: 760;
}

.actions a:first-child {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.band,
.section {
  padding: 72px clamp(20px, 5vw, 72px);
}

.grid {
  display: grid;
  gap: 18px;
}

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

article,
pre,
.status-list,
.flow {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

article {
  padding: 24px;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

article h2 {
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section__head p {
  margin: 0;
  font-size: 18px;
}

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

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  background: #101820;
  color: #edf2f7;
  font: 600 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.commands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.commands code {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.status-list {
  display: grid;
}

.status-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list span {
  color: var(--text);
  font-weight: 800;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.flow div {
  display: grid;
  min-height: 82px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.flow span {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --text: #eef1f3;
    --muted: #a2abb3;
    --line: rgba(238, 241, 243, 0.13);
    --panel: rgba(255, 255, 255, 0.06);
    --ink: #eef1f3;
  }

  .hero__media {
    background:
      linear-gradient(180deg, rgba(17, 20, 23, 0.08), rgba(17, 20, 23, 0.96)),
      radial-gradient(circle at 72% 28%, rgba(212, 91, 44, 0.16), transparent 30%),
      linear-gradient(135deg, #15191d 0%, #1d292b 54%, #16191c 100%);
  }

  .lead {
    color: #d8dde1;
  }

  .actions a {
    background: rgba(255, 255, 255, 0.08);
  }

  .actions a:first-child {
    color: #111417;
    background: #eef1f3;
  }

  .commands code {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 900px;
    padding-bottom: 46px;
  }

  .terminal {
    top: 24px;
    left: 18px;
    width: calc(100vw - 36px);
  }

  .terminal__body {
    min-height: 230px;
    padding: 22px;
    font-size: 14px;
  }

  .hud-card {
    right: 18px;
    top: 282px;
    bottom: auto;
    width: calc(100vw - 36px);
  }

  .hud-row {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    min-height: 64px;
    padding: 8px 18px;
  }

  .icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .meta {
    font-size: 12px;
  }

  .body {
    font-size: 16px;
  }

  .hero__copy {
    margin-top: 0;
    padding-top: 450px;
  }

  .grid--three,
  .code-grid,
  .section__head,
  .flow {
    grid-template-columns: 1fr;
  }

  .status-list div {
    grid-template-columns: 76px 1fr;
  }
}
