/* ============================================
   AIVENTRA — AI Civilization
   Liquid Platinum + Hyper Violet Theme
   ============================================ */

:root {
  --violet: #7A5CFF;
  --platinum: #DADCE6;
  --bg: #0A0B10;
  --text: #F7F8FC;
  --lime: #B8FF6C;
  --violet-dim: rgba(122, 92, 255, 0.15);
  --violet-glow: rgba(122, 92, 255, 0.4);
  --lime-glow: rgba(184, 255, 108, 0.3);
  --platinum-dim: rgba(218, 220, 230, 0.08);
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
  --section-pad: clamp(4rem, 10vw, 8rem);
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--violet);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

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

/* Typography */
.section-title,
.city-title,
.ascension-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.title-accent {
  background: linear-gradient(135deg, var(--violet), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--platinum);
  max-width: 540px;
  opacity: 0.8;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  position: relative;
  min-height: 100vh;
  padding: var(--section-pad) 0;
}

/* ============================================
   HOLOGRAPHIC CITY MAP NAV
   ============================================ */
.city-map-nav {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
}

.city-map-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 11, 16, 0.85);
  border: 1px solid var(--violet-dim);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  color: var(--platinum);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.city-map-toggle:hover,
.city-map-toggle[aria-expanded="true"] {
  border-color: var(--violet);
  box-shadow: 0 0 30px var(--violet-glow);
}

.mini-city-map {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.mini-district {
  background: var(--violet-dim);
  border-radius: 2px;
  transition: background 0.3s;
}

.mini-district:nth-child(odd) { background: rgba(184, 255, 108, 0.1); }

.mini-pulse {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--violet);
  border-radius: 6px;
  animation: miniPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes miniPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.city-map-panel {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: min(320px, 90vw);
  background: rgba(10, 11, 16, 0.95);
  border: 1px solid var(--violet-dim);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  transform-origin: bottom right;
  animation: panelOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-map-panel[hidden] { display: none; }

@keyframes panelOpen {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.map-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.map-panel-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.map-close {
  background: none;
  border: none;
  color: var(--platinum);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.map-close:hover { color: var(--lime); }

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

.district-links a {
  position: relative;
  display: block;
  padding: 0.75rem 1rem;
  color: var(--platinum);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

.district-links a:hover,
.district-links a:focus {
  color: var(--text);
  background: var(--violet-dim);
}

.link-glow {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--lime);
  border-radius: 2px;
  transition: height 0.3s;
}

.district-links a:hover .link-glow { height: 60%; }

.map-grid-visual {
  margin-top: 1.5rem;
  opacity: 0.5;
}

.map-block {
  fill: var(--violet-dim);
  stroke: var(--violet);
  stroke-width: 0.5;
}

.map-connection {
  stroke: var(--lime);
  stroke-width: 0.5;
  opacity: 0.4;
}

/* ============================================
   SECTION 1: CITY FROM ABOVE
   ============================================ */
.section-city {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 12vh, 8rem);
  overflow: hidden;
}

.city-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.city-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fog-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 11, 16, 0.3) 40%,
    rgba(10, 11, 16, 0.8) 80%,
    var(--bg) 100%
  );
}

.fog-2 {
  background: radial-gradient(ellipse at 50% 0%, rgba(122, 92, 255, 0.08) 0%, transparent 60%);
}

.city-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  z-index: 2;
  padding: 0 2rem;
}

.building {
  position: relative;
  background: linear-gradient(180deg, #1a1b25 0%, #0f1018 100%);
  border: 1px solid rgba(122, 92, 255, 0.2);
  border-bottom: none;
  flex-shrink: 0;
}

.b1 { width: clamp(40px, 6vw, 80px); height: 30vh; }
.b2 { width: clamp(50px, 8vw, 100px); height: 38vh; }
.b3 { width: clamp(80px, 14vw, 180px); height: 48vh; }
.b4 { width: clamp(45px, 7vw, 90px); height: 35vh; }
.b5 { width: clamp(55px, 9vw, 110px); height: 42vh; }
.b6 { width: clamp(35px, 5vw, 70px); height: 28vh; }

.building-glow {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(122, 92, 255, 0.05) 8px,
    rgba(122, 92, 255, 0.05) 9px
  );
}

