:root {
  color-scheme: light dark;
  --page: #eef3f7;
  --surface: #e2eaf0;
  --surface-strong: #d6e0e8;
  --text: #111820;
  --muted: #4d5b68;
  --line: #c7d2dc;
  --accent: #1478b8;
  --accent-hover: #0c659e;
  --on-accent: #f5fbff;
  --shadow: rgba(37, 72, 94, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c1014;
    --surface: #151c22;
    --surface-strong: #1d2730;
    --text: #edf6fa;
    --muted: #9cafba;
    --line: #293640;
    --accent: #46a8df;
    --accent-hover: #6abbe7;
    --on-accent: #07141c;
    --shadow: rgba(1, 7, 11, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.metric-pixel {
  position: absolute;
  left: -9999px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

nav a,
footer a {
  transition: color 150ms ease;
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 72px);
  padding: clamp(42px, 7vw, 86px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
}

.hero-copy {
  padding-bottom: 3vh;
}

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

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero-copy > p {
  max-width: 580px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

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

.primary,
.secondary {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.primary {
  background: var(--accent);
  color: var(--on-accent);
}

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

.secondary {
  background: var(--surface);
  color: var(--text);
}

.secondary:hover {
  background: var(--surface-strong);
}

.primary:active,
.secondary:active {
  transform: translateY(1px);
}

.hero-art {
  margin: 0;
  justify-self: end;
}

.hero-art img {
  width: min(39vw, 500px);
  height: auto;
  filter: drop-shadow(0 34px 54px var(--shadow));
}

.compatibility {
  padding: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.compatibility strong {
  flex: 0 0 auto;
  color: var(--text);
}

.features {
  padding: clamp(82px, 11vw, 150px) 0;
}

.section-heading {
  max-width: 680px;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-heading p {
  max-width: 600px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.feature {
  margin: 0;
}

.feature img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px var(--shadow);
}

.feature figcaption {
  padding: 22px 4px 0;
}

.feature h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.feature p {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--muted);
}

.feature-devtools {
  grid-row: span 2;
}

.feature-new-tab,
.feature-tabs {
  display: grid;
  grid-template-columns: minmax(140px, 0.72fr) minmax(170px, 1fr);
  gap: 24px;
  align-items: center;
}

.feature-new-tab figcaption,
.feature-tabs figcaption {
  padding: 0;
}

.install {
  padding: clamp(72px, 10vw, 130px) clamp(24px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  border-radius: 28px;
  background: var(--surface);
}

.install ol {
  max-width: 630px;
  margin: 36px 0;
  padding-left: 1.35em;
  color: var(--muted);
}

.install li + li {
  margin-top: 14px;
}

code {
  color: var(--text);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.splash-art {
  margin: 0;
}

.splash-art img {
  width: min(100%, 330px);
  height: auto;
  margin-left: auto;
  border-radius: 24px;
  box-shadow: 0 24px 70px var(--shadow);
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

footer span {
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 64px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 78px;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .hero-art {
    position: absolute;
    right: -16px;
    top: 124px;
    z-index: -1;
    opacity: 0.13;
  }

  .hero-art img {
    width: 78vw;
    max-width: 560px;
    filter: none;
  }

  .compatibility {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .feature-grid,
  .install {
    grid-template-columns: 1fr;
  }

  .feature-devtools {
    grid-row: auto;
  }

  .feature-new-tab,
  .feature-tabs {
    grid-template-columns: 0.78fr 1fr;
  }

  .splash-art img {
    width: min(70%, 300px);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .feature-new-tab,
  .feature-tabs {
    grid-template-columns: 1fr;
  }

  .feature-new-tab img,
  .feature-tabs img {
    width: min(78%, 360px);
  }

  .install {
    padding-inline: 20px;
  }

  footer {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
