/* ============================================================
   GROSINT — ROOT STYLESHEET
   All @import must come first (postcss-import requirement),
   then Tailwind directives.
   ============================================================ */

/* Design tokens — single source of truth */

/* ============================================================
   GROSINT — DESIGN TOKENS
   Single source of truth for all CSS custom properties.
   Every colour, spacing, type, animation, and z-index value
   lives here. Never hardcode values in component files.
   ============================================================ */

:root {
  /* ── Colour: Backgrounds ─────────────────────────────────── */
  --color-bg-base:        #000000;          /* Pure black — reference HUD aesthetic */
  --color-bg-surface:     #080C14;          /* Deep navy for cards / surfaces */
  --color-bg-card:        #0D1117;          /* Card background */
  --color-bg-hover:       #111827;          /* Hover state */
  --color-bg-glass:       rgba(8, 12, 20, 0.75);

  /* ── Colour: Borders ─────────────────────────────────────── */
  --color-border:         #1A2540;
  --color-border-accent:  rgba(0, 200, 255, 0.25);  /* Cyan accent border */
  --color-border-amber:   rgba(232, 125, 20, 0.30); /* Amber accent border */
  --color-border-pink:    rgba(255, 45, 120, 0.25); /* Pink accent border */

  /* ── Colour: Brand (Amber / Saffron — from Drishti & Anveshak) */
  --color-amber:          #E87D14;
  --color-amber-glow:     #F5A623;
  --color-amber-dark:     #B86810;
  --color-amber-subtle:   rgba(232, 125, 20, 0.08);

  /* ── Colour: HUD Neons ───────────────────────────────────── */
  --color-cyan:           #00C8FF;          /* Primary neon — reticles, data */
  --color-cyan-dim:       rgba(0, 200, 255, 0.15);
  --color-pink:           #FF2D78;          /* Secondary neon — crosshair accents */
  --color-pink-dim:       rgba(255, 45, 120, 0.15);
  --color-purple:         #7B2FBE;          /* Tertiary — Drishti fusion product */
  --color-purple-dim:     rgba(123, 47, 190, 0.20);
  --color-green-wa:       #25D366;          /* WhatsApp green */

  /* ── Colour: Text ────────────────────────────────────────── */
  --color-text-primary:   #E6EDF3;
  --color-text-muted:     #8B949E;
  --color-text-faint:     #3D4451;
  --color-text-mono:      #00C8FF;          /* Cyan for HUD / mono text */

  /* ── Colour: Status ──────────────────────────────────────── */
  --color-success:        #3FB950;
  --color-warning:        #D29922;
  --color-danger:         #F85149;

  /* ── Colour: Glows ───────────────────────────────────────── */
  --glow-amber:    0 0 20px rgba(232, 125, 20, 0.5),  0 0 60px rgba(232, 125, 20, 0.2);
  --glow-cyan:     0 0 20px rgba(0, 200, 255, 0.5),   0 0 60px rgba(0, 200, 255, 0.2);
  --glow-pink:     0 0 20px rgba(255, 45, 120, 0.5),  0 0 60px rgba(255, 45, 120, 0.15);
  --glow-purple:   0 0 20px rgba(123, 47, 190, 0.5),  0 0 60px rgba(123, 47, 190, 0.15);
  --glow-card:     0 8px 32px rgba(0, 0, 0, 0.6),     0 0 0 1px rgba(0, 200, 255, 0.08);
  --glow-wa:       0 0 24px rgba(37, 211, 102, 0.4);

  /* ── Typography ──────────────────────────────────────────── */
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type scale — uses clamp() for smooth scaling */
  --text-2xs:   0.6875rem;                              /* 11px */
  --text-xs:    0.75rem;                                /* 12px */
  --text-sm:    0.875rem;                               /* 14px */
  --text-base:  1rem;                                   /* 16px */
  --text-lg:    1.125rem;                               /* 18px */
  --text-xl:    1.25rem;                                /* 20px */
  --text-2xl:   1.5rem;                                 /* 24px */
  --text-3xl:   2rem;                                   /* 32px */
  --text-4xl:   clamp(2rem, 5vw, 3rem);                /* 32–48px fluid */
  --text-hero:  clamp(2.5rem, 7vw, 4.5rem);            /* 40–72px fluid */

  /* ── Spacing ─────────────────────────────────────────────── */
  --space-1:   0.25rem;    /* 4px */
  --space-2:   0.5rem;     /* 8px */
  --space-3:   0.75rem;    /* 12px */
  --space-4:   1rem;       /* 16px */
  --space-5:   1.25rem;    /* 20px */
  --space-6:   1.5rem;     /* 24px */
  --space-8:   2rem;       /* 32px */
  --space-10:  2.5rem;     /* 40px */
  --space-12:  3rem;       /* 48px */
  --space-16:  4rem;       /* 64px */
  --space-20:  5rem;       /* 80px */
  --space-24:  6rem;       /* 96px */
  --space-32:  8rem;       /* 128px */

  /* ── Layout ──────────────────────────────────────────────── */
  --container-max:   1280px;
  --container-pad:   clamp(1rem, 5vw, 2rem);
  --section-pad-y:   clamp(4rem, 10vw, 8rem);
  --nav-height:      64px;
  --classbar-height: 24px;

  /* ── Borders & Radius ────────────────────────────────────── */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.6);
  --shadow-deep:  0 32px 64px rgba(0,0,0,0.8);

  /* ── Z-index Scale ───────────────────────────────────────── */
  --z-bg:       -2;
  --z-canvas:   -1;
  --z-base:      0;
  --z-raised:   10;
  --z-hud:      20;
  --z-overlay: 100;
  --z-nav:     200;
  --z-toast:   300;

  /* ── Transitions ─────────────────────────────────────────── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-3d:     300ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── 3D Perspective ──────────────────────────────────────── */
  --perspective-card:   800px;
  --perspective-scene: 1200px;
  --perspective-deep:  2000px;

  /* ── Animation Durations ─────────────────────────────────── */
  --anim-float:     6s;
  --anim-orbit:     5s;
  --anim-glow:      3s;
  --anim-reticle:   2s;
  --anim-scan:      8s;
  --anim-radar:     4s;
  --anim-reveal:    0.6s;
  --anim-pipeline:  3s;
  --anim-glitch:    4s;
}

