/* =========================================================
   EXIMOTIVE: Intelligent Motion System
   Alpine Navy · Steel Blue · Copper · Warm Ivory
   ========================================================= */

:root {
  --navy: #10243A;
  --steel: #315B78;
  --copper: #D47A3A;
  --ivory: #F5F1E8;
  --bg: #F4F2ED;
  --dark: #0D1824;
  --text-muted: #66717B;
  --border: #D8D5CD;
  --white: #FFFFFF;
  --steel-soft: #8BA8BC;

  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Manrope", sans-serif;

  --container: 1180px;
  --nav-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 50px rgba(16, 36, 58, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(49, 91, 120, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 122, 58, 0.05), transparent 45%),
    linear-gradient(180deg, var(--ivory) 0%, var(--bg) 40%, var(--bg) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section--dark {
  background:
    linear-gradient(160deg, #0D1824 0%, #122538 55%, #0D1824 100%);
  color: var(--ivory);
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.65), rgba(244, 242, 237, 0.9));
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
}

.section-head--light h2 {
  color: var(--ivory);
}

.section-head__sub {
  margin-top: 0.85rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: var(--steel-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 8px 24px rgba(212, 122, 58, 0.28);
}

.btn--primary:hover {
  background: #c46b2f;
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--steel);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.6rem;
}

.section--dark .btn--secondary {
  color: var(--ivory);
  border-color: rgba(245, 241, 232, 0.3);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(245, 241, 232, 0.94);
  box-shadow: 0 1px 0 rgba(16, 36, 58, 0.03);
}

.navbar__inner {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__brand {
  flex-shrink: 0;
}

.logo--nav,
.logo--footer {
  width: 168px;
  height: auto;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.navbar__links a:hover {
  color: var(--navy);
}

.navbar__links a:hover::after {
  transform: scaleX(1);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar__actions .btn--ghost,
.navbar__actions .btn--primary {
  display: none;
}

.navbar__toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.is-open .navbar__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar.is-open .navbar__toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .navbar__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 0.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  border-bottom: none;
}

@media (min-width: 1100px) {
  .navbar__links {
    display: flex;
  }

  .navbar__actions .btn--ghost,
  .navbar__actions .btn--primary {
    display: inline-flex;
  }

  .navbar__toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(49, 91, 120, 0.04) 70%, transparent),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(216, 213, 205, 0.35) 79px,
      rgba(216, 213, 205, 0.35) 80px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 80px 0; }
}

.hero__grid {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.28em;
  margin: 0 0 1.35rem;
  line-height: 1;
}

.hero__brand-exi {
  font-weight: 700;
  color: var(--navy);
}

.hero__brand-motive {
  font-weight: 500;
  color: var(--steel);
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero__scene {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(245, 241, 232, 0.95), rgba(244, 242, 237, 0.7)),
    radial-gradient(circle at 70% 30%, rgba(212, 122, 58, 0.08), transparent 50%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  aspect-ratio: 640 / 520;
}

.hero__svg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
}

.hero-vehicle,
.hero-paths,
.hero-grid,
.hero-nodes,
.hero-labels {
  transition: transform 0.5s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.path-copper {
  stroke-dasharray: 8 12;
  animation: dashMove 8s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -120; }
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

/* ---------- Intro ---------- */
.intro__inner {
  max-width: 900px;
  padding-block: 1rem;
}

.intro__statement {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  max-width: 12ch;
}

.intro__copy {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 1.25rem;
}

.intro__copy--emphasis {
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Ecosystem ---------- */
.ecosystem__diagram {
  position: relative;
}

.ecosystem__svg {
  width: min(100%, 700px);
  margin-inline: auto;
}

.ecosystem__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.dot--navy { background: var(--navy); }
.dot--steel { background: var(--steel); }
.dot--copper { background: var(--copper); }
.dot--line {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: var(--border);
}

/* ---------- Platform modules ---------- */
.platform__modules {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.module {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background 0.3s ease;
}

.module:hover {
  background: var(--ivory);
}

.module__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--copper);
  display: block;
  margin-bottom: 1rem;
}

.module h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.module > p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

.module ul {
  display: grid;
  gap: 0.45rem;
}

.module li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9375rem;
  color: var(--navy);
}

.module li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--copper);
}

