:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-elevated: #f2f2f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.1);
  --nav-bg: rgba(245, 245, 247, 0.78);
  --danger-bg: rgba(255, 45, 85, 0.07);
  --danger-border: rgba(255, 45, 85, 0.22);
  --danger-text: #c71b3e;
  --warn-bg: rgba(255, 149, 0, 0.08);
  --warn-border: rgba(255, 149, 0, 0.25);
  --warn-text: #b45309;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-elevated: #2c2c2e;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --nav-bg: rgba(0, 0, 0, 0.75);
    --danger-bg: rgba(255, 45, 85, 0.1);
    --danger-border: rgba(255, 45, 85, 0.28);
    --danger-text: #ff9eb2;
    --warn-bg: rgba(255, 159, 10, 0.1);
    --warn-border: rgba(255, 159, 10, 0.28);
    --warn-text: #fcd34d;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.container.narrow {
  max-width: 740px;
}

.hero {
  text-align: center;
  padding: 28px 0 56px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero p {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--surface-elevated);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.doc-header {
  margin-bottom: 32px;
}

.doc-header h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.doc-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.doc-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 28px;
  margin-bottom: 10px;
}

.doc-card h2:first-child {
  margin-top: 0;
}

.doc-card p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin-bottom: 12px;
}

.doc-card ul {
  margin: 8px 0 16px 20px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.doc-card li {
  margin-bottom: 8px;
}

.doc-card strong {
  color: var(--text);
}

.callout {
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.callout.health {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.callout.warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-item p {
  margin-bottom: 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 44px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 12px 16px;
  }
  .nav-links {
    gap: 14px;
    font-size: 13px;
  }
  .container {
    padding: 36px 16px 64px;
  }
  .doc-card {
    padding: 22px;
  }
}