/* Reset */

/* ============================================================
   GROSINT — MODERN CSS RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -moz-text-size-adjust: 100%;
       text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* Offset scroll position to account for sticky navbar */
  scroll-padding-top: calc(var(--nav-height) + var(--space-6));
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 0;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

canvas { display: block; }

/* Remove animations when user prefers reduced motion */

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

/* Typography */

/* ============================================================
   GROSINT — TYPOGRAPHY
   Fluid type scale using CSS custom properties + clamp().
   ============================================================ */

/* Section heading overline label */

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-amber);
  flex-shrink: 0;
}

/* Centre variant — no leading line */

.section-label--centre::before { display: none; }

/* Section title — H2 */

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1.15;
}

/* Section subtitle */

.section-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 60ch;
}

/* Hero headline */

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text-primary);
}

/* Mono / HUD text */

.text-mono {
  font-family: var(--font-mono);
  color: var(--color-text-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

/* Gradient text utility — amber to cyan */

.text-gradient {
  background: linear-gradient(135deg, var(--color-amber-glow) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Neon text glow utilities */

.text-glow-amber {
  text-shadow: 0 0 20px rgba(232, 125, 20, 0.8), 0 0 40px rgba(232, 125, 20, 0.4);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.8), 0 0 40px rgba(0, 200, 255, 0.4);
}

/* Layout utilities */

/* ============================================================
   GROSINT — LAYOUT
   Container, section wrapper, and structural grid/flex.
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */

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

/* ── Section Wrapper ────────────────────────────────────────── */

.section {
  padding-block: var(--section-pad-y);
  position: relative;   /* anchor for absolute HUD overlay decorations */
  overflow: hidden;
}

.section--dark    { background: var(--color-bg-base); }

.section--surface { background: var(--color-bg-surface); }

/* ── Section Heading Group ──────────────────────────────────── */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.section-heading--centre {
  align-items: center;
  text-align: center;
}

.section-heading--centre .section-sub {
  margin-inline: auto;
}

/* ── Products Grid — auto-reflow, no breakpoints needed ─────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* ── Pillars Grid — auto-reflow ─────────────────────────────── */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

/* ── Who We Serve Grid ──────────────────────────────────────── */

.serve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .serve-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ── Pipeline ───────────────────────────────────────────────── */

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .pipeline { flex-wrap: nowrap; }
}

/* ── Two-column content layout (product pages) ──────────────── */

.content-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .content-split { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ── 3-column capabilities grid ─────────────────────────────── */

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Hero actions row ───────────────────────────────────────── */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ── Footer grid ────────────────────────────────────────────── */

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

/* Animation keyframes */

/* ============================================================
   GROSINT — ANIMATIONS
   All @keyframes. Referenced via CSS custom property durations
   in tokens.css. Never hardcode durations here.
   ============================================================ */

/* ── 3D Float Drift — floating HUD labels ───────────────────── */

@keyframes float-drift {
  0%, 100% { transform: translateY(0px) translateZ(0px); }
  33%       { transform: translateY(-14px) translateZ(12px); }
  66%       { transform: translateY(7px)  translateZ(-6px); }
}

/* ── HUD Reticle Pulse ──────────────────────────────────────── */

@keyframes reticle-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 0.85; transform: scale(1.12); }
}

/* ── Scan Lines Scroll ──────────────────────────────────────── */

@keyframes scan-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(4px); }
}

