@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Variables — Light theme (default) ===== */
:root {
  --bg:              #dde8ed;
  --bg-elev:         #e8f2f7;
  --bg-elev-2:       #d0dde4;
  --text:            #0c1f2c;
  --text-muted:      #3d5c6b;
  --turquoise:       #0d9488;
  --turquoise-dim:   #0f766e;
  --turquoise-glow:  rgba(13,148,136,0.12);
  --turquoise-border:rgba(13,148,136,0.22);
  --header-scrolled: rgba(221,232,237,0.97);
  --chrome-bg:       #0c1f2c;
  --chrome-bg-elev:  #162736;
  --chrome-text:     #e6f1f5;
  --chrome-muted:    #9fb3bd;
  --chrome-scrolled: rgba(12,31,44,0.97);
  --danger:          #dc2626;
  --radius-sm:       8px;
  --radius:          14px;
  --radius-lg:       22px;
  --shadow-glow:     0 0 0 1px rgba(13,148,136,0.15), 0 8px 32px -8px rgba(13,148,136,0.18);
  --card-shadow:     0 1px 4px rgba(13,148,136,0.08), 0 4px 20px rgba(13,148,136,0.06);
  --transition:      0.25s ease;
  --container-max:   1200px;
  --container-px:    clamp(1rem, 4vw, 2rem);
}

/* ===== Dark theme ===== */
[data-theme="dark"] {
  --bg:              #0b1620;
  --bg-elev:         #12222e;
  --bg-elev-2:       #1a2f3e;
  --text:            #e6f1f5;
  --text-muted:      #9fb3bd;
  --turquoise:       #30e3ca;
  --turquoise-dim:   #11c5ad;
  --turquoise-glow:  rgba(48,227,202,0.1);
  --turquoise-border:rgba(48,227,202,0.15);
  --header-scrolled: rgba(11,22,32,0.93);
  --chrome-bg:       #dde8ed;
  --chrome-bg-elev:  #e8f2f7;
  --chrome-text:     #0c1f2c;
  --chrome-muted:    #3d5c6b;
  --chrome-scrolled: rgba(221,232,237,0.97);
  --danger:          #ff6b6b;
  --shadow-glow:     0 0 0 1px rgba(48,227,202,0.12), 0 10px 40px -10px rgba(48,227,202,0.15);
  --card-shadow:     0 1px 4px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--turquoise-border) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a { color: var(--turquoise); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--turquoise-dim); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--text-muted); }

/* ===== Utilities ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--text); }
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
