:root {
  --bg: #050712;
  --panel: #0a1020;
  --panel-2: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.42);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --soft: #dbe7ff;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #34d399;
  --ink: #020617;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "Fira Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(59, 130, 246, 0.14), transparent 32rem),
    linear-gradient(180deg, #050712 0%, #08101e 52%, #050712 100%);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(34, 211, 238, 0.08) 42%, transparent 45%);
  animation: scan 9s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateX(-55%); opacity: 0.12; }
  50% { transform: translateX(55%); opacity: 0.32; }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1540px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(5, 7, 18, 0.86);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 154px;
}

.brand img {
  width: 144px;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.24));
}

.brand-fallback {
  display: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  padding: 12px 7px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.98), rgba(8, 145, 178, 0.94));
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.7);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: var(--soft);
  border-color: var(--line);
}

.hero {
  position: relative;
  padding: 88px 0 54px;
  background:
    linear-gradient(90deg, rgba(5, 7, 18, 0.96) 0%, rgba(5, 7, 18, 0.86) 46%, rgba(5, 7, 18, 0.54) 100%),
    url("images/xprt-ecosystem-hero.png") right center / min(58vw, 980px) auto no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 52px;
  align-items: center;
}

.eyebrow,
.section-label {
  color: var(--cyan);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.08;
  font-weight: 800;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 2.6vw, 2.7rem);
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.lead {
  max-width: 900px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.body-copy,
.card p,
.feature p,
.resource p,
.timeline p,
.contact-card p,
.footer p {
  color: var(--muted);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.media-band {
  padding: 46px 0;
}

.media-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.media-panel.reverse {
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
}

.media-panel.reverse .media-copy {
  order: 2;
}

.media-panel.reverse .media-frame {
  order: 1;
}

.media-copy {
  min-width: 0;
}

.media-frame {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 18, 0.18));
}

.platform-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.68);
}

.platform-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.metric {
  padding: 22px;
  background: rgba(8, 13, 27, 0.88);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 23, 41, 0.94), rgba(5, 7, 18, 0.9));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 14%, rgba(34, 211, 238, 0.16), transparent 22rem);
  pointer-events: none;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-family: var(--font-code);
  color: var(--muted);
  font-size: 0.78rem;
}

.dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot:nth-child(1) { background: #fb7185; }
.dot:nth-child(2) { background: #fbbf24; }
.dot:nth-child(3) { background: #34d399; }

.terminal-body {
  position: relative;
  padding: 24px;
  font-family: var(--font-code);
  color: #d9faff;
  font-size: 0.9rem;
  line-height: 1.85;
}

.command-line {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.prompt {
  flex: 0 0 auto;
  color: var(--cyan);
}

.success {
  color: var(--green);
}

.muted {
  color: var(--muted);
}

.platform-map,
.cards,
.feature-grid,
.resource-grid,
.industry-grid,
.leadership-grid,
.contact-grid,
.two-col {
  display: grid;
  gap: 18px;
}

.platform-map,
.cards {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.cards {
  gap: 18px;
}

.cards:has(.platform-card-image) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-tabs {
  margin-top: 20px;
}

.platform-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.platform-tab {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.platform-tab:hover,
.platform-tab:focus,
.platform-tab.active {
  border-color: rgba(34, 211, 238, 0.58);
  color: #e7fbff;
  background: rgba(34, 211, 238, 0.1);
}

.platform-tab-panel {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.025));
}

.platform-tab-panel[hidden] {
  display: none;
}

.platform-tab-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

.platform-tab-panel .tag {
  margin-bottom: 12px;
}

.platform-tab-panel p {
  margin-bottom: 0;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-grid,
.industry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leadership-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
}

section {
  padding: 92px 0;
}

.band {
  border-block: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.section-head {
  max-width: 960px;
  margin-bottom: 34px;
}

.industry-platform-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 44px;
  align-items: center;
  width: 100%;
  max-width: none;
}

.industry-platform-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  justify-self: end;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.68);
}

.industry-platform-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card,
.feature,
.resource,
.industry,
.contact-card,
.timeline,
.node,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  min-width: 0;
}

.card.large {
  min-height: 380px;
}

.card h2,
.card h3 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.feature,
.resource,
.industry,
.contact-card,
.timeline,
.node {
  padding: 24px;
}

.logo-mark,
.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-family: var(--font-code);
  font-weight: 800;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.035);
}

.link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 800;
}

.tech-stack-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 30px;
  background: rgba(34, 211, 238, 0.05);
  color: var(--text);
  font-family: var(--font-code);
  font-size: 0.9rem;
  font-weight: 600;
}

