/*
Theme Name: NLS E-Waste
Theme URI: https://nlsewaste.com
Author: NLS E-Waste Management Limited
Description: Official website theme for NLS E-Waste Management Limited — Uganda's certified e-waste partner.
Version: 1.0.0
License: Proprietary
Text Domain: nls-ewaste
*/

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

:root {
  --primary: #003637;
  --accent: #4eaf46;
  --tertiary: #D4AF37;
  --n100: #ffffff;
  --n200: #F8FAFC;
  --n800: #1E293B;
  --n400: #475569;
  --n300: #64748B;
  --n150: #E2E8F0;
  --font: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(0,54,55,0.08);
  --shadow-hover: 0 12px 40px rgba(0,54,55,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--n800);
  background: var(--n100);
  overflow-x: hidden;
}

/* ─── UTILITY ─────────────────────────────────── */
.eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: #3d9a36; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(78,175,70,0.3); }

.btn-secondary {
  background: #003637;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.3s;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.3s;
}

.footer-logo .logo {
  display: inline-flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--n400);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ─── HERO ────────────────────────────────────── */
#hero {
  background: url('assets/images/hero.png') center center / cover no-repeat;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  position: relative;
}
.hero-right { display: none; }

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 54, 55, 0.82);
  pointer-events: none;
}

.hero-left {
  max-width: 820px;
  width: 100%;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.2s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.hero-h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1.08;
  opacity: 0;
  transform: translateY(30px);
  animation: heroSlide 0.8s ease 0.4s forwards;
}

.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

@keyframes heroSlide { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlide 0.8s ease 0.6s forwards;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlide 0.8s ease 0.8s forwards;
}

.trust-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}
.trust-ribbon svg { flex-shrink: 0; }

/* ─── CIRCUIT BOARD ───────────────────────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}

.circuit-scene {
  width: 440px;
  height: 440px;
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circuit-board {
  width: 340px;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg) rotateX(5deg);
  animation: boardSpin 12s ease-in-out infinite alternate;
}

@keyframes boardSpin {
  0%   { transform: rotateY(-15deg) rotateX(5deg); }
  50%  { transform: rotateY(15deg)  rotateX(-3deg); }
  100% { transform: rotateY(-8deg)  rotateX(8deg); }
}

.board-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #012f30 0%, #003637 40%, #014545 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(78,175,70,0.3);
  overflow: hidden;
}

.board-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78,175,70,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,175,70,0.2) 1px, transparent 1px);
  background-size: 32px 32px;
}

.trace {
  position: absolute;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 2px;
}
.trace.h { height: 2px; }
.trace.v { width: 2px; }

.chip {
  position: absolute;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 4px;
}

.pin {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--tertiary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
}

.recovery-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.recovery-icons.visible { opacity: 1; }

.rec-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: floatIcon 4s ease-in-out infinite;
}
.rec-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.rec-icon:nth-child(2) { top: 10%; right: 10%; animation-delay: 1.3s; }
.rec-icon:nth-child(3) { bottom: 10%; left: 50%; transform: translateX(-50%); animation-delay: 2.6s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.rec-icon:nth-child(3) {
  animation: floatIcon3 4s ease-in-out 2.6s infinite;
}
@keyframes floatIcon3 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-12px); }
}

.rec-icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,54,55,0.85);
  border: 2px solid var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212,175,55,0.25);
}
.rec-icon span {
  font-size: 11px;
  font-weight: 600;
  color: var(--tertiary);
  text-align: center;
  max-width: 70px;
  line-height: 1.2;
}

/* ─── PARTNERS ────────────────────────────────── */
#partners {
  background: var(--n200);
  padding: 48px 0;
  overflow: hidden;
}

.partners-label {
  font-size: 14px;
  color: var(--n300);
  text-align: center;
  margin-bottom: 32px;
}

.carousel-track-wrapper {
  overflow: hidden;
  position: relative;
}
.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.carousel-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--n200), transparent); }
.carousel-track-wrapper::after  { right: 0; background: linear-gradient(to left, var(--n200), transparent); }

.carousel-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--n300);
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s, transform 0.3s;
  cursor: default;
  letter-spacing: 0.03em;
}
.carousel-item:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }

.carousel-item .partner-dot {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ─── ABOUT ───────────────────────────────────── */
#about {
  background: white;
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 80px;
  align-items: center;
}

.about-left h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-left p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--n400);
  margin-bottom: 36px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mission-card {
  background: white;
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--n150);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
  opacity: 0;
  transform: translateY(22px);
}
.mission-card.mc-visible {
  opacity: 1;
  transform: translateY(0);
}
.mission-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.mc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(78,175,70,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s;
}
.mission-card:hover .mc-icon { background: rgba(78,175,70,0.18); }

.mission-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.mission-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--n400);
  margin: 0;
}

.about-right {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card);
}

/* Floating inception card */
.inception-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: white;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 8px 36px rgba(0,54,55,0.22);
  min-width: 192px;
  animation: cardEntrance 0.7s cubic-bezier(0.22,1,0.36,1) 1s both;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.inception-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--n300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inception-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

.inception-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.inception-value span { color: var(--accent); }

.inception-desc {
  font-size: 12.5px;
  color: var(--n400);
  font-weight: 500;
}

/* ─── IMPACT ──────────────────────────────────── */
#impact {
  background: var(--primary);
  padding: 100px 0;
}

.impact-header { text-align: center; margin-bottom: 56px; }
.impact-header h2 { font-size: 40px; font-weight: 800; color: white; margin-bottom: 14px; }
.impact-header p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 560px; margin: 0 auto; line-height: 1.65; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.metric-card:hover { border-color: rgba(78,175,70,0.4); background: rgba(255,255,255,0.06); }

.metric-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(78,175,70,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.metric-value {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* Circular progress */
.circular-progress {
  position: relative;
  width: 52px; height: 52px;
  margin: 0 auto 20px;
}
.circular-progress svg { transform: rotate(-90deg); }
.circular-progress .bg-ring { stroke: rgba(255,255,255,0.08); }
.circular-progress .fg-ring {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 2s ease-out;
}
.circular-progress .pct-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── SERVICES ────────────────────────────────── */
#services {
  background: white;
  padding: 100px 0;
  position: relative;
}
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,54,55,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.services-header { margin-bottom: 56px; }
.services-header h2 { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.services-header p { font-size: 16px; color: var(--n400); max-width: 640px; line-height: 1.6; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--n150);
  border-top: 3px solid var(--accent);
  transition: border-color 0.3s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(78,175,70,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,54,55,0.12);
}
.bento-card:hover::after { opacity: 1; }

.bento-card.large  { grid-column: span 6; }
.bento-card.medium { grid-column: span 3; }
.bento-card.wide   { grid-column: span 4; }

.bento-card.large {
  background: var(--primary);
  border-color: transparent;
  border-top: 3px solid var(--accent);
}
.bento-card.large::after {
  background: linear-gradient(135deg, rgba(78,175,70,0.12) 0%, transparent 60%);
}
.bento-card.large:hover { border-color: rgba(78,175,70,0.5); box-shadow: 0 20px 48px rgba(0,54,55,0.35); }
.bento-card.large h3 { color: white; font-size: 22px; }
.bento-card.large p  { color: rgba(255,255,255,0.65); }
.bento-card.large .bento-tag { color: var(--accent); }

.bento-tag {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  opacity: 0.85;
}

.bento-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.bento-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--n400);
}

.bento-num {
  position: absolute;
  bottom: 20px; right: 24px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,54,55,0.04);
  pointer-events: none;
  user-select: none;
}
.bento-card.large .bento-num { color: rgba(255,255,255,0.05); }

.bento-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(78,175,70,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s, transform 0.35s, box-shadow 0.35s;
}
.bento-card.large .bento-icon {
  background: rgba(255,255,255,0.1);
}
.bento-card.large .bento-icon svg { stroke: white; }
.bento-card:hover .bento-icon {
  background: rgba(78,175,70,0.18);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(78,175,70,0.25);
}
.bento-card.large:hover .bento-icon {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.bento-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 14px;
}
.feature-pill svg { flex-shrink: 0; stroke: var(--accent); }

.data-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--tertiary);
  color: #5a3e00;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
}

