/* EXIMIA — Palantir Monochrome Design System + Mobile Responsive */
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-primary: #000;
  --bg-secondary: #050505;
  --bg-tertiary: #0a0a0a;
  --bg-card: #0d0d0d;
  --bg-card-hover: #111;
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --text-muted: rgba(255, 255, 255, 0.3);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --font-primary:
    -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue",
    "Arial", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
  --section-padding: 7rem 0;
  --container-max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.mono {
  font-family: var(--font-mono);
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.hide-mobile {
  display: inline;
}

/* ── Navbar (Palantir Aesthetic) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: var(--container-max);
  height: 64px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.navbar.scrolled::before {
  background: rgba(5, 5, 5, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  height: 60px;
}

.nav-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: calc(100% - 2rem);
  max-width: var(--container-max);
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .nav-content {
  height: 60px;
}

@media (max-width: 992px) {
  .navbar::before {
    top: 1rem;
    width: calc(100% - 1.5rem);
    border-radius: 40px;
    height: 60px;
  }
  .navbar.scrolled::before {
    height: 56px;
  }
  .nav-content {
    height: 60px;
    margin: 1rem auto 0;
    width: calc(100% - 1.5rem);
    padding: 0 1.5rem;
  }
  .navbar.scrolled .nav-content {
    height: 56px;
  }
}

.logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
  transition: opacity 0.3s;
}

.logo:hover img {
  opacity: 0.8;
}

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

.mobile-cta-wrapper {
  display: none;
}

.nav-links a {
  position: relative;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: color 0.3s;
  cursor: pointer; /* Fix for iOS touch events */
  -webkit-tap-highlight-color: transparent; /* Remove grey tap highlight on mobile */
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hide Aprender Menu Item Temporarily */
.nav-links li:has(a[data-page="explicado"]) {
  display: none !important;
}

/* ── Mega Menu (Palantir Aesthetic) ── */
.nav-mega {
  position: relative;
  /* Static on mobile, relative on desktop handled by media queries later */
}

/* On Desktop, make the panel wide but tied to the container */
@media (min-width: 993px) {
  .nav-mega {
    position: static;
    /* Let the panel take full width of navbar */
  }
}

.mega-menu-panel {
  position: absolute;
  top: calc(100% + 1.25rem); /* Gap between pill and panel */
  left: 0;
  width: 100%;
  max-width: var(--container-max);
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 2.5rem 0;
}

.nav-mega.active .mega-menu-panel,
.nav-mega:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 4rem;
}

.mega-container.pseudo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.panel-small .mega-container {
  justify-content: flex-start;
}

