/* ============================================================
   U-DEFEND — Design System v2
   Light mode · Clean · Professional · Cybersecurity
   ============================================================ */

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

/* ---- Variables ---- */
:root {
  --white:        #ffffff;
  --off-white:    #f7f8fa;
  --light:        #eef0f4;
  --light-mid:    #dde1e9;
  --mid:          #b0b8c8;
  --text-muted:   #7a8499;
  --text-dim:     #4a5568;
  --text:         #1a2235;
  --black:        #0d1320;

  --accent:       #0057ff;
  --accent-light: #e8f0ff;
  --accent-mid:   #3d7bff;
  --accent-dark:  #0040cc;
  --danger:       #e53e3e;
  --danger-light: #fff0f0;
  --success:      #0a8a4b;
  --warn:         #d97706;

  --nav-height:   72px;
  --border:       rgba(0,0,0,0.08);
  --border-mid:   rgba(0,0,0,0.14);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-accent: 0 8px 32px rgba(0,87,255,0.18);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.accent { color: var(--accent); }
.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--off-white);
}
.section--dark {
  background: var(--black);
  color: var(--white);
}

/* ---- Fade-in animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow);
}
.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: rgb(255, 255, 255);
  letter-spacing: 0.02em;
  overflow: hidden;
}
.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--black);
  line-height: 1;
}
.nav__logo-text span {
  color: var(--accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); background: var(--off-white); }
.nav__link.active { color: var(--accent); background: var(--accent-light); }
.nav__link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-8px);
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__dropdown a:hover { color: var(--accent); background: var(--accent-light); }

.nav__cta { margin-left: 1rem; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 100px 24px 40px;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.sub { padding-left: 20px; font-size: 0.95rem; color: var(--text-dim); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 2px solid var(--border-mid);
}
.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}
.btn--white {
  background: white;
  color: var(--accent);
  border: 2px solid white;
}
.btn--white:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.btn--large { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn--sm { padding: 7px 16px; font-size: 0.8rem; }

/* ============================================================
   LABELS & BADGES
   ============================================================ */

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.label::before { content: '// '; opacity: 0.5; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--red {
  background: var(--danger-light);
  color: var(--danger);
}
.badge--green {
  background: #e8f8ef;
  color: var(--success);
}
.badge--live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header { margin-bottom: 4rem; }
.section-header--center { text-align: center; }
.section-header--center .section-desc { max-width: 560px; margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.section--dark .section-title { color: white; }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 640px;
}
.section--dark .section-desc { color: rgba(255,255,255,0.65); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.section--alt .card { background: var(--white); }
.card__icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.card__icon-wrap svg { width: 24px; height: 24px; color: var(--accent); }
.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.card__body {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.card__link:hover { gap: 10px; }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--white);
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-shape {
  position: absolute;
  right: -80px;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 60%, #ddeaff 100%);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,87,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(48vw, 760px);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.hero__title .accent {
  color: var(--accent);
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-mid);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Hero visual / threat map */
.hero__visual {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: 0; bottom: 0;
  width: min(50vw, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  pointer-events: none;
}
.threat-map {
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.threat-map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
.threat-map__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.threat-map__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--success);
  letter-spacing: 0.1em;
}
.threat-map__pulse {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
#threatMapCanvas {
  display: block;
  width: 100%;
  height: 320px;
}
.threat-map__footer {
  display: flex;
  border-top: 1px solid var(--border);
}
.threat-map__stat {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-right: 1px solid var(--border);
}
.threat-map__stat:last-child { border-right: none; }
.threat-map__stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}
.threat-map__stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  position: relative;
  background: var(--off-white);
  padding: calc(var(--nav-height) + 64px) 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent, var(--accent-light));
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.page-hero__breadcrumb a { color: var(--text-muted); }
.page-hero__breadcrumb a:hover { color: var(--accent); }
.page-hero__breadcrumb span { color: var(--text-dim); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 1rem 0;
  max-width: 700px;
}
.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.75;
  margin-top: 1rem;
}

/* ============================================================
   LOGO STRIP
   ============================================================ */

.logos-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
}
.logos-strip__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.logos-strip__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: logoScroll 30s linear infinite;
}
.logos-strip__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  white-space: nowrap;
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 0 12px;
}
.logos-strip__logo:hover { color: var(--accent); }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SOLUTIONS GRID
   ============================================================ */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   STATS GRID
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 5rem;
}
.stat-item {
  background: var(--white);
  padding: 2rem;
  text-align: center;
}
.section--alt .stat-item { background: var(--white); }
.stat-item__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* ============================================================
   TERMINAL BLOCK
   ============================================================ */