.logo-building {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1e1a35 0%, #12101f 100%);
  border-color: rgba(122, 92, 255, 0.5);
  box-shadow: 0 0 60px rgba(122, 92, 255, 0.2);
}

.aiventra-logo-skyline {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  letter-spacing: 0.3em;
  color: var(--violet);
  text-shadow: 0 0 20px var(--violet-glow);
}

.aiventra-logo-skyline span {
  display: inline-block;
  animation: logoFlicker 4s ease-in-out infinite;
}

.aiventra-logo-skyline span:nth-child(2) { animation-delay: 0.5s; color: var(--lime); }
.aiventra-logo-skyline span:nth-child(4) { animation-delay: 1s; }
.aiventra-logo-skyline span:nth-child(6) { animation-delay: 1.5s; color: var(--lime); }

@keyframes logoFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.transport-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.vehicle {
  position: absolute;
  width: 12px;
  height: 4px;
  background: var(--lime);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--lime-glow);
}

.v1 { top: 25%; animation: flyRoute1 12s linear infinite; }
.v2 { top: 35%; animation: flyRoute2 15s linear infinite; animation-delay: -5s; }
.v3 { top: 20%; animation: flyRoute3 10s linear infinite; animation-delay: -3s; }

@keyframes flyRoute1 {
  0% { left: -20px; transform: translateY(0); }
  25% { transform: translateY(-30px); }
  50% { transform: translateY(10px); }
  75% { transform: translateY(-20px); }
  100% { left: calc(100% + 20px); transform: translateY(0); }
}

@keyframes flyRoute2 {
  0% { left: calc(100% + 20px); transform: translateY(0); }
  50% { transform: translateY(40px); }
  100% { left: -20px; transform: translateY(0); }
}

@keyframes flyRoute3 {
  0% { left: 20%; transform: translateY(0) scaleX(1); }
  49% { left: 80%; transform: translateY(-50px) scaleX(1); }
  50% { transform: translateY(-50px) scaleX(-1); }
  100% { left: 20%; transform: translateY(0) scaleX(-1); }
}

.info-highways {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.highway {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0.3;
  animation: highwayFlow 4s linear infinite;
}

.h1 { top: 30%; left: 0; right: 0; }
.h2 { top: 45%; left: 10%; right: 10%; animation-delay: -1.5s; }
.h3 { top: 55%; left: 5%; right: 5%; animation-delay: -2.5s; }

@keyframes highwayFlow {
  0% { opacity: 0.1; }
  50% { opacity: 0.5; }
  100% { opacity: 0.1; }
}

.energy-network {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 2;
  opacity: 0.4;
}

.energy-line {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1;
  stroke-dasharray: 8 12;
  animation: energyDash 2s linear infinite;
}

.el2 { stroke: var(--lime); animation-delay: -1s; }

@keyframes energyDash {
  to { stroke-dashoffset: -40; }
}

.city-content {
  position: relative;
  z-index: 5;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: 800px;
}

.city-epoch {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.city-desc {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--platinum);
  max-width: 500px;
  margin-top: 1.5rem;
  opacity: 0.85;
}

.descend-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--platinum);
  opacity: 0.6;
}

.descend-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--violet), transparent);
  animation: descendPulse 2s ease-in-out infinite;
}

@keyframes descendPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ============================================
   SECTION 2: DISTRICTS
   ============================================ */
