/* ─────────────────────────────────────────────────────────────────
   2SAFE · DESIGN TOKENS
   Base sistema: Stripe/Mercury feel — branco dominante, roxo pontual
───────────────────────────────────────────────────────────────── */

:root {
  /* Brand · Purple scale (base #7A5BEE — Roxo 2Safe) */
  --purple-50:  #F4F1FE;
  --purple-100: #EAE4FD;
  --purple-200: #D4C8FB;
  --purple-300: #B9A5F7;
  --purple-400: #9B82F3;
  --purple-500: #8970F0;
  --purple-600: #7A5BEE;  /* primary */
  --purple-700: #5C3FD9;
  --purple-800: #442BA7;
  --purple-900: #2C1A6D;
  --purple-950: #170B43;

  /* Accent · complementary (warm, Stone/Cora-ish) */
  --accent-amber: #F59E0B;
  --accent-green: #10B981;
  --accent-red:   #EF4444;

  /* Neutrals · warm gray */
  --n-0:   #FFFFFF;
  --n-25:  #FCFCFD;
  --n-50:  #F9F9FB;
  --n-100: #F2F2F5;
  --n-200: #E5E5EB;
  --n-300: #D1D1DB;
  --n-400: #A1A1AF;
  --n-500: #71717F;
  --n-600: #52525C;
  --n-700: #3F3F47;
  --n-800: #27272E;
  --n-900: #18181D;
  --n-950: #0B0B0E;

  /* Semantic */
  --bg:            var(--n-0);
  --bg-subtle:     var(--n-50);
  --bg-muted:      var(--n-100);
  --bg-inverse:    var(--n-950);
  --bg-brand:      var(--purple-600);
  --bg-brand-soft: var(--purple-50);

  --fg:            var(--n-900);
  --fg-muted:      var(--n-600);
  --fg-subtle:     var(--n-500);
  --fg-inverse:    var(--n-0);
  --fg-brand:      var(--purple-600);

  --border:        var(--n-200);
  --border-strong: var(--n-300);
  --border-brand:  var(--purple-200);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(15,10,30,.04);
  --sh-sm: 0 1px 3px rgba(15,10,30,.06), 0 1px 2px rgba(15,10,30,.04);
  --sh-md: 0 4px 12px rgba(15,10,30,.06), 0 2px 4px rgba(15,10,30,.04);
  --sh-lg: 0 12px 32px rgba(15,10,30,.08), 0 4px 8px rgba(15,10,30,.04);
  --sh-xl: 0 24px 64px rgba(15,10,30,.12), 0 8px 16px rgba(15,10,30,.06);
  --sh-brand: 0 12px 32px rgba(122,91,238,.20), 0 4px 8px rgba(122,91,238,.12);
  --sh-brand-lg: 0 24px 48px rgba(122,91,238,.28), 0 8px 16px rgba(122,91,238,.14);

  /* Type · Montserrat (brand) + JetBrains Mono para dados tabulares */
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing (4-based) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --s-32: 128px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;

  /* Folder-vibe additions: purple-dominant gradients e cores de seção */
  --bg-folder:        linear-gradient(160deg, #7A5BEE 0%, #5C3FD9 55%, #442BA7 100%);
  --bg-folder-soft:   linear-gradient(160deg, #B9A5F7 0%, #9B82F3 55%, #7A5BEE 100%);
  --bg-folder-deep:   linear-gradient(180deg, #442BA7 0%, #2C1A6D 100%);
  --bg-folder-glass:  rgba(255,255,255,0.10);
  --bg-folder-glass-strong: rgba(255,255,255,0.18);
  --border-folder:    rgba(255,255,255,0.18);
  --whatsapp-green:   #25D366;
  --whatsapp-green-dark: #128C7E;
}

/* ─────────── Base reset ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ─────────── Type scale ─────────── */
/* Brand treatment: Black (900) em destaque, Regular (400) no restante, per brandbook 2Safe */
.display-1 { font-size: 72px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; }
.display-2 { font-size: 40px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 400; }
.h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
.h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.h4 { font-size: 20px; line-height: 1.3;  letter-spacing: -0.01em;  font-weight: 600; }
.lead { font-size: 20px; line-height: 1.5; color: var(--fg-muted); font-weight: 400; }
.body { font-size: 16px; line-height: 1.6; color: var(--fg-muted); }
.small { font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.xs { font-size: 12px; line-height: 1.4; color: var(--fg-subtle); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-brand);
  font-weight: 500;
}

@media (max-width: 768px) {
  .display-1 { font-size: 44px; }
  .display-2 { font-size: 36px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 26px; }
  .h3 { font-size: 20px; }
  .lead { font-size: 17px; }
}

/* ─────────── Container ─────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ─────────── Utilities ─────────── */
.mono { font-family: var(--font-mono); }
.text-brand { color: var(--fg-brand); }
.text-muted { color: var(--fg-muted); }

/* ─────────── Scroll reveal ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

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

/* ─────────── Section ─────────── */
section { position: relative; }
.section-pad {
  padding: var(--s-24) 0;
}
.section-pad-lg {
  padding: var(--s-32) 0;
}
@media (max-width: 768px) {
  .section-pad { padding: var(--s-16) 0; }
  .section-pad-lg { padding: var(--s-20) 0; }
}
