/* ============================================================
   RedBadger – Premium Cybersecurity Website
   Tactical Dark Theme | Modern Redesign 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --red:        #e63946;
  --red-dark:   #b91c1c;
  --red-glow:   rgba(230, 57, 70, 0.35);
  --red-subtle: rgba(230, 57, 70, 0.08);
  --cyan:       #22d3ee;
  --cyan-glow:  rgba(34, 211, 238, 0.25);
  --bg:         #050a0f;
  --bg-2:       #0a1118;
  --bg-3:       #0f1923;
  --glass:      rgba(15, 25, 35, 0.7);
  --glass-2:    rgba(10, 17, 24, 0.85);
  --border:     rgba(230, 57, 70, 0.12);
  --border-2:   rgba(255,255,255,0.06);
  --txt:        #e8eef4;
  --txt-2:      #7a8fa3;
  --txt-3:      #3d5166;
  --mono:       'JetBrains Mono', monospace;
  --display:    'Rajdhani', sans-serif;
  --body:       'Inter', sans-serif;
  --shadow:     0 8px 40px rgba(0,0,0,0.6);
  --shadow-red: 0 0 40px rgba(230,57,70,0.2);
  --radius:     10px;
  --nav-h:      68px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── Canvas Background ── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.page-wrap { position: relative; z-index: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-bar.scrolled {
  background: var(--glass-2);
  backdrop-filter: blur(20px);
  border-color: var(--border-2);
}

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

.nav-logo img {
  height: 55px;
  width: auto;
  transition: filter 0.3s;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 12px var(--red-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--txt-2);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--red);
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--red);
  transition: all 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: transparent !important;
  color: var(--red) !important;
  box-shadow: 0 0 20px var(--red-glow);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--txt);
  transition: all 0.35s var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--bg-3);
  border-left: 1px solid var(--border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: right 0.4s var(--ease);
  padding: 2rem;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-2);
  transition: color 0.25s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   HERO – INDEX
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Diagonal red stripe */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: var(--red-subtle);
  border: 1px solid rgba(230,57,70,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
}
.hero-eyebrow::before { content: '◆'; font-size: 0.5rem; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--txt);
}

