/*
 * Spinor — tokens da identidade visual
 * Manual de Identidade Visual v1.1 (26/10/2026)
 *
 * Contrastes calculados pela fórmula WCAG 2.2:
 *   --brand-navy sobre branco ......... 16,70:1
 *   branco sobre --surface-dark ....... 19,56:1
 *   --color-action sobre branco ....... 4,79:1 (AA texto)
 *   --color-action sobre --surface-light 4,53:1 (AA texto)
 *   branco sobre --color-action ....... 4,79:1 (AA texto em botão)
 *   --brand-cyan sobre --surface-dark . 9,22:1 (AA texto)
 *   letras do logo (#C8EEFF→#74B4FF) sobre --surface-dark: 15,96:1 → 9,05:1
 *
 * --brand-blue (#0170FC) dá 4,44:1 em branco e reprova AA para texto normal
 * por pouco; por isso links e botões usam --color-action (#016BF2), que é
 * visualmente equivalente. --brand-blue continua valendo para elementos
 * grandes, decorativos e degradês de apoio.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("inter-latin-wght-normal.woff2?v=5") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("inter-latin-ext-wght-normal.woff2?v=5") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Paleta da marca (manual, seção 02) */
  --brand-navy: #021c46;
  --brand-blue: #0170fc;
  --brand-cyan: #20bffa;
  --brand-white: #ffffff;
  --surface-dark: #020b22;          /* fundo profundo: hero, rodapé, apresentações */
  --surface-dark-raised: #101c32;   /* painéis e cards sobre o fundo profundo */
  --surface-light: #f6f9fd;
  --surface-white: #ffffff;

  /* Degradê de apoio: fundos, botões e ilustrações */
  --gradient-brand: linear-gradient(90deg, #021c46 0%, #0170fc 55%, #20bffa 100%);

  /* Letras do logotipo em fundo escuro: degradê vertical azul-claro (só no arquivo oficial 07) */
  --logo-letters-top: #c8eeff;
  --logo-letters-bottom: #74b4ff;
  --gradient-logo-letters: linear-gradient(180deg, #c8eeff 0%, #74b4ff 100%);

  /* Fundo de marca (hero): brilhos nos cantos + grade que se dissipa no centro */
  --glow-blue: radial-gradient(circle, rgba(1, 112, 252, 0.55), transparent 65%);
  --glow-cyan: radial-gradient(circle, rgba(32, 191, 250, 0.42), transparent 65%);
  --glow-indigo: radial-gradient(circle, rgba(40, 70, 200, 0.40), transparent 65%);
  --glow-blur: 90px;
  --grid-line: rgba(140, 180, 255, 0.06);
  --grid-size: 56px;
  --grid-mask: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 35%, #000 100%);

  /* Ação (links, botões, foco) — variantes acessíveis */
  --color-action: #016bf2;
  --color-action-hover: #0157c8;
  --color-action-on-dark: #20bffa;
  --color-on-action: #ffffff;

  /* Texto */
  --text-on-light: #021c46;
  --text-muted-on-light: #4a5b78;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: #9aa9c4;

  /* Bordas */
  --border-light: #dce6f0;
  --border-dark: rgba(140, 180, 255, 0.14);

  /* Cores semânticas — fundo claro (todas ≥ 4,5:1 em branco) */
  --color-success: #0f7b4f;
  --color-warning: #a15c00;
  --color-danger: #c4302b;
  --color-info: #016bf2;

  /* Cores semânticas — fundo escuro (todas ≥ 7,5:1 em --surface-dark) */
  --color-success-on-dark: #3ddc97;
  --color-warning-on-dark: #f5b544;
  --color-danger-on-dark: #ff7a70;
  --color-info-on-dark: #20bffa;

  /* Estados */
  --opacity-disabled: 0.45;
  --focus-ring: 0 0 0 3px var(--surface-white), 0 0 0 5px var(--color-action);
  --focus-ring-on-dark: 0 0 0 3px var(--surface-dark), 0 0 0 5px var(--color-action-on-dark);

  /* Tipografia (manual, seção 03) */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-size-base: 16px;
  --line-height-body: 1.5;
  --line-height-heading: 1.15;

  --type-display: 700 clamp(3rem, 6vw, 4rem) / 1.1 var(--font-sans);   /* 48–64 px */
  --type-h1: 700 clamp(2rem, 4vw, 2.5rem) / 1.15 var(--font-sans);     /* 32–40 px */
  --type-h2: 650 clamp(1.5rem, 3vw, 1.75rem) / 1.25 var(--font-sans);  /* 24–28 px */
  --type-body: 400 1rem / 1.5 var(--font-sans);                        /* 16 px */

  /* Forma e layout (manual, seção 06) */
  --radius-card: 16px;
  --radius-button: 10px;
  --content-max: 1200px;
  --shadow-card: 0 1px 2px rgba(2, 28, 70, 0.06), 0 8px 24px rgba(2, 28, 70, 0.06);

  /* Espaçamento (escala de 4 px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Marca: dimensões mínimas (manual, seção 04) */
  --logo-min-width: 180px;
  --symbol-min-width: 48px;
}
