/* ============================================================
   ACTAIR — Global Design System
   Color Palette: Deep Navy | Electric Cyan | Violet | White
   ============================================================ */

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

:root {
  --navy: #050d1a;
  --navy-mid: #0a1628;
  --navy-light: #0f2040;
  --navy-card: #0d1e35;
  --cyan: #00d4ff;
  --cyan-dim: #00a8cc;
  --violet: #7c3aed;
  --violet-dim: #5b21b6;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --white: #ffffff;
  --text-sec: #94a3b8;
  --border: rgba(0, 212, 255, 0.15);
  --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);
  --glow-violet: 0 0 30px rgba(124, 58, 237, 0.4);
  --gradient-hero: linear-gradient(135deg, #050d1a 0%, #0a1628 40%, #0f1e38 70%, #0a0f1e 100%);
  --gradient-cyan: linear-gradient(135deg, #00d4ff, #7c3aed);
  --gradient-card: linear-gradient(145deg, #0d1e35, #0a1628);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-mid);
}

::-webkit-scrollbar-thumb {
  background: var(--cyan-dim);
  border-radius: 3px;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 2rem;
  background: rgba(5, 13, 26, 0.97);
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: rgba(0, 212, 255, 0.05);
  /* Theme-matched subtle cyan tint */
  padding: 0.25rem 0.75rem;
  /* Reduced padding for larger logo */
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 212, 255, 0.05);
  transition: var(--transition);
}

.nav-logo img {
  height: 120px;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(1);
  /* Ensure high contrast on theme background */
}

.nav-logo:hover {
  transform: scale(1.05);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.nav-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #050d1a;
  letter-spacing: 1px;
}

.nav-logo-text span {
  color: #008eb3;
}

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

.nav-links a {
  color: var(--text-sec);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(0, 212, 255, 0.08);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--white);
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

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

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-sec);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 520px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}

/* Hero Intro Image Integration */
.hero-intro-image {
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.2);
  transition: var(--transition);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-mid);
}

.hero-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  filter: contrast(1.1) saturate(1.3) brightness(1) drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
}

.hero-intro-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.4);
}

.hero-intro-image:hover img {
  transform: scale(1.05);
  filter: contrast(1.2) saturate(1.5) brightness(1.1) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.hero-intro-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, transparent 50%, rgba(0, 212, 255, 0.2) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Hologram orb */
.hologram-orb {
  width: 420px;
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotate 8s linear infinite;
}

.orb-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-color: rgba(0, 212, 255, 0.2);
}

.orb-ring:nth-child(2) {
  width: 78%;
  height: 78%;
  border-color: rgba(124, 58, 237, 0.3);
  animation-duration: 12s;
  animation-direction: reverse;
}

.orb-ring:nth-child(3) {
  width: 56%;
  height: 56%;
  border-color: rgba(0, 212, 255, 0.4);
  animation-duration: 6s;
}

.orb-core {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.4), rgba(124, 58, 237, 0.6), rgba(5, 13, 26, 0.9));
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.4), 0 0 120px rgba(124, 58, 237, 0.3), inset 0 0 30px rgba(0, 212, 255, 0.2);
  animation: breathe 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section Layouts ── */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-sec);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Cards ── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-cyan);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: rgba(0, 212, 255, 0.2);
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-sec);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* ── Alternating Feature Rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.feature-row.reverse .feature-visual {
  order: -1;
}

.feature-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  position: relative;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-label {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  color: var(--text-sec);
}

.feature-list li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--cyan);
  margin-top: 2px;
}

/* ── Tag badges scattered on product visuals ── */
.product-tag {
  position: absolute;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

/* ── Air Quality Section Specifics ── */
.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pollutant-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.pollutant-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
}

.pollutant-name {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Orbitron', sans-serif;
  color: var(--cyan);
  letter-spacing: 1px;
}

.pollutant-full {
  font-size: 0.75rem;
  color: var(--text-sec);
  margin: 0.3rem 0;
}

