:root {
  color-scheme: dark;
  --page: #101111;
  --surface: #171818;
  --panel: #1d1f1f;
  --panel-raised: #242626;
  --border: #393c3c;
  --text: #f2f3f3;
  --muted: #b4b8b8;
  --quiet: #858a8a;
  --accent: #c8cccc;
  --font-ui: "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-header {
  width: min(1120px, calc(100% - 48px));
  min-height: 82px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  order: 2;
  white-space: nowrap;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark-image { width: 30px; height: 30px; flex: none; border-radius: 6px; object-fit: cover; }
.brand-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}
.header-nav a:hover, .footer a:hover { color: var(--text); }
.install-button, .hero-button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--button-ink, #101111);
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.install-button { order: 3; }
.install-button:hover, .hero-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero {
  width: min(1120px, calc(100% - 48px));
  min-height: 520px;
  margin: auto;
  padding: 88px 0 75px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr);
  align-items: center;
  gap: clamp(32px, 8vw, 110px);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .99;
}
.hero-copy {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  font-size: 13px;
}
.secondary-button:hover { color: var(--text); }
.product-card {
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.product-card-mark { width: 64px; height: 64px; color: var(--accent); }
.product-card-title {
  margin: 24px 0 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}
.product-card-note { margin: 0; color: var(--quiet); font-size: 12px; }
.product-card-rule { width: 42px; height: 2px; margin-top: 26px; background: var(--accent); }
.content-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.section-inner { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 68px 0; }
.section-heading {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.035em;
}
.section-copy { max-width: 700px; margin-bottom: 30px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--page);
}
.feature h3 { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }
.platforms { display: flex; flex-wrap: wrap; gap: 9px; }
.platform {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}
.platform.available { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }
.footer {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--quiet);
  font-size: 11px;
}
.footer a { color: var(--muted); }
.dialog {
  width: min(440px, calc(100% - 30px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 100px #0009;
}
.dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
.dialog-inner { padding: 25px; }
.dialog-top { display: flex; justify-content: space-between; gap: 16px; }
.dialog-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; }
.dialog-note { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.download-list { display: grid; gap: 9px; }
.download-link, .download-unavailable {
  min-height: 55px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--page);
  font-size: 13px;
}
.download-link:hover { border-color: var(--accent); }
.download-link small, .download-unavailable small { display: block; color: var(--quiet); font-size: 11px; }
.download-unavailable { color: var(--quiet); cursor: not-allowed; }
.notice {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--page);
  color: var(--muted);
  font-size: 11px;
}
.catalog { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 60px 0; }
.catalog h1 { font-size: clamp(42px, 7vw, 76px); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card {
  min-height: 190px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.catalog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.catalog-card h2 { margin: 0 0 7px; font-family: var(--font-display); font-size: 23px; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-card span { margin-top: 18px; color: var(--accent); font-size: 12px; font-weight: 700; }
body[data-brand="litrus"] {
  color-scheme: dark;
  --page: #020202; --surface: #121212; --panel: #1e1e1e; --panel-raised: #2a2a2a;
  --border: #333; --text: #999; --muted: #777; --quiet: #666; --accent: #b87333;
  --font-ui: "Share Tech Mono", Consolas, monospace;
  --font-display: Orbitron, "Segoe UI", sans-serif;
  --button-ink: #080808;
}
body[data-brand="vertex"] {
  color-scheme: dark;
  --page: #090909; --surface: #111; --panel: #171717; --panel-raised: #202020;
  --border: #303030; --text: #fff; --muted: #a0a0a0; --quiet: #737373; --accent: #fff;
  --font-ui: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
body[data-brand="chesser"] {
  color-scheme: light;
  --page: #f9f9f9; --surface: #fff; --panel: #fff; --panel-raised: #f4f4f4;
  --border: #dedede; --text: #090909; --muted: #777; --quiet: #777; --accent: #050505;
  --font-ui: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --button-ink: #fff;
}
body[data-brand="astrid"] {
  color-scheme: dark;
  --page: #21252b; --surface: #252930; --panel: #2c3037; --panel-raised: #343840;
  --border: #40444c; --text: #f2f2f2; --muted: #b8b8b8; --quiet: #9298a0; --accent: #c99b3d;
  --font-ui: "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}
body[data-brand="matter"] {
  color-scheme: dark;
  --page: #101111; --surface: #171818; --panel: #1d1f1f; --panel-raised: #242626;
  --border: #393c3c; --text: #f2f3f3; --muted: #b4b8b8; --quiet: #858a8a; --accent: #69d391;
  --font-ui: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
body[data-brand="pipeline"] {
  color-scheme: dark;
  --page: #0b1017; --surface: #0e141d; --panel: #111a24; --panel-raised: #151f2b;
  --border: #25313e; --text: #e9f0f5; --muted: #91a0ad; --quiet: #657482; --accent: #9ae6c0;
  --font-ui: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); min-height: 70px; gap: 11px; }
  .header-nav { display: none; }
  .brand { gap: 7px; }
  .brand-name { font-size: 12px; letter-spacing: .06em; }
  .brand-mark { width: 25px; height: 25px; }
  .install-button { min-height: 38px; padding: 0 11px; font-size: 12px; }
  .hero { width: calc(100% - 36px); min-height: auto; padding: 66px 0 52px; grid-template-columns: 1fr; gap: 34px; }
  h1 { font-size: clamp(46px, 13vw, 72px); }
  .product-card { min-height: 190px; }
  .section-inner, .catalog { width: calc(100% - 36px); padding: 48px 0; }
  .features, .catalog-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .footer { width: calc(100% - 36px); flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
