/* ============================================================
   PLEAMAR v3 — Modern Tech tokens (dark + lima/lila + Geist)
   ============================================================ */

:root {
  /* Backgrounds — dark default
     bg-primary matches the hero video's actual background (#020204)
     for seamless compositing. The other tiers cascade darker→lighter. */
  --bg-primary:    #020204;
  --bg-secondary:  #0E0E10;
  --bg-tertiary:   #15151A;
  --bg-elevated:   #1E1E24;

  /* Tinta */
  --ink-primary:   #F5F2EC;
  --ink-secondary: #A8A39C;
  --ink-tertiary:  #8A8680;

  /* Bordes */
  --border:        #2A2A2A;
  --border-subtle: #2A2A33;
  --border-strong: #3D3D3D;

  /* Acentos vivos */
  --lima:          #C5F73F;
  --lima-hover:    #D4FF5C;
  --lima-soft:     rgba(197, 247, 63, 0.12);
  --lila:          #A78BFA;
  --lila-hover:    #C4B5FD;
  --lila-soft:     rgba(167, 139, 250, 0.12);

  /* Semantic */
  --success-ink:   #C5F73F;
  --error-ink:     #FF8B8B;
  --error-icon:    #FF6B6B;
  --warning-ink:   #FCD34D;
  --info-ink:      #C4B5FD;

  /* Type scale (fluid) */
  --text-display-xl: clamp(2.75rem, 1.5rem + 6vw, 5.5rem);
  --text-display-l:  clamp(2.25rem, 1.25rem + 4.5vw, 4rem);
  --text-display-m:  clamp(1.75rem, 1rem + 3vw, 3rem);
  --text-display-s:  clamp(1.5rem, 1rem + 2vw, 2.25rem);
  --text-body-xl:    clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --text-body-l:     clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-body-m:     1rem;
  --text-body-s:     0.875rem;
  --text-mono-l:     0.875rem;
  --text-mono-m:     0.75rem;
  --text-mono-s:     0.6875rem;

  /* Tracking */
  --tracking-tightest: -0.04em;
  --tracking-tight:    -0.025em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-widest:   0.1em;

  /* Line-height */
  --lh-tight:   1.0;
  --lh-snug:    1.1;
  --lh-normal:  1.5;
  --lh-relaxed: 1.6;

  /* Spacing */
  --space-1:  4px;  --space-2:  8px;  --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10:128px;

  --section-pad-desktop: 120px;
  --section-pad-tablet:  80px;
  --section-pad-mobile:  56px;

  --container-max: 1280px;

  /* Radius */
  --radius-card:   16px;
  --radius-large:  24px;
  --radius-button: 12px;
  --radius-input:  10px;
  --radius-pill:   999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.20);
  --shadow-sm: 0 2px 6px -1px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 16px -4px rgba(0,0,0,0.40);
  --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.50);
  --shadow-xl: 0 24px 64px -12px rgba(0,0,0,0.60);

  /* Motion */
  --dur-instant: 100ms;
  --dur-fast:    180ms;
  --dur-base:    240ms;
  --dur-slow:    360ms;
  --dur-slower:  600ms;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.5, 1.5, 0.5, 1);

  /* z */
  --z-sticky:   10;
  --z-dropdown: 20;
  --z-floating: 30;
  --z-overlay:  40;
  --z-modal:    50;
  --z-popover:  60;
  --z-toast:    70;

  /* Fonts */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="light"] {
  --bg-primary:    #F5F2EC;
  --bg-secondary:  #ECE6DA;
  --bg-tertiary:   #FAF8F2;
  --bg-elevated:   #FFFFFF;
  --ink-primary:   #0A0A0A;
  --ink-secondary: #4A4640;
  --ink-tertiary:  #8A8680;
  --border:        #DDD5C5;
  --border-subtle: #E8E2D2;
  --border-strong: #C4B8A0;
  --lima:        #5A8A0A;  /* AA pass */;
  --lima-hover:    #6FA80A;
  --lima-soft:     rgba(132, 196, 24, 0.14);
  --lila:          #7C3AED;
  --lila-hover:    #6D28D9;
  --lila-soft:     rgba(124, 58, 237, 0.10);
  --shadow-xs: 0 1px 2px 0 rgba(26,24,21,0.04);
  --shadow-sm: 0 2px 6px -1px rgba(26,24,21,0.06);
  --shadow-md: 0 4px 12px -2px rgba(26,24,21,0.08);
  --shadow-lg: 0 12px 32px -8px rgba(26,24,21,0.12);
  --shadow-xl: 0 24px 64px -12px rgba(26,24,21,0.16);
}

/* Palette variants */
[data-palette="lima-only"] {
  --lila: var(--ink-secondary);
  --lila-hover: var(--ink-primary);
  --lila-soft: rgba(168, 163, 156, 0.10);
}
[data-palette="lila-only"] {
  --lima: var(--ink-secondary);
  --lima-hover: var(--ink-primary);
  --lima-soft: rgba(168, 163, 156, 0.10);
}
