/* ============================================================
   BROTEK DESIGN SYSTEM — colors_and_type.css
   Source of truth: Manual de Marca Brotek v0.1 + brotek.com.ar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Lexend — official brand file (variable weight, 100–900) */
@font-face {
  font-family: 'Lexend';
  src: url('fonts/Lexend-VariableFont_wght.ttf') format('truetype-variations'),
       url('fonts/Lexend-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ────────── IDENTITY COLORS ────────── */
  --brotek-black: #171717;          /* primary background, identity base */
  --brotek-white: #F6F4F5;          /* primary fg, slightly warm off-white */
  --brotek-gray:  #F6F4F5;          /* per manual, gray = same hex as white (interchangeable) */
  --brotek-magenta: #EC008C;        /* PRIMARY brand accent — the dot in the logo */
  --brotek-violet:  #A335E7;        /* analogous secondary */
  --brotek-green:   #35E747;        /* complementary secondary */

  /* ────────── SERVICE COLORS ────────── */
  /* Each Brotek service line owns one color from the InfoSec wheel */
  --svc-magenta:  #EC008C;  /* Security as a service / CISO-as-a-Service */
  --svc-orange:   #FB881D;  /* Awareness Security */
  --svc-violet:   #A335E7;  /* Dev Security */
  --svc-blue:     #3551E7;  /* Blue Team / Defensive */
  --svc-green:    #35E747;  /* Endpoint Protect */
  --svc-red:      #EC4D2A;  /* Red Team / Offensive */
  --svc-cyan:     #35E7C7;  /* Infra Sec */
  --svc-gray:     #CFC5CB;  /* Governance, Risk & Compliance */

  /* ────────── HERO RADIAL GRADIENT ────────── */
  /* Manual defines: radial #171717 ~ #EC008C */
  --gradient-hero: radial-gradient(circle at 70% 50%, #EC008C 0%, #6E0042 35%, #171717 70%);
  --gradient-violet: radial-gradient(circle at 30% 30%, #A335E7 0%, #4A1968 40%, #171717 80%);
  --gradient-green: radial-gradient(circle at 50% 100%, #35E747 0%, #145919 40%, #171717 80%);

  /* ────────── SEMANTIC COLOR TOKENS ────────── */
  --bg:              var(--brotek-black);
  --bg-elevated:     #1F1F1F;
  --bg-glass:        rgba(255,255,255,0.04);   /* glassmorphism fill */
  --bg-glass-strong: rgba(255,255,255,0.08);

  --fg:              var(--brotek-white);
  --fg-muted:        #BFB9BC;     /* secondary copy */
  --fg-subtle:       #7E7980;     /* tertiary / labels */

  --border:          rgba(255,255,255,0.08);
  --border-strong:   rgba(255,255,255,0.16);

  --accent:          var(--brotek-magenta);
  --accent-hover:    #FF1A9E;

  --success: var(--svc-green);
  --warn:    var(--svc-orange);
  --danger:  var(--svc-red);
  --info:    var(--svc-blue);

  /* ────────── TYPOGRAPHY ────────── */
  --font-display: 'Lexend', 'Inter', system-ui, sans-serif;  /* Identity / titles / subtítulos */
  --font-body:    'Inter', 'Lexend', system-ui, sans-serif;  /* Reading copy, small text */
  --font-mono:    ui-monospace, 'JetBrains Mono', Menlo, monospace;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Type scale — built around a 16px Inter body; Lexend display goes large + tight */
  --fs-display-xl: clamp(48px, 7vw, 96px);  /* Hero headline */
  --fs-display-lg: clamp(40px, 5.5vw, 72px);
  --fs-display-md: clamp(32px, 4vw, 56px);
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-h5: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  --lh-display: 1.02;
  --lh-heading: 1.15;
  --lh-body: 1.55;

  --tracking-display: -0.025em;   /* tight, modern */
  --tracking-heading: -0.015em;
  --tracking-body: 0;
  --tracking-eyebrow: 0.18em;     /* "OFFENSIVE SECURITY"-style labels */

  /* ────────── 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;

  /* ────────── RADII ────────── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ────────── ELEVATION / SHADOWS ────────── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --shadow-glow-magenta: 0 0 60px rgba(236,0,140,0.35);
  --shadow-glow-violet:  0 0 60px rgba(163,53,231,0.30);

  /* ────────── GLASSMORPHISM ────────── */
  /* Per manual: linear-gradient 160°, #FFF 8% → #FFF 2%, blur 24, spread -1, 60px round */
  --glass-bg: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --glass-border: 1px solid rgba(255,255,255,0.10);
  --glass-blur: 24px;
  --glass-shadow: 0 0 0 1px rgba(0,0,0,0.20);
  --glass-radius: 60px;

  /* ────────── ANIMATION ────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   ============================================================ */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-display-lg);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  margin: 0;
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h4);
  line-height: 1.3;
  margin: 0;
}

p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-muted);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
