/* ============================================
   OIKO AUTOMATION — BASE & TIPOGRAFIA
   reset, corpo, classes tipográficas globais
   ============================================ */

/* ─── RESET ───────────────────────────────── */

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--body-m);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-m);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ─── CLASSES TIPOGRÁFICAS ────────────────── */

.display-xl {
  font-size: var(--display-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.display-l {
  font-size: var(--display-l);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: var(--ls-display);
}

.heading-1 {
  font-size: var(--heading-1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
}

.heading-2 {
  font-size: var(--heading-2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.heading-3 {
  font-size: var(--heading-3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}

.heading-4 {
  font-size: var(--heading-4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
}

.body-xl {
  font-size: var(--body-xl);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-xl);
  letter-spacing: -0.01em;
}

.body-l {
  font-size: var(--body-l);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-l);
  letter-spacing: -0.005em;
}

.body-m {
  font-size: var(--body-m);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-m);
  letter-spacing: -0.003em;
}

.body-s {
  font-size: var(--body-s);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body-s);
  letter-spacing: -0.002em;
}

.label-text {
  font-size: var(--label);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.caption {
  font-size: var(--caption);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

/* ─── CORES UTILITÁRIAS ───────────────────── */

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--color-primary); }
.text-accent-soft { color: var(--color-accent-soft); }

/* ─── RESPONSIVIDADE TIPOGRÁFICA ──────────── */

@media (max-width: 768px) {
  .display-xl {
    font-size: 42px;
    line-height: 1.08;
  }

  .display-l {
    font-size: 38px;
    line-height: 1.10;
  }

  .heading-1 {
    font-size: 36px;
    line-height: 1.10;
  }

  .heading-2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .heading-3 {
    font-size: 24px;
    line-height: 1.20;
  }

  .heading-4 {
    font-size: 20px;
    line-height: 1.25;
  }

  .body-xl {
    font-size: 18px;
    line-height: 1.65;
  }

  .body-m {
    font-size: 15px;
    line-height: 1.70;
  }
}

/* ─── ANIMAÇÕES DE REVEAL ─────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.60s var(--ease-out), transform 0.60s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ─── SELEÇÃO ─────────────────────────────── */

::selection {
  background: rgba(207, 255, 4, 0.22);
  color: var(--bg-primary);
}

/* ─── SCROLLBAR ───────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
