/* ============================================================
   C2SEC — Colors & Type Tokens
   Source of truth for all brand colors, typography, and semantic styles.
   Pulled from c2sec-site/css/styles.css (the production marketing site).
   ============================================================ */

/* Webfonts: loaded from Google Fonts CDN. Plus Jakarta Sans (UI) + JetBrains Mono (code/mono numerics).
   No local font files were provided; these are the production fonts referenced in the codebase. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------- COLOR — Brand & surface (dark-first) ---------- */
  --c-navy:           #0a1628;  /* page background, deepest surface */
  --c-navy-mid:       #0f1f38;  /* nav, mega panels, dashboard frames */
  --c-navy-light:     #162a4a;  /* CTA boxes, elevated surfaces */
  --c-navy-surface:   #1a2d4d;  /* hover/active surfaces */

  /* ---------- COLOR — Primary action (Blue → Cyan) ---------- */
  --c-blue:           #3b82f6;  /* primary brand blue */
  --c-blue-bright:    #60a5fa;  /* accents, links, eyebrows */
  --c-blue-deep:      #2563eb;  /* gradient end for buttons */
  --c-cyan:           #22d3ee;  /* secondary accent (Fusion Center) */
  --c-teal:           #14b8a6;  /* gradient end (hero text) */

  /* ---------- COLOR — Foreground / neutral ---------- */
  --c-white:          #f0f4f8;  /* primary body text on dark */
  --c-white-pure:     #ffffff;  /* headings, pure white */
  --c-g100:           #e2e8f0;
  --c-g200:           #cbd5e1;  /* nav text, btn-ghost text */
  --c-g300:           #94a3b8;  /* secondary body text */
  --c-g400:           #64748b;  /* tertiary text, eyebrows muted */
  --c-g500:           #475569;  /* disabled, hairlines */

  /* ---------- COLOR — Semantic / module accents ---------- */
  --c-orange:         #f59e0b;  /* Pen Testing, warnings, "soon" tags */
  --c-green:          #10b981;  /* Cloud, success, "new" tags */
  --c-purple:         #a855f7;  /* SaaS posture */
  --c-red:            #ef4444;  /* Vendor risk, critical, errors */

  /* ---------- COLOR — Module tints (12% bg / 100% fg) ---------- */
  --c-tint-blue:      rgba(59,130,246,0.12);
  --c-tint-cyan:      rgba(34,211,238,0.12);
  --c-tint-orange:    rgba(245,158,11,0.12);
  --c-tint-green:     rgba(16,185,129,0.12);
  --c-tint-purple:    rgba(168,85,247,0.12);
  --c-tint-red:       rgba(239,68,68,0.12);

  /* ---------- COLOR — Hairlines, overlays, glass ---------- */
  --c-hair:           rgba(255,255,255,0.06);  /* default border */
  --c-hair-soft:      rgba(255,255,255,0.04);
  --c-hair-strong:    rgba(255,255,255,0.12);
  --c-surface-low:    rgba(255,255,255,0.02);  /* card bg */
  --c-surface:        rgba(255,255,255,0.03);  /* card bg, default */
  --c-surface-high:   rgba(255,255,255,0.05);  /* hover */
  --c-glass-nav:      rgba(10,22,40,0.92);     /* nav bar (with blur) */

  /* ---------- COLOR — Signature gradients ---------- */
  --grad-primary:     linear-gradient(135deg, #3b82f6, #2563eb); /* buttons */
  --grad-logo:        linear-gradient(135deg, #3b82f6, #22d3ee); /* C2 logo mark */
  --grad-hero:        linear-gradient(135deg, #60a5fa 0%, #22d3ee 50%, #14b8a6 100%); /* hero text */
  --grad-stat:        linear-gradient(135deg, #60a5fa, #22d3ee); /* big stat numbers */

  /* ---------- COLOR — Glow / shadow ---------- */
  --glow-blue:        0 4px 20px rgba(59,130,246,0.30);
  --glow-blue-lg:     0 6px 30px rgba(59,130,246,0.50);
  --glow-cyan:        0 0 50px rgba(34,211,238,0.15);
  --shadow-card:      0 12px 40px rgba(0,0,0,0.20);
  --shadow-frame:     0 20px 60px rgba(0,0,0,0.30);
  --shadow-mega:      0 20px 60px rgba(0,0,0,0.50);

  /* ---------- TYPOGRAPHY — Families ---------- */
  --font:             'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* ---------- TYPOGRAPHY — Weights ---------- */
  --fw-regular:       400;
  --fw-medium:        500;
  --fw-semibold:      600;
  --fw-bold:          700;
  --fw-black:         800;

  /* ---------- TYPOGRAPHY — Sizes (raw) ---------- */
  --fs-eyebrow:       12px;   /* uppercase 2.5px tracking */
  --fs-meta:          11px;
  --fs-caption:       12.5px;
  --fs-small:         13px;
  --fs-body-sm:       14px;
  --fs-body:          14.5px;
  --fs-body-lg:       17px;
  --fs-lead:          19px;
  --fs-h5:            15px;
  --fs-h4:            17px;
  --fs-h3:            22px;
  --fs-h2:            clamp(28px, 3.5vw, 40px);
  --fs-h1:            clamp(32px, 4vw, 44px);
  --fs-display:       clamp(40px, 5.5vw, 64px);

  /* ---------- TYPOGRAPHY — Tracking ---------- */
  --track-tight:      -2px;
  --track-snug:       -1.5px;
  --track-normal:     -0.5px;
  --track-wide:       1.5px;
  --track-wider:      2px;
  --track-widest:     2.5px;

  /* ---------- TYPOGRAPHY — Line heights ---------- */
  --lh-display:       1.08;
  --lh-heading:       1.15;
  --lh-snug:          1.4;
  --lh-body:          1.6;
  --lh-relaxed:       1.7;

  /* ---------- SPACING / RADII / Z ---------- */
  --r-xs:             4px;
  --r-sm:             6px;
  --r-md:             8px;     /* buttons, nav items, filters */
  --r-lg:             10px;    /* large btns, dash stat cards */
  --r-xl:             12px;    /* feature items, badges */
  --r-2xl:            14px;    /* module cards */
  --r-3xl:            16px;    /* dashboard frame, testimonials */
  --r-4xl:            20px;    /* platform-visual */
  --r-5xl:            24px;    /* CTA box */
  --r-pill:           100px;   /* badges */
  --r-full:           50%;     /* avatars, fusion ring */

  --container:        1240px;
  --nav-h:            72px;
}

/* ============================================================
   Semantic / element styles — apply via class or element selectors
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-navy);
  color: var(--c-white);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display — hero h1 with gradient inflection */
.t-display, h1.display {
  font-family: var(--font);
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-display);
  letter-spacing: var(--track-tight);
  color: var(--c-white-pure);
}
.t-display .accent, h1.display .accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* h1 — section title */
.t-h1, h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-snug);
  color: var(--c-white-pure);
}

