:root {
  color-scheme: light;
  --bg: #fcfaf9;
  --surface: #ffffff;
  --ink: #12131a;
  --muted: #667085;
  --pink: #d9396b;
  --pink-soft: #fff1f5;
  --line: rgba(18, 19, 26, 0.1);
  --shadow: 0 18px 52px rgba(54, 45, 72, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff8fa 0%, #fff 42%, #fbfaf9 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(18, 19, 26, 0.08);
  background: rgba(252, 250, 249, 0.9);
  backdrop-filter: blur(18px);
}

.nav,
.wrap,
.footer-inner {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(18, 19, 26, 0.14);
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.hero {
  padding: 78px 0 36px;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 6vw, 62px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.58;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.content {
  padding: 36px 0 92px;
}

.grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(54, 45, 72, 0.06);
}

.panel + .panel {
  margin-top: 18px;
}

.panel h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.1;
}

.panel h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel ul,
.panel ol {
  margin: 0 0 0 20px;
  padding: 0;
}

.panel li + li {
  margin-top: 8px;
}

.callout {
  border: 1px solid rgba(217, 57, 107, 0.2);
  border-radius: 12px;
  padding: 18px;
  background: var(--pink-soft);
}

.callout strong {
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav,
  .wrap,
  .footer-inner {
    width: min(100% - 28px, 1060px);
  }

  .button {
    width: 100%;
  }
}
