:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5d6872;
  --line: #d7dee2;
  --panel: #ffffff;
  --green: #166b4f;
  --blue: #1f6feb;
  --red: #c2410c;
  --violet: #6d5dfc;
  --shadow: 0 22px 60px rgba(16, 24, 32, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f8f6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(31, 111, 235, .10), transparent 34%),
    linear-gradient(220deg, rgba(22, 107, 79, .14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #edf2f3 100%);
  z-index: -1;
}
a, button { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero-copy, .product-shot, .portal-card, .download-card, .settings-box, .instruction-panel {
  min-width: 0;
  max-width: 100%;
}
.home-page, .tools-page, .settings-page {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}
.home-hero, .tools-hero {
  padding: 7vh 0 38px;
  max-width: 900px;
}
.hero {
  min-height: 64vh;
  display: flex;
  align-items: center;
  padding: 56px 0 28px;
}
.hero.compact { min-height: 50vh; }
.hero-inner, .download-band {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: 0;
}
.settings-page h1, .section-head h2, .instruction-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
}
.hero-links, .card-actions, .settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.secondary-action, .download-button, .copy-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
}
.download-button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 32, .18);
}
.secondary-action, .copy-button {
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  border-color: var(--line);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.portal-grid.tools {
  margin-top: 12px;
}
.portal-card {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(16, 24, 32, .08);
  color: var(--ink);
  text-decoration: none;
}
.portal-card strong {
  display: block;
  margin-top: auto;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: .96;
}
.portal-card span:last-child {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.58;
}
.portal-grid.tools .portal-card {
  min-height: 360px;
  gap: 18px;
}
.portal-grid.tools .portal-card strong {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.portal-grid.tools .portal-card span:last-of-type {
  margin-top: 0;
}
.portal-grid.tools .download-button {
  width: fit-content;
  margin-top: auto;
}
.portal-kicker {
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.product-shot { margin: 0; }
.product-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(16, 24, 32, .10);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}
.product-shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .92rem;
}
.download-band { padding: 18px 0 64px; }
.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}
.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.download-card {
  min-height: 545px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(16, 24, 32, .08);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.os-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}
.windows-icon { background: var(--blue); }
.mac-icon { background: var(--ink); }
.linux-icon { background: var(--red); }
.os-icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}
.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  background: #fff;
}
.download-card h3 {
  margin: 26px 0 12px;
  font-size: 1.55rem;
}
.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}
.steps {
  margin: 20px 0 0;
  padding-left: 1.25rem;
  color: var(--ink);
  line-height: 1.58;
}
.steps li + li { margin-top: 9px; }
.steps.wide {
  max-width: 760px;
  margin-bottom: 32px;
}
.card-actions {
  margin-top: auto;
  padding-top: 24px;
}
.card-actions .download-button, .card-actions .secondary-action {
  flex: 1 1 180px;
}
code {
  color: var(--muted);
  font-size: .92rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.settings-shell {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.settings-intro p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.settings-box, .instruction-panel {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(16, 24, 32, .08);
  overflow: hidden;
}
.setting-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.setting-row span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.setting-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.settings-actions {
  margin-top: 0;
  padding: 18px 20px;
}
.instruction-panel {
  margin-top: 18px;
  padding: 26px;
}
.instruction-panel h2 + .steps { margin-top: 16px; }
.instruction-panel h2:not(:first-child) { margin-top: 32px; }
@media (max-width: 940px) {
  .hero { min-height: auto; padding-top: 34px; }
  .home-page, .tools-page, .settings-page, .hero-inner, .download-band {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }
  .hero-inner, .downloads, .settings-shell, .portal-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 30px; }
  .section-head { display: block; }
  .lead { font-size: 1.08rem; }
  .download-card { min-height: auto; }
  .card-top { min-width: 0; }
  .badge { max-width: calc(100% - 72px); }
  .card-actions .download-button, .card-actions .secondary-action { flex-basis: 100%; }
  .setting-row { grid-template-columns: 1fr; gap: 8px; }
  h1 { font-size: clamp(2.85rem, 13vw, 4.4rem); }
  .portal-grid.tools .download-button { width: 100%; }
}