.shield-anim { position: relative; }
.shield-anim .shield-svg { transition: transform 0.3s; }
.bento-card:hover .shield-anim .shield-svg { transform: scale(1.1); }

/* ─── PROCESS ─────────────────────────────────── */
#process {
  background: white;
  padding: 100px 0;
}

.process-header { text-align: center; margin-bottom: 64px; }
.process-header h2 { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.process-header p { font-size: 16px; color: var(--n400); max-width: 600px; margin: 0 auto; line-height: 1.65; }

.process-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0 20px;
}

.step-connector {
  flex: 1;
  height: 3px;
  background: rgba(0,54,55,0.12);
  align-self: flex-start;
  margin-top: 38px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.step-connector-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary) 0%, #005a5b 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}
.step-connector-fill::after {
  content: '';
  position: absolute;
  right: -6px; top: -4px;
  width: 11px; height: 11px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px 3px rgba(0,54,55,0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.step-connector-fill.active { transform: scaleX(1); }
.step-connector-fill.active::after { opacity: 1; }

.step-connector.gold-conn .step-connector-fill {
  background: linear-gradient(90deg, var(--tertiary) 0%, #c9a430 100%);
}
.step-connector.gold-conn .step-connector-fill::after {
  background: var(--tertiary);
  box-shadow: 0 0 8px 3px rgba(212,175,55,0.5);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1;
  width: 160px;
  text-align: center;
}

@keyframes stepPop {
  0%   { transform: scale(0.65); opacity: 0.4; }
  55%  { transform: scale(1.15); }
  80%  { transform: scale(0.96); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0   rgba(0,54,55,0.35), 0 4px 20px rgba(0,54,55,0.2); }
  60%  { box-shadow: 0 0 0 14px rgba(0,54,55,0),   0 4px 20px rgba(0,54,55,0.2); }
  100% { box-shadow: 0 0 0 8px  rgba(0,54,55,0.1), 0 4px 20px rgba(0,54,55,0.15); }
}
@keyframes goldRingPulse {
  0%   { box-shadow: 0 0 0 0   rgba(212,175,55,0.45), 0 4px 20px rgba(212,175,55,0.2); }
  60%  { box-shadow: 0 0 0 14px rgba(212,175,55,0),   0 4px 20px rgba(212,175,55,0.2); }
  100% { box-shadow: 0 0 0 8px  rgba(212,175,55,0.15),0 4px 20px rgba(212,175,55,0.15); }
}

.step-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0,54,55,0.3);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.45;
  transition: border-color 0.3s;
}
.step-circle svg {
  opacity: 0.35;
  transform: scale(0.8);
}

@keyframes iconSlideIn {
  0%   { opacity: 0; transform: scale(0.7) translateX(-10px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}
@keyframes iconSpinIn {
  0%   { opacity: 0; transform: scale(0.6) rotate(-200deg); }
  70%  { transform: scale(1.1) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes iconBounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  55%  { transform: scale(1.2); }
  80%  { transform: scale(0.93); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes iconShieldIn {
  0%   { opacity: 0; transform: scale(0.5) rotate(-20deg); }
  60%  { transform: scale(1.15) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
#step1.active svg { animation: iconSlideIn  0.5s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
#step2.active svg { animation: iconSpinIn   0.6s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
#step3.active svg { animation: iconBounceIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
#step4.active svg { animation: iconSpinIn   0.65s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
#step5.active svg { animation: iconShieldIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.step-circle.active {
  border-color: var(--primary);
  background: var(--primary);
  animation: stepPop 0.55s cubic-bezier(0.22,1,0.36,1) forwards,
             ringPulse 0.8s ease-out 0.15s forwards;
}
.step-circle.active svg {
  opacity: 1;
  transform: scale(1);
}
.step-circle.active svg path,
.step-circle.active svg circle,
.step-circle.active svg rect,
.step-circle.active svg polyline,
.step-circle.active svg line { stroke: white !important; }

.step-circle.gold-step { border-color: rgba(212,175,55,0.35); }
.step-circle.gold-step.active {
  border-color: var(--tertiary);
  background: var(--tertiary);
  animation: stepPop 0.55s cubic-bezier(0.22,1,0.36,1) forwards,
             goldRingPulse 0.8s ease-out 0.15s forwards;
}
.step-circle.gold-step.active svg path,
.step-circle.gold-step.active svg circle { stroke: var(--primary) !important; }

.step-number {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.step-circle.active .step-number { transform: scale(1.2); }

@keyframes iconHoverBounce {
  0%   { transform: scale(1) translateY(0); }
  30%  { transform: scale(1.25) translateY(-5px); }
  60%  { transform: scale(0.9)  translateY(3px); }
  80%  { transform: scale(1.08) translateY(-2px); }
  100% { transform: scale(1)    translateY(0); }
}
.step-circle.active:hover svg {
  animation: iconHoverBounce 0.5s cubic-bezier(0.22,1,0.36,1);
}

.step-label {
  font-size: 14px; font-weight: 700; color: var(--primary);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease 0.35s, transform 0.4s cubic-bezier(0.22,1,0.36,1) 0.35s;
}
.step-desc {
  font-size: 12px; color: var(--n300); line-height: 1.4;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s cubic-bezier(0.22,1,0.36,1) 0.45s;
}
.process-step.active .step-label,
.process-step.active .step-desc { opacity: 1; transform: translateY(0); }

/* ─── COMPLIANCE ──────────────────────────────── */
#compliance {
  background: var(--n200);
  padding: 100px 0;
}

.compliance-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.compliance-inner h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.compliance-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--n400);
  margin-bottom: 48px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.comp-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--n150);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--n800);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.comp-badge:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(78,175,70,0.12); }
.comp-badge:hover svg { color: var(--primary); }
.comp-badge svg { color: var(--accent); flex-shrink: 0; }

/* ─── CLIENTS ─────────────────────────────────── */
#clients {
  background: #003637;
  padding: 100px 0;
}

.clients-header { text-align: center; margin-bottom: 56px; }
.clients-header h2 { font-size: 40px; font-weight: 800; color: white; margin-bottom: 14px; }
.clients-header p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 580px; margin: 0 auto; line-height: 1.65; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s;
}
.client-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(78,175,70,0.3); }