/* h2 — CTA / large panel heading */
.t-h2, h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--c-white-pure);
}

/* h3 — sub-section */
.t-h3, h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: var(--track-normal);
  color: var(--c-white-pure);
}

/* h4 — card / module title */
.t-h4, h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--c-white-pure);
}

/* h5 — feature item title, footer column header */
.t-h5, h5 {
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: var(--c-white-pure);
}

/* Eyebrow — uppercase section label, the C2SEC signature */
.t-eyebrow {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--track-widest);
  color: var(--c-blue-bright);
  font-weight: var(--fw-semibold);
}
.t-eyebrow.muted { color: var(--c-g400); letter-spacing: var(--track-wider); }

/* Lead — large hero subtitle */
.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--c-g300);
  font-weight: var(--fw-regular);
}

/* Body */
.t-body, p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--c-g300);
}
.t-body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--c-g300); }
.t-body-sm { font-size: var(--fs-small); line-height: 1.5; color: var(--c-g400); }

/* Caption / meta */
.t-caption { font-size: var(--fs-caption); color: var(--c-g400); line-height: var(--lh-snug); }
.t-meta    { font-size: var(--fs-meta);    color: var(--c-g400); }

/* Mono — URLs, code, big stat units */
.t-mono, code, kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-g300);
}

/* Tags */
.t-tag-new {
  font-size: 9px; padding: 2px 6px; border-radius: var(--r-xs);
  background: rgba(16,185,129,0.15); color: var(--c-green);
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.5px;
}
.t-tag-soon {
  font-size: 9px; padding: 2px 6px; border-radius: var(--r-xs);
  background: rgba(245,158,11,0.12); color: var(--c-orange);
  font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============================================================
   LOGO — mark + wordmark composition
   The mark is the rainbow-arc SVG. The wordmark "C2SEC" is rendered
   as live text in Plus Jakarta Sans 800, tightly tracked, so it
   reads as one with the brand type system.
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white-pure);
  text-decoration: none;
  line-height: 1;
}
.logo__mark {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.logo__word {
  font-family: var(--font);
  font-weight: var(--fw-black);
  font-size: 20px;
  letter-spacing: -0.5px;
  color: inherit;
  line-height: 1;
}
/* Stacked variant — mark above, wordmark below */
.logo--stacked {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.logo--stacked .logo__mark { height: 56px; }
.logo--stacked .logo__word { font-size: 22px; letter-spacing: 1px; }

/* Size variants */
.logo--sm .logo__mark { height: 22px; }
.logo--sm .logo__word { font-size: 16px; }
.logo--lg .logo__mark { height: 40px; }
.logo--lg .logo__word { font-size: 28px; }
.logo--xl .logo__mark { height: 64px; }
.logo--xl .logo__word { font-size: 44px; letter-spacing: -1px; }

/* On dark surfaces */
.logo--dark { color: var(--c-white-pure); }
/* On light surfaces */
.logo--light { color: #1a2d4d; }

/* Links */
a { color: inherit; text-decoration: none; }
.t-link {
  color: var(--c-blue-bright); font-weight: var(--fw-semibold); font-size: 13px;
}
.t-link:hover { text-decoration: underline; }
