:root {
  color-scheme: light dark;
  --ink: #18202a;
  --muted: #667085;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #eef1f6;
  --line: #dfe3ea;
  --line-strong: #cdd3dc;
  --accent: #225bd6;
  --accent-dark: #1748ac;
  --success: #22a06b;
  --success-soft: #dff7e8;
  --success-ink: #166534;
  --shadow: 0 18px 50px rgb(24 32 42 / 10%);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  position: relative;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent-dark);
}

nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 86px);
  padding: clamp(64px, 9vw, 108px) 0 80px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0.25em 0;
  font-size: clamp(2.8rem, 6.8vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

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

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

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.product-preview {
  width: 100%;
  max-width: 390px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 17px;
  box-shadow: var(--shadow);
}

.preview-header,
.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-header {
  margin-bottom: 13px;
  font-size: 1.08rem;
}

.badge {
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e8efff;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 750;
}

.preview-status {
  display: flex;
  gap: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: 12px;
  padding: 14px;
}

.status-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--success-ink);
  background: var(--success-soft);
  font-weight: 800;
}

.preview-status div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.preview-domain {
  color: var(--muted);
  font-size: 0.76rem;
}

.preview-status strong {
  line-height: 1.3;
}

.preview-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.preview-mode {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 700;
}

.preview-segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 3px;
  text-align: center;
}

.preview-segments strong,
.preview-segments span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 7px;
  padding: 4px 7px;
}

.preview-segments strong {
  color: var(--accent-dark);
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(16 24 40 / 12%);
}

.preview-segments span {
  color: var(--muted);
  font-weight: 650;
}

.preview-foot {
  justify-content: flex-end;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 90px;
}

.features article,
.callout {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 21px;
}

.features article {
  border-top: 3px solid #98a2b3;
}

.features article:nth-child(2) {
  border-top-color: var(--accent);
}

.features article:nth-child(3) {
  border-top-color: var(--success);
}

h2 {
  line-height: 1.25;
}

.features h2 {
  margin-top: 0;
  font-size: 1.08rem;
}

.features p {
  margin-bottom: 0;
  color: var(--muted);
}

.document {
  max-width: 760px;
  padding: 64px 0 90px;
}

.document h1 {
  font-size: clamp(2.7rem, 6vw, 4.5rem);
}

.document h2 {
  margin-top: 2.2em;
  font-size: 1.25rem;
}

.document li + li {
  margin-top: 0.4em;
}

.callout {
  margin-top: 38px;
  border-left: 4px solid var(--accent);
}

.callout h2 {
  margin-top: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .product-preview {
    max-width: 520px;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    gap: 42px;
    padding-top: 48px;
  }

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

  footer {
    flex-direction: column;
  }
}

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

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }

  .product-preview {
    padding: 13px;
  }

  .preview-segments {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6;
    --muted: #aab4c3;
    --paper: #161a22;
    --surface: #222936;
    --surface-soft: #161a22;
    --line: #374151;
    --line-strong: #475569;
    --accent: #60a5fa;
    --accent-dark: #93c5fd;
    --success: #34d399;
    --success-soft: #153d27;
    --success-ink: #a7f3d0;
    --shadow: 0 18px 50px rgb(0 0 0 / 24%);
  }

  .button.primary {
    color: #102342;
  }

  .badge {
    color: #bfdbfe;
    background: #1e3a5f;
  }

  .preview-mode {
    color: #e5e7eb;
  }

  .preview-segments strong {
    color: #bfdbfe;
    background: #303846;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
