/* SAUTER — Design Tokens
 * Baseado no Brand Guidelines 2026/2027
 * Personalidade: Sóbrio e premium — roxo escuro dominante, verde lima como acento
 */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@200,300,400,500,600,700&display=swap');

:root {
  /* === PALETA OFICIAL === */
  --rainbow-indigo: #6911DF;   /* Cor principal — vibrante */
  --purple-blue:    #372560;   /* Roxo profundo (suporte) */
  --black-rock:     #15032D;   /* Quase-preto roxo */
  --ebony-clay:     #27233B;   /* Cinza-roxo escuro */
  --energizing:     #BAEF26;   /* Verde lima — acento */
  --bright-grey:    #EBE9EF;
  --wild-sand:      #F4F4F4;
  --white:          #FFFFFF;
  --black:          #050108;

  /* === SEMÂNTICOS — TEMA CLARO (default) === */
  --bg:           var(--white);
  --bg-alt:       var(--wild-sand);
  --bg-soft:      var(--bright-grey);
  --bg-deep:      var(--black-rock);
  --bg-deeper:    #0A011C;

  --fg:           var(--black-rock);
  --fg-muted:     #5A4F77;
  --fg-faint:     #8A809E;
  --fg-on-deep:   var(--white);

  --rule:         #E2DFE9;
  --rule-strong:  #C9C3D6;

  --primary:      var(--purple-blue);     /* Roxo escuro dominante (sóbrio) */
  --primary-hi:   var(--rainbow-indigo);  /* Roxo vibrante para CTAs e detalhes */
  --accent:       var(--energizing);

  /* === TIPOGRAFIA === */
  --font-sans: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  /* Escala — display first */
  --fs-mega:    clamp(72px, 11vw, 180px);
  --fs-display: clamp(56px, 7vw, 112px);
  --fs-h1:      clamp(40px, 5vw, 72px);
  --fs-h2:      clamp(32px, 3.6vw, 56px);
  --fs-h3:      clamp(24px, 2.4vw, 36px);
  --fs-h4:      20px;
  --fs-body:    17px;
  --fs-small:   14px;
  --fs-micro:   12px;

  --lh-tight:   0.92;
  --lh-display: 0.98;
  --lh-heading: 1.08;
  --lh-body:    1.55;

  /* Compressão sugerida pelo brand book */
  --tracking-display: -0.02em;
  --tracking-title:   0;
  --tracking-sub:     0.02em;   /* +20 (medium) */
  --tracking-body:    0.014em;  /* +14 (light) */
  --tracking-eyebrow: 0.18em;

  /* === ESPAÇAMENTO === */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Container */
  --container: 1440px;
  --gutter: clamp(24px, 4vw, 64px);

  /* === MOTION === */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med:  360ms;
  --t-slow: 720ms;

  /* === RAIOS === */
  --r-1: 4px;
  --r-2: 10px;
  --r-3: 18px;
  --r-pill: 999px;
}

/* === TEMA ESCURO === */
[data-theme="dark"] {
  --bg:         var(--black-rock);
  --bg-alt:     #1B0A38;
  --bg-soft:    var(--ebony-clay);
  --bg-deep:    var(--black);
  --bg-deeper:  #000;

  --fg:         var(--white);
  --fg-muted:   #B6ADCC;
  --fg-faint:   #7E7397;
  --fg-on-deep: var(--white);

  --rule:        #2D1F4D;
  --rule-strong: #4A3A6F;

  --primary:    var(--rainbow-indigo);
  --primary-hi: var(--energizing);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 300;
  letter-spacing: var(--tracking-body);
  color: var(--fg);
  background: var(--bg);
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--black-rock); }

/* === TIPOGRAFIA UTIL === */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-size: var(--fs-display);
  font-weight: 400;          /* "Título em General Sans Regular" — brand book */
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.h-display strong, .h-display em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-hi);
}
.h-mega {
  font-size: var(--fs-mega);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}
.h-1 { font-size: var(--fs-h1); font-weight: 400; line-height: var(--lh-heading); letter-spacing: -0.018em; text-wrap: balance; }
.h-2 { font-size: var(--fs-h2); font-weight: 400; line-height: var(--lh-heading); letter-spacing: -0.012em; text-wrap: balance; }
.h-3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }

/* Destaque em títulos — assinatura visual da marca */
.t-em,
.h-display em,
.h-1 em,
.h-2 em,
.h-3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--primary-hi);
}

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--s-10); }
.section-sm { padding-block: var(--s-9); }

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn .arrow {
  width: 18px; height: 18px;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: var(--primary-hi); color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--black-rock);
}
.btn-accent:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--rule-strong);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

/* === DOT (assinatura da marca) === */
.dot {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
  margin-left: 0.05em;
}

/* === REVEAL ON SCROLL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* === MARQUEE === */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