/* ── Radar Sweep ────────────────────────────────────────────── */

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Orbit Breathe ──────────────────────────────────────────── */

@keyframes orbit-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%       { transform: scale(1.08); opacity: 1; }
}

/* ── Brand Glow Pulse (amber drop-shadow) ───────────────────── */

@keyframes brand-glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(232, 125, 20, 0.4))
            drop-shadow(0 0 30px rgba(232, 125, 20, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(245, 166, 35, 0.9))
            drop-shadow(0 0 60px rgba(245, 166, 35, 0.3));
  }
}

/* ── Cyan Border Trace (section entry) ──────────────────────── */

@keyframes border-trace {
  from { clip-path: inset(0 100% 100% 0); }
  to   { clip-path: inset(0 0% 0% 0); }
}

/* ── Glitch Frame 1 (cyan — upper clip) ─────────────────────── */

@keyframes glitch-1 {
  0%,  88%, 100% { transform: translate(0); opacity: 0; }
  90%            { transform: translate(-3px,  1px); opacity: 0.7; }
  92%            { transform: translate( 3px, -1px); opacity: 0.7; }
  94%            { transform: translate(-2px,  2px); opacity: 0.7; }
  96%            { transform: translate( 2px,  0px); opacity: 0.7; }
  98%            { transform: translate(-1px, -1px); opacity: 0.7; }
}

/* ── Glitch Frame 2 (pink — lower clip) ─────────────────────── */

@keyframes glitch-2 {
  0%,  88%, 100% { transform: translate(0); opacity: 0; }
  91%            { transform: translate( 3px,  1px); opacity: 0.7; }
  93%            { transform: translate(-3px, -1px); opacity: 0.7; }
  95%            { transform: translate( 2px, -2px); opacity: 0.7; }
  97%            { transform: translate(-2px,  0px); opacity: 0.7; }
  99%            { transform: translate( 1px,  1px); opacity: 0.7; }
}

/* ── Pipeline Data Packet ───────────────────────────────────── */

@keyframes pipeline-packet {
  from { offset-distance: 0%;   opacity: 1; }
  70%  { opacity: 1; }
  to   { offset-distance: 100%; opacity: 0; }
}

/* ── Pipeline Connecting Line Dot ───────────────────────────── */

@keyframes pipeline-dot {
  from { left: 0%;   opacity: 0.9; }
  80%  { opacity: 0.9; }
  to   { left: 100%; opacity: 0; }
}

/* ── Section Reveal (fade + slide up) ───────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pulse Ring ─────────────────────────────────────────────── */

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Dot Scan (cardinal orbit dots, from Anveshak) ──────────── */

@keyframes dot-scan {
  0%        { opacity: 0; transform: scale(0.4); }
  10%, 30%  { opacity: 1; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(0.4); }
}

/* ── Neon Flicker (subtle, for accent elements) ─────────────── */

@keyframes neon-flicker {
  0%,  19%,  21%,  23%,  25%,  54%,  56%,  100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

/* 3D CSS transforms */

/* ============================================================
   GROSINT — CSS 3D
   CSS perspective, preserve-3d, card tilt, cube flip,
   isometric transforms. All 3D depth via CSS transforms.
   Three.js handles WebGL — this file handles CSS 3D.
   ============================================================ */

/* ── Card 3D Tilt — mouse parallax ─────────────────────────── */

/* Outer wrapper establishes the perspective origin */

.card-3d-wrapper {
  perspective: var(--perspective-card);
  perspective-origin: 50% 50%;
}

/* The card itself rotates in 3D space */

.card-3d {
  transform-style: preserve-3d;
  transition: transform var(--transition-3d), box-shadow var(--transition-3d);
  will-change: transform;
  /* --rx and --ry are set by JS on mousemove */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  position: relative;
}

/* Specular highlight that tracks mouse position */

.card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 200, 255, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
  transition: opacity var(--transition-base);
  opacity: 0;
}

