/* ==========================================================================
   DESIGN TOKENS — "Palco Imersivo"
   Ordem das camadas declarada aqui (primeiro arquivo carregado).
   ========================================================================== */
@layer tokens, base, layout, components, sections, motion;

@layer tokens {
  :root {
    color-scheme: dark;

    /* ---------- Cores ---------- */
    --c-bg: #07070a;
    --c-bg-2: #0d0d13;
    --c-surface: rgb(255 255 255 / 0.04);
    --c-surface-hover: rgb(255 255 255 / 0.07);
    --c-border: rgb(255 255 255 / 0.09);
    --c-border-strong: rgb(255 255 255 / 0.18);
    --c-text: #f4f1eb;
    --c-muted: #9c978f;
    --c-faint: #5f5b55;
    --c-accent: #e0b872;
    --c-accent-strong: #f2cd8a;
    --c-accent-ink: #120e07;
    --c-light-1: #5b5bff;   /* azul de palco */
    --c-light-2: #b048ff;   /* violeta de palco */
    --c-whatsapp: #25d366;
    --c-instagram: #e1306c;
    --c-youtube: #ff3b30;
    --c-danger: #ff6b5e;

    --grad-stage: radial-gradient(60% 60% at 50% 0%, rgb(91 91 255 / 0.22), transparent 70%),
                  radial-gradient(40% 50% at 85% 20%, rgb(176 72 255 / 0.16), transparent 70%);
    --grad-accent: linear-gradient(120deg, var(--c-accent-strong), var(--c-accent) 45%, #c98f45);
    --grad-text: linear-gradient(100deg, var(--c-text) 30%, var(--c-accent) 120%);

    /* ---------- Tipografia ---------- */
    --font-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
    --font-serif: "Instrument Serif", "Times New Roman", serif;
    --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Escala fluida (360px → 1600px) */
    --step--2: clamp(0.69rem, 0.67rem + 0.08vw, 0.75rem);
    --step--1: clamp(0.8rem, 0.77rem + 0.14vw, 0.9rem);
    --step-0: clamp(0.95rem, 0.9rem + 0.24vw, 1.125rem);
    --step-1: clamp(1.15rem, 1.06rem + 0.4vw, 1.45rem);
    --step-2: clamp(1.4rem, 1.24rem + 0.7vw, 1.95rem);
    --step-3: clamp(1.75rem, 1.45rem + 1.3vw, 2.8rem);
    --step-4: clamp(2.2rem, 1.7rem + 2.3vw, 4rem);
    --step-5: clamp(2.7rem, 1.85rem + 3.8vw, 5.8rem);
    --step-6: clamp(3.1rem, 1.8rem + 5.8vw, 8.4rem);

    --lh-tight: 0.95;
    --lh-snug: 1.15;
    --lh-body: 1.7;
    --tracking-wide: 0.22em;
    --tracking-tight: -0.035em;

    /* ---------- Espaçamentos ---------- */
    --space-3xs: clamp(0.25rem, 0.23rem + 0.1vw, 0.31rem);
    --space-2xs: clamp(0.5rem, 0.47rem + 0.14vw, 0.6rem);
    --space-xs: clamp(0.75rem, 0.7rem + 0.22vw, 0.9rem);
    --space-s: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
    --space-m: clamp(1.5rem, 1.4rem + 0.45vw, 1.8rem);
    --space-l: clamp(2rem, 1.8rem + 0.9vw, 2.6rem);
    --space-xl: clamp(3rem, 2.6rem + 1.8vw, 4.4rem);
    --space-2xl: clamp(4rem, 3.3rem + 3.2vw, 7rem);
    --space-3xl: clamp(5.5rem, 4.3rem + 5.2vw, 10rem);

    --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
    --container: 1440px;
    --container-wide: 1680px;
    --header-h: 4.5rem;

    /* ---------- Formas ---------- */
    --radius-s: 0.5rem;
    --radius-m: 1rem;
    --radius-l: 1.5rem;
    --radius-xl: 2.25rem;
    --radius-pill: 999px;

    /* ---------- Sombras (flutuação suave) ---------- */
    --shadow-float: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 20px 40px -12px rgb(0 0 0 / 0.55), 0 40px 80px -30px rgb(0 0 0 / 0.6);
    --shadow-glow: 0 0 0 1px rgb(224 184 114 / 0.35), 0 12px 40px -8px rgb(224 184 114 / 0.45);
    --blur-glass: blur(16px) saturate(140%);

    /* ---------- Movimento ---------- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 180ms;
    --dur-base: 380ms;
    --dur-slow: 900ms;
    --stagger: 100ms;

    /* ---------- Camadas ---------- */
    --z-below: -1;
    --z-raised: 2;
    --z-header: 50;
    --z-fab: 60;
    --z-menu: 45;
    --z-dialog: 100;
    --z-grain: 200;
  }
}
