/* ===================================================================
   DLG Labs - design system tokens + base (site-v2)
   Offensive-security consultancy. New look only: muted teal accent,
   flat surfaces, editorial dark palette. No neon, no glow, no gradients.
   Single source of truth for :root tokens shared across all pages.
   =================================================================== */

/* Google Fonts: Space Grotesk (headings), Inter (body), JetBrains Mono (mono/labels).
   Swap for self-hosted @font-face once font files are added. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  /* --- base surfaces --- */
  --bg:       #0a0d11;              /* landing / global background */
  --bg2:      #0c1119;              /* services section background */
  --bg-room:  #05070b;             /* service room (immersive) background */

  /* --- text --- */
  --text:     #e7ebf0;             /* primary text */
  --muted:    #9aa8b5;             /* secondary text */
  --dim:      #8595a3;             /* tertiary/labels - raised from #66788a for WCAG AA at small text (~6.3:1 on --bg) */

  /* --- accent (brand) --- */
  --accent:    #7fb0a6;            /* muted teal - flat, no gradient */
  --on-accent: #04120c;           /* text/glyphs sitting on --accent */

  /* --- structure --- */
  --line: rgba(255, 255, 255, .09); /* hairline borders/dividers */

  /* --- per-service-type accents (active row, nexus node, room accent) --- */
  --t-redteam:    #d75a4f;         /* Red Team / Pen Testing */
  --t-ai:         #9d7ce0;         /* AI & LLM */
  --t-social:     #d98ac4;         /* Phishing / Social Engineering */
  --t-reviews:    #4fb0a0;         /* Security Reviews */
  --t-sbd:        #5cb96b;         /* Security by Design */
  --t-threat:     #5a9fd8;         /* Threat Modeling */
  --t-risk:       #e0a24c;         /* Risk */
  --t-compliance: #d4af4e;         /* Compliance */
  --t-ir:         #e07a4c;         /* Incident Response */

  /* --- radii --- */
  --radius-btn:  2px;              /* buttons */
  --radius-chip: 3px;              /* chips / small labels */
  --radius-row:  8px;              /* service rows / cards */

  /* --- typography --- */
  --font-heading: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- layout --- */
  --container-max: 1200px;
  --container-pad: clamp(20px, 6vw, 96px);
}

/* ===================== Reset ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

a { color: inherit; text-decoration: none; }

img, svg, canvas { display: block; max-width: 100%; }

button { font-family: inherit; }

/* ===================== Container ===================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ===================== Buttons ===================== */
/* Flat by design: no gradient, no glow, no box-shadow, no shine sweep. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, filter .2s ease;
}

.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  color: var(--on-accent);
  border-color: var(--accent);
  filter: brightness(1.08);
}

.btn:disabled,
.btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  filter: none;
}

/* ===================== Focus + selection ===================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
