:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-strong: #eef6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe7f3;
  --blue: #0969da;
  --blue-dark: #0758b8;
  --blue-soft: #e8f2ff;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  text-rendering: geometricPrecision;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 2px 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px clamp(18px, 5vw, 72px);
  backdrop-filter: blur(14px);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 260px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 9px 10px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

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

.nav a:hover {
  background: var(--surface);
}

.nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 650;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9px;
  font-weight: 650;
}

.nav-cta {
  border: 1px solid var(--line);
  color: var(--blue);
  padding: 0 15px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 32px;
  align-items: center;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px) 34px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.hero-text,
.section-text,
.download-section p,
.page-hero p,
.legal-page p,
.feature-card p,
.muted {
  color: var(--muted);
  line-height: 1.58;
}

.hero-text {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
}

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

.button {
  border: 1px solid transparent;
  padding: 0 18px;
  box-shadow: none;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.button.large {
  min-width: 190px;
  min-height: 50px;
}

.quick-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 620px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.quick-note strong {
  color: var(--text);
  white-space: nowrap;
}

.hero-panel,
.feature-card,
.update-card,
.download-section,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: center;
  padding: 22px;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #16a34a;
}

.hero-panel h2 {
  margin: 16px 0 8px;
  color: var(--blue);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 13px;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.panel-download {
  width: 100%;
  margin-top: 16px;
}

.section,
.content-page,
.legal-page {
  padding: 40px clamp(18px, 5vw, 72px);
}

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

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

.feature-card {
  padding: 18px;
}

.icon-box {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 16px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 26px;
  align-items: center;
}

.update-card {
  padding: 20px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.row span {
  color: var(--muted);
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px clamp(18px, 5vw, 72px) 48px;
  padding: 24px;
  background: var(--surface-strong);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px clamp(18px, 5vw, 72px);
  font-size: 14px;
}

.footer div {
  display: flex;
  gap: 16px;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.page-hero h1,
.legal-page h1 {
  font-size: clamp(38px, 5vw, 58px);
}

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

.legal-page {
  max-width: 880px;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 23px;
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a,
.contact-grid a {
  color: var(--blue);
  font-weight: 650;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-main {
    width: 100%;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .download-section,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .card-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