.card-3d:hover::after { opacity: 1; }

/* Depth layers within a 3D card */

.card-3d__layer--front  { transform: translateZ(24px); }

.card-3d__layer--mid    { transform: translateZ(12px); }

.card-3d__layer--back   { transform: translateZ(0px);  }

/* ── 3D Cube Icon — flips on hover ─────────────────────────── */

.cube-wrapper {
  perspective: 240px;
  width: 56px;
  height: 56px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
}

.cube-wrapper:hover .cube,
.pillar:hover .cube {
  transform: rotateY(180deg) rotateX(10deg);
}

.cube__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

/* Front face — icon */

.cube__face--front {
  color: var(--color-amber);
}

/* Back face — shows HUD label text when flipped */

.cube__face--back {
  transform: rotateY(180deg);
  background: var(--color-cyan-dim);
  border-color: var(--color-border-accent);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-align: center;
  padding: var(--space-2);
}

/* ── 3D Domain Tile Hover Lift ──────────────────────────────── */

.tile-3d {
  transition:
    transform var(--transition-3d),
    box-shadow var(--transition-3d),
    border-color var(--transition-base);
}

.tile-3d:hover {
  transform: translateY(-10px) rotateX(6deg);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.7),
    0  0   0 1px rgba(0, 200, 255, 0.25),
    var(--glow-cyan);
  border-color: var(--color-border-accent);
}

/* ── 3D Isometric Pipeline ──────────────────────────────────── */

.pipeline-3d-scene {
  perspective: var(--perspective-scene);
  perspective-origin: 50% 40%;
}

.pipeline-3d-track {
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-6deg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

/* Pipeline node box — has visible top + front faces */

.pipeline-node-3d {
  position: relative;
  transform-style: preserve-3d;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.pipeline-node-3d__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
}

.pipeline-node-3d__face--front {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-accent);
  color: var(--color-text-muted);
  transform: translateZ(10px);
}

.pipeline-node-3d__face--top {
  transform: rotateX(90deg) translateZ(-10px);
  background: var(--color-amber-subtle);
  border: 1px solid var(--color-border-amber);
  height: 20px;
  inset: auto 0 calc(100% - 10px) 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Connecting line between pipeline nodes */

.pipeline-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-amber) 0%, var(--color-cyan) 100%);
  position: relative;
  min-width: 24px;
  display: none;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .pipeline-line { display: block; }
}

/* Animated dot travelling along the line */

.pipeline-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: var(--glow-cyan);
  animation: pipeline-dot var(--anim-pipeline) linear infinite;
  animation-delay: var(--line-delay, 0s);
}

/* ── HUD Corner Bracket decoration ─────────────────────────── */

/* Applied to .card--hud — creates L-shaped corner brackets */

.card--hud {
  position: relative;
}

.card--hud::before,
.card--hud::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Top-left corner */

.card--hud::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--color-cyan);
  border-left: 2px solid var(--color-cyan);
  border-radius: var(--radius-sm) 0 0 0;
  box-shadow: -2px -2px 8px rgba(0, 200, 255, 0.3);
}

/* Bottom-right corner */

.card--hud::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--color-cyan);
  border-right: 2px solid var(--color-cyan);
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: 2px 2px 8px rgba(0, 200, 255, 0.3);
}

/* HUD elements */

/* ============================================================
   GROSINT — HUD ELEMENTS
   Crosshair reticles, scan lines, floating intelligence labels,
   glitch text effect, neon border trace. CSS-only, no Three.js.
   ============================================================ */

/* ── Classification Bar ─────────────────────────────────────── */

.classbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--classbar-height);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: var(--container-pad);
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.classbar__accent {
  width: 3px;
  height: 14px;
  background: var(--color-amber);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: brand-glow-pulse var(--anim-glow) ease-in-out infinite;
}

/* ── Crosshair Reticle ──────────────────────────────────────── */

.reticle {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: var(--z-hud);
}

.reticle::before,
.reticle::after {
  content: '';
  position: absolute;
  background: var(--color-cyan);
  animation: reticle-pulse var(--anim-reticle) ease-in-out infinite;
}

