:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #566371;
  --panel: #ffffff;
  --line: #d8e0e8;
  --blue: #235a8f;
  --teal: #17806d;
  --yellow: #f6cd43;
  --orange: #e17023;
  --red: #ca2929;
  --mist: #eef4f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f7f9fb;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 96px 32px 64px;
  overflow: hidden;
  background: #111922;
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 21, 29, 0.88), rgba(14, 21, 29, 0.42)),
    url("/assets/codeguard-dashboard.png") center / cover no-repeat;
}

.hero__content {
  position: relative;
  max-width: 760px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9bd1c6;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
}

.lede {
  max-width: 680px;
  color: #e5edf2;
  font-size: 21px;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  background: var(--teal);
  color: white;
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.workflow,
.plans,
.security {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 32px;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
  background: white;
}

.workflow h2,
.security h2 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.workflow p,
.security p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.workflow ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
}

.dot--red {
  background: var(--red);
}

.dot--orange {
  background: var(--orange);
}

.dot--yellow {
  background: var(--yellow);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plans article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plans h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.plans p {
  min-height: 78px;
  color: var(--muted);
  line-height: 1.5;
}

.plans strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.plan-button--primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.security {
  padding-top: 24px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #111922;
}

.auth-panel {
  width: min(720px, 100%);
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-panel h1 {
  color: var(--ink);
  font-size: 40px;
  line-height: 1.05;
}

.auth-panel code {
  display: block;
  margin: 14px 0;
  padding: 12px;
  overflow-wrap: anywhere;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.auth-panel dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  margin: 18px 0;
}

.auth-panel dt {
  color: var(--muted);
  font-weight: 700;
}

.auth-panel dd {
  margin: 0;
}

.muted {
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .hero {
    min-height: 82vh;
    padding: 88px 20px 42px;
  }

  h1 {
    font-size: 48px;
  }

  .lede {
    font-size: 18px;
  }

  .workflow,
  .plans {
    grid-template-columns: 1fr;
    padding: 42px 20px;
  }
}