.panel-small .mega-column {
  flex-direction: row;
  gap: 2rem;
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mega-heading {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-link {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: none;
  margin-left: -1rem;
  /* Offset padding */
  cursor: pointer; /* Fix for iOS touch events */
  -webkit-tap-highlight-color: transparent;
}

.mega-link::after {
  display: none;
  /* remove hover line from root */
}

.mega-link:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.mega-link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link-title {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.mega-link-desc {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Mega toggle arrow */
.mega-toggle {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mega-toggle .dropdown-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.7;
}

.nav-mega.active .dropdown-arrow,
.nav-mega:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Mobile specific overrides for Mega Menu */
@media (max-width: 992px) {
  .nav-mega {
    width: 100%;
  }

  .mega-menu-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: none;
    visibility: hidden;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      padding 0.3s ease;
    border-radius: 0;
  }

  .nav-mega.active .mega-menu-panel {
    max-height: 1000px;
    /* arbitrary large number for expansion */
    padding: 1rem 0 1rem 1rem;
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
  }

  .mega-container,
  .mega-container.pseudo-grid,
  .panel-small .mega-container,
  .panel-small .mega-column {
    flex-direction: column;
    display: flex;
    gap: 2rem;
    padding: 0;
  }

  .mega-column {
    gap: 0.5rem;
  }

  .mega-heading {
    margin-bottom: 0.5rem;
  }
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  transform: translateX(4px);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-cta .btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.menu-toggle-checkbox {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 1002;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary-pltr {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary-pltr:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--bg-primary);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
}

.btn-outline-pltr {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-outline-pltr:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Shimmer sweep on hover — replaces rotating sonar beam */
.btn-beam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  transition: transform 0s;
  pointer-events: none;
}

.btn-beam:hover::before {
  transform: translateX(220%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-magnetic {
  transition:
    transform 0.2s ease-out,
    background 0.4s,
    color 0.4s,
    border-color 0.4s;
}

/* ── Section shared ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-title-pltr {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc-pltr {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Glitch ── */
.glitch-text {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.glitch-text::before {
  animation: glitch-1 3s infinite linear;
  color: rgba(255, 255, 255, 0.3);
}

.glitch-text::after {
  animation: glitch-2 3s infinite linear;
  color: rgba(255, 255, 255, 0.2);
}

@keyframes glitch-1 {
  0%,
  90%,
  100% {
    opacity: 0;
    transform: none;
  }

  91% {
    opacity: 1;
    transform: translate(-2px, 1px);
  }

  93% {
    opacity: 0;
  }

  95% {
    opacity: 1;
    transform: translate(2px, -1px);
  }

  97% {
    opacity: 0;
  }
}

@keyframes glitch-2 {
  0%,
  88%,
  100% {
    opacity: 0;
    transform: none;
  }

  89% {
    opacity: 1;
    transform: translate(2px, -1px);
  }

  92% {
    opacity: 0;
  }

  94% {
    opacity: 1;
    transform: translate(-1px, 2px);
  }

  96% {
    opacity: 0;
  }
}

/* ── Hero (Premium Aurora + Particles) ── */
.hero-pltr {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0.5;
  /* Oscurece el video para legibilidad */
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 30%,
    transparent 80%
  );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(
    circle at center,
    transparent 20%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 5;
}

.hero-content-pltr {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 0 4rem;
  width: 100%;
}

.hero-eyebrow {
  margin-bottom: 2rem;
}

.hero-title-pltr {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.title-word {
  display: inline-block;
}

.accent-word {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub-pltr {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-hud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-sep {
  width: 1px;
  height: 12px;
  background: var(--border-color);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hud-dot.online {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* ── Interactive Module Explorer ── */
.modules-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.module-explorer {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  min-height: 520px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Left Tabs */
.explorer-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  background: rgba(5, 5, 5, 0.8);
}

.explorer-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  transition:
    color 0.3s,
    background 0.3s;
  overflow: hidden;
}

.explorer-tab:last-child {
  border-bottom: none;
}

.explorer-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.explorer-tab.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-number {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  min-width: 28px;
  transition: color 0.3s;
}

.explorer-tab.active .tab-number {
  color: var(--text-primary);
}

.tab-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.2)
  );
}

.explorer-tab.active .tab-progress {
  animation: tab-fill 6s linear forwards;
}

@keyframes tab-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Right Panel */
.explorer-panel {
  position: relative;
  padding: 3rem;
}

.panel-slide {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  animation: panel-enter 0.5s var(--ease) forwards;
}

.panel-slide.active {
  display: block;
}

@keyframes panel-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-icon {
  margin-bottom: 1.5rem;
}

.panel-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-primary);
  fill: none;
}

.panel-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.panel-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 550px;
}

.panel-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.panel-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feature-check {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.panel-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.panel-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Process ── */
.process-section-pltr {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-steps-pltr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process-step-pltr {
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.4s;
}

.process-step-pltr:hover {
  border-color: var(--border-hover);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.process-step-pltr h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-step-pltr p {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ── Architecture ── */
.architecture-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.arch-diagram {
  max-width: 800px;
  margin: 0 auto;
}

.arch-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
}

.arch-line {
  animation: arch-dash 2s linear infinite;
}

@keyframes arch-dash {
  to {
    stroke-dashoffset: -20;
  }
}

.arch-node {
  transition:
    fill 0.4s,
    stroke 0.4s,
    filter 0.4s,
    transform 0.4s;
  transform-origin: center;
}

.arch-svg:hover .arch-node {
  stroke: rgba(255, 255, 255, 0.1);
}

.arch-node:hover {
  fill: rgba(255, 255, 255, 0.15) !important;
  stroke: rgba(255, 255, 255, 0.8) !important;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  cursor: pointer;
}

.arch-packet {
  opacity: 0.9;
  filter: blur(1px);
  box-shadow: 0 0 8px white;
}

/* ── Industries Marquee ── */
.industries-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  white-space: nowrap;
  transition:
    background 0.4s,
    color 0.4s,
    border-color 0.4s;
}

.industry-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.ind-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ── Testimonials ── */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.testimonial-card-pltr {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.4s,
    border-color 0.4s;
}

.testimonial-card-pltr:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-card-pltr p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 300;
}

.testimonial-footer-pltr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar-pltr {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Terminal CTA ── */
.terminal-cta-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.terminal-cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(147, 51, 234, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Impact Metrics */
.impact-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.impact-card {
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition:
    border-color 0.4s,
    transform 0.4s,
    background 0.4s;
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.impact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.impact-card:hover::before {
  opacity: 1;
}

.impact-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.impact-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.impact-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.15)
  );
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card.animated .impact-fill {
  width: var(--fill-width);
}

/* Terminal Window */
.terminal-window {
  max-width: 780px;
  margin: 0 auto 3rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 1px rgba(255, 255, 255, 0.1);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.yellow {
  background: #febc2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: #28c840;
  letter-spacing: 0.1em;
}

.terminal-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: status-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.terminal-body {
  padding: 1.75rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 260px;
  line-height: 1.7;
}

.terminal-line {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.terminal-output {
  color: var(--text-tertiary);
  line-height: 1.9;
}

.terminal-output .line-success {
  color: #28c840;
}

.terminal-output .line-info {
  color: rgba(255, 255, 255, 0.5);
}

.terminal-output .line-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.terminal-output .line-accent {
  color: #a78bfa;
}

.terminal-cursor {
  display: inline-block;
  animation: blink-cursor 1s step-end infinite;
  color: var(--text-primary);
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}

/* CTA Actions */
.terminal-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost-pltr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s;
  font-family: var(--font-primary);
}

.btn-ghost-pltr:hover {
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* ── FAQ ── */
.faq-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.faq-list-pltr {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item-pltr {
  border-bottom: 1px solid var(--border-color);
}

.faq-question-pltr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
}

.faq-question-pltr:hover {
  color: var(--text-secondary);
}

.faq-question-pltr::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item-pltr.active .faq-question-pltr::after {
  transform: rotate(45deg);
}

.faq-answer-pltr {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item-pltr.active .faq-answer-pltr {
  max-height: 300px;
}

.faq-answer-pltr p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.faq-answer-pltr a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-column ul a:hover {
  color: var(--text-primary);
}

.footer-logo {
  height: 32px;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--text-primary);
}

.footer-payment {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.payment-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

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

.payment-badge {
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.payment-badge:hover {
  opacity: 1;
}

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ═══════ MOBILE RESPONSIVE ═══════ */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 2rem 2rem;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links > li {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-links > li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .menu-toggle-checkbox:checked ~ .container .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-toggle-checkbox:checked ~ .container .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  .menu-toggle-checkbox:checked ~ .container .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 1.5rem;
    padding: 1.25rem 0;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family: var(--font-primary);
    color: var(--text-primary);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-dropdown {
    text-align: left;
  }

  .dropdown-arrow {
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: none;
    border: none;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    display: none;
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 0 0 0.25rem 0;
    opacity: 1;
    visibility: visible;
    width: 100%;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.25s ease;
    transform: none;
  }

  .dropdown-menu a {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.85rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: none;
    letter-spacing: 0.01em;
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .mobile-cta-wrapper {
    display: block;
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .mobile-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 0.9rem;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-cta {
    display: none;
  }

  .module-explorer {
    grid-template-columns: 1fr;
  }

  .explorer-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .explorer-tab {
    flex: 0 0 auto;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    padding: 1rem 1.25rem;
  }

  .tab-label {
    font-size: 0.8rem;
  }

  .tab-progress {
    bottom: 0;
    height: 2px;
  }
}

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

  :root {
    --section-padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero-pltr {
    height: -webkit-fill-available;
    height: 100svh;
    min-height: unset;
  }

  .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    /* GPU acceleration para iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .hero-content-pltr {
    padding: 5rem 0 3rem;
  }

  .hero-title-pltr {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-status-bar {
    font-size: 0.6rem;
    gap: 0.5rem;
  }

  .hide-mobile {
    display: none;
  }

  .explorer-panel {
    padding: 2rem 1.5rem;
  }

  .panel-features {
    grid-template-columns: 1fr;
  }

  .panel-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .panel-title {
    font-size: 1.5rem;
  }

  .process-steps-pltr {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-step-pltr {
    padding: 1.75rem;
  }

  .testimonials-grid-pltr {
    grid-template-columns: 1fr;
  }

  .testimonial-card-pltr {
    padding: 1.75rem;
  }

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

  .impact-value {
    font-size: 1.8rem;
  }

  .terminal-body {
    font-size: 0.65rem;
    min-height: 200px;
    padding: 1rem;
    overflow-x: auto;
  }

  .arch-diagram {
    overflow-x: auto;
  }

  .faq-question-pltr {
    font-size: 0.9rem;
    padding: 1.25rem 0;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 0.8rem;
  }
}

/* ═══════ LEGACY COMPAT (other pages) ═══════ */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #a855f7;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 50px;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

/* Plans (CRM page) */
.plans-section {
  padding: 6rem 0;
}

.plan-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
}

.toggle-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.toggle-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.plans-grid-pltr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.plan-card-pltr {
  background: var(--bg-primary);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.4s;
}

.plan-card-pltr:hover {
  background: var(--bg-card);
}

.plan-card-pltr.featured {
  border-top: 2px solid var(--text-primary);
}

.plan-badge-pltr {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.plan-name-pltr {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.plan-price-pltr {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-price-pltr .currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: super;
}

.plan-price-pltr .period {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc-pltr {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.plan-features-pltr {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features-pltr li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features-pltr li::before {
  content: "→";
  color: var(--text-muted);
  font-size: 0.7rem;
}

.plans-note-pltr {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ════════════════════════════════ CORE CAPABILITIES (NEW) ════════════════════════════════ */
.core-capabilities {
  background: #000;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.core-card {
  background: linear-gradient(
    145deg,
    rgba(30, 30, 30, 0.4),
    rgba(10, 10, 10, 0.6)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  /* Sharp corners for Palantir look */
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.core-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: #ffffff;
  transition: height 0.4s ease;
}

.core-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.core-card:hover::before {
  height: 100%;
}

.core-icon {
  width: 48px;
  height: 48px;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.core-icon svg {
  width: 100%;
  height: 100%;
}

.core-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-rajdhani);
  letter-spacing: 0.05em;
}

.core-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.core-link {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
  opacity: 0.8;
}

.core-link:hover {
  color: #fff;
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ════════════════════════════════ METODOLOGÍA (NEW) ════════════════════════════════ */
.eximia-methodology {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.methodology-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.method-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.method-number {
  font-family: var(--font-rajdhani);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  line-height: 1;
  min-width: 80px;
}

.method-content {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  flex: 1;
  transition: all 0.3s ease;
}

.method-content:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: #ffffff;
}

.method-content h4 {
  font-family: var(--font-rajdhani);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .method-step {
    flex-direction: column;
    gap: 1rem;
  }

  .method-number {
    font-size: 2.5rem;
  }

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

/* ════════════════════════════════ IMPACT METRICS (NEW) ════════════════════════════════ */
.impact-section-pltr {
  padding: 6rem 0;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.impact-card {
  background: linear-gradient(
    145deg,
    rgba(25, 25, 25, 0.6),
    rgba(10, 10, 10, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3.5rem 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #ffffff;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card:hover {
  background: linear-gradient(
    145deg,
    rgba(35, 35, 35, 0.8),
    rgba(15, 15, 15, 1)
  );
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.impact-card:hover::before {
  width: 100%;
}

.impact-stat {
  font-family: var(--font-rajdhani);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.impact-card:hover .impact-stat {
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.impact-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: var(--font-rajdhani);
  text-transform: uppercase;
}

.impact-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.enterprise-card {
  background: var(--bg-card);
}

/* Cost grid */
.usage-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.cost-grid-pltr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.cost-item-pltr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
}

.cost-name-pltr {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cost-price-pltr {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Integration pills */
.integrations-section {
  padding: 6rem 0;
}

.integrations-grid-pltr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.integration-pill-pltr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition:
    border-color 0.4s,
    color 0.4s;
}

.integration-pill-pltr:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.int-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

/* Value comparison */
.value-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.comparison-table-pltr {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}

.comparison-table-pltr th,
.comparison-table-pltr td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table-pltr th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table-pltr td {
  color: var(--text-secondary);
}

.comparison-table-pltr td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(147, 51, 234, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service layouts (dev page) */
.service-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.service-layout.reverse {
  grid-template-columns: 1fr 200px;
}

.service-layout.reverse .service-visual {
  order: 2;
}

.service-icon-large svg {
  width: 80px;
  height: 80px;
  color: #a855f7;
}

.service-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.service-feature-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

.service-feature-box h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-feature-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-cta-row {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .service-layout,
  .service-layout.reverse {
    grid-template-columns: 1fr;
  }

  .service-layout.reverse .service-visual {
    order: 0;
  }

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

  .eximia-process-grid {
    grid-template-columns: 1fr;
  }

  .process-card-pro {
    padding: 1.75rem;
  }

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

  .plan-card {
    padding: 1.75rem;
  }
}

/* Marketing process */
.eximia-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-card-pro {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s;
}

.process-card-pro:hover {
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateY(-4px);
}

.step-number-pro {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.step-title-pro {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc-pro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.check-list {
  list-style: none;
}

.check-list li {
  padding: 0.25rem 0;
}

/* Plan cards premium (marketing) */
.plan-card-premium {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
}

.plan-card-premium:hover {
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-4px);
}

.plan-card-premium.popular {
  border-color: rgba(147, 51, 234, 0.5);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plan-header-premium {
  margin-bottom: 2rem;
}

.plan-title-premium {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-price-premium {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-price-premium span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc-premium {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.plan-features-premium {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features-premium li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.premium-check svg {
  width: 16px;
  height: 16px;
  stroke: #22c55e;
  stroke-width: 3;
}

.btn-plan {
  display: block;
  text-align: center;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-plan-primary {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: white;
  border: none;
}

.btn-plan-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.btn-plan-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-plan-outline:hover {
  border-color: rgba(147, 51, 234, 0.5);
  background: rgba(147, 51, 234, 0.1);
}

.plans-global-include {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 2rem;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 12px;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plans-global-include svg {
  color: #a855f7;
  flex-shrink: 0;
}

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

.plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-4px);
}

.plan-card.featured {
  border-color: rgba(147, 51, 234, 0.5);
}

.plan-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  margin-bottom: 1rem;
  color: #a855f7;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Scrollbar & Selection */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ═══════════════════════════════════════════
   DATA ONTOLOGY HUB (Pure SVG Network)
   ═══════════════════════════════════════════ */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  /* Align vertical heights */
  position: relative;
  z-index: 2;
}

.arch-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
  padding-left: 3rem;
  position: relative;
}

.arch-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 80%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(139, 92, 246, 0.1),
    rgba(59, 130, 246, 0.8),
    rgba(16, 185, 129, 0.4),
    rgba(139, 92, 246, 0.1)
  );
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  border-radius: 2px;
}

.arch-content .section-eyebrow {
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
}

.arch-content .section-title-pltr {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.arch-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.arch-subtitle {
  font-family: var(--font-rajdhani);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2rem;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.arch-subtitle::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.ontology-wrapper {
  position: relative;
  width: 100%;
  margin-top: -30px;
  /* Offset to center SVG vertically against text */
}

.ontology-container {
  position: relative;
  width: 100%;
  /* Keep aspect-ratio 1:1, but max-width comes from grid column */
  aspect-ratio: 1000/1000;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.complex-architecture-graph {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.2));
}

.network-edges line {
  animation: dash-flow 20s linear infinite;
  stroke-dasharray: 4 8;
}

@keyframes dash-flow {
  from {
    stroke-dashoffset: 1000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.svg-node {
  pointer-events: none;
}

.svg-node text {
  user-select: none;
}

/* Data pulses appearing randomly */
.data-pulses circle {
  mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════
   ENCODE THE ENTERPRISE (STICKY SCROLL) - LIGHT THEME
   ═══════════════════════════════════════════ */
.encode-section-header {
  margin-bottom: 5rem;
  text-align: center;
}

.encode-section-title {
  font-family: var(--font-rajdhani);
  font-size: 3.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.encode-section.light-theme-container {
  position: relative;
  padding: 8rem 0;
  background: #ffffff;
  /* White background matching video */
  color: #0f172a;
  /* Dark text for contrast */
}

.encode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
}

/* Left Column: Sticky Video */
.encode-visual {
  position: relative;
  height: 100%;
}

.sticky-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 240px);
  max-height: 800px;
}

.ontology-3d-video {
  width: 100%;
  max-width: 650px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  /* Optional shadow to separate video slightly if it's not perfectly white */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.visual-glow-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* Right Column: Scrolling Content */
.encode-text-content {
  padding: 4rem 0;
}

.encode-block {
  margin-bottom: 8rem;
  padding-left: 3.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.encode-block:hover {
  transform: translateX(10px);
}

.encode-block:last-child {
  margin-bottom: 4rem;
}

.encode-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
  /* Darker track for light theme */
  border-radius: 2px;
}

.encode-block::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 4px;
  background: linear-gradient(to bottom, #2563eb, #7c3aed);
  /* Stronger gradient */
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.encode-block:hover::after {
  height: 100%;
}

.block-number {
  font-family: var(--font-rajdhani);
  font-size: 1.4rem;
  font-weight: 700;
  color: #6366f1;
  /* Indigo color for numbers */
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.block-title {
  font-family: var(--font-rajdhani);
  font-size: 2.4rem;
  font-weight: 700;
  color: #0f172a;
  /* Deep slate */
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.block-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
  /* Medium slate for readability */
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.block-desc em {
  color: #0f172a;
  font-style: italic;
  font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .encode-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sticky-wrapper {
    position: relative;
    top: 0;
    height: auto;
    padding: 2rem 0;
  }

  .encode-block {
    margin-bottom: 4rem;
  }

  .ontology-container {
    aspect-ratio: 1/1;
    /* Keep square */
    transform: scale(1.1);
    /* Slightly enlarge to fit readable text */
  }
}

/* ═══════════════════════════════════════════
   ARCHITECTURE DARK ENCODE (STICKY SCROLL)
   ═══════════════════════════════════════════ */
.arch-dark-section-header {
  margin-bottom: 5rem;
  text-align: center;
}

.arch-dark-section-title {
  font-family: var(--font-rajdhani);
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.arch-dark-encode-section {
  position: relative;
  padding: 8rem 0;
  background: #000;
  color: #ffffff;
}

.arch-dark-encode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
}

/* Left Column: Sticky SVG */
.arch-dark-visual {
  position: relative;
  height: 100%;
}

.arch-dark-sticky-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 240px);
  max-height: 800px;
}

/* Right Column: Scrolling Content */
.arch-dark-text-content {
  padding: 4rem 0;
}

.arch-dark-block {
  margin-bottom: 8rem;
  padding-left: 3.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.arch-dark-block:hover {
  transform: translateX(10px);
}

.arch-dark-block:last-child {
  margin-bottom: 4rem;
}

.arch-dark-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.arch-dark-block::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 4px;
  background: linear-gradient(to bottom, #2563eb, #7c3aed);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.arch-dark-block:hover::after {
  height: 100%;
}

.arch-dark-eyebrow {
  font-family: var(--font-rajdhani);
  font-size: 0.8rem;
  font-weight: 700;
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.arch-dark-block-title {
  font-family: var(--font-rajdhani);
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.arch-dark-block-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .arch-dark-encode-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .arch-dark-sticky-wrapper {
    position: relative;
    top: 0;
    height: auto;
    padding: 2rem 0;
  }

  .arch-dark-block {
    margin-bottom: 4rem;
  }

  /* Section title sizes */
  .encode-section-title,
  .arch-dark-section-title {
    font-size: clamp(1.6rem, 7vw, 2.8rem);
    word-break: break-word;
  }

  .encode-section-header,
  .arch-dark-section-header {
    margin-bottom: 2.5rem;
  }

  .arch-dark-encode-section,
  .encode-section.light-theme-container {
    padding: 4rem 0;
  }

  .arch-dark-block-title {
    font-size: 1.8rem;
  }

  /* Disable translateX hover shift on touch devices */
  .arch-dark-block:hover {
    transform: none;
  }

  /* Ontology container: don't scale up, it overflows */
  .ontology-container {
    transform: scale(1);
  }
}

/* ══════════════════════════════════════════════════════════
   PUERTO RICO MAP — Palantir Global Intelligence Grid
══════════════════════════════════════════════════════════ */

.pr-map-section {
  padding: var(--section-padding);
  padding-bottom: 0;
  background: #000;
  overflow: hidden;
}

.pr-map-section .section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.pr-map-wrapper {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 680px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Google Maps iframe ── */
.pr-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
  filter: saturate(0.6) brightness(0.85);
}

/* Transparent overlay — blocks all map interaction */
.pr-map-block {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}

/* Hide Leaflet attribution */
.leaflet-control-attribution {
  display: none !important;
}

/* Edge vignette */
.pr-map-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* HUD corners */
.pr-hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 1.2rem 1.5rem;
  pointer-events: none;
  z-index: 10;
  line-height: 1.6;
}

.pr-hud-label {
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pr-hud-value {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
}

.pr-hud-tl {
  top: 0;
  left: 0;
}

.pr-hud-tr {
  top: 0;
  right: 0;
  text-align: right;
}

.pr-hud-bl {
  bottom: 0;
  left: 0;
}

.pr-hud-br {
  bottom: 0;
  right: 0;
  text-align: right;
}

/* HUD corner frames */
.pr-hud-tl::before,
.pr-hud-tr::after,
.pr-hud-bl::before,
.pr-hud-br::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
}

.pr-hud-tl::before {
  top: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.pr-hud-tr::after {
  top: 0;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.pr-hud-bl::before {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.pr-hud-br::after {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* Pulse dot */
.pr-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: prDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes prDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

/* Scanlines overlay */
.pr-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 5;
}

/* Stats row */
.pr-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
}

.pr-stat-item {
  padding: 2rem;
  background: #000;
  text-align: center;
}

.pr-stat-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.pr-stat-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.pr-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

  /* Mobile: put map in a contained frame */
  .pr-map-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .pr-map-wrapper {
    height: 55vw;
    min-height: 280px;
    max-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    /* Corner accent brackets via box-shadow trick */
    outline: none;
  }

  /* Terminal corner accents on mobile */
  .pr-map-wrapper::before,
  .pr-map-wrapper::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 30;
    pointer-events: none;
  }

  .pr-map-wrapper::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.5);
  }

  .pr-map-wrapper::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
  }

  .pr-hud-bl,
  .pr-hud-br {
    display: none;
  }

  .pr-target-label {
    display: none;
  }
}

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

  .pr-map-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pr-hud {
    font-size: 9px;
    padding: 0.8rem 1rem;
  }
}