/* Horizontal bar with centre gap */

.reticle::before {
  width: 100%;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
  clip-path: polygon(
    0% 0%,   32% 0%,  32% 100%, 0% 100%,
    68% 0%, 100% 0%, 100% 100%, 68% 100%
  );
}

/* Vertical bar with centre gap */

.reticle::after {
  height: 100%;
  width: 1px;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(
    0%   0%,  100%  0%,  100%  32%, 0%  32%,
    0%  68%,  100%  68%, 100% 100%, 0% 100%
  );
}

/* Colour variants */

.reticle--cyan  { }

.reticle--pink  { }

.reticle--pink::before, .reticle--pink::after { background: var(--color-pink); }

.reticle--amber { }

.reticle--amber::before, .reticle--amber::after { background: var(--color-amber); }

/* Corner-bracket only reticle (L-shapes, no cross) */

.reticle--corners {
  width: 32px;
  height: 32px;
}

.reticle--corners::before,
.reticle--corners::after {
  background: none;
  width: 100%;
  height: 100%;
  clip-path: none;
  border: 1.5px solid currentColor;
  animation: reticle-pulse var(--anim-reticle) ease-in-out infinite;
}

.reticle--corners::before {
  /* Top-left + top-right L brackets via clip */
  border-right: none;
  border-bottom: none;
  top: 0;
  left: 0;
  color: var(--color-cyan);
}

.reticle--corners::after {
  /* Bottom-right L bracket */
  border-left: none;
  border-top: none;
  top: auto;
  bottom: 0;
  right: 0;
  left: auto;
  color: var(--color-cyan);
}

/* ── Scan Lines Overlay ─────────────────────────────────────── */

.scan-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-hud);
  background: repeating-linear-gradient(
    0deg,
    transparent              0px,
    transparent              2px,
    rgba(0, 200, 255, 0.018) 2px,
    rgba(0, 200, 255, 0.018) 4px
  );
  animation: scan-scroll var(--anim-scan) linear infinite;
}

/* ── Floating Intelligence Labels ───────────────────────────── */

.float-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-cyan);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  animation: float-drift var(--anim-float) ease-in-out infinite,
             label-fade  var(--anim-float) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  z-index: var(--z-hud);
}

.float-label--pink   { color: var(--color-pink); }

.float-label--amber  { color: var(--color-amber); }

.float-label--muted  { color: var(--color-text-muted); }

@media (max-width: 767px) {
  .float-label { display: none; }
}

@keyframes label-fade {
  0%, 5%    { opacity: 0; }
  15%, 85%  { opacity: 0.5; }
  95%, 100% { opacity: 0; }
}

/* ── Glitch Text Effect ─────────────────────────────────────── */

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Cyan ghost — upper half clip */

.glitch::before {
  color: var(--color-cyan);
  animation: glitch-1 var(--anim-glitch) infinite steps(1);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  opacity: 0;
}

/* Pink ghost — lower half clip */

.glitch::after {
  color: var(--color-pink);
  animation: glitch-2 var(--anim-glitch) infinite steps(1);
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  opacity: 0;
}

/* ── Neon Border Trace (entry animation) ────────────────────── */

.border-trace {
  position: relative;
  overflow: hidden;
}

.border-trace::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-cyan);
  border-radius: inherit;
  opacity: 0;
  animation: border-trace-anim 1.2s ease forwards;
  animation-play-state: paused;
  pointer-events: none;
}

.border-trace.visible::before {
  animation-play-state: running;
}

@keyframes border-trace-anim {
  0%   { clip-path: inset(0 100% 100% 0 round inherit); opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round inherit);       opacity: 1; }
}

/* ── Section Reveal ─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity    var(--anim-reveal) ease,
    transform  var(--anim-reveal) ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — nth-child sets --stagger-delay */

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   var(--anim-reveal) ease var(--stagger-delay, 0ms),
    transform var(--anim-reveal) ease var(--stagger-delay, 0ms);
}

.reveal-stagger > *:nth-child(1) { --stagger-delay: 0ms;   }

.reveal-stagger > *:nth-child(2) { --stagger-delay: 80ms;  }

.reveal-stagger > *:nth-child(3) { --stagger-delay: 160ms; }

.reveal-stagger > *:nth-child(4) { --stagger-delay: 240ms; }

.reveal-stagger > *:nth-child(5) { --stagger-delay: 320ms; }

