﻿:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #101c31;
  --panel-2: #17263f;
  --text: #f4f7fb;
  --muted: #92a1b8;
  --accent: #4cc9f0;
  --accent-2: #7c4dff;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #12223d 0%, var(--bg) 45%, #050b14 100%);
  color: var(--text);
  min-height: 100vh;
}

button {
  font: inherit;
}

.site-header {
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  transition: background 250ms ease, border-color 250ms ease, backdrop-filter 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled {
  background: rgba(16, 28, 49, 0.68);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-wrap {
  position: relative;
  display: block;
  height: 40px;
  width: 99px;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  transition: opacity 340ms ease;
}

.brand-logo-icon {
  opacity: 1;
}

.brand-logo-full {
  opacity: 0;
}

.site-header.scrolled .logo-wrap {
  width: 170px;
}

.site-header.scrolled .brand-logo-icon {
  opacity: 0;
}

.site-header.scrolled .brand-logo-full {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.active-link {
  color: var(--text) !important;
}

.nav-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
}

.nav-toggle::after,
.ghost-btn::after,
.filter::after,
.intel-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 0;
}

@keyframes button-shine {
  from {
    left: -75%;
  }
  to {
    left: 135%;
  }
}

.nav-toggle:hover::after,
.nav-toggle:focus-visible::after,
.ghost-btn:hover::after,
.ghost-btn:focus-visible::after,
.filter:hover::after,
.filter:focus-visible::after,
.intel-cta:hover::after,
.intel-cta:focus-visible::after {
  animation: button-shine 650ms ease;
}

.nav-toggle span {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  right: 16px;
  width: 190px;
  max-width: 62vw;
  max-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(16, 28, 49, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: max-height 320ms ease, opacity 240ms ease;
}

.nav-dropdown a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  transition: color 180ms ease, background 180ms ease;
}

.nav-dropdown a:first-child {
  border-top: none;
}

.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown.open {
  max-height: 200px;
  opacity: 1;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px 32px;
  text-align: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .site-header-inner {
    padding: 14px 16px;
  }

  .logo-wrap {
    height: 32px;
    width: 79px;
  }

  .brand-logo {
    height: 32px;
  }

  .site-header.scrolled .logo-wrap {
    width: 136px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-dropdown {
    display: flex;
  }
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.subpage .page-shell {
  padding-top: 112px;
}

.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bg-slide.active {
  opacity: 1;
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 20, 0.82) 0%,
    rgba(7, 17, 31, 0.78) 50%,
    rgba(5, 11, 20, 0.88) 100%
  );
  z-index: 1;
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
}

.hero-header-content {
  flex: 1;
  width: 100%;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hero-header-content .eyebrow {
  color: var(--accent);
}

.hero-header-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.3;
}

.hero-header-sub {
  color: #d7e0ee;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  max-width: 620px;
}

.hero-header-content .topbar-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.intel-hero-bar {
  flex-shrink: 0;
  width: min(960px, 100%);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(9, 16, 29, 0.2);
  border: 1px solid rgba(76, 201, 240, 0.25);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 22px rgba(76, 201, 240, 0.06);
  opacity: 0;
  animation: intel-hero-bar-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 500ms forwards;
}

@keyframes intel-hero-bar-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intel-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 24px;
  flex: 1;
}