.pollutant-value {
  font-size: 1rem;
  font-weight: 600;
}

.pollutant-value.good {
  color: var(--green);
}

.pollutant-value.moderate {
  color: var(--amber);
}

.pollutant-value.poor {
  color: var(--red);
}

.aqi-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.75rem;
  overflow: hidden;
}

.aqi-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s ease;
}

/* ── Map Visualization ── */
.map-container {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.map-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-title {
  font-size: 1rem;
  font-weight: 600;
}

.map-legend {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-sec);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Model Architecture Diagram ── */
.model-arch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem;
  overflow-x: auto;
}

.arch-block {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 110px;
  position: relative;
}

.arch-block .arch-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.arch-block .arch-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sec);
}

.arch-block .arch-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.arch-arrow {
  color: var(--cyan);
  font-size: 1.2rem;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-dot {
  position: absolute;
  left: -1.65rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  border: 2px solid var(--navy);
}

.timeline-item h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--text-sec);
  font-size: 0.88rem;
}

/* ── Tech Stack Pills ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  transition: var(--transition);
}

.tech-pill:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

/* ── Sector Cards ── */
.sector-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: var(--transition);
  text-align: center;
}

.sector-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--glow-violet);
}

.sector-card .sector-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sector-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sector-card p {
  font-size: 0.85rem;
  color: var(--text-sec);
}

/* ── KSA Map Canvas ── */
#ksaMapCanvas {
  width: 100%;
  border-radius: 0;
  display: block;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* ── Footer ── */
.footer {
  background: rgba(5, 13, 26, 0.98);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-sec);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 0.35rem 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-sec);
}

/* ── AI Agent Modal ── */
.agent-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  transition: var(--transition);
  animation: pulse-glow 2s ease-in-out infinite;
}

.agent-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6);
}

.agent-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 950;
  width: 380px;
  border-radius: 24px;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 560px;
}

.agent-panel.open {
  display: flex;
  animation: slideUp 0.3s ease;
}

.agent-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
}

.agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.agent-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.agent-info span {
  font-size: 0.76rem;
  color: var(--green);
}

.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.msg.bot {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.agent-input {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.agent-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.6rem 1rem;
  color: var(--white);
  font-size: 0.86rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.agent-input input:focus {
  border-color: var(--cyan);
}

.agent-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-input button:hover {
  transform: scale(1.1);
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 0.75rem;
}

.qr-btn {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  color: var(--cyan);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.qr-btn:hover {
  background: rgba(0, 212, 255, 0.2);
}

/* ── Animations ── */
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {

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

  50% {
    transform: scale(1.08);
  }
}

@keyframes pulse {

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

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

@keyframes float {

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

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

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  }

  50% {
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.7), 0 0 0 10px rgba(0, 212, 255, 0.05);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.25s;
}

.delay-3 {
  animation-delay: 0.4s;
}

.delay-4 {
  animation-delay: 0.55s;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 9rem 2rem 5rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-sec);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hologram-orb {
    width: 280px;
    height: 280px;
  }

  .orb-core {
    width: 130px;
    height: 130px;
    font-size: 2.5rem;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-visual {
    order: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .model-arch {
    flex-direction: column;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }

  .agent-panel {
    width: calc(100vw - 2rem);
    right: 1rem;
  }
}

/* ── Divider line ── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-cyan);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── Numbers strip ── */
.numbers-strip {
  background: rgba(0, 212, 255, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}

.numbers-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.num-item {
  text-align: center;
}

.num-value {
  font-size: 2.4rem;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
}

.num-label {
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-top: 0.25rem;
}

/* ── Testimonial ── */
.testimonial {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  color: var(--cyan);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: serif;
  line-height: 1;
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--text-sec);
  font-style: italic;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-sec);
}

/* ── Particle dots (hero background) ── */
.particle {
  position: absolute;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.7;
  }
}

/* Mobile nav menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 13, 26, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

.mobile-nav a {
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--cyan);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}