.reveal-stagger > *:nth-child(6) { --stagger-delay: 400ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Ambient Glow Orbs (decorative background spots) ────────── */

.glow-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}

.glow-orb--amber {
  background: var(--color-amber);
}

.glow-orb--cyan {
  background: var(--color-cyan);
}

.glow-orb--pink {
  background: var(--color-pink);
}

/* Component mixins */

/* ============================================================
   GROSINT — COMPONENT MIXINS
   @layer components — reusable class-based design system.
   These are the "mixins" — compose them on HTML elements.
   ============================================================ */

/* Tailwind directives — after all imports */

*, ::before, ::after {
  --tw-border-spacing-x:        0;
  --tw-border-spacing-y:        0;
  --tw-translate-x:        0;
  --tw-translate-y:        0;
  --tw-rotate:        0;
  --tw-skew-x:        0;
  --tw-skew-y:        0;
  --tw-scale-x:        1;
  --tw-scale-y:        1;
  --tw-pan-x:         ;
  --tw-pan-y:         ;
  --tw-pinch-zoom:         ;
  --tw-scroll-snap-strictness:        proximity;
  --tw-gradient-from-position:         ;
  --tw-gradient-via-position:         ;
  --tw-gradient-to-position:         ;
  --tw-ordinal:         ;
  --tw-slashed-zero:         ;
  --tw-numeric-figure:         ;
  --tw-numeric-spacing:         ;
  --tw-numeric-fraction:         ;
  --tw-ring-inset:         ;
  --tw-ring-offset-width:        0px;
  --tw-ring-offset-color:        #fff;
  --tw-ring-color:        rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow:        0 0 #0000;
  --tw-ring-shadow:        0 0 #0000;
  --tw-shadow:        0 0 #0000;
  --tw-shadow-colored:        0 0 #0000;
  --tw-blur:         ;
  --tw-brightness:         ;
  --tw-contrast:         ;
  --tw-grayscale:         ;
  --tw-hue-rotate:         ;
  --tw-invert:         ;
  --tw-saturate:         ;
  --tw-sepia:         ;
  --tw-drop-shadow:         ;
  --tw-backdrop-blur:         ;
  --tw-backdrop-brightness:         ;
  --tw-backdrop-contrast:         ;
  --tw-backdrop-grayscale:         ;
  --tw-backdrop-hue-rotate:         ;
  --tw-backdrop-invert:         ;
  --tw-backdrop-opacity:         ;
  --tw-backdrop-saturate:         ;
  --tw-backdrop-sepia:         ;
  --tw-contain-size:         ;
  --tw-contain-layout:         ;
  --tw-contain-paint:         ;
  --tw-contain-style:         ;
}

::backdrop {
  --tw-border-spacing-x:        0;
  --tw-border-spacing-y:        0;
  --tw-translate-x:        0;
  --tw-translate-y:        0;
  --tw-rotate:        0;
  --tw-skew-x:        0;
  --tw-skew-y:        0;
  --tw-scale-x:        1;
  --tw-scale-y:        1;
  --tw-pan-x:         ;
  --tw-pan-y:         ;
  --tw-pinch-zoom:         ;
  --tw-scroll-snap-strictness:        proximity;
  --tw-gradient-from-position:         ;
  --tw-gradient-via-position:         ;
  --tw-gradient-to-position:         ;
  --tw-ordinal:         ;
  --tw-slashed-zero:         ;
  --tw-numeric-figure:         ;
  --tw-numeric-spacing:         ;
  --tw-numeric-fraction:         ;
  --tw-ring-inset:         ;
  --tw-ring-offset-width:        0px;
  --tw-ring-offset-color:        #fff;
  --tw-ring-color:        rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow:        0 0 #0000;
  --tw-ring-shadow:        0 0 #0000;
  --tw-shadow:        0 0 #0000;
  --tw-shadow-colored:        0 0 #0000;
  --tw-blur:         ;
  --tw-brightness:         ;
  --tw-contrast:         ;
  --tw-grayscale:         ;
  --tw-hue-rotate:         ;
  --tw-invert:         ;
  --tw-saturate:         ;
  --tw-sepia:         ;
  --tw-drop-shadow:         ;
  --tw-backdrop-blur:         ;
  --tw-backdrop-brightness:         ;
  --tw-backdrop-contrast:         ;
  --tw-backdrop-grayscale:         ;
  --tw-backdrop-hue-rotate:         ;
  --tw-backdrop-invert:         ;
  --tw-backdrop-opacity:         ;
  --tw-backdrop-saturate:         ;
  --tw-backdrop-sepia:         ;
  --tw-contain-size:         ;
  --tw-contain-layout:         ;
  --tw-contain-paint:         ;
  --tw-contain-style:         ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: JetBrains Mono, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.container {
  width:        100%;
}

@media (min-width: 640px) {

  .container {
    max-width:        640px;
  }
}

@media (min-width: 768px) {

  .container {
    max-width:        768px;
  }
}

@media (min-width: 1024px) {

  .container {
    max-width:        1024px;
  }
}

@media (min-width: 1280px) {

  .container {
    max-width:        1280px;
  }
}

@media (min-width: 1536px) {

  .container {
    max-width:        1536px;
  }
}

/* ── Navbar ─────────────────────────────────────────────── */

.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 200, 255, 0.08);
    transition: background var(--transition-base), border-color var(--transition-base);
  }

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(0, 200, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  }

.navbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-8);
    height: var(--nav-height);
  }

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
  }

.navbar__logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
  }

.navbar__subtitle {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-text-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

.navbar__logo-mark {
    width: 36px;
    height: 36px;
    animation: brand-glow-pulse var(--anim-glow) ease-in-out infinite;
  }

.navbar__wordmark {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
  }

.navbar__wordmark span {
    color: var(--color-cyan);
  }

.navbar__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
  }

.navbar__links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
    position: relative;
  }

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-cyan);
    transition: width var(--transition-base);
  }

.navbar__links a:hover {
    color: var(--color-text-primary);
  }

.navbar__links a:hover::after {
    width: 100%;
  }

.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }

.navbar__hamburger span {
    display: block;
    height: 1.5px;
    background: var(--color-text-muted);
    transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
    border-radius: var(--radius-full);
  }

.navbar__hamburger span:nth-child(2) { width: 75%; }

.navbar.open .navbar__hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

.navbar.open .navbar__hamburger span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

.navbar.open .navbar__hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

/* Mobile responsive */

@media (max-width: 767px) {
    .navbar {
      margin-top: var(--space-2);
    }
    .navbar__inner {
      grid-template-columns: auto auto;
      justify-content: space-between;
    }
    .navbar__links {
      display: none;
      position: fixed;
      top: var(--nav-height);
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.97);
      backdrop-filter: blur(20px);
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: var(--space-8) var(--container-pad);
      gap: var(--space-6);
    }
    .navbar.open .navbar__links {
      display: flex;
    }
    .navbar__links a {
      font-size: var(--text-xl);
      color: var(--color-text-primary);
    }
    .navbar__hamburger { display: flex; }
    .navbar__cta { display: none !important; }
  }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
      background      var(--transition-fast),
      color           var(--transition-fast),
      border-color    var(--transition-fast),
      box-shadow      var(--transition-fast),
      transform       var(--transition-fast);
  }

.btn:active { transform: translateY(1px); }

/* Primary — amber */

.btn--primary {
    background: var(--color-amber);
    color: #ffffff;
    border-color: var(--color-amber);
  }

.btn--primary:hover {
    background: var(--color-amber-glow);
    border-color: var(--color-amber-glow);
    box-shadow: var(--glow-amber);
  }

/* Ghost — cyan border */

.btn--ghost {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
  }

.btn--ghost:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.15);
  }

/* Neon cyan */

.btn--neon {
    background: rgba(0, 200, 255, 0.06);
    color: var(--color-cyan);
    border-color: var(--color-border-accent);
  }

.btn--neon:hover {
    background: rgba(0, 200, 255, 0.12);
    box-shadow: var(--glow-cyan);
  }

/* WhatsApp */

.btn--whatsapp {
    background: var(--color-green-wa);
    color: #ffffff;
    border-color: var(--color-green-wa);
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-8);
  }

.btn--whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    box-shadow: var(--glow-wa);
  }

/* Sizes */

.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ── Cards ──────────────────────────────────────────────── */

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
    transition:
      border-color var(--transition-base),
      box-shadow   var(--transition-base);
  }

.card--amber {
    border-left: 3px solid var(--color-amber);
  }

.card--cyan {
    border-left: 3px solid var(--color-cyan);
  }

.card--purple {
    border-left: 3px solid var(--color-purple);
  }

.card--glass {
    background: var(--color-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 255, 0.1);
  }

.card--glass:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--glow-card);
  }

/* ── Badges ─────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
  }

/* Grosint SMINT — cyan */