.intel-hero-metrics .intel-metric {
  background: none;
  border: none;
  padding: 0;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.intel-hero-metrics .intel-metric-value {
  font-size: 1.05rem;
}

.intel-hero-metrics .intel-metric-label {
  font-size: 0.66rem;
}

.intel-hero-bar .intel-cta {
  margin-top: 0;
  flex-shrink: 0;
  padding: 9px 16px;
  font-size: 0.72rem;
}

@media (max-width: 860px) {
  .hero-content-wrap {
    padding: 28px 20px 20px;
  }

  .intel-hero-bar {
    gap: 14px 16px;
    padding: 12px 16px;
  }

  .intel-hero-metrics {
    gap: 12px 16px;
  }
}

@media (max-width: 640px) {
  .hero-content-wrap {
    padding: 24px 16px 16px;
  }

  .intel-hero-bar {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .intel-hero-metrics {
    width: 100%;
    justify-content: space-between;
    gap: 12px 10px;
  }

  .intel-hero-metrics .intel-metric {
    min-width: 40%;
  }

  .intel-hero-bar .intel-cta {
    width: 100%;
    justify-content: center;
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  max-width: 700px;
  line-height: 1.3;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  padding: 10px 14px;
  background: rgba(76, 201, 240, 0.14);
  color: #bfefff;
  border: 1px solid rgba(76, 201, 240, 0.24);
  border-radius: 999px;
  font-size: 0.9rem;
}

.ghost-btn {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
  overflow: hidden;
  isolation: isolate;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card,
.news-card,
.stat-card {
  background: linear-gradient(200deg, rgba(16, 28, 49, 0.96), rgba(23, 38, 63, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.hero-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  border-radius: 24px;
  padding: 24px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(124, 77, 255, 0.22);
  color: #d8cbff;
  border-radius: 999px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-copy h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-copy p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: #c8d1df;
  font-size: 0.95rem;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

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

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 12px;
  padding: 4px 12px 4px;
}

.stats-row .stat-card {
  flex: 1;
  max-width: 240px;
  min-width: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.stats-row .stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.stat-card {
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card strong {
  font-size: 1.4rem;
  color: #e8f6ff;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  cursor: pointer;
}

.stat-icon-globe:hover .globe-meridians {
  animation: stat-globe-rotate 2.4s linear infinite;
}

@keyframes stat-globe-rotate {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-11px);
  }
}

.stat-icon-radar .radar-sweep {
  transform-origin: 32px 32px;
}

.stat-icon-radar:hover .radar-sweep {
  animation: stat-radar-sweep 1.6s linear infinite;
}

@keyframes stat-radar-sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.building-windows .win {
  opacity: 0.15;
}

.stat-icon-building:hover .building-windows .win {
  animation: stat-window-blink 1.8s ease-in-out infinite;
}

.stat-icon-building:hover .building-windows .win-1 {
  animation-delay: 0s;
}

.stat-icon-building:hover .building-windows .win-2 {
  animation-delay: 0.2s;
}

.stat-icon-building:hover .building-windows .win-3 {
  animation-delay: 0.4s;
}

.stat-icon-building:hover .building-windows .win-4 {
  animation-delay: 0.6s;
}

.stat-icon-building:hover .building-windows .win-5 {
  animation-delay: 0.8s;
}

.stat-icon-building:hover .building-windows .win-6 {
  animation-delay: 1s;
}

@keyframes stat-window-blink {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-icon-globe:hover .globe-meridians,
  .stat-icon-radar:hover .radar-sweep,
  .stat-icon-building:hover .building-windows .win {
    animation: none;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section-header h3 {
  font-size: 1.15rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  position: relative;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.filter.active {
  color: var(--text);
  background: rgba(76, 201, 240, 0.15);
  border-color: rgba(76, 201, 240, 0.25);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card h4 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-card p {
  color: var(--muted);
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #c9d5e5;
  font-size: 0.9rem;
  margin-top: auto;
}

.motion-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px 40px;
  padding: 36px 12px 24px;
}

.motion-object {
  position: relative;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.motion-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  cursor: pointer;
  will-change: transform;
}

.motion-icon:hover {
  animation: motion-float 1.3s ease-in-out infinite;
}

.motion-object .tag {
  margin-bottom: 0;
}

.motion-object h4 {
  font-size: 1.05rem;
  line-height: 1.4;
}

.motion-object p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.motion-orange .tag {
  background: rgba(232, 162, 60, 0.2);
  color: #ffd9a0;
}

@keyframes motion-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-icon:hover {
    animation: none;
  }
}

/* Event-Driven Supply Chain Intelligence */

.intel-widget {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(9, 16, 29, 0.97), rgba(14, 24, 42, 0.97));
  border: 1px solid rgba(76, 201, 240, 0.32);
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.06), 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 32px rgba(76, 201, 240, 0.1);
}

.intel-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(76, 201, 240, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 240, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at top left, black 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at top left, black 35%, transparent 80%);
  pointer-events: none;
}

.intel-widget-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.intel-widget-header h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  margin-top: 8px;
}

.intel-widget-sub {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
  max-width: 620px;
}

.intel-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.4);
  background: rgba(76, 201, 240, 0.08);
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.intel-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: intel-pulse 1.5s ease-in-out infinite;
}

@keyframes intel-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--accent);
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 14px var(--accent);
  }
}

.intel-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.intel-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(76, 201, 240, 0.05);
  border: 1px solid rgba(76, 201, 240, 0.16);
}

.intel-metric-value {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #eaf6ff;
  text-shadow: 0 0 10px rgba(76, 201, 240, 0.45);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.intel-metric-unit {
  font-size: 0.95rem;
  margin-left: 2px;
  color: var(--accent);
}

.intel-metric-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.intel-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.4);
  background: rgba(76, 201, 240, 0.08);
  color: #eaf6ff;
  text-decoration: none;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
  isolation: isolate;
}

.intel-cta:hover {
  background: rgba(76, 201, 240, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(76, 201, 240, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle::after,
  .ghost-btn::after,
  .filter::after,
  .intel-cta::after {
    display: none;
  }
}

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

.intel-metrics-grid .intel-metric {
  padding: 18px 16px;
}

.event-feed-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(9, 16, 29, 0.97), rgba(14, 24, 42, 0.97));
  border: 1px solid rgba(76, 201, 240, 0.24);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.event-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow: hidden;
  font-family: "Rajdhani", monospace;
  font-size: 0.9rem;
}

