/* ==========================================================================
   Quantum NYX - Corporate & Scientific Design System
   Simulation Engines for Complex Systems
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --graphite: #1D2636;
  --deep-navy: #0E3A7C;
  --quantum-blue: #174E9B;
  --nyx-violet: #8178F2;
  --steel-gray: #8391A6;
  --soft-gray: #E8EBEF;
  --bg-light: #F7F8FA;
  --pure-white: #FFFFFF;

  /* Dark Theme Sections */
  --dark-bg: #111722;
  --dark-bg-alt: #151C28;
  --dark-card: #1A2332;
  --dark-border: rgba(131, 145, 166, 0.2);
  --dark-text: #F7F8FA;
  --dark-muted: #8391A6;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Transitions & FX */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--graphite);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

/* Typography */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  color: inherit;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--steel-gray);
  font-size: 1.05rem;
}

.text-graphite { color: var(--graphite) !important; }
.text-dark { color: var(--dark-text) !important; }
.text-steel { color: var(--steel-gray) !important; }
.text-violet { color: var(--nyx-violet) !important; }
.text-navy { color: var(--deep-navy) !important; }

/* Badges */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(14, 58, 124, 0.08);
  color: var(--deep-navy);
  border: 1px solid rgba(14, 58, 124, 0.18);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.dark .badge-tech,
.badge-tech-dark {
  background: rgba(129, 120, 242, 0.12);
  color: var(--nyx-violet);
  border: 1px solid rgba(129, 120, 242, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--nyx-violet);
  box-shadow: 0 0 8px var(--nyx-violet);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--deep-navy);
  color: var(--pure-white);
  border-color: var(--deep-navy);
}

.btn-primary:hover {
  background-color: var(--quantum-blue);
  border-color: var(--quantum-blue);
  box-shadow: 0 4px 14px rgba(14, 58, 124, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-text);
  border-color: rgba(232, 235, 239, 0.3);
}

.btn-secondary:hover {
  border-color: var(--nyx-violet);
  color: var(--nyx-violet);
  background: rgba(129, 120, 242, 0.05);
}

.btn-light-secondary {
  background-color: transparent;
  color: var(--graphite);
  border-color: var(--steel-gray);
}

.btn-light-secondary:hover {
  border-color: var(--deep-navy);
  color: var(--deep-navy);
  background: rgba(14, 58, 124, 0.04);
}

/* Header & Fixed Navigation */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.25rem 0;
  background: transparent;
}

.header-nav.scrolled {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--soft-gray);
  box-shadow: 0 4px 20px rgba(29, 38, 54, 0.08);
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.brand-logo-img.logo-white {
  display: block;
}

.brand-logo-img.logo-dark {
  display: none;
}

.header-nav.scrolled .brand-logo-img.logo-white {
  display: none;
}

.header-nav.scrolled .brand-logo-img.logo-dark {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.header-nav.scrolled .brand-name {
  color: var(--graphite);
}

.brand-descriptor {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.header-nav.scrolled .brand-descriptor {
  color: var(--steel-gray);
}

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

.nav-link {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
  color: #8178F2;
}

.header-nav.scrolled .nav-link {
  color: var(--graphite);
  text-shadow: none;
}

.header-nav.scrolled .nav-link:hover {
  color: var(--deep-navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--nyx-violet);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

/* Minimalist & Elegant Language Switcher */
.lang-switcher-li {
  display: flex;
  align-items: center;
  margin-left: 0.25rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.header-nav.scrolled .lang-switcher {
  background: rgba(14, 58, 124, 0.06);
  border-color: rgba(14, 58, 124, 0.18);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(247, 248, 250, 0.65);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: all var(--transition-fast);
}

.header-nav.scrolled .lang-btn {
  color: var(--steel-gray);
}

.lang-btn:hover {
  color: var(--pure-white);
}

.header-nav.scrolled .lang-btn:hover {
  color: var(--deep-navy);
}

.lang-btn.active {
  color: #FFFFFF;
  font-weight: 800;
  background: rgba(129, 120, 242, 0.4);
}

.header-nav.scrolled .lang-btn.active {
  color: var(--deep-navy);
  background: rgba(14, 58, 124, 0.12);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

.header-nav.scrolled .lang-divider {
  color: rgba(14, 58, 124, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.header-nav.scrolled .mobile-toggle {
  color: var(--graphite);
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--dark-border);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }
  .header-nav.scrolled .nav-menu {
    background: var(--pure-white);
  }
  .nav-menu.active {
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .brand-descriptor {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-sim-disclaimer {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(232, 235, 239, 0.75);
  background: rgba(11, 16, 25, 0.75);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(131, 145, 166, 0.25);
  backdrop-filter: blur(6px);
  pointer-events: none;
  letter-spacing: 0.04em;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(247, 248, 250, 0.75);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 720px;
}

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

/* Workflow Sequence Section */
.workflow-seq {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
  position: relative;
}

@media (max-width: 992px) {
  .workflow-seq {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .workflow-seq {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seq-item {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.seq-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(14, 58, 124, 0.06);
  color: var(--deep-navy);
  margin-bottom: 0.75rem;
  transition: all var(--transition-fast);
}

.seq-item:hover {
  border-color: var(--deep-navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 58, 124, 0.08);
}

.seq-item.active-step {
  border-color: var(--nyx-violet);
  background: linear-gradient(135deg, rgba(129, 120, 242, 0.08), rgba(23, 78, 155, 0.04));
  box-shadow: 0 14px 35px rgba(129, 120, 242, 0.25);
  transform: translateY(-7px) scale(1.02);
}

.seq-item.active-step .seq-icon-wrap {
  background: var(--nyx-violet);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(129, 120, 242, 0.5);
}

.seq-item.active-step .seq-step {
  color: var(--nyx-violet);
  font-weight: 800;
}

.seq-item.active-step .seq-arrow {
  color: var(--nyx-violet);
  transform: translateY(-50%) translateX(4px);
  font-weight: bold;
  filter: drop-shadow(0 0 6px rgba(129, 120, 242, 0.6));
}

/* Simulation Architecture Section */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3.5rem;
  position: relative;
}

.arch-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .arch-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .arch-row {
    grid-template-columns: 1fr;
  }
}

.arch-card {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-left: 3.5px solid var(--deep-navy);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.arch-card:hover {
  border-left-color: var(--nyx-violet);
  border-color: var(--soft-gray);
  box-shadow: 0 6px 20px rgba(29, 38, 54, 0.06);
  transform: translateY(-2px);
}

.arch-card.active-arch {
  border-left-width: 5px;
  border-left-color: #60A5FA !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(129, 120, 242, 0.06)) !important;
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.25) !important;
  transform: translateY(-6px);
}

.arch-card.active-arch .arch-num {
  color: #60A5FA !important;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.arch-card.active-arch .arch-title {
  color: var(--deep-navy) !important;
  font-weight: 700;
}

.arch-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel-gray);
  margin-bottom: 0.35rem;
}

.arch-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--graphite);
}

/* Application Areas Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.app-card {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--deep-navy);
  box-shadow: 0 10px 30px rgba(14, 58, 124, 0.08);
  transform: translateY(-3px);
}

.app-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(14, 58, 124, 0.06);
  color: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.app-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.app-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

.app-item {
  font-size: 0.875rem;
  color: var(--steel-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-item::before {
  content: '•';
  color: var(--nyx-violet);
  font-weight: bold;
}

/* Dark Tech Section */
.dark-section {
  background-color: var(--dark-bg-alt);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}

.tech-components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .tech-components-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-components-grid {
    grid-template-columns: 1fr;
  }
}

.tech-comp-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tech-comp-card:hover {
  border-color: var(--nyx-violet);
  background: rgba(26, 35, 50, 0.9);
  transform: translateY(-2px);
}

.tech-comp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--quantum-blue);
  border: 2px solid var(--nyx-violet);
  flex-shrink: 0;
}

.tech-comp-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-text);
}

/* Hybrid Graphic Representation Box */
.hybrid-flow-box {
  margin-top: 3.5rem;
  background: rgba(17, 23, 34, 0.7);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.hybrid-flow-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hybrid-node {
  padding: 0.6rem 1.25rem;
  background: var(--dark-card);
  border: 1px solid rgba(131, 145, 166, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-text);
}

.hybrid-op {
  color: var(--nyx-violet);
  font-weight: bold;
  font-size: 1.1rem;
}

.hybrid-result-arrow {
  color: var(--quantum-blue);
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.hybrid-result-badge {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--deep-navy), var(--quantum-blue));
  border: 1px solid var(--nyx-violet);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pure-white);
  box-shadow: 0 0 20px rgba(129, 120, 242, 0.2);
}

/* Geospatial Map Interactive Section */
.gis-wrapper {
  margin-top: 2.5rem;
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-lg);
  background: var(--pure-white);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(29, 38, 54, 0.06);
}

.gis-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--soft-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.gis-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gis-canvas-container {
  position: relative;
  width: 100%;
  height: clamp(260px, 45vh, 480px);
  background: #0D131D;
  overflow: hidden;
}

#gis-canvas {
  width: 100%;
  height: 100%;
}

.gis-layers-bar {
  padding: 1rem 1.5rem;
  background: var(--pure-white);
  border-top: 1px solid var(--soft-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.layer-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--soft-gray);
  background: var(--bg-light);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.layer-btn.active {
  background: var(--deep-navy);
  color: var(--pure-white);
  border-color: var(--deep-navy);
}

.gis-telemetry-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(17, 23, 34, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--dark-border);
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--dark-text);
  font-family: monospace;
  font-size: 0.8rem;
  min-width: 200px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.telemetry-val {
  color: var(--nyx-violet);
  font-weight: bold;
}

/* Q-NYX Fire Engine Project Section */
.featured-project-card {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: 0 12px 36px rgba(29, 38, 54, 0.05);
}

@media (max-width: 992px) {
  .featured-project-card {
    grid-template-columns: 1fr;
  }
}

.project-details {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.project-sim-area {
  background: #0E1520;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.sim-canvas-box {
  width: 100%;
  height: clamp(220px, 35vh, 320px);
  background: #0B0E14;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

#fire-sim-canvas {
  width: 100%;
  height: 100%;
}

.sim-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
}

/* Ecosystem Collaborators */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

.eco-card {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-top: 4px solid var(--deep-navy);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all var(--transition-fast);
}

.eco-card:hover {
  border-top-color: var(--nyx-violet);
  box-shadow: 0 10px 30px rgba(14, 58, 124, 0.08);
}

.eco-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nyx-violet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.eco-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.eco-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep-navy);
  text-decoration: none;
  margin-top: 1.25rem;
  transition: color var(--transition-fast);
}

.eco-link:hover {
  color: var(--nyx-violet);
  text-decoration: underline;
}

/* Founders Section */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

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

.founder-card {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 576px) {
  .founder-card {
    flex-direction: column;
  }
}

.founder-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--soft-gray);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.founder-avatar svg,
.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.founder-info {
  display: flex;
  flex-direction: column;
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--graphite);
}

.founder-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep-navy);
}

.founder-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #0A66C2;
  text-decoration: none;
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
  transition: opacity 0.2s ease;
}

.founder-linkedin-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.founder-exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.founder-exp-item {
  font-size: 0.875rem;
  color: var(--steel-gray);
  position: relative;
  padding-left: 1rem;
}

.founder-exp-item::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--nyx-violet);
  font-weight: bold;
}

/* Territory / Chile Map Section */
.territory-box {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .territory-box {
    grid-template-columns: 1fr;
  }
}

.chile-map-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17, 23, 34, 0.15);
}

#territory-real-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #0E1520;
}

/* Enhanced Luminosity & Contrast Filters for Map Tiles */
#territory-real-map .leaflet-tile-container img {
  filter: brightness(1.4) contrast(1.2) saturate(1.25);
  transition: filter 0.3s ease;
}

/* Custom Styled Dark Controls */
#territory-real-map .leaflet-control-zoom a,
#territory-real-map .leaflet-control-layers {
  background-color: rgba(21, 28, 40, 0.92) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(129, 120, 242, 0.35) !important;
  backdrop-filter: blur(8px);
}

#territory-real-map .leaflet-control-zoom a {
  color: #FFFFFF !important;
}

