/* ===================== RESET ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--neutral-400);
  outline-offset: 3px;
}

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

/* ===================== LAYOUT ===================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.section {
  padding: var(--space-section) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

.section.on-soft {
  background: var(--surface-alt);
}

.section-head {
  max-width: 560px;
  margin-bottom: var(--space-block);
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
  line-height: 1.6;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(30px, 4.5vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 16px; font-weight: 600; }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
}

/* ===================== BADGE ===================== */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 9px 18px; font-size: 13px; }

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--neutral-400);
  background: var(--surface-alt);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===================== ICON BOX ===================== */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.icon-box-lg {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--neutral-400);
  color: var(--text);
  background: var(--surface-alt);
}

/* ===================== PAGE HEADER ===================== */
.page-header {
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
}

.page-header h1 {
  margin-top: 16px;
  margin-bottom: 12px;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
