/* ============================================================
   Main Site Styles — v2 Professional
   Typography, layout, utilities.
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&display=swap');

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 78rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  /* background is set in glass.css via vivid radial gradients */
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  color: var(--text-primary);
}
p { margin: 0; line-height: 1.7; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }

.h-display { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: -0.04em; }
.h-hero    { font-size: clamp(2.2rem, 5.5vw, 4.2rem); letter-spacing: -0.035em; }
.h-section { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.03em; }
.h-card    { font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 600; }

.text-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
}
.text-body  { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; }
.text-small { font-size: 0.8125rem; color: var(--text-muted); }
.text-label { font-size: 0.75rem;  font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }

/* ===== Layout ===== */
.container { width: min(92%, var(--max-w)); margin-inline: auto; }
.section    { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ===== Nav active link ===== */
.nav-link { position: relative; }
.nav-link.active { opacity: 1 !important; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }

/* ===== Selection ===== */
::selection { background: rgba(79,126,247,0.15); }

/* ===== Utilities ===== */
.text-balance { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.no-overflow { overflow: hidden; }