#territory-real-map .leaflet-control-layers-expanded {
  padding: 8px 12px;
  color: var(--dark-text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

#territory-real-map .leaflet-container .leaflet-control-attribution {
  background: rgba(14, 21, 32, 0.85) !important;
  color: var(--steel-gray) !important;
  font-size: 0.7rem;
}

#territory-real-map .leaflet-container .leaflet-control-attribution a {
  color: var(--nyx-violet) !important;
}

/* Glassmorphic Overlay Info Card over Real Map */
.territory-card-overlay {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  width: 260px;
  background: rgba(21, 28, 40, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(129, 120, 242, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--dark-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.territory-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(129, 120, 242, 0.15);
  border: 1px solid rgba(129, 120, 242, 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--nyx-violet);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.territory-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pure-white);
  line-height: 1.2;
}

.territory-card-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nyx-violet);
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.territory-card-coords {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--steel-gray);
}

.territory-card-divider {
  border: 0;
  border-top: 1px solid rgba(131, 145, 166, 0.2);
  margin: 0.75rem 0;
}

.territory-card-tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.775rem;
  color: var(--steel-gray);
}

/* Custom Pulsing Marker Pin for Leaflet */
.valdivia-marker-pin {
  width: 16px;
  height: 16px;
  background: #8178F2;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 15px #8178F2;
  position: relative;
}

.valdivia-marker-pin::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  border: 2px solid #8178F2;
  border-radius: 50%;
  animation: leafletPulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes leafletPulse {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 576px) {
  .chile-map-container {
    height: auto;
    min-height: 480px;
    display: flex;
    flex-direction: column;
  }

  #territory-real-map {
    height: 280px;
  }

  .territory-card-overlay {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    border-radius: 0;
    border-top: 1px solid rgba(129, 120, 242, 0.35);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* Vision Dark Banner */
.vision-banner {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 500;
  max-width: 960px;
  margin: 0 auto 2rem auto;
  line-height: 1.4;
  color: var(--pure-white);
}

.vision-motto {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nyx-violet);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Contact Form Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3rem;
}

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

.contact-form {
  background: var(--pure-white);
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--graphite);
}

.form-input, .form-select, .form-textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--graphite);
  background: var(--bg-light);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--deep-navy);
  background: var(--pure-white);
}

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

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border: 1px solid #0369a1;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid #b91c1c;
}

/* Footer Section */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--dark-border);
}

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

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

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pure-white);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: var(--dark-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--nyx-violet);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--dark-muted);
}

/* ==========================================================================
   Responsive Structural Grids & Utility Classes
   ========================================================================== */
.rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 992px) {
  .rd-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

@media (max-width: 576px) {
  .rd-bullets-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 992px) {
  .future-engines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .future-engines-grid {
    grid-template-columns: 1fr;
  }
}

.project-vars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--soft-gray);
}

@media (max-width: 576px) {
  .project-vars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.sim-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
  background: #0B0E14;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dark-border);
  text-align: center;
}

@media (max-width: 576px) {
  .sim-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Comprehensive Mobile & Responsive Overrides */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .project-details {
    padding: 1.75rem 1.25rem;
  }

  .project-sim-area {
    padding: 1.25rem;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  .territory-box {
    padding: 1.75rem 1.25rem;
    gap: 2rem;
  }

  .founder-card {
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .eco-card {
    padding: 1.5rem 1.25rem;
  }

  .hybrid-flow-box {
    padding: 1.75rem 1.25rem;
  }

  .vision-banner {
    padding: 3.5rem 0;
  }

  .gis-telemetry-overlay {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.6rem 0.8rem;
    min-width: auto;
    font-size: 0.725rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .sim-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sim-controls-row > div {
    justify-content: space-between;
  }

  .founder-card {
    align-items: center;
  }

  .founder-avatar {
    margin: 0 auto;
  }

  .founder-info {
    align-items: center;
    text-align: center;
  }

  .founder-exp-list {
    text-align: left;
  }

  .gis-header {
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .gis-layers-bar {
    padding: 0.75rem 0.85rem;
  }

  .layer-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.775rem;
  }
}