.terminal {
  background: var(--black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a2235;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal__dot:nth-child(1) { background: #ff5f57; }
.terminal__dot:nth-child(2) { background: #ffbd2e; }
.terminal__dot:nth-child(3) { background: #28c840; }
.terminal__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.terminal__body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
}
.terminal__line { display: block; }
.terminal__prompt { color: #4ade80; }
.terminal__cmd { color: #93c5fd; }
.terminal__output { color: rgba(255,255,255,0.5); padding-left: 1rem; }
.terminal__success { color: #4ade80; padding-left: 1rem; }
.terminal__warn { color: #fbbf24; }
.terminal__cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  border-radius: 1px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   VALUES GRID
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.value-card__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--mid);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.value-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.value-card__icon svg { width: 20px; height: 20px; color: var(--accent); }
.value-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.value-card__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   TEAM GRID
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transition);
}
.team-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.team-card__photo {
  height: 400px;
  background: linear-gradient(135deg, var(--accent-light), #ddeaff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card__initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.team-card__body { padding: 0; }
.team-card__identity {
  margin-top: -92px;
  padding: 3.75rem 1.5rem 1rem;
  background: linear-gradient(to bottom, rgba(9, 15, 25, 0) 0%, rgba(9, 15, 25, 0.92) 65%);
  position: relative;
  z-index: 1;
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.team-card__bio {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
}

/* ============================================================
   NEWS GRID
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transition);
}
.news-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.news-card__image {
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}
.news-card__category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.9);
  color: var(--accent);
  font-weight: 500;
}
.news-card__body { padding: 1.5rem; }
.news-card__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.featured-report {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.featured-report__cover {
  background: linear-gradient(135deg, var(--accent-light), #c8d8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
}
.featured-report__cover-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.featured-report__body {
  padding: 3rem;
}
.featured-report__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.featured-report__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.featured-report__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.featured-report__excerpt {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ============================================================
   JOB LISTINGS
   ============================================================ */

.job-listing {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
  flex-wrap: wrap;
}
.job-listing:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow);
}
.job-listing__info { flex: 1; min-width: 200px; }
.job-listing__title {
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.job-listing__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.job-listing__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 100px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.tag--blue { background: var(--accent-light); color: var(--accent); }
.tag--green { background: #e8f8ef; color: var(--success); }
.tag--orange { background: #fff8e8; color: var(--warn); }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-info__icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg { width: 18px; height: 18px; color: var(--accent); }
.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info__value {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}
.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.form__group { margin-bottom: 1.25rem; }
.form__label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--off-white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.1);
  background: var(--white);
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%234a5568' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  position: relative;
}
.cta-banner__desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}
.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-lg);
}
.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 700;
  color: var(--black);
  font-size: 0.9rem;
}
.testimonial-card__title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.process-step__num {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.process-step__content strong {
  display: block;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.process-step__content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.footer__logo-mark {
  width: 34px; height: 34px;
  background: transparent;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: white;
  overflow: hidden;
}
.footer__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: white;
}
.footer__logo-text span { color: var(--accent); }
.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
  font-family: var(--font-display);
}
.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__col-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer__col-links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero__content { max-width: 100%; }
  .hero__visual {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    padding-top: 1.5rem;
    pointer-events: auto;
  }
  .threat-map {
    width: min(100%, 700px);
    margin: 0 auto;
  }
}
@media (max-width: 960px) {
  .grid-3, .values-grid, .team-grid, .news-grid, .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .values-grid, .team-grid, .news-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .grid-4, .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .job-listing { flex-direction: column; align-items: flex-start; }
  .hero__visual {
    padding-top: 1rem;
  }
  #threatMapCanvas {
    height: 240px;
  }
  .threat-map__header {
    padding: 12px 14px;
  }
  .threat-map__footer {
    flex-wrap: wrap;
  }
  .threat-map__stat {
    min-width: 33.33%;
    padding: 10px 8px;
  }
  .featured-report {
    grid-template-columns: 1fr;
  }
  .featured-report__cover {
    min-height: 200px;
    padding: 1.25rem;
  }
  .featured-report__cover-title {
    font-size: 2.2rem;
  }
  .featured-report__body {
    padding: 1.5rem;
  }
  .featured-report__title {
    font-size: 1.25rem;
  }
}
