/* ==========================================================================
   Ironyx — Design tokens
   Source of truth: _build/BLUEPRINT.md (Fusion AI inspiration)
   Breakpoints: desktop >= 1200px · tablet 810–1199px · mobile <= 809px
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Surfaces ---------------------------------------------------------- */
  --bg: #000;
  --surface: #060606;          /* raised surface / cards */
  --surface-2: #0a0a0a;        /* nested panels inside cards */
  --surface-3: #111111;        /* inputs, rows, hover fills in product UI */
  --hairline: #191919;         /* hairline borders / subtle cards */

  /* ---- Borders ----------------------------------------------------------- */
  --border: rgba(255, 255, 255, .1);      /* default */
  --border-soft: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --border-btn: rgba(255, 255, 255, .2);  /* outlined button */

  /* ---- Text -------------------------------------------------------------- */
  --text: #fff;
  --text-2: rgba(255, 255, 255, .72);     /* secondary copy */
  --text-3: rgba(255, 255, 255, .5);      /* muted labels */
  --text-4: rgba(255, 255, 255, .32);     /* disabled / placeholders */

  /* ---- Accents ----------------------------------------------------------- */
  --orange: #DA4E24;           /* primary accent */
  --orange-bright: #FF8918;    /* gradient highlight */
  --orange-deep: #A22904;
  --rust: #D5402F;
  --amber: #9F4E00;
  --blue: #0098F3;
  --blue-2: #1F77F6;
  --teal: rgb(0, 105, 166);
  --success: #34D399;          /* product-UI only: status dots ("Ativa") */

  /* channel triplets for rgb(var(--x-rgb) / a) */
  --orange-rgb: 218 78 36;
  --orange-bright-rgb: 255 137 24;
  --blue-rgb: 0 152 243;
  --white-rgb: 255 255 255;

  /* ---- Gradients --------------------------------------------------------- */
  --grad-btn-ring: linear-gradient(163deg, #FF8918 28%, #A22904 54%, #000 68%, #0098F3 100%);
  --grad-eyebrow: linear-gradient(90deg, rgb(105, 51, 0) 0%, rgb(128, 30, 0) 32.88%, #000 54.05%, rgb(0, 105, 166) 100%);
  --grad-text: linear-gradient(90deg, #0098F3 0%, #BFC5CC 50%, #DA4E24 100%);
  --grad-btn-blob: radial-gradient(50% 50% at 50% 50%, #fff 52.88%, rgb(140, 54, 2) 100%);
  /* static reference only — the animated version lives in .glow-border (components.css) */
  --grad-glow-border: conic-gradient(from 1deg at 50% 50%, transparent 320.4deg, #DA4E24 334.8deg, transparent 349.2deg);
  --grad-brand: linear-gradient(90deg, #0098F3 0%, #DA4E24 100%);
  --grad-fade-bottom: linear-gradient(#000 80%, transparent 100%);   /* use as mask-image */
  --grad-hairline: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14) 50%, transparent); /* 1px dividers */

  /* ---- Glass ------------------------------------------------------------- */
  --glass-bg: rgba(255, 255, 255, .02);
  --glass-blur: 14px;

  /* ---- Radii ------------------------------------------------------------- */
  --r-4: 4px;
  --r-8: 8px;      /* small buttons, chips */
  --r-12: 12px;    /* buttons, navbar, inputs, image insets */
  --r-16: 16px;    /* cards, FAQ items */
  --r-20: 20px;    /* big panels, dashboard frames, footer card */
  --r-pill: 99px;

  /* ---- Fonts ------------------------------------------------------------- */
  --font-display: "General Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-features: "cv03", "cv04", "cv09", "cv11";

  /* ---- Type scale (desktop >= 1200) -------------------------------------- */
  --fs-display: clamp(64px, 11.2vw, 160px);  /* giant showcase line */
  --fs-h1: 62px;      --lh-h1: 1.1;
  --fs-h2: 54px;      --lh-h2: 1;
  --fs-h2-alt: 44px;  --lh-h2-alt: 1.2;
  --fs-h3: 32px;      --lh-h3: 1.2;
  --fs-h4: 24px;      --lh-h4: 1.33;
  --fs-body-l: 18px;  --lh-body-l: 28px;
  --fs-body: 16px;    --lh-body: 26px;
  --fs-small: 14px;   --lh-small: 20px;
  --fs-xs: 12px;      --lh-xs: 16px;
  --ls-display: -0.035em;
  --ls-tight: -0.02em;     /* h1/h2 */
  --ls-snug: -0.01em;      /* h3/h4 */
  --ls-eyebrow: .04em;

  /* ---- Layout & spacing -------------------------------------------------- */
  --container: 1240px;
  --container-narrow: 900px;
  --gutter: 40px;
  --section-pad: 100px;       /* vertical padding of every .section (top & bottom) */
  --head-gap: 18px;           /* gap inside .section-head */
  --head-mb: 64px;            /* space between .section-head and section content */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Navbar ------------------------------------------------------------ */
  --nav-h: 70px;
  --nav-top: 20px;
  --nav-inset: 34px;          /* distance from viewport left/right edges */

  /* ---- Motion ------------------------------------------------------------ */
  --ease-out: cubic-bezier(.12, .23, .5, 1);     /* Framer default = GSAP "ironyx" */
  --ease-roll: cubic-bezier(.76, 0, .24, 1);     /* button label roll */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .2s;
  --dur: .45s;
  --dur-slow: .8s;

  /* ---- Elevation / glow -------------------------------------------------- */
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --shadow-glow-orange: 0 0 40px -8px rgba(218, 78, 36, .55);
  --shadow-glow-blue: 0 0 40px -8px rgba(0, 152, 243, .55);

  /* ---- Z-index scale ----------------------------------------------------- */
  --z-base: 1;
  --z-raised: 10;
  --z-nav: 100;
  --z-menu: 90;
  --z-skip: 200;
}

/* ---- Tablet 810–1199 ----------------------------------------------------- */
@media (max-width: 1199px) {
  :root {
    --fs-h1: 58px;
    --fs-h2: 48px;
    --fs-h2-alt: 40px;
    --fs-h3: 32px;
    --fs-h4: 24px;
    --fs-body-l: 18px;  --lh-body-l: 28px;
    --gutter: 32px;
    --section-pad: 60px;
    --head-mb: 52px;
    --nav-inset: 20px;
  }
}

/* ---- Mobile <= 809 ------------------------------------------------------- */
@media (max-width: 809px) {
  :root {
    --fs-h1: 45px;
    --fs-h2: 40px;
    --fs-h2-alt: 32px;
    --fs-h3: 26px;
    --fs-h4: 20px;
    --fs-body-l: 16px;  --lh-body-l: 26px;
    --gutter: 20px;
    --section-pad: 50px;
    --head-gap: 16px;
    --head-mb: 40px;
    --nav-h: 60px;
    --nav-top: 12px;
    --nav-inset: 12px;
  }
}
