/* ============================================================
   Zênit — base.css (AGENTE 1)
   Design system: tokens, reset, tipografia e classes globais.
   Motion-driven premium dark · laranja como único acento.
   ============================================================ */

/* ---------- Reset moderno enxuto ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- Tokens :root (OBRIGATÓRIO — idêntico ao PLANO) ---------- */
:root {
  --bg: #0A0A0B;            /* nunca #000 puro */
  --bg-elev: #101014;
  --surface: #16161B;
  --surface-2: #1E1E24;
  --border: rgba(255,255,255,0.08);
  --text: #F7F7F5;
  --text-muted: #A3A3AB;
  --accent: #F39200;        /* laranja do logo — ÚNICO acento */
  --accent-hover: #FFA71F;
  --accent-soft: rgba(243,146,0,0.12);
  --accent-glow: rgba(243,146,0,0.25);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --section-y: clamp(80px, 11vw, 140px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
}

/* ---------- Body & tipografia base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
}

h1 {
  font-weight: 700;
  line-height: 1.05;
}

h2 {
  font-weight: 600;
  line-height: 1.1;
}

h3 {
  font-weight: 600;
  line-height: 1.2;
}

/* Seleção de texto em laranja */
::selection {
  background: var(--accent);
  color: #0A0A0B;
}

/* Foco visível global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Cursor pointer em tudo clicável */
button,
a,
summary,
[role="button"] {
  cursor: pointer;
}

/* ---------- Layout: container & section ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-y);
}

.section--elev {
  background: var(--bg-elev);
}

/* ---------- Cabeçalho de seção ---------- */
.section-head {
  margin-bottom: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 12px;
  background: var(--accent);
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
}

.section-head .lead {
  margin-top: 18px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  min-height: 52px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent);
  color: #0A0A0B;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.card:hover {
  border-color: rgba(243,146,0,0.35);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

/* ---------- Icon box ---------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

/* ---------- Grids responsivos (mobile-first) ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

/* base mobile = 1 coluna */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ≥640px: grid-4 vira 2 colunas */
@media (min-width: 641px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ≥900px: grid-2 e grid-3 expandem */
@media (min-width: 901px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ≥1024px: grid-4 completa em 4 colunas */
@media (min-width: 1025px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utilitários ---------- */
.accent {
  color: var(--accent);
}

/* pill / chip pequeno */
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ---------- Marquee (faixa infinita CSS puro) ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cursor glow (elemento criado pelo JS) ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243,146,0,0.06) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  z-index: 9999;
  will-change: transform;
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- Acessibilidade & motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Exceção: a faixa de serviços continua rolando (carrossel infinito),
     mesmo sob movimento reduzido — é o comportamento desejado da marca.
     Especificidade de .marquee-track vence o seletor universal acima. */
  .marquee-track {
    animation-name: marquee-scroll !important;
    animation-duration: 28s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}
