/* ============================================================
   Evolvra Website — Base
   Reset · Typography · Layout utilities · Animations
   ============================================================ */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ev-font);
  background: var(--ev-bg-page);
  color: var(--ev-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--ev-red); color: white; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; }

/* ── Layout containers ────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Type scale ───────────────────────────────────────────── */
.t-display {
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.038em;
}
.t-h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.t-h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.t-h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.t-lead {
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.t-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ev-text-secondary);
}
.t-small {
  font-size: 13px;
  line-height: 1.5;
}
.t-mono {
  font-family: var(--ev-font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.t-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: var(--ev-font-mono);
}

/* ── Section tag (red line + label) ──────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ev-red);
  font-family: var(--ev-font-mono);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ev-red);
  flex-shrink: 0;
}
.on-dark .section-tag       { color: var(--ev-blue); }
.on-dark .section-tag::before { background: var(--ev-blue); }

/* ── Brand gradient hairline ─────────────────────────────── */
.ev-gradient-rule {
  height: 1.5px;
  background: var(--ev-gradient-h);
  border-radius: 1px;
  opacity: 0.30;
  border: none;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--ev-radius-sm);
  transition: all 0.2s var(--ev-ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-red {
  background: var(--ev-red);
  color: white;
  box-shadow: 0 2px 10px rgba(194, 48, 80, 0.22);
}
.btn-red:hover {
  background: var(--ev-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(194, 48, 80, 0.30);
}
.btn-ghost {
  color: var(--ev-text-secondary);
  border-color: var(--ev-border-default);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ev-bg-sunken);
  color: var(--ev-text-primary);
}
.btn-ghost-dark {
  color: var(--ev-text-on-dark-2);
  border-color: var(--ev-border-on-dark-2);
  background: transparent;
}
.btn-ghost-dark:hover {
  background: rgba(255, 248, 235, 0.07);
  color: var(--ev-text-on-dark);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ev-ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ev-ease-out), transform 0.75s var(--ev-ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ev-ease-out), transform 0.65s var(--ev-ease-out);
}
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.11s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.39s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .container, .container-narrow, .container-wide { padding: 0 20px; }
}
@media (max-width: 600px) {
  .container, .container-narrow, .container-wide { padding: 0 16px; }
}
