

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  height: -webkit-fill-available;
}

body {
  background: var(--bg-gradient);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  transition: background 0.4s var(--ease-smooth), background-color 0.4s var(--ease-smooth), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

body.scroll-locked {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: var(--z-toast);
  padding: 12px 20px;
  background: var(--primary);
  color: var(--text-on-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: max(16px, env(safe-area-inset-top, 16px));
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

::selection {
  background-color: var(--primary);
  color: var(--text-on-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

ul, ol {
  list-style: none;
}

.container,
.container-sm,
section,
header,
footer,
article,
aside {
  min-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--font-sans));
  color: var(--text);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 strong, h1 b, h1 em {
  font-weight: 400;
  font-style: normal;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

h2 strong, h2 b, h2 em {
  font-weight: 400;
  font-style: normal;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

h4 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

h5 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.005em;
}

h6 {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

p {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

.container-sm {
  width: 100%;
  max-width: var(--max-width-text);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

section {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px) 0;
  overflow: hidden;
}

.sec-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(18px, 2.5vw, 32px);
  padding: 0 8px;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sec-tag svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  stroke: var(--primary);
}

.sec-header h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text);
  text-wrap: balance;
}

.sec-header p {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  z-index: calc(var(--z-toast) + 10);
  pointer-events: none;
  transition: width 0.08s linear;
}
