:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --surface: #f5f5fa;
  --card: rgba(255, 255, 255, 0.88);
  --text: #141337;
  --muted: #696a80;
  --brand: #6242b1;
  --brand-strong: #4e318f;
  --brand-soft: #f3eeff;
  --outline: #e6e5eb;
  --shadow: 0 18px 60px rgba(43, 31, 82, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171426;
    --surface: #302a46;
    --card: rgba(36, 32, 57, 0.9);
    --text: #f4f2ff;
    --muted: #bbb6cf;
    --brand: #c4b1ff;
    --brand-strong: #d8cbff;
    --brand-soft: #372c53;
    --outline: #49425e;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }

html {
  font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 34rem),
    var(--canvas);
}

a { color: var(--brand-strong); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--outline) 75%, transparent);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 2rem, 70rem);
  min-height: 4.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 760;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: white;
  background: linear-gradient(145deg, #7851c7, #4e318f);
  box-shadow: 0 8px 24px rgba(98, 66, 177, 0.28);
}

.nav-links { display: flex; gap: 1.15rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }

main {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.hero { padding: 2rem 0 3rem; }
.brand-hero { padding-bottom: 4rem; }
.eyebrow {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0.75rem 0 1rem;
  max-width: 13ch;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.products {
  padding: 1rem 0 2rem;
}

.section-label {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.products h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem;
  border: 1px solid var(--outline);
  border-radius: 1.4rem;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.product-card:hover { transform: translateY(-3px); border-color: var(--brand); }

.product-icon {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  color: white;
  background: linear-gradient(145deg, #7851c7, #4e318f);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 28px rgba(98, 66, 177, 0.24);
}

.product-copy { display: grid; gap: 0.35rem; }
.product-copy strong { font-size: 1.25rem; }
.product-copy span { color: var(--muted); line-height: 1.55; }
.product-arrow { color: var(--brand); font-size: 1.5rem; }

.page-title h1 {
  max-width: none;
  font-size: clamp(2.35rem, 6vw, 3.8rem);
}

.updated { color: var(--muted); font-size: 0.92rem; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.link-card {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid var(--outline);
  border-radius: 1.4rem;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.link-card strong { font-size: 1.15rem; }
.link-card span { color: var(--muted); line-height: 1.5; }
.arrow { color: var(--brand); font-size: 1.35rem; }

.document {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--outline);
  border-radius: 1.75rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.document h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.document h2:first-child { margin-top: 0; }
.document p, .document li { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.document ul { padding-left: 1.25rem; }
.document strong { color: var(--text); }

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--brand-soft);
  color: var(--text);
  line-height: 1.6;
}

.support-card {
  margin: 1.5rem 0 2.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #6242b1, #4e318f);
  color: white;
}
.support-card a { color: white; font-weight: 750; }

footer {
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 680px) {
  .nav { align-items: flex-start; padding: 1rem 0; }
  .nav-links { gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
  main { padding-top: 3rem; }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 9rem; }
  .product-card { grid-template-columns: auto 1fr; }
  .product-arrow { display: none; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
