/* =============================================
   PALORANT — Dark Cinematic Design System
   ============================================= */

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

/* --- Design Tokens --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.10);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a5b8;
  --text-muted: #6b7080;

  --accent-1: #ff4655;
  /* Valorant Red */
  --accent-2: #bd3944;
  /* Deep Red */
  --accent-3: #8b5cf6;
  /* Electric Violet */
  --accent-gradient: linear-gradient(135deg, #ff4655, #8b5cf6);
  --accent-gradient-2: linear-gradient(135deg, #ff4655, #ff6b7a, #8b5cf6);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 70, 85, 0.15);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0.5rem auto 0;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 70, 85, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.6rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
}

.navbar-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 70, 85, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  filter: blur(1px);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 70, 85, 0.4);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* =============================================
   GLASS CARDS
   ============================================= */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0), rgba(139, 92, 246, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-glow);
}

.glass-card:hover::before {
  background: var(--accent-gradient);
}

/* =============================================
   AGENT CARDS
   ============================================= */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  text-align: center;
  padding: 0;
  cursor: pointer;
}

.agent-card .agent-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 3/4;
}

.agent-card .agent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.agent-card:hover .agent-img-wrap img {
  transform: scale(1.12) translateY(-5px);
  filter: drop-shadow(0 0 15px rgba(255, 70, 85, 0.4)) contrast(1.1);
  animation: rgbGlitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes rgbGlitch {
  0% {
    transform: scale(1.12) translateY(-5px) translate(0)
  }

  20% {
    transform: scale(1.12) translateY(-5px) translate(-2px, 2px)
  }

  40% {
    transform: scale(1.12) translateY(-5px) translate(-2px, -2px)
  }

  60% {
    transform: scale(1.12) translateY(-5px) translate(2px, 2px)
  }

  80% {
    transform: scale(1.12) translateY(-5px) translate(2px, -2px)
  }

  100% {
    transform: scale(1.12) translateY(-5px) translate(0)
  }
}

/* Stagger Entry Animation */
.card-enter {
  animation: cardStaggerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardStaggerIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.agent-card .agent-img-wrap .role-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  border: 1px solid rgba(255, 70, 85, 0.2);
}

.agent-card .agent-info {
  padding: 1.25rem;
}

.agent-card .agent-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.agent-card .agent-info p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.agent-card .view-details-btn {
  display: block;
  width: calc(100% - 2.5rem);
  margin: 0 auto 1.25rem;
  padding: 0.6rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.agent-card .view-details-btn:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

/* Role Filter */
.role-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.role-filters button {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.role-filters button:hover,
.role-filters button.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

/* =============================================
   AGENT DETAIL MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 90%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-spring);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content .modal-role {
  color: var(--accent-1);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.modal-content .modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-close {
  padding: 0.7rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
}

/* =============================================
   FEATURED AGENTS (Home)
   ============================================= */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-card {
  text-align: center;
  padding: 0;
}

.featured-card .agent-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.featured-card .agent-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.featured-card:hover .agent-img-wrap img {
  transform: scale(1.08);
}

.featured-card .featured-info {
  padding: 1.5rem;
}

.featured-card .featured-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.featured-card .featured-info .role {
  color: var(--accent-1);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  perspective: 1000px;
}

/* ─── Sova 3D Interactive Container ─── */
.sova-3d-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  cursor: crosshair;
}

/* Particle Canvas Overlay */
.sova-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ─── Sova Glow Rings ─── */
.sova-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sova-3d-container:hover .sova-ring {
  opacity: 1;
}

.sova-ring-1 {
  width: 90%;
  height: 50%;
  bottom: 10%;
  left: 5%;
  border-color: rgba(59, 130, 246, 0.3);
  animation: sovaRingSpin 8s linear infinite;
  transform: rotateX(60deg);
}

.sova-ring-2 {
  width: 75%;
  height: 40%;
  bottom: 15%;
  left: 12.5%;
  border-color: rgba(139, 92, 246, 0.25);
  animation: sovaRingSpin 6s linear infinite reverse;
  transform: rotateX(65deg);
}

.sova-ring-3 {
  width: 60%;
  height: 30%;
  bottom: 20%;
  left: 20%;
  border-color: rgba(255, 70, 85, 0.2);
  animation: sovaRingSpin 10s linear infinite;
  transform: rotateX(70deg);
}

@keyframes sovaRingSpin {
  0% {
    transform: rotateX(60deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(60deg) rotateZ(360deg);
  }
}

/* ─── Energy Lines ─── */
.sova-energy-line {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sova-3d-container:hover .sova-energy-line {
  opacity: 1;
}

.sova-el-1 {
  width: 2px;
  height: 120%;
  top: -10%;
  left: 15%;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.4) 30%, rgba(139, 92, 246, 0.4) 70%, transparent 100%);
  animation: sovaEnergyPulse 3s ease-in-out infinite;
}

.sova-el-2 {
  width: 2px;
  height: 120%;
  top: -10%;
  right: 20%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 70, 85, 0.3) 40%, rgba(59, 130, 246, 0.3) 80%, transparent 100%);
  animation: sovaEnergyPulse 4s ease-in-out 1s infinite;
}

@keyframes sovaEnergyPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.05);
  }
}

