:root {
  color-scheme: light;
  --color-primary: #e11d48;
  --color-primary-dark: #be123c;
  --color-primary-soft: #fff1f2;
  --color-secondary: #2563eb;
  --surface-page: #f7f7fb;
  --surface-base: #ffffff;
  --surface-muted: #f3f4f6;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --text-primary: #1f2937;
  --text-strong: #111827;
  --text-muted: #6b7280;
  --border-default: #e5e7eb;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glass: 0 8px 32px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.10);
  --shadow-color: 0 10px 28px rgba(225, 29, 72, 0.26);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--surface-page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 8% 8%, rgba(225, 29, 72, 0.08), transparent 30rem),
    var(--surface-page);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-secondary);
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  border-radius: 4px;
  outline: none;
  box-shadow: var(--focus);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
}

.topbar-inner,
.main,
.footer-inner {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 68px;
  padding: 11px 0 12px;
  display: grid;
  gap: 10px;
}

.brand {
  width: max-content;
  color: var(--text-strong);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-decoration: none;
}

.nav {
  margin: 0 -4px;
  padding: 2px 4px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav a {
  min-height: 38px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.nav .nav-cta {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-color);
}

.nav .nav-cta:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.main {
  flex: 1;
  padding: 22px 0 34px;
}

.hero {
  display: grid;
  gap: 16px;
}

.panel,
.document {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--surface-base);
  box-shadow: var(--shadow-glass);
}

.panel,
.document {
  padding: 24px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(225, 29, 72, 0.07);
  border-radius: 50%;
  right: -92px;
  top: -92px;
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary);
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-family: "Poppins", system-ui, sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 11vw, 48px);
  font-weight: 800;
  line-height: 1.04;
}

h2 {
  margin: 30px 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

.lead {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.5;
}

.actions {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.button {
  min-height: 52px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  min-height: 64px;
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-color);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

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

.button.ghost {
  border: 1.5px solid var(--color-primary);
  background: #ffffff;
  color: var(--color-primary-dark);
}

.side {
  border-color: #111827;
  background: #111827;
  color: #d1d5db;
  box-shadow: var(--shadow-md);
}

.side h2 {
  margin-top: 0;
  color: #ffffff;
}

.side li::marker {
  color: var(--color-primary);
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: #881337;
  font-size: 13px;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-size: 0.92em;
}

.footer {
  border-top: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  min-height: 92px;
  padding: 20px 0;
  display: grid;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner > span {
  color: var(--text-strong);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.document h1 {
  font-size: clamp(30px, 9vw, 42px);
}

.document .updated {
  margin-bottom: 28px;
  color: var(--text-muted);
}

@media (min-width: 840px) {
  .topbar-inner {
    min-height: 76px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .nav {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .main {
    padding: 48px 0 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 20px;
    align-items: start;
  }

  .panel,
  .document {
    padding: 36px;
  }

  .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .button.primary {
    min-width: 270px;
  }

  .footer-inner {
    min-height: 82px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

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