.ecosystem-visual {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.orbit {
  position: absolute;
  inset: 36px;
  border: 1px dashed rgba(34, 211, 238, 0.24);
  border-radius: 50%;
}

.hub,
.satellite {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 11, 22, 0.88);
  text-align: center;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.hub {
  width: 184px;
  height: 74px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.satellite {
  width: 152px;
  height: 68px;
  color: var(--soft);
}

.satellite.one {
  top: 54px;
  left: 44px;
}

.satellite.two {
  top: 54px;
  right: 44px;
}

.satellite.three {
  left: 44px;
  bottom: 42px;
}

.satellite.four {
  right: 44px;
  bottom: 42px;
}

.satellite.five {
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
}

.satellite.six {
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
}

.list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  color: var(--soft);
  line-height: 1.6;
}

.list li::before {
  content: attr(data-step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-code);
  font-size: 0.74rem;
}

.page-hero {
  padding: 68px 0 54px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.78rem;
}

.form-panel {
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

label {
  color: var(--soft);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 130px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.form-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.instant-edit {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.86rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.footer {
  padding: 58px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  background: rgba(2, 6, 23, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 38px;
}

.footer h3,
.footer h4 {
  color: var(--text);
}

.footer a {
  display: block;
  margin: 10px 0;
}

.footer a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1060px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .media-panel,
  .media-panel.reverse {
    grid-template-columns: 1fr;
  }

  .industry-platform-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .industry-platform-image {
    max-width: 680px;
  }

  .media-panel.reverse .media-copy,
  .media-panel.reverse .media-frame {
    order: initial;
  }

  .cards,
  .platform-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .resource-grid,
  .industry-grid,
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 7, 18, 0.96);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(5, 7, 18, 0.94) 0%, rgba(5, 7, 18, 0.82) 100%),
      url("images/xprt-ecosystem-hero.png") center top / auto 360px no-repeat;
  }

  .nav-inner {
    min-height: 68px;
  }

  .brand img {
    width: 126px;
  }

  .nav .btn {
    display: none;
  }

  .nav-links {
    top: 68px;
  }

  .hero,
  .page-hero {
    padding-top: 56px;
  }

  section {
    padding: 68px 0;
  }

  .actions,
  .cards,
  .platform-map,
  .platform-tab-list,
  .metric-strip,
  .feature-grid,
  .resource-grid,
  .industry-grid,
  .leadership-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards:has(.platform-card-image) {
    grid-template-columns: 1fr;
  }

  .actions,
  .cards,
  .platform-tab-list {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .terminal-body,
  .card,
  .feature,
  .resource,
  .industry,
  .contact-card,
  .timeline,
  .node,
  .form-panel,
  .media-panel {
    padding: 20px;
  }

  .media-frame,
  .media-frame img {
    min-height: 220px;
  }

  .ecosystem-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    padding: 18px;
  }

  .orbit {
    display: none;
  }

  .ecosystem-visual .hub,
  .ecosystem-visual .satellite {
    position: static;
    width: auto;
    height: auto;
    min-height: 62px;
    transform: none;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .hub {
    grid-column: 1 / -1;
  }

  .satellite {
    font-size: 0.9rem;
  }

  .satellite.one {
    left: auto;
  }

  .satellite.two {
    right: auto;
  }

  .satellite.three {
    bottom: auto;
    left: auto;
  }

  .satellite.four {
    right: auto;
    bottom: auto;
  }

  .satellite.five {
    left: auto;
    bottom: auto;
    transform: none;
  }

  .satellite.six {
    left: auto;
    top: auto;
    transform: none;
  }
}

/* Mega Menu */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: default;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
  min-width: 650px;
}

.nav-dropdown-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mega-column h4 {
  color: var(--cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.nav-links .mega-column a {
  padding: 6px 0;
  color: var(--soft);
  font-size: 0.95rem;
  transition: color 0.15s ease;
  border-radius: 0;
  white-space: nowrap;
}

.nav-links .mega-column a:hover {
  color: #fff;
  background: transparent;
}


/* Mobile override for Mega Menu */
@media (max-width: 900px) {
  .mega-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    gap: 24px;
    padding: 16px 0 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: none;
  }
  
  .nav-dropdown-wrapper {
    display: block;
  }
  
  .nav-dropdown-wrapper.active .mega-menu,
  .nav-dropdown-wrapper:hover .mega-menu,
  .nav-dropdown-wrapper:focus-within .mega-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .mega-column {
    margin-bottom: 12px;
  }
  
  .mega-column h4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links .mega-column a {
    white-space: normal;
  }
}

/* Fix for dropdown options background in dark mode */
select option {
  background-color: #050712;
  color: #f8fafc;
}

