:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0675e8;
  --accent-hover: #0067d6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 14px 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(22px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
nav { display: flex; gap: 24px; }
nav a, .text-link, .link-row a { color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 550; }
nav a:hover, .text-link:hover, .link-row a:hover { color: var(--accent); }

main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: min(880px, 92vh); padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.hero-icon { margin: 0 auto 26px; filter: drop-shadow(0 18px 28px rgba(37, 112, 228, 0.22)); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 15px; font-weight: 700; letter-spacing: 0.015em; }
h1, h2, h3, p { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.058em; font-weight: 720; }
.hero-summary { max-width: 680px; margin: 26px auto 28px; color: var(--secondary); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.35; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 650; transition: transform 160ms ease, background-color 160ms ease, color 160ms ease; }
.button [data-site-version]::before { content: "\00a0"; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.compatibility { margin: 18px 0 0; color: var(--secondary); font-size: 14px; }
.hero-visual { display: block; width: min(1134px, 116%); margin: 62px 50% 0; transform: translateX(-50%); filter: drop-shadow(var(--shadow)); }
.hero-visual img { border-radius: 24px; }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section h2 { max-width: 850px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.045em; }
.section > p:not(.eyebrow), .settings-showcase p:not(.eyebrow), .download > p:not(.eyebrow) { max-width: 760px; color: var(--secondary); font-size: 20px; }

.overview > p:not(.eyebrow) { margin: 22px 0 48px; }
.overview-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
figure { margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
figure img { border-radius: 16px; }
figcaption { padding: 16px 4px 2px; color: var(--secondary); font-size: 14px; }

.features h2 { margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { min-height: 240px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.feature-grid article > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 36px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-size: 20px; font-weight: 700; }
.feature-grid h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.025em; }
.feature-grid p { margin: 0; color: var(--secondary); }

.settings-showcase { display: grid; grid-template-columns: 1fr minmax(340px, 520px); align-items: center; gap: 72px; }
.settings-showcase img { max-height: 650px; justify-self: end; border-radius: 26px; box-shadow: var(--shadow); }

.download { text-align: center; }
.download > img { margin: 0 auto 20px; }
.download h2, .download > p { margin-inline: auto; }
.download > p { margin-block: 18px 30px; }
.download .text-link { display: inline-block; margin-top: 22px; color: var(--accent); }

.open-source p:not(.eyebrow) { margin: 22px 0 30px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.link-row a { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 32px 0 56px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 13px; }
footer p { margin: 0; }

a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 4px; border-radius: 8px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090b;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: #1b1d21;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #57a9ff;
    --accent-hover: #79baff;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 820px) {
  .site-header { width: min(100% - 28px, 1180px); }
  nav a:not(:last-child) { display: none; }
  main, footer { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 68px; min-height: auto; }
  .hero-icon { width: 116px; height: 116px; }
  .hero-visual { width: 150%; margin-top: 44px; }
  .section { padding: 86px 0; }
  .overview-visuals, .feature-grid, .settings-showcase { grid-template-columns: 1fr; }
  .settings-showcase { gap: 44px; }
  .settings-showcase img { justify-self: center; max-height: 560px; }
  .feature-grid article { min-height: 210px; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  h1 { font-size: 45px; }
  .hero-summary, .section > p:not(.eyebrow), .settings-showcase p:not(.eyebrow), .download > p:not(.eyebrow) { font-size: 18px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { width: 190%; }
  .feature-grid article { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .button:hover { transform: none; }
}