.client-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--n200);
  border-top: 3px solid var(--accent);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-logo { margin-bottom: 16px; }

.footer-tagline {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.2s;
}
.footer-links a:hover { color: #000; }
.footer-links a:hover::after { width: 100%; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  margin-bottom: 12px;
}
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; }

.footer-cta {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-links a:hover { color: #000; border-color: rgba(0,0,0,0.4); background: rgba(0,0,0,0.04); }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1279px) {
  .bento-card.large  { grid-column: span 12; }
  .bento-card.medium { grid-column: span 6; }
  .bento-card.wide   { grid-column: span 6; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-grid  { gap: 48px; }
}

@media (max-width: 1024px) {
  .hero-left { padding: 100px 40px 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .process-track { overflow-x: auto; padding-bottom: 20px; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero — stack text then circuit board on mobile */
  #hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100svh;
    background-position: center 30%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-left {
    padding: 40px 24px 24px;
    align-items: center;
    text-align: center;
    max-width: 100%;
    gap: 20px;
  }
  .hero-h1 {
    font-size: 30px;
    line-height: 1.15;
  }
  .hero-sub {
    font-size: 15px;
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .trust-ribbon {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .hero-right {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 8px 24px 40px;
  }
  .circuit-scene { width: 280px; height: 280px; }
  .circuit-board { width: 220px; height: 220px; }

  .bento-card.large,
  .bento-card.medium,
  .bento-card.wide { grid-column: span 12; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .mission-grid { grid-template-columns: 1fr; }
  .badge-row { flex-direction: column; align-items: center; }
  .process-track { flex-direction: column; align-items: center; gap: 0; padding: 0; }
  .step-connector { width: 3px; height: 36px; margin: 0; align-self: center; flex: none; }
  .step-connector-fill { transform: scaleY(0); transform-origin: top center; }
  .step-connector-fill.active { transform: scaleY(1); }
  .step-connector-fill::after { right: -4px; top: auto; bottom: -6px; width: 11px; height: 11px; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--n800);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-nav a:hover { background: var(--n200); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