.badge--entry {
    color: var(--color-cyan);
    border-color: var(--color-cyan-dim);
    background: rgba(0, 200, 255, 0.04);
  }

/* Anveshak OSINT — amber */

.badge--osint {
    color: var(--color-amber-glow);
    border-color: var(--color-border-amber);
    background: var(--color-amber-subtle);
  }

/* Drishti Fusion — purple */

.badge--fusion {
    color: #A78BFA;
    border-color: var(--color-purple-dim);
    background: rgba(123, 47, 190, 0.08);
  }

/* ── Product Card ───────────────────────────────────────── */

.product-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

.product-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
  }

.product-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    color: var(--color-amber);
    flex-shrink: 0;
  }

.product-card__name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
  }

.product-card__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
  }

.product-card__bullets {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    list-style: none;
  }

.product-card__bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
  }

.product-card__bullets li::before {
    content: '▸';
    color: var(--color-cyan);
    font-size: var(--text-xs);
    margin-top: 2px;
    flex-shrink: 0;
  }

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-cyan);
    text-decoration: none;
    margin-top: auto;
    transition: gap var(--transition-fast), color var(--transition-fast);
  }

.product-card__link:hover {
    gap: var(--space-2);
    color: var(--color-text-primary);
  }

/* ── Pillar (Why Sovereign) ─────────────────────────────── */

.pillar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    cursor: default;
  }

.pillar__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
  }

.pillar__text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
  }

/* ── Pipeline Node ──────────────────────────────────────── */

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
  }

.pipeline-node__step {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    color: var(--color-amber);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

.pipeline-node__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    letter-spacing: 0.05em;
  }

/* ── Domain Tile (Who We Serve) ─────────────────────────── */

.domain-tile {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    cursor: default;
  }

.domain-tile__icon {
    color: var(--color-amber);
    opacity: 0.9;
  }

.domain-tile__name {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
  }

/* ── CTA Section ────────────────────────────────────────── */

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    padding: var(--space-16) var(--space-8);
    background: var(--color-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-amber);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
  }

/* Ambient amber glow behind CTA */

.cta-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(
      ellipse at 50% 100%,
      rgba(232, 125, 20, 0.12) 0%,
      transparent 70%
    );
    pointer-events: none;
  }

.cta-card__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    position: relative;
  }

.cta-card__sub {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 48ch;
    line-height: 1.7;
    position: relative;
  }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-base);
    padding-block: var(--space-12);
  }

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

.footer__wordmark {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
  }

.footer__registered {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    letter-spacing: 0.05em;
    margin-top: var(--space-2);
  }

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

.footer__links a:hover { color: var(--color-text-primary); }

.footer__links--products a:hover { color: var(--color-cyan); }

.footer__tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    letter-spacing: 0.1em;
    text-align: right;
  }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--color-bg-base);
  }

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

.hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    padding-block: var(--space-16);
  }

.hero__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-amber);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: fade-up 0.8s ease 0.2s both;
  }

.hero__headline {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--color-text-primary);
    max-width: 18ch;
    animation: fade-up 0.8s ease 0.4s both;
  }

.hero__sub {
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    color: var(--color-text-muted);
    max-width: 52ch;
    line-height: 1.75;
    animation: fade-up 0.8s ease 0.6s both;
  }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    animation: fade-up 0.8s ease 0.8s both;
  }

.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    color: var(--color-text-faint);
    letter-spacing: 0.2em;
    z-index: 3;
    animation: fade-up 1s ease 1.2s both;
  }

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-border), transparent);
    animation: scan-scroll 2s ease-in-out infinite;
  }

@media (max-width: 767px) {
    .hero__content {
      padding-top: calc(var(--space-16) + var(--space-8));
    }
  }

.visible {
  visibility:        visible;
}

.fixed {
  position:        fixed;
}

.absolute {
  position:        absolute;
}

.block {
  display:        block;
}

.grid {
  display:        grid;
}

.hidden {
  display:        none;
}

.grow {
  flex-grow:        1;
}

.resize {
  resize:        both;
}

.border {
  border-width:        1px;
}

.outline {
  outline-style:        solid;
}

.ring {
  --tw-ring-offset-shadow:        var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow:        var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow:        var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.transition {
  transition-property:        color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function:        cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration:        150ms;
}

.ease-in-out {
  transition-timing-function:        cubic-bezier(0.4, 0, 0.2, 1);
}
