/* =====================================================
   WAVESENSE - Base, Typography, Layout
   ===================================================== */

/* Serif italic — loaded via Google Fonts in index.html */
/* Fallback stack defined in variables.css */

/* Serif italic emphasis — used inline in headlines */
.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Decorative waveform glyph */
.wave-glyph {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4em;
  color: var(--primary);
  opacity: 0.7;
  vertical-align: middle;
  line-height: 1;
}

/* Section divider symbol */
.section-divider {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--primary);
  opacity: 0.4;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  user-select: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s ease;
}
p { line-height: 1.65; color: var(--text-muted); transition: color 0.3s ease; }
a { color: var(--primary); }
img, svg { display: block; max-width: 100%; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 36px; }

/* Section */
.section { padding: 120px 0; background: var(--bg); transition: background 0.3s; }
.section--alt { background: var(--bg-alt); }

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}

/* Section header */
.section-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section__header { text-align: center; margin-bottom: 72px; }
.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.section__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Tag badge */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--accent-dim);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border: none;
  padding: 14px 30px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}
.btn-ghost {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 14px 30px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: var(--accent-dim); transform: translateY(-2px); }

/* Pill tags */
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }
.pill {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill--active {
  border-color: var(--border-strong);
  color: var(--primary);
  background: var(--accent-dim);
  font-weight: 600;
}

/* Tick / cross table markers */
.tick  { color: var(--success);  font-weight: 700; font-size: 15px; }
.cross { color: var(--danger);   font-weight: 700; font-size: 15px; }
.part  { color: var(--warning);  font-weight: 700; }
