﻿/* ============================================================
   D3 SoluÃ§Ãµes â€” Fonts
   Display / brand: "iBrand" (proprietary, not redistributable) â†’
     SUBSTITUTED with "Sora" (geometric, rounded, futuristic) from Google Fonts.
   Complementary / body: "Red Hat Display" â€” official, available on Google Fonts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Red+Hat+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500&family=Red+Hat+Mono:wght@400;500;600&display=swap');

/* ============================================================
   D3 SoluÃ§Ãµes â€” Color tokens
   Brand palette (from ID VISUAL D3):
     Verde Neon Financeiro   #22FFC4  â€” innovation, digital transformation
     Cinza Grafite Profundo  #2E2E2E  â€” solidity, reliability
     Azul PetrÃ³leo Escuro    #0E1F26  â€” depth, strategic intelligence (support / bg)
   ============================================================ */

:root {
  /* ---- Brand primitives ---- */
  --d3-neon: #22FFC4;        /* Verde Neon Financeiro */
  --d3-neon-600: #12E0AA;    /* pressed / deeper neon */
  --d3-neon-300: #74FFD9;    /* hover lift / tints */
  --d3-neon-100: #C9FFEF;    /* faint wash */
  --d3-graphite: #2E2E2E;    /* Cinza Grafite Profundo */
  --d3-petrol: #0E1F26;      /* Azul PetrÃ³leo Escuro */
  --d3-petrol-700: #102932;  /* raised petrol surface */
  --d3-petrol-600: #16323D;  /* card surface on dark */
  --d3-petrol-500: #1E3D49;  /* hover surface on dark */

  /* ---- Neutral ramp (cool, petrol-tinted) ---- */
  --d3-ink-900: #07151A;     /* deepest bg */
  --d3-ink-800: #0E1F26;
  --d3-ink-700: #16323D;
  --d3-ink-600: #26454F;
  --d3-ink-500: #3C5B65;
  --d3-ink-400: #5E7B83;
  --d3-ink-300: #88A2A8;
  --d3-ink-200: #B6C8CC;
  --d3-ink-100: #DCE7E8;
  --d3-ink-50:  #EEF4F4;
  --d3-white:   #FFFFFF;
  --d3-paper:   #F4FBF8;     /* off-white, faint mint */

  /* ---- Semantic status ---- */
  --d3-success: #22FFC4;     /* brand neon doubles as positive/growth */
  --d3-success-ink: #0B3B2E;
  --d3-warning: #FFC53D;
  --d3-warning-ink: #5A4100;
  --d3-danger:  #FF5C6C;
  --d3-danger-ink: #5A0E16;
  --d3-info:    #4CC4FF;
  --d3-info-ink: #093749;

  /* ============================================================
     SEMANTIC ALIASES â€” prefer these in product code
     The system is dark-first (petrol canvas, neon accent).
     ============================================================ */

  /* surfaces */
  --surface-canvas:   var(--d3-ink-800);   /* app background */
  --surface-sunken:   var(--d3-ink-900);
  --surface-card:     var(--d3-petrol-600);
  --surface-raised:   var(--d3-petrol-500);
  --surface-inverse:  var(--d3-paper);      /* light surface */

  /* text */
  --text-strong:   var(--d3-paper);
  --text-body:     var(--d3-ink-200);
  --text-muted:    var(--d3-ink-300);
  --text-faint:    var(--d3-ink-400);
  --text-on-neon:  var(--d3-ink-900);       /* dark text on neon fills */
  --text-on-light: var(--d3-graphite);

  /* brand / accent */
  --accent:        var(--d3-neon);
  --accent-hover:  var(--d3-neon-300);
  --accent-press:  var(--d3-neon-600);
  --accent-wash:   rgba(34, 255, 196, 0.12);
  --accent-line:   rgba(34, 255, 196, 0.30);

  /* borders / lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);

  /* focus */
  --focus-ring: rgba(34, 255, 196, 0.55);
}

/* ============================================================
   D3 SoluÃ§Ãµes â€” Typography tokens
   Display/brand: Sora (substitute for iBrand) â€” geometric, rounded, futuristic.
                  Use for logo lockups, hero numerals, big statements. Tight tracking.
   Body/UI:       Red Hat Display â€” professional, legible, clean geometric sans.
   Mono:          Red Hat Mono â€” figures, code, tabular financial data.
   ============================================================ */

