:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #eef2f7;
  --ink: #111827;
  --muted: #5b6678;
  --line: #d8dee8;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #d97706;
  --hero-bg: #e7edf4;
  --shadow: 0 22px 80px rgba(15, 23, 42, 0.18);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-strong: #182235;
  --ink: #f8fafc;
  --muted: #a8b3c5;
  --line: #2b3547;
  --brand: #5eead4;
  --brand-strong: #99f6e4;
  --accent: #f59e0b;
  --hero-bg: #0f172a;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.download-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.download-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

section[id] {
  scroll-margin-top: 90px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%);
  background: color-mix(in srgb, var(--bg), transparent 10%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand img,
.hero-icon {
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.section-band {
  background: var(--hero-bg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 56px);
  overflow: hidden;
}

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

.hero-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 780;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 720;
}

.button.primary {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #ffffff;
}

:root[data-theme="dark"] .button.primary {
  color: #082f2c;
}

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

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.quick-stats div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quick-stats dt {
  font-weight: 780;
}

.quick-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mockup-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-frame img {
  width: 100%;
  height: auto;
}

.section {
  padding: clamp(60px, 9vw, 110px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.feature-card p,
.steps p,
.install-copy p {
  color: var(--muted);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  border-top: 2px solid var(--brand);
  padding-top: 20px;
}

.steps span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.installer-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.install-copy {
  max-width: 660px;
}

.command-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.command-list code {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.9rem;
}

.source-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #111827;
  color: #f8fafc;
}

.source-section .eyebrow {
  color: #5eead4;
}

.source-section h2 {
  margin: 0;
}

.source-section p {
  max-width: 60ch;
  margin: 16px 0 0;
}

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

.source-section .button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .quick-stats,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .source-section {
    align-items: flex-start;
    flex-direction: column;
  }
}
