/* ============================================
   OIKO AUTOMATION — DESIGN TOKENS V2
   Design System oficial — Verde-limão / Dark premium
   ============================================ */

:root {

  /* ─── CORES — BACKGROUNDS ────────────────── */

  --bg-primary:       #151821;
  --bg-secondary:     #1B1F2A;
  --bg-tertiary:      #222734;
  --bg-elevated:      #262C3A;
  --bg-card:          #1A1E27;
  --bg-overlay:       rgba(10, 12, 18, 0.72);

  /* Aliases novos DS */
  --color-bg-primary:   #151821;
  --color-bg-secondary: #1B1F2A;
  --color-bg-tertiary:  #222734;
  --color-bg-elevated:  #262C3A;
  --color-bg-card:      #1A1E27;
  --color-bg-overlay:   rgba(10, 12, 18, 0.72);

  /* ─── BRAND / ACCENT — verde-limão ──────── */

  --color-primary:        #CFFF04;
  --color-primary-hover:  #D7FF2B;
  --color-primary-active: #B6E600;
  --color-accent-soft:    rgba(207, 255, 4, 0.75);

  --color-brand-primary:  #CFFF04;
  --color-brand-hover:    #D7FF2B;
  --color-brand-active:   #B6E600;
  --color-brand-soft:     rgba(207, 255, 4, 0.10);
  --color-brand-soft-2:   rgba(207, 255, 4, 0.16);
  --color-brand-border:   rgba(207, 255, 4, 0.28);
  --color-brand-glow:     rgba(207, 255, 4, 0.34);
  --color-text-on-brand:  #0F1304;

  /* ─── TEXTO ──────────────────────────────── */

  --text-primary:   #F5F7FA;
  --text-secondary: #B7C0D1;
  --text-muted:     #8A93A5;
  --text-disabled:  #5F6777;

  --color-text-primary:   #F5F7FA;
  --color-text-secondary: #B7C0D1;
  --color-text-muted:     #8A93A5;
  --color-text-disabled:  #5F6777;
  --color-text-on-brand:  #0F1304;

  /* ─── BORDAS ─────────────────────────────── */

  --border-color:         rgba(255, 255, 255, 0.08);
  --color-border-subtle:  rgba(255, 255, 255, 0.06);
  --color-border-default: rgba(255, 255, 255, 0.10);
  --color-border-strong:  rgba(255, 255, 255, 0.16);
  --color-border-brand:   rgba(207, 255, 4, 0.24);

  /* ─── FEEDBACK ───────────────────────────── */

  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error:   #EF4444;
  --color-info:    #38BDF8;

  /* Acentos de apoio (uso muito discreto) */
  --color-accent-cyan:   #22D3EE;
  --color-accent-violet: #8B5CF6;

  /* ─── SOMBRAS & GLOW ─────────────────────── */

  --shadow-xs:       0 2px 10px rgba(0,0,0,0.12);
  --shadow-sm:       0 8px 24px rgba(0,0,0,0.18);
  --shadow-md:       0 16px 40px rgba(0,0,0,0.24);
  --shadow-lg:       0 24px 64px rgba(0,0,0,0.32);

  --shadow-soft:     0 8px 30px rgba(0,0,0,0.18);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.28);
  --shadow-elevated: 0 16px 48px rgba(0,0,0,0.35);

  --glow-primary:        0 0 24px rgba(207,255,4,0.18);
  --glow-primary-strong: 0 0 40px rgba(207,255,4,0.30);
  --glow-primary-subtle: 0 0 16px rgba(207,255,4,0.10);

  --shadow-brand-glow-sm: 0 0 0 1px rgba(207,255,4,0.10), 0 0 24px rgba(207,255,4,0.10);
  --shadow-brand-glow-md: 0 0 0 1px rgba(207,255,4,0.16), 0 0 40px rgba(207,255,4,0.14);

  /* ─── BLUR / GLASS ───────────────────────── */

  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;

  /* ─── BORDER RADIUS ──────────────────────── */

  --radius-xs:        8px;
  --radius-sm:        12px;
  --radius-md:        16px;
  --radius-button:    16px;
  --radius-input:     16px;
  --radius-lg:        20px;
  --radius-card:      24px;
  --radius-xl:        24px;
  --radius-container: 24px;
  --radius-2xl:       28px;
  --radius-feature:   28px;
  --radius-hero:      32px;
  --radius-full:      999px;

  /* ─── TIPOGRAFIA ─────────────────────────── */

  --font-primary: 'Satoshi', 'Inter', 'SF Pro Display', system-ui, sans-serif;

  /* Type scale — display */
  --font-size-display-xl: clamp(3.5rem, 7vw, 6rem);
  --font-size-display-lg: clamp(3rem, 6vw, 5rem);
  --font-size-display-md: clamp(2.4rem, 5vw, 4rem);

  /* Type scale — headings */
  --font-size-h1: clamp(2.5rem, 4vw, 4.5rem);
  --font-size-h2: clamp(2rem, 3.2vw, 3.2rem);
  --font-size-h3: clamp(1.5rem, 2.2vw, 2.2rem);
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1.125rem;

  /* Type scale — body */
  --font-size-body-xl: 1.25rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body-md: 1rem;
  --font-size-body-sm: 0.9375rem;
  --font-size-body-xs: 0.875rem;

  /* Utility */
  --font-size-label:    0.875rem;
  --font-size-caption:  0.8125rem;
  --font-size-overline: 0.75rem;

  /* Backwards-compat aliases */
  --display-xl:  clamp(3.5rem, 7vw, 6rem);
  --display-l:   clamp(3rem, 6vw, 5rem);
  --heading-1:   clamp(2.5rem, 4vw, 4.5rem);
  --heading-2:   clamp(2rem, 3.2vw, 3.2rem);
  --heading-3:   clamp(1.5rem, 2.2vw, 2.2rem);
  --heading-4:   1.5rem;
  --body-xl:     1.25rem;
  --body-l:      1.125rem;
  --body-m:      1rem;
  --body-s:      0.875rem;
  --label:       0.875rem;
  --caption:     0.8125rem;
  --btn-text:    1rem;
  --nav-text:    1rem;

  /* Line heights */
  --line-height-tight:   1.05;
  --line-height-heading: 1.10;
  --line-height-body:    1.60;
  --line-height-relaxed: 1.75;

  --lh-display: 1.05;
  --lh-h1:      1.08;
  --lh-h2:      1.12;
  --lh-h3:      1.20;
  --lh-h4:      1.25;
  --lh-body-xl: 1.65;
  --lh-body-l:  1.70;
  --lh-body-m:  1.70;
  --lh-body-s:  1.60;

  /* Font weights */
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-black:    900;

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* Letter spacing */
  --letter-spacing-tight:   -0.04em;
  --letter-spacing-heading: -0.03em;
  --letter-spacing-normal:  0;
  --letter-spacing-wide:    0.04em;

  --ls-display: -0.030em;
  --ls-h1:      -0.025em;
  --ls-h2:      -0.020em;
  --ls-h3:      -0.015em;
  --ls-h4:      -0.010em;
  --ls-body:    -0.005em;
  --ls-label:    0.040em;

  /* ─── ESPAÇAMENTO ────────────────────────── */

  --space-0:   0;
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-28:  7rem;      /* 112px */
  --space-30:  7.5rem;    /* 120px */
  --space-32:  8rem;      /* 128px */

  /* ─── LAYOUT ─────────────────────────────── */

  --max-width:          1200px;
  --content-width:      1200px;
  --container-sm:       640px;
  --container-md:       768px;
  --container-lg:       1024px;
  --container-xl:       1200px;
  --container-2xl:      1320px;
  --padding-x-desktop:  48px;
  --padding-x-tablet:   32px;
  --padding-x-mobile:   20px;
  --section-padding-y:  var(--space-30);
  --nav-height:         96px;

  /* ─── BREAKPOINTS ────────────────────────── */

  --breakpoint-xs:  480px;
  --breakpoint-sm:  640px;
  --breakpoint-md:  768px;
  --breakpoint-lg:  1024px;
  --breakpoint-xl:  1280px;
  --breakpoint-2xl: 1536px;

  /* ─── MOTION ─────────────────────────────── */

  --motion-fast:   160ms;
  --motion-base:   240ms;
  --motion-slow:   360ms;
  --motion-xslow:  520ms;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:     cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-snappy:   cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);

  --transition-xs: 0.10s var(--ease-out);
  --transition-sm: 0.18s var(--ease-out);
  --transition-md: 0.28s var(--ease-out);
  --transition-lg: 0.42s var(--ease-out);
}