:root {
  /* families */
  --font-display: 'Sora', 'Red Hat Display', system-ui, sans-serif;
  --font-sans:    'Red Hat Display', system-ui, -apple-system, sans-serif;
  --font-mono:    'Red Hat Mono', ui-monospace, 'SF Mono', monospace;

  /* weights */
  --fw-regular: 400;  /* @kind font */
  --fw-medium:  500;  /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold:    700;  /* @kind font */
  --fw-black:   800;  /* @kind font */

  /* fluid type scale (1.250 major-third, 16px base) */
  --text-2xs: 0.6875rem;  /* 11px â€” micro labels, legal */
  --text-xs:  0.75rem;    /* 12px â€” captions, badges */
  --text-sm:  0.875rem;   /* 14px â€” secondary UI text */
  --text-md:  1rem;       /* 16px â€” body default */
  --text-lg:  1.125rem;   /* 18px â€” lead body */
  --text-xl:  1.375rem;   /* 22px â€” card titles */
  --text-2xl: 1.75rem;    /* 28px â€” section heads */
  --text-3xl: 2.25rem;    /* 36px â€” page titles */
  --text-4xl: 3rem;       /* 48px â€” display */
  --text-5xl: 4rem;       /* 64px â€” hero */
  --text-6xl: 5.5rem;     /* 88px â€” statement numerals */

  /* line-heights */
  --leading-tight: 1.05;
  --leading-snug:  1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* letter-spacing */
  --tracking-tighter: -0.03em;  /* display headings */
  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;      /* the "FACILIDADE PARA CRESCER" spaced caps */
  --tracking-widest: 0.32em;     /* hero eyebrow spaced caps */

  /* semantic roles */
  --type-eyebrow: var(--fw-semibold) var(--text-xs)/1 var(--font-sans);
  --type-body:    var(--fw-regular) var(--text-md)/var(--leading-relaxed) var(--font-sans);
  --type-display: var(--fw-bold) var(--text-4xl)/var(--leading-tight) var(--font-display);
}

/* ============================================================
   D3 SoluÃ§Ãµes â€” Spacing, radii, layout tokens
   8px base grid. Generous, breathing-room layouts.
   ============================================================ */

:root {
  /* spacing scale (8px grid, with 2/4 micro-steps) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 2.5rem;   /* 40 */
  --space-8: 3rem;     /* 48 */
  --space-9: 4rem;     /* 64 */
  --space-10: 5rem;    /* 80 */
  --space-12: 7rem;    /* 112 */

  /* radii â€” rounded, friendly (echoes the geometric-rounded brand) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;     /* default control radius */
  --radius-lg: 20px;     /* cards */
  --radius-xl: 28px;     /* panels, modals */
  --radius-2xl: 40px;
  --radius-pill: 999px;  /* buttons, chips, the "capsule" CTA */
  --radius-circle: 50%;

  /* control sizing */
  --control-h-sm: 36px;
  --control-h-md: 44px;  /* default â€” meets touch target */
  --control-h-lg: 54px;

  /* layout */
  --container-max: 1200px;
  --gutter: var(--space-6);
  --border-width: 1px;
  --border-width-strong: 1.5px;
}

/* ============================================================
   D3 SoluÃ§Ãµes â€” Effects: shadows, glows, gradients, motion
   The signature: a NEON GREEN GLOW on a deep petrol canvas.
   Shadows are soft and dark (dark-first UI); the accent gets a
   luminous glow rather than a drop shadow.
   ============================================================ */

:root {
  /* elevation shadows (dark UI â€” deep, soft) */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md:  0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-xl:  0 30px 80px rgba(0, 0, 0, 0.55);

  /* inner hairline used on raised petrol cards for crisp edges */
  --ring-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* SIGNATURE neon glows â€” for primary CTAs, active states, hero marks */
  --glow-neon-sm: 0 0 0 1px rgba(34, 255, 196, 0.30), 0 4px 16px rgba(34, 255, 196, 0.22);
  --glow-neon-md: 0 0 0 1px rgba(34, 255, 196, 0.35), 0 8px 30px rgba(34, 255, 196, 0.30);
  --glow-neon-lg: 0 8px 60px rgba(34, 255, 196, 0.40);
  --glow-text:    0 0 24px rgba(34, 255, 196, 0.45);

  /* focus ring */
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  /* gradients */
  --grad-neon: linear-gradient(135deg, #22FFC4 0%, #12E0AA 100%);  /* @kind color */
  --grad-canvas: radial-gradient(120% 80% at 50% -10%, #16323D 0%, #0E1F26 55%, #07151A 100%);  /* @kind color */
  /* the brand's blurred-blob glow (use as a positioned ::before, blurred) */
  --grad-glow-blob: radial-gradient(closest-side, rgba(34,255,196,0.55), rgba(34,255,196,0.0) 70%);  /* @kind color */
  /* protection scrim over photography (petrol, bottom-up) */
  --grad-scrim: linear-gradient(180deg, rgba(14,31,38,0) 0%, rgba(14,31,38,0.65) 60%, rgba(7,21,26,0.95) 100%);  /* @kind color */

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* @kind other */
  --dur-fast: 120ms;  /* @kind other */
  --dur-base: 200ms;  /* @kind other */
  --dur-slow: 360ms;  /* @kind other */
}