.hero h1 .accent-red { color: var(--red); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--txt-2);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Terminal window */
.terminal-window {
  background: #070d14;
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: var(--mono);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.term-bar {
  background: rgba(230,57,70,0.08);
  border-bottom: 1px solid rgba(230,57,70,0.15);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.term-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.term-dot-r { background: var(--red); }
.term-dot-y { background: #f59e0b; }
.term-dot-g { background: #10b981; }
.term-title {
  font-size: 0.72rem;
  color: var(--txt-3);
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.term-body {
  padding: 1.5rem;
  font-size: 0.8rem;
  line-height: 2;
}
.term-line { display: flex; align-items: flex-start; gap: 0.6rem; }
.term-prompt { color: var(--red); user-select: none; }
.term-cmd { color: #a5d6a7; }
.term-out { color: var(--txt-2); padding-left: 1.2rem; }
.term-warn { color: #f59e0b; }
.term-crit { color: var(--red); }
.term-ok   { color: #10b981; }
.term-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Page Hero (inner pages) ── */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 5rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--txt-2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 30px var(--red-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: var(--txt-2);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--txt);
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
section { position: relative; }

.section {
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

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

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-title .red { color: var(--red); }

.section-sub {
  color: var(--txt-2);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.stat-cell {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border-2);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.stat-cell:hover::before { opacity: 1; }

.stat-num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  display: block;
}
.stat-desc {
  font-size: 0.82rem;
  color: var(--txt-2);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  font-family: var(--mono);
}

/* ============================================================
   CARDS
   ============================================================ */
.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.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), #f59e0b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  border-color: rgba(230,57,70,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 40px rgba(230,57,70,0.06);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--red-subtle);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  color: var(--txt);
}
.card p {
  font-size: 0.9rem;
  color: var(--txt-2);
  line-height: 1.75;
}
.card ul {
  margin-top: 1rem;
}
.card ul li {
  font-size: 0.87rem;
  color: var(--txt-2);
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--border-2);
  transition: color 0.25s;
}
.card ul li:last-child { border-bottom: none; }
.card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.8rem;
}
.card ul li:hover { color: var(--txt); }

/* ── Service card (larger) ── */
.service-card {
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #f59e0b, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover {
  border-color: rgba(230,57,70,0.25);
  transform: translateY(-8px);
  box-shadow: var(--shadow), 0 0 50px rgba(230,57,70,0.07);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: var(--red-subtle);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 28px; height: 28px; color: var(--red); }
.service-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card > p {
  color: var(--txt-2);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.service-card ul li {
  font-size: 0.87rem;
  color: var(--txt-2);
  padding: 0.45rem 0 0.45rem 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--border-2);
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '▹';
  position: absolute; left: 0;
  color: var(--red);
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.process-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  position: relative;
}
.process-item + .process-item { margin-top: 0; }
.process-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-subtle);
  border: 1.5px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.process-item:hover .process-num {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}
.process-connector {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
  min-height: 40px;
  opacity: 0.3;
}
.process-item:last-child .process-connector { display: none; }
.process-body {
  padding: 0 0 3rem 0;
}
.process-body h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  margin-top: 0.6rem;
}
.process-body p {
  font-size: 0.9rem;
  color: var(--txt-2);
  line-height: 1.75;
}

/* ============================================================
   CERT BADGES
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cert-badge {
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.35s var(--ease);
}
.cert-badge:hover {
  border-color: rgba(230,57,70,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.cert-code {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}
.cert-name {
  font-size: 0.82rem;
  color: var(--txt-2);
  line-height: 1.5;
}

/* ============================================================
   VALUES GRID
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.value-item {
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: all 0.35s;
}
.value-item:hover {
  border-color: rgba(230,57,70,0.2);
  background: rgba(15,25,35,0.9);
}
.value-number {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}
.value-item h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.value-item p {
  font-size: 0.87rem;
  color: var(--txt-2);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero-box {
  background: var(--glass);
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: 16px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.contact-hero-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(230,57,70,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.contact-email {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--red);
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.contact-email:hover {
  text-shadow: 0 0 20px var(--red-glow);
}
.contact-note {
  font-size: 0.85rem;
  color: var(--txt-3);
  font-family: var(--mono);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
  border-top: 1px solid rgba(230,57,70,0.2);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(230,57,70,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.cta-band p {
  color: var(--txt-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.cta-band-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border-2);
  padding: 4rem 2rem 2.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--txt-2);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h5 {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--txt-2);
  transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--red); }
.footer-col ul li span {
  font-size: 0.87rem;
  color: var(--txt-2);
}
.footer-divider {
  border: none;
  border-top: 1px solid var(--border-2);
  margin-bottom: 2rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--txt-3);
  font-family: var(--mono);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--txt-3);
}
.footer-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,100%{opacity:1; transform:scale(1)} 50%{opacity:0.6; transform:scale(1.3)}
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   INDUSTRIES MARQUEE
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  /* animation set via JS for correct speed */
  animation: marquee 40s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateZ(0) translateX(0); }
  100% { transform: translateZ(0) translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-3);
  white-space: nowrap;
  transition: color 0.25s;
}
.marquee-item:hover { color: var(--txt-2); }
.marquee-dot { color: var(--red); font-size: 1.1rem; }

/* ============================================================
   ABOUT PAGE MISSION
   ============================================================ */
.mission-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}
.mission-text h2 {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.mission-text p {
  font-size: 0.95rem;
  color: var(--txt-2);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.mission-panel {
  background: var(--glass);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.mission-panel-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.mission-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.88rem;
  color: var(--txt-2);
}
.mission-list li:last-child { border-bottom: none; }
.mission-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .terminal-window { max-width: 520px; margin: 0 auto; }
  .grid-3, .cert-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell { border-bottom: 1px solid var(--border-2); }
  .mission-layout { grid-template-columns: 1fr; gap: 3rem; }
  .mission-panel { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2, .cert-grid, .values-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 1.5rem; }
  .cta-band { padding: 4rem 1.5rem; }
  .contact-hero-box { padding: 2.5rem 1.5rem; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
}

@media (max-width: 480px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .process-item { grid-template-columns: 40px 1fr; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Glitch text effect */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.glitch::before {
  color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, 0);
  animation: glitch-1 4s infinite;
}
.glitch::after {
  color: var(--cyan);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translate(2px, 0);
  animation: glitch-2 4s infinite;
}
@keyframes glitch-1 {
  0%, 88%, 92%, 100% { transform: translate(-2px, 0); opacity: 0; }
  90% { transform: translate(-4px, 1px); opacity: 0.6; }
}
@keyframes glitch-2 {
  0%, 86%, 93%, 100% { transform: translate(2px, 0); opacity: 0; }
  89% { transform: translate(4px, -1px); opacity: 0.5; }
}

/* ============================================================
   BACK TO TOP – Sticky Floating Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;

  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(230, 57, 70, 0.35);
  background: rgba(10, 17, 24, 0.85);
  backdrop-filter: blur(12px);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease),
              visibility 0.35s var(--ease),
              transform 0.35s var(--ease),
              border-color 0.3s,
              box-shadow 0.3s,
              background 0.3s;

  /* Progress ring */
  --progress: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 24px var(--red-glow);
  transform: translateY(-3px);
}

.back-to-top:hover .btt-arrow { color: #fff; }

.back-to-top:active {
  transform: translateY(0);
}

/* SVG arrow icon */
.btt-arrow {
  color: var(--red);
  transition: color 0.25s, transform 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.back-to-top:hover .btt-arrow {
  color: #fff;
  transform: translateY(-1px);
}

/* Circular progress ring */
.btt-ring {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
}
.btt-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.btt-ring circle {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 0.1s linear;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}
