/* =============================================================
   RESET.CSS — Tokens, reset, base typography
   Sanus Pharma · v20260525
   ============================================================= */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand colors */
  --primary:        #c9e7f8;
  --secondary:      #73C8FF;
  --deep:           #0D4F8B;
  --deep-2:         #0A3D6B;
  --soft-gray:      #EDF3F7;
  --white:          #FFFFFF;
  --dark:           #263238;

  /* Semantic */
  --bg:             #FFFFFF;
  --bg-2:           #EDF3F7;
  --bg-3:           #E3EFF8;
  --text:           #263238;
  --text-muted:     #607D8B;
  --text-light:     #90A4AE;
  --accent:         #0D4F8B;
  --accent-hover:   #0A3D6B;
  --accent-light:   #73C8FF;

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.72);
  --glass-bg-2:     rgba(237, 243, 247, 0.60);
  --glass-border:   rgba(201, 231, 248, 0.55);
  --glass-shadow:   0 8px 32px rgba(13, 79, 139, 0.08);
  --glass-shadow-lg: 0 24px 56px rgba(13, 79, 139, 0.12);

  /* Typography */
  --font-display:   'Sora', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:       0.5rem;
  --space-sm:       1rem;
  --space-md:       1.5rem;
  --space-lg:       2.5rem;
  --space-xl:       4rem;
  --space-2xl:      6rem;
  --section-pad:    clamp(5rem, 9vw, 8rem);

  /* Layout */
  --container:      1240px;
  --container-pad:  clamp(1.25rem, 5vw, 3rem);
  --radius-sm:      10px;
  --radius:         20px;
  --radius-lg:      32px;
  --radius-full:    9999px;

  /* Easing */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --t-fast:         0.18s var(--ease-out);
  --t-base:         0.35s var(--ease-out);
  --t-slow:         0.55s var(--ease-out);

  /* Nav */
  --nav-h:          72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  max-width: 100%;
}

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

img { height: auto; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-appearance: none;
}

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

ul, ol { list-style: none; }

p { text-wrap: pretty; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* ─── 3. TYPOGRAPHY SCALE ───────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
}

h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* ─── 4. FOCUS & ACCESSIBILITY ──────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus { top: 1rem; }

/* ─── 5. SELECTION ──────────────────────────────────────────── */
::selection {
  background: var(--secondary);
  color: var(--dark);
}

/* ─── 6. DEFENSIVE: prevent .reveal + data-split from hiding ── */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ─── 7. SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

/* ─── 8. REDUCED MOTION (only intrusive effects) ────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-float { animation: none; }
  .splash-bar-fill { animation: none; transition: none; }
}
