:root {
  color-scheme: dark;
  --bg: #111923;
  --panel: #182534;
  --text: #f7fbff;
  --muted: #b8c5d4;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #f7c948;
  --accent-2: #42c2a8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(66, 194, 168, 0.2), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(247, 201, 72, 0.19), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.header-link {
  color: var(--muted);
  font-weight: 750;
  text-underline-offset: 4px;
}

.guide-hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  align-items: center;
  gap: 64px;
  padding: 48px 0 72px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}

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

.primary-action,
.secondary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.primary-action {
  background: var(--accent);
  color: #111923;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(24, 37, 52, 0.78);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-art {
  position: relative;
  width: min(100%, 310px);
  margin: 0;
  justify-self: center;
}

.hero-art::before {
  position: absolute;
  inset: 14% -15%;
  content: "";
  background: linear-gradient(145deg, rgba(247, 201, 72, 0.25), rgba(66, 194, 168, 0.22));
  filter: blur(38px);
  z-index: -1;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.4);
}

.quick-loop,
.next-run {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(24, 37, 52, 0.82);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.2);
}

.quick-loop {
  padding: clamp(26px, 5vw, 48px);
}

.quick-loop h2,
.section-heading h2,
.next-run h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.quick-loop > p:last-child,
.next-run p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.steps-section {
  padding: 78px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(24, 37, 52, 0.7);
  padding: 22px;
  scroll-margin-top: 24px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(66, 194, 168, 0.15);
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 900;
}

.steps-list h3 {
  margin: 2px 0 8px;
  font-size: 20px;
}

.steps-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.next-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 5vw, 46px);
}

.next-run .primary-action {
  flex: 0 0 auto;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 34px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1080px);
  }

  .guide-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 44px 0 58px;
  }

  .hero-art {
    width: min(68vw, 290px);
  }

  .section-heading,
  .next-run {
    display: grid;
    align-items: start;
  }

  .steps-section {
    padding: 56px 0;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .next-run .primary-action {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 80px;
  }

  .brand span {
    font-size: 15px;
  }

  .header-link {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-actions {
    display: grid;
  }

  .hero-art {
    width: min(76vw, 270px);
  }

  .steps-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .step-number {
    width: 36px;
    height: 36px;
  }
}