.section-districts {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0e16 100%);
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.district-block {
  position: relative;
  background: var(--platinum-dim);
  border: 1px solid rgba(122, 92, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.district-block:hover {
  border-color: var(--violet);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(122, 92, 255, 0.15);
}

.block-architecture {
  height: 140px;
  background: linear-gradient(180deg, rgba(122, 92, 255, 0.1) 0%, transparent 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

.block-architecture::before {
  content: '';
  width: 60%;
  height: 80%;
  background: linear-gradient(180deg, #1a1b28, #12131c);
  border: 1px solid rgba(122, 92, 255, 0.3);
  border-radius: 4px 4px 0 0;
}

.block-lights {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--lime) 0px, var(--lime) 4px, transparent 4px, transparent 12px);
  opacity: 0.6;
}

.block-antenna {
  position: absolute;
  top: 20%;
  left: 55%;
  width: 2px;
  height: 30px;
  background: var(--violet);
}

.block-antenna::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: antennaBlink 2s ease-in-out infinite;
}

@keyframes antennaBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.arch-creator::before { width: 70%; border-radius: 8px 8px 0 0; }
.arch-auto::before { width: 50%; }
.arch-research .block-dome {
  position: absolute;
  top: 15%;
  width: 40%;
  height: 25%;
  border-radius: 50% 50% 0 0;
  border: 1px solid var(--violet);
  border-bottom: none;
  background: rgba(122, 92, 255, 0.1);
}
.arch-agents::before { width: 45%; height: 90%; }
.arch-commons::before { width: 80%; height: 60%; border-radius: 12px 12px 0 0; }

.block-content {
  padding: 1.5rem;
}

.block-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.block-content p {
  font-size: 0.9rem;
  color: var(--platinum);
  opacity: 0.75;
  margin-bottom: 1rem;
}

.block-stat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.05em;
}

/* ============================================
   SECTION 3: INFRASTRUCTURE
   ============================================ */
.section-infrastructure {
  min-height: 100vh;
  overflow: hidden;
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.infra-nodes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.infra-node {
  position: relative;
  padding: 2rem;
  background: rgba(10, 11, 16, 0.7);
  border: 1px solid rgba(122, 92, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.infra-node:hover {
  border-color: var(--violet);
  box-shadow: 0 0 40px var(--violet-dim);
}

.node-pulse {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--lime-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.infra-node h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.infra-node p {
  font-size: 0.85rem;
  color: var(--platinum);
  opacity: 0.7;
}

/* ============================================
   SECTION 4: AGENTS
   ============================================ */
.section-agents {
  min-height: 100vh;
  background: #080910;
}

.agents-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.agent-detail-panel {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto 2rem;
  padding: 2rem;
  background: rgba(10, 11, 16, 0.85);
  border: 1px solid var(--violet-dim);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.agent-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--lime);
}

.agent-meta {
  display: grid;
  gap: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
}

.meta-value {
  font-size: 0.95rem;
  color: var(--platinum);
}

.agent-legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--platinum);
  opacity: 0.7;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.legend-dot.scout { background: var(--lime); }
.legend-dot.builder { background: var(--violet); }
.legend-dot.analyst { background: #ff6b9d; }
.legend-dot.connector { background: #6bceff; }

/* ============================================
   SECTION 5: TOWERS
   ============================================ */
.section-towers {
  background: linear-gradient(180deg, #080910 0%, var(--bg) 100%);
  min-height: 100vh;
}

.tower-skyline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 300px;
  padding: 2rem 0;
}

.tower {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0;
  transition: var(--transition);
  color: var(--platinum);
}

.tower:hover,
.tower[aria-expanded="true"] {
  transform: translateY(-12px);
}

.tower:hover .tower-structure,
.tower[aria-expanded="true"] .tower-structure {
  box-shadow: 0 0 40px var(--violet-glow);
  border-color: var(--violet);
}

.tower-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(122, 92, 255, 0.3);
  background: linear-gradient(180deg, #151620, #0c0d14);
  transition: var(--transition);
  min-width: clamp(40px, 8vw, 70px);
}

.tower-floors {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
}

.tower-floors span {
  display: block;
  height: clamp(12px, 2.5vw, 20px);
  border-bottom: 1px solid rgba(122, 92, 255, 0.15);
  background: repeating-linear-gradient(90deg, transparent, transparent 6px, rgba(184, 255, 108, 0.03) 6px, rgba(184, 255, 108, 0.03) 7px);
}

.tower-spire {
  width: 4px;
  height: 20px;
  background: var(--violet);
  position: relative;
}

.tower-spire::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--lime);
}

.tower-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tower-expanded {
  position: relative;
  margin-top: 3rem;
  padding: 2.5rem;
  background: rgba(10, 11, 16, 0.9);
  border: 1px solid var(--violet);
  border-radius: 16px;
  animation: towerExpand 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tower-expanded[hidden] { display: none; }

@keyframes towerExpand {
  from { opacity: 0; transform: scaleY(0.8); transform-origin: top; }
  to { opacity: 1; transform: scaleY(1); }
}

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

.expanded-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--lime);
}

.floor-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floor-item {
  padding: 1.25rem;
  background: var(--violet-dim);
  border-radius: 8px;
  border-left: 3px solid var(--violet);
  transition: var(--transition);
}

.floor-item:hover {
  border-left-color: var(--lime);
  background: rgba(122, 92, 255, 0.2);
}

.floor-level {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.25rem;
}

.floor-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.floor-item p {
  font-size: 0.85rem;
  color: var(--platinum);
  opacity: 0.7;
}

/* ============================================
   SECTION 6: DATA RIVER
   ============================================ */
.section-river {
  padding: 0;
  min-height: auto;
  overflow: hidden;
}

.river-container {
  position: relative;
  padding: var(--section-pad) 0;
}

.river-flow {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 200px;
  z-index: 0;
}

.river-path {
  fill: none;
  stroke: rgba(122, 92, 255, 0.2);
  stroke-width: 40;
}

.river-container .section-inner {
  position: relative;
  z-index: 2;
}

.vessel-track {
  position: relative;
  height: 200px;
  margin-top: 3rem;
  overflow: hidden;
}

.data-vessel {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(10, 11, 16, 0.9);
  border: 1px solid rgba(122, 92, 255, 0.3);
  border-radius: 8px;
  min-width: 280px;
  animation: vesselFlow 25s linear infinite;
  backdrop-filter: blur(8px);
}

.data-vessel:nth-child(1) { animation-delay: 0s; top: 10%; }
.data-vessel:nth-child(2) { animation-delay: -5s; top: 35%; }
.data-vessel:nth-child(3) { animation-delay: -10s; top: 60%; }
.data-vessel:nth-child(4) { animation-delay: -15s; top: 20%; }
.data-vessel:nth-child(5) { animation-delay: -20s; top: 45%; }

@keyframes vesselFlow {
  0% { left: -320px; }
  100% { left: calc(100% + 20px); }
}

.vessel-hull {
  width: 8px;
  height: 40px;
  background: linear-gradient(180deg, var(--violet), var(--lime));
  border-radius: 2px;
  flex-shrink: 0;
}

.vessel-type {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
}

.data-vessel h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.data-vessel p {
  font-size: 0.8rem;
  color: var(--platinum);
  opacity: 0.7;
}

/* ============================================
   SECTION 7: MARKETPLACE
   ============================================ */
.section-marketplace {
  background: #0c0d14;
}

.pavilion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pavilion {
  position: relative;
  padding: 2rem;
  background: var(--platinum-dim);
  border: 1px solid rgba(122, 92, 255, 0.15);
  border-radius: 16px;
  transition: var(--transition);
  overflow: hidden;
}

.pavilion:hover {
  border-color: var(--violet);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(122, 92, 255, 0.12);
}

.pavilion-arch {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.arch-dome {
  width: 80px;
  height: 50px;
  border: 2px solid var(--violet);
  border-radius: 50% 50% 0 0;
  border-bottom: none;
  position: relative;
}

.arch-pillars {
  position: absolute;
  bottom: 0;
  display: flex;
  gap: 30px;
}

.arch-pillars span {
  width: 4px;
  height: 40px;
  background: var(--platinum);
  opacity: 0.3;
}

.arch-cube {
  width: 60px;
  height: 60px;
  border: 2px solid var(--violet);
  transform: rotate(45deg);
  animation: cubeRotate 10s linear infinite;
}

@keyframes cubeRotate {
  to { transform: rotate(405deg); }
}

.arch-grid-lines {
  position: absolute;
  inset: 20%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(122, 92, 255, 0.1) 10px, rgba(122, 92, 255, 0.1) 11px),
    repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(122, 92, 255, 0.1) 10px, rgba(122, 92, 255, 0.1) 11px);
}

.arch-spiral {
  width: 70px;
  height: 70px;
  border: 2px solid transparent;
  border-top-color: var(--lime);
  border-right-color: var(--violet);
  border-radius: 50%;
  animation: spiralSpin 3s linear infinite;
}

@keyframes spiralSpin {
  to { transform: rotate(360deg); }
}

.arch-hex {
  width: 60px;
  height: 60px;
  background: var(--violet-dim);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 2px solid var(--violet);
}

.arch-hex.inner {
  position: absolute;
  width: 35px;
  height: 35px;
  background: rgba(184, 255, 108, 0.1);
}

.pavilion-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pavilion-info p {
  font-size: 0.9rem;
  color: var(--platinum);
  opacity: 0.75;
}

/* ============================================
   SECTION 8: COLLECTIVE MIND
   ============================================ */
.section-collective {
  min-height: 100vh;
  overflow: hidden;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.mind-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.mind-node {
  padding: 1rem 1.5rem;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid rgba(122, 92, 255, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  animation: mindFloat 6s ease-in-out infinite;
}

.mind-node:nth-child(2) { animation-delay: -1s; }
.mind-node:nth-child(3) { animation-delay: -2s; }
.mind-node:nth-child(4) { animation-delay: -3s; }
.mind-node:nth-child(5) { animation-delay: -4s; }
.mind-node:nth-child(6) { animation-delay: -5s; }

@keyframes mindFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mind-node:hover {
  border-color: var(--lime);
  box-shadow: 0 0 20px var(--lime-glow);
}

.node-icon {
  color: var(--violet);
  font-size: 1rem;
}

/* ============================================
   SECTION 9: HORIZON PLATFORM
   ============================================ */
.section-horizon {
  padding: 0;
  min-height: 100vh;
}

.horizon-deck {
  position: relative;
  min-height: 100vh;
  padding: var(--section-pad) 0;
  display: flex;
  flex-direction: column;
}

.horizon-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(122, 92, 255, 0.15) 0%,
    rgba(10, 11, 16, 0.5) 60%,
    transparent 100%
  );
  z-index: 0;
}

.horizon-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--violet), transparent);
  box-shadow: 0 0 60px var(--lime-glow);
}