.event-feed li {
  padding: 9px 10px;
  border-radius: 8px;
  color: #c9d5e5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: intel-event-in 420ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-feed li:last-child {
  border-bottom: none;
}

.event-feed .event-tag {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}

@keyframes intel-event-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carrier-status-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(16, 28, 49, 0.96), rgba(23, 38, 63, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.carrier-row {
  display: grid;
  grid-template-columns: 1fr auto 140px 44px;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carrier-row:last-child {
  border-bottom: none;
}

.carrier-name {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.carrier-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  justify-self: start;
}

.carrier-active {
  background: rgba(76, 201, 240, 0.16);
  color: var(--accent);
  border: 1px solid rgba(76, 201, 240, 0.35);
}

.carrier-delayed {
  background: rgba(232, 162, 60, 0.16);
  color: #ffd9a0;
  border: 1px solid rgba(232, 162, 60, 0.35);
}

.carrier-idle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

.carrier-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.carrier-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.carrier-pct {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

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

.region-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 28, 49, 0.96), rgba(23, 38, 63, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.region-ring {
  --pct: 80;
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.region-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #101c31;
}

.region-ring span {
  position: relative;
  z-index: 1;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.95rem;
  color: #eaf6ff;
}

.region-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

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

  .stats-row {
    flex-wrap: wrap;
  }

  .stats-row .stat-card {
    flex: 1 1 45%;
  }

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

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

  .carrier-row {
    grid-template-columns: 1fr auto 90px 40px;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .subpage .page-shell {
    padding-top: 88px;
  }

  .topbar,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .motion-object {
    width: 100%;
    max-width: 320px;
  }

  .intel-metrics,
  .intel-metrics-grid {
    grid-template-columns: 1fr;
  }

  .intel-widget-header {
    flex-direction: column;
  }

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

  .carrier-row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .carrier-bar {
    grid-column: 1 / -1;
  }

  .carrier-pct {
    text-align: left;
  }
}

/* Live Route Map (MapLibre GL + OpenFreeMap) */

.map-data-updated {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.map-shell {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
  align-items: start;
}

.map-panel {
  background: linear-gradient(135deg, rgba(16, 28, 49, 0.96), rgba(23, 38, 63, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 16px;
}

.route-map {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1626;
}

/* MapLibre GL controls re-skinned to match dark theme */
.maplibregl-map {
  font-family: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
}

.maplibregl-ctrl-group {
  background: var(--panel-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.maplibregl-ctrl-group button {
  background: var(--panel-2) !important;
}

.maplibregl-ctrl-group button:hover {
  background: rgba(76, 201, 240, 0.18) !important;
}

.maplibregl-ctrl-attrib {
  background: rgba(10, 22, 38, 0.65) !important;
  color: var(--muted) !important;
  border-radius: 8px 0 0 0;
}

.maplibregl-ctrl-attrib a {
  color: var(--muted) !important;
}

.maplibregl-popup-content {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  font-family: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px 14px;
}

.maplibregl-popup-close-button {
  color: var(--muted);
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--panel-2);
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: var(--panel-2);
}

.map-popup-title {
  display: block;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Hub marker */
.map-hub-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(76, 201, 240, 0.35);
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.12);
  cursor: pointer;
}

/* Disruption hotspot marker with pulse ring */
.map-hotspot-icon {
  position: relative;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.map-hotspot-icon .hotspot-core {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #e8a23c;
}

.map-hotspot-icon .hotspot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #e8a23c;
  animation: hotspot-pulse 1.8s ease-out infinite;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 6px 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.legend-swatch-active {
  background: var(--accent);
}

.legend-swatch-delayed {
  background: #e8a23c;
}

.legend-swatch-hub {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.legend-swatch-hotspot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8a23c;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-sidebar-block {
  background: linear-gradient(135deg, rgba(16, 28, 49, 0.96), rgba(23, 38, 63, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 18px;
}

.map-region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-disruption-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-disruption-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(232, 162, 60, 0.08);
  border: 1px solid rgba(232, 162, 60, 0.25);
  border-radius: 12px;
  font-size: 0.9rem;
}

.map-disruption-list .disruption-name {
  font-weight: 600;
  color: #f4e3c8;
}

.map-disruption-list .disruption-detail {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-sidebar-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.map-sidebar-stat .intel-metric-value {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
}

@media (max-width: 900px) {
  .map-shell {
    grid-template-columns: 1fr;
  }

  .route-map {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .route-map {
    height: 340px;
  }
}