@media (min-width: 768px) {
  .platform__modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .platform__modules {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .platform__modules {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  .module {
    flex: 0 0 min(85vw, 320px);
    scroll-snap-align: start;
    border-right: 1px solid var(--border);
  }
}

/* ---------- Mobility Pulse ---------- */
.pulse__track {
  position: relative;
  padding: 2.5rem 0 1rem;
}

.pulse__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.85rem;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--steel), var(--border));
  overflow: visible;
}

.pulse__glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 122, 58, 0.85) 0%, rgba(212, 122, 58, 0.25) 40%, transparent 70%);
  animation: pulseTravel 6s var(--ease) infinite;
  pointer-events: none;
}

@keyframes pulseTravel {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.pulse__stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  list-style: none;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
}

.pulse__stages li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.pulse__stages li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 4px var(--bg);
}

.pulse__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 9ch;
}

@media (max-width: 767px) {
  .pulse__stages {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .pulse__stages li {
    flex: 0 0 auto;
  }

  .pulse__line {
    display: none;
  }
}

/* ---------- Telemetry dashboard ---------- */
.dash {
  border: 1px solid rgba(139, 168, 188, 0.25);
  background: linear-gradient(160deg, rgba(18, 37, 56, 0.95), rgba(13, 24, 36, 0.98));
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.dash__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: end;
}

.dash__tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-soft);
  margin-bottom: 0.35rem;
}

.dash__vehicle {
  font-size: 1.75rem;
  color: var(--ivory);
}

.dash__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d9a6a;
  box-shadow: 0 0 0 4px rgba(61, 154, 106, 0.2);
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
  50% { box-shadow: 0 0 0 6px rgba(61, 154, 106, 0.05); }
}

.dash__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .dash__metrics {
    grid-template-columns: repeat(5, 1fr);
  }
}

.metric {
  border-top: 1px solid rgba(139, 168, 188, 0.2);
  padding-top: 0.85rem;
}

.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-soft);
}

.dash__chart {
  border: 1px solid rgba(139, 168, 188, 0.15);
  height: 180px;
  overflow: hidden;
}

.telemetry-chart {
  width: 100%;
  height: 100%;
}

.chart-line--copper {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.5s var(--ease) forwards;
}

.chart-line--steel {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.8s 0.3s var(--ease) forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ---------- Fleet ---------- */
.fleet__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fleet-map {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border);
  background: var(--ivory);
}

.fleet-map__svg {
  width: 100%;
  min-height: 280px;
}

.fleet-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.fleet-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.fleet-item:last-child {
  border-bottom: none;
}

.fleet-item strong {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.fleet-item span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .fleet-map {
    grid-template-columns: 1.6fr 1fr;
  }

  .fleet-list {
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .fleet__stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Command map ---------- */
.command-map {
  border: 1px solid var(--navy);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.command-map__svg {
  width: 100%;
  height: auto;
  min-height: 280px;
  display: block;
}

.traffic-flow {
  animation: dashMove 10s linear infinite;
}

/* ---------- Industries ---------- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.industry {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  transition: background 0.3s ease, transform 0.35s var(--ease);
}

.industry:hover {
  background: var(--ivory);
  transform: translateY(-2px);
}

.industry__visual {
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.industry__visual svg {
  width: 120px;
  height: 60px;
}

.industry h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.industry p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Blueprint ---------- */
.blueprint {
  border: 1px solid rgba(139, 168, 188, 0.25);
  background:
    linear-gradient(rgba(49, 91, 120, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 91, 120, 0.06) 1px, transparent 1px),
    rgba(13, 24, 36, 0.5);
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
}

.blueprint__svg {
  width: 100%;
  min-height: 260px;
}

/* ---------- Tech stack ---------- */
.stack__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.15rem;
}

.stack__node {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--ivory);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.stack__node--accent {
  border-color: var(--copper);
  color: var(--copper);
}

.stack__arrow {
  position: relative;
  width: 28px;
  height: 2px;
  background: var(--steel);
  overflow: visible;
}

.stack__arrow::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: var(--steel);
}

.packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--copper);
  animation: packetMove 1.8s linear infinite;
}

@keyframes packetMove {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 767px) {
  .stack__flow {
    flex-direction: column;
  }

  .stack__arrow {
    width: 2px;
    height: 24px;
  }

  .stack__arrow::after {
    right: -3px;
    top: auto;
    bottom: -3px;
    border-left-color: transparent;
    border-top-color: var(--steel);
  }

  .packet {
    left: 50%;
    margin-left: -3px;
    animation-name: packetMoveY;
  }

  @keyframes packetMoveY {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
}

/* ---------- Tabs / Use cases ---------- */
.tabs__list {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.tabs__tab {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tabs__tab.is-active,
.tabs__tab:hover {
  color: var(--navy);
}

.tabs__tab.is-active {
  border-bottom-color: var(--copper);
}

.tabs__tab:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.tabs__panel {
  animation: fadePanel 0.35s var(--ease);
}

.tabs__panel[hidden] {
  display: none;
}

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.usecase-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .usecase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.usecase-grid h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.55rem;
}

.usecase-grid p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* ---------- Data intelligence ---------- */
.intel-dash {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.intel-card {
  background: var(--ivory);
  padding: 1.35rem;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intel-card h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.intel-card__meta {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intel-card__status {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.mini-chart {
  width: 100%;
  height: 70px;
}

.ring {
  --p: 70;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--copper) calc(var(--p) * 1%), var(--border) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--ivory);
}

.ring span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.ring--steel {
  background: conic-gradient(var(--steel) calc(var(--p) * 1%), var(--border) 0);
}

.intel-list {
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.intel-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.intel-list strong {
  color: var(--navy);
  font-family: var(--font-display);
}

.intel-list--alerts li {
  display: block;
  position: relative;
  padding-left: 0.85rem;
}

.intel-list--alerts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

/* ---------- Predictive alerts ---------- */
.alerts {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 800px) {
  .alerts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.alert {
  background: var(--ivory);
  padding: 1.5rem 1.35rem;
  transition: background 0.3s ease;
}

.alert:hover {
  background: #fff;
}

.alert__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.alert p {
  font-size: 1.05rem;
  color: var(--navy);
  max-width: 36ch;
}

/* ---------- Integrations ---------- */
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.integration {
  background: var(--bg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  transition: background 0.25s ease;
}

.integration:hover {
  background: var(--ivory);
}

.integration svg {
  width: 32px;
  height: 32px;
  color: var(--steel);
}

/* ---------- Security ---------- */
.security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(139, 168, 188, 0.2);
  border: 1px solid rgba(139, 168, 188, 0.2);
}

.security__item {
  background: rgba(13, 24, 36, 0.65);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.security__icon {
  width: 10px;
  height: 10px;
  border: 1px solid var(--copper);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---------- Case study ---------- */
.case {
  border: 1px solid var(--border);
  background: var(--ivory);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.case__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.75rem;
}

.case__compare {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .case__compare {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.case__col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.case__col p {
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.case__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

@media (min-width: 700px) {
  .case__divider {
    width: 1px;
    height: 64px;
  }
}

.case__outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

.case__outcomes > div {
  display: grid;
  gap: 0.35rem;
}

.case__outcome {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.case__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 560px) {
  .case__outcomes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Finale ---------- */
.finale {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(49, 91, 120, 0.08), transparent 60%),
    var(--bg);
}

.finale__inner {
  max-width: 820px;
  text-align: center;
  margin-inline: auto;
}

.finale__statement {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.finale__copy {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--steel-soft);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer__brand p {
  margin-top: 1rem;
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer h4 {
  color: var(--ivory);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--ivory);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 168, 188, 0.15);
  font-size: 0.8125rem;
}

.footer__domain {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children slightly via delay helpers */
.platform__modules .module:nth-child(2) { transition-delay: 0.06s; }
.platform__modules .module:nth-child(3) { transition-delay: 0.12s; }
.platform__modules .module:nth-child(4) { transition-delay: 0.18s; }

.industries__grid .industry:nth-child(2) { transition-delay: 0.05s; }
.industries__grid .industry:nth-child(3) { transition-delay: 0.1s; }
.industries__grid .industry:nth-child(4) { transition-delay: 0.15s; }
.industries__grid .industry:nth-child(5) { transition-delay: 0.2s; }
.industries__grid .industry:nth-child(6) { transition-delay: 0.25s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__atmosphere {
    animation: none;
  }
}