.constructing-elements {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.construct {
  width: 3px;
  background: linear-gradient(180deg, var(--violet), transparent);
  animation: construct 4s ease-in-out infinite;
}

.c1 { height: 40px; animation-delay: 0s; }
.c2 { height: 60px; animation-delay: -1s; }
.c3 { height: 30px; animation-delay: -2s; }
.c4 { height: 50px; animation-delay: -3s; }

@keyframes construct {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

.horizon-deck .section-inner {
  position: relative;
  z-index: 2;
  flex: 1;
}

.horizon-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.horizon-item {
  padding: 2rem;
  background: rgba(10, 11, 16, 0.7);
  border: 1px solid rgba(122, 92, 255, 0.2);
  border-radius: 12px;
  animation: horizonReveal 1s ease-out both;
  animation-delay: calc(var(--delay) * 0.3s);
}

@keyframes horizonReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.item-construct-bar {
  height: 3px;
  background: var(--violet-dim);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.item-construct-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  animation: constructBar 3s ease-in-out infinite;
  animation-delay: calc(var(--delay) * 0.5s);
}

@keyframes constructBar {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(0); }
}

.horizon-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.horizon-item p {
  font-size: 0.9rem;
  color: var(--platinum);
  opacity: 0.75;
  margin-bottom: 1rem;
}

.item-status {
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.05em;
}

.deck-railing {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(218, 220, 230, 0.03));
  border-top: 1px solid rgba(218, 220, 230, 0.1);
  z-index: 1;
}

