/* ================================================================
   AIShift — Design Tokens & Reset
   ================================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim: #7A6430;
  --gold-glow: rgba(201, 168, 76, .12);

  /* Surfaces */
  --ink: #0B0B0F;
  --ink-mid: #101016;
  --ink-soft: #16161E;
  --mist: #222230;
  --mist-deep: #1A1A28;

  /* Text */
  --white: #F4F2EE;
  --white-dim: #B8B6B0;
  --silver: #8A8A9A;
  --mist-text: #5E5E70;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-logo: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'Menlo', monospace;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5vw);
  --container: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Animation Timings */
  --anim-fast: .3s;
  --anim-med: .5s;
  --anim-slow: .8s;
  --stagger-gap: .08s;

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 50;
  --z-nav: 100;
  --z-mobile-menu: 101;
  --z-overlay: 200;
  --z-noise: 9999;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ── FILM GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: .25;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  from { transform: translateX(-100%) skewX(-15deg); }
  to { transform: translateX(200%) skewX(-15deg); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(201, 168, 76, 0); }
  50% { box-shadow: 0 0 18px rgba(201, 168, 76, .25); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }
html { scrollbar-width: thin; scrollbar-color: var(--gold-dim) var(--ink); }

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}

/* ── PRINT ── */
@media print {
  body::before, .nav, .scroll-progress, .whatsapp-float, .back-top, .lgpd-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #111; }
  section { page-break-inside: avoid; padding: 2rem 0; }
  .hero { min-height: auto; padding: 3rem 0; }
  .hero-metrics { position: static; transform: none; flex-direction: row; gap: 2rem; margin-top: 2rem; text-align: left; }
  a { color: #111; }
  .btn-primary { background: #111; color: #fff; }
}