/* ─── Sova Portrait ─── */
.sova-portrait {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sovaFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 40px rgba(59, 130, 246, 0.15));
  transition: filter 0.4s ease;
}

.sova-3d-container:hover .sova-portrait {
  animation-play-state: paused;
  filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.3)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.2));
}

.sova-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes sovaFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ─── Ground Shadow ─── */
.sova-ground-shadow {
  position: absolute;
  bottom: 2%;
  left: 20%;
  width: 60%;
  height: 8%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: sovaShadowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.sova-3d-container:hover .sova-ground-shadow {
  animation: none;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  transform: scale(1.15);
  transition: all 0.4s ease;
}

@keyframes sovaShadowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(0.9);
    opacity: 0.4;
  }
}

/* ─── Agent Label ─── */
.sova-agent-label {
  position: absolute;
  bottom: 12%;
  left: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 1.2rem;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 3px solid #3b82f6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s var(--transition-spring);
}

.sova-3d-container:hover .sova-agent-label {
  opacity: 1;
  transform: translateX(0);
}

.sova-label-role {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3b82f6;
}

.sova-label-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.sova-label-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  padding: 4rem 0;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.05;
}

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

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =============================================
   MAPS PAGE
   ============================================= */
.maps-showcase {
  max-width: 900px;
  margin: 0 auto;
}

.map-main-display {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
  background: var(--bg-card);
}

.map-main-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Tactical Grid Overlay */
.map-main-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

/* Screen CRT Scanline Overlay */
.map-main-display::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.05) translate(-1%, 1%);
  }

  100% {
    transform: scale(1.1) translate(1%, -1%);
  }
}

/* Map Switch Glitch Effect */
.map-glitch {
  animation: mapGlitchAnim 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes mapGlitchAnim {
  0% {
    filter: contrast(1.5) brightness(1.2) hue-rotate(90deg);
    transform: scale(1.05) translateX(10px);
  }

  25% {
    filter: contrast(1) brightness(1) drop-shadow(5px 0 0 red);
    transform: scale(1.02) translateX(-5px);
  }

  50% {
    filter: invert(0.2) drop-shadow(-5px 0 0 blue);
    transform: scale(1.08) translateY(5px);
  }

  75% {
    filter: contrast(1.2) brightness(1.5);
    transform: scale(1) translateY(-2px);
  }

  100% {
    filter: none;
    transform: scale(1) translate(0);
  }
}

/* ─── Map HUD Elements ─── */
.map-hud-coords {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #3b82f6;
  background: rgba(10, 14, 26, 0.6);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  border-left: 2px solid #3b82f6;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.map-hud-status {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.map-hud-status .pulse-dot {
  width: 6px;
  height: 6px;
  background: #ff4655;
  border-radius: 50%;
  animation: hudPulse 2s infinite;
}

@keyframes hudPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 70, 85, 0.4);
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
    box-shadow: 0 0 0 10px rgba(255, 70, 85, 0);
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.map-hud-corners .corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  z-index: 5;
  pointer-events: none;
}

.map-hud-corners .top-left {
  top: 1.5rem;
  left: 1.5rem;
  border-right: 0;
  border-bottom: 0;
}

.map-hud-corners .top-right {
  top: 1.5rem;
  right: 2rem;
  border-left: 0;
  border-bottom: 0;
}

.map-hud-corners .bottom-left {
  bottom: 5rem;
  left: 2rem;
  border-right: 0;
  border-top: 0;
}

.map-hud-corners .bottom-right {
  bottom: 5rem;
  right: 2rem;
  border-left: 0;
  border-top: 0;
}

.map-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.map-info-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.map-info-overlay .map-type {
  color: var(--accent-1);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.map-info-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
}

.map-thumbnails {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.map-thumb {
  width: 120px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  opacity: 0.6;
  position: relative;
}

.map-thumb.active,
.map-thumb:hover {
  border-color: var(--accent-1);
  opacity: 1;
  transform: translateY(-3px);
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-thumb .thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.65rem;
  text-align: center;
  font-weight: 600;
}

/* =============================================
   NEWS PAGE
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.news-card {
  padding: 0;
}

.news-card .news-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-card .news-img .category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--accent-1);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card .news-body {
  padding: 1.5rem;
}

.news-card .news-date {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.news-card .news-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card .news-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-1);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.news-card .read-more:hover {
  gap: 0.7rem;
}

.news-card .read-more::after {
  content: '→';
}

/* Featured News Hero */
.news-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
}

.news-hero .news-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-hero .news-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero .news-hero-content .category-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-1);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.news-hero .news-hero-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.news-hero .news-hero-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* =============================================
   BUG REPORT FORM
   ============================================= */
.form-section {
  max-width: 640px;
  margin: 0 auto;
}

.form-container {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a5b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group .error-msg {
  color: var(--accent-1);
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--accent-1);
}

.form-group.error .error-msg {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-1);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-submit {
  margin-top: 0.5rem;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success .check-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pop-in 0.5s var(--transition-spring);
}

@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.25s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.3s;
}

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

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 70, 85, 0.1) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-glass);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .agents-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .map-thumbnails {
    gap: 0.5rem;
  }

  .map-thumb {
    width: 80px;
    height: 50px;
  }

  .form-container {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}