:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #131c2e;
  --panel-hi: #1b2740;
  --line: #243352;
  --text: #e6edf7;
  --dim: #9dafca;
  --faint: #6f82a4;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(11, 18, 32, 0.86);
  border-bottom: 1px solid rgba(36, 51, 82, 0.75);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 8px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--dim);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.98) 0%, rgba(11, 18, 32, 0.78) 42%, rgba(11, 18, 32, 0.12) 100%),
    url("assets/opsquest-hero.png") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0), var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 96px);
  padding: 56px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 18px;
  max-width: 600px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy {
  max-width: 590px;
  color: var(--dim);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

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

.button.primary {
  background: var(--cyan);
  color: #04111d;
}

.button.secondary {
  border-color: rgba(157, 175, 202, 0.32);
  background: rgba(19, 28, 46, 0.64);
  color: var(--text);
}

.trial-note {
  max-width: 620px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.55;
}

.trial-note a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.5);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: -26px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.signal-strip div {
  min-height: 118px;
  padding: 24px;
  background: rgba(19, 28, 46, 0.92);
  border: 1px solid rgba(36, 51, 82, 0.85);
}

.signal-strip div:first-child {
  border-radius: 8px 0 0 8px;
}

.signal-strip div:last-child {
  border-radius: 0 8px 8px 0;
}

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

.signal-strip strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.signal-strip span {
  color: var(--dim);
  line-height: 1.45;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 20px;
}

.section-dark {
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  background: #0e1729;
  border-block: 1px solid rgba(36, 51, 82, 0.8);
}

.section h2,
.trial h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section p,
.trial p {
  color: var(--dim);
  font-size: 17px;
  line-height: 1.68;
}

.section p a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.5);
}

.section code {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
}

.split.reverse {
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
}

.ticket-preview,
.scoreboard {
  border: 1px solid rgba(36, 51, 82, 0.95);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.ticket-preview {
  padding: 22px;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.priority {
  font-weight: 900;
  text-transform: uppercase;
}

.p1 {
  color: var(--red);
}

.ticket-preview h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.ticket-preview p {
  margin-bottom: 18px;
  font-size: 15px;
}

.choice {
  margin-top: 10px;
  padding: 13px 14px;
  border-left: 4px solid var(--line);
  border-radius: 8px;
  background: var(--panel-hi);
  color: var(--text);
  font-size: 14px;
}

.choice.good {
  border-left-color: var(--green);
}

.choice.warn {
  border-left-color: var(--amber);
}

.choice.bad {
  border-left-color: var(--red);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(36, 51, 82, 0.9);
  border-radius: 8px;
  background: rgba(19, 28, 46, 0.78);
}

.feature-grid h3 {
  margin: 18px 0 10px;
  font-size: 23px;
}

.feature-grid p {
  font-size: 15px;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.badge.red {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
}

.badge.blue {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue);
}

.badge.cyan {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
}

.badge.amber {
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
}

.badge.green {
  background: rgba(74, 222, 128, 0.14);
  color: var(--green);
}

.gallery-lede {
  max-width: 640px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(36, 51, 82, 0.95);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.scoreboard {
  padding: 28px;
}

.meter {
  margin-bottom: 22px;
}

.meter span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meter div {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #0a1020;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.meter .tech {
  width: 86%;
  background: var(--cyan);
}

.meter .people {
  width: 74%;
  background: var(--violet);
}

.note {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.24);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.trial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto 74px;
  padding: 36px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 28, 46, 0.95), rgba(27, 39, 64, 0.86));
}

.trial h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.trial p {
  max-width: 680px;
  margin-bottom: 0;
}

.trial p a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.5);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid rgba(36, 51, 82, 0.75);
  color: var(--faint);
  font-size: 14px;
}

footer a {
  color: var(--dim);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 78svh;
    background:
      linear-gradient(180deg, rgba(11, 18, 32, 0.85) 0%, rgba(11, 18, 32, 0.97) 74%, var(--bg) 100%),
      url("assets/opsquest-hero.png") 62% top / auto 58% no-repeat;
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding: 210px 0 42px;
  }

  h1 {
    font-size: clamp(50px, 18vw, 74px);
  }

  .signal-strip,
  .feature-grid,
  .split,
  .split.reverse,
  .trial {
    grid-template-columns: 1fr;
  }

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

  .gallery .shot:last-child {
    grid-column: 1 / -1;
    max-width: 52%;
    margin: 0 auto;
  }

  .signal-strip {
    margin-top: 0;
  }

  .signal-strip div,
  .signal-strip div:first-child,
  .signal-strip div:last-child {
    min-height: 0;
    border-radius: 8px;
  }

  .section {
    padding: 70px 20px;
  }

  .split.reverse .scoreboard {
    order: 2;
  }

  .trial {
    margin-inline: 20px;
    padding: 26px;
  }

  .trial .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  nav a:nth-child(2) {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section h2,
  .trial h2 {
    font-size: 32px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .hero {
    align-items: start;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(11, 18, 32, 0.78) 0%, rgba(11, 18, 32, 0.97) 70%, var(--bg) 100%),
      url("assets/opsquest-hero.png") 62% top / auto 47% no-repeat;
  }

  .hero-content {
    align-self: start;
    padding: 206px 0 20px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 62px);
  }

  .lede {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-actions {
    margin: 22px 0 0;
  }

  .hero-actions .secondary,
  .hero .trial-note {
    display: none;
  }
}