/* ============================================
   SECTION 10: ASCENSION GATE
   ============================================ */
.section-ascension {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 0;
}

.ascension-energy {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.energy-stream {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, transparent, var(--violet), var(--lime));
  opacity: 0;
  transition: height 1s ease, opacity 0.5s;
}

.es1 { left: 20%; }
.es2 { left: 50%; }
.es3 { left: 80%; }

.section-ascension:hover .energy-stream,
.section-ascension.portal-active .energy-stream {
  height: 60%;
  opacity: 0.6;
  animation: energyRise 2s ease-in-out infinite;
}

@keyframes energyRise {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.portal-container {
  position: relative;
  width: clamp(200px, 40vw, 350px);
  height: clamp(200px, 40vw, 350px);
  margin-bottom: 3rem;
  z-index: 2;
}

.portal-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
  animation: portalGlow 4s ease-in-out infinite;
}

@keyframes portalGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  transition: var(--transition);
}

.ring-outer {
  inset: 0;
  border-color: rgba(122, 92, 255, 0.4);
  animation: ringRotate 20s linear infinite;
}

.ring-middle {
  inset: 15%;
  border-color: rgba(184, 255, 108, 0.3);
  animation: ringRotate 15s linear infinite reverse;
}

.ring-inner {
  inset: 30%;
  border-color: rgba(122, 92, 255, 0.6);
  animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.portal-core {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.section-ascension:hover .portal-ring,
.section-ascension.portal-active .portal-ring {
  border-color: var(--lime);
  box-shadow: 0 0 30px var(--lime-glow);
}

.ascension-content {
  position: relative;
  z-index: 3;
  padding: 0 2rem;
}

.ascension-title {
  margin-bottom: 2.5rem;
}

.activation-interface {
  margin-bottom: 2rem;
}

.enter-btn {
  position: relative;
  width: clamp(180px, 40vw, 220px);
  height: clamp(180px, 40vw, 220px);
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: rgba(10, 11, 16, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.enter-btn:hover,
.enter-btn:focus {
  border-color: var(--lime);
  box-shadow: 0 0 60px var(--lime-glow), inset 0 0 30px var(--violet-dim);
  transform: scale(1.05);
}

.btn-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(122, 92, 255, 0.3);
  animation: btnRingPulse 3s ease-in-out infinite;
}

.btn-ring-2 {
  inset: 20%;
  animation-delay: -1.5s;
}

@keyframes btnRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.btn-text {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  z-index: 1;
}

.ascension-sub {
  font-size: 0.95rem;
  color: var(--platinum);
  opacity: 0.7;
  max-width: 400px;
  margin: 0 auto;
}

.site-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 3rem 2rem;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--platinum-dim);
  font-size: 0.8rem;
  color: var(--platinum);
  opacity: 0.6;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--platinum);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .city-skyline {
    height: 40vh;
    gap: 0.25rem;
  }

  .b3 { height: 38vh; }

  .tower-skyline {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .city-map-nav {
    bottom: 1rem;
    right: 1rem;
  }

  .data-vessel {
    min-width: 240px;
    font-size: 0.85rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

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

  .aiventra-logo-skyline {
    font-size: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

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