/* ============================================================
   Jexodus Solutions — design tokens
   ============================================================ */
:root {
  --color-bg: #0E0713;
  --color-purple-deep: #3B0F70;
  --color-violet-bright: #8A4FE0;
  --color-text-light: #F0E6FA;
  --color-text-muted: #B79CE0;
  --color-border: #C9AEE8;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --transition-base: 0.3s ease;
  --header-height: 108px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Space scene — fixed Three.js canvas behind everything, with a
   static gradient fallback for when WebGL/Three.js is unavailable
   or the visitor prefers reduced motion (see script.js).
   ============================================================ */
.space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.space-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(138, 79, 224, 0.25), transparent 65%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(59, 15, 112, 0.35), transparent 60%),
    var(--color-bg);
}
body.no-space-scene .space-canvas { display: none; }
body.no-space-scene .space-fallback { display: block; }

/* Every section sits above the space canvas and the ambient agent layer */
.site-header, .hero, .about, .services, .portfolio, .process,
.results, .why-section, .reel-section, .pricing, .cta-final, .lead-form-section,
.site-footer, .chat-widget, .cursor-dot {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Ambient "AI agents at work" layer — fixed overlay behind content.
   Pure CSS pulse/dash animation; JS only types the log snippets in
   and pauses everything while the tab is hidden.
   ============================================================ */
.agent-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.agent-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.agent-line {
  stroke: var(--color-violet-bright);
  stroke-width: 0.18;
  opacity: 0.22;
  stroke-dasharray: 3 2;
  animation: agentFlow 7s linear infinite;
  transition: opacity 0.5s ease, stroke-width 0.5s ease;
}
.agent-line.is-active {
  opacity: 0.85;
  stroke-width: 0.4;
  animation-duration: 1.3s;
}
@keyframes agentFlow {
  to { stroke-dashoffset: -50; }
}
.agent-node {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  /* Colors here stay strong on purpose — the single `opacity` below is
     the only thing dialing the whole node down to its ~20% ambient
     visibility. Layering low-alpha colors AND low opacity compounds
     multiplicatively and makes the node nearly invisible. */
  border: 1.5px solid rgba(138, 79, 224, 0.95);
  background: rgba(138, 79, 224, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: rgba(240, 230, 250, 0.95);
  opacity: 0.22;
  animation: agentPulse 5s ease-in-out infinite;
  transition: opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.agent-node:nth-of-type(3n) { animation-delay: -1.4s; }
.agent-node:nth-of-type(3n+1) { animation-delay: -3.1s; }
.agent-node-hex {
  border-radius: 0;
  border-color: rgba(59, 15, 112, 0.95);
  background: rgba(59, 15, 112, 0.45);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
@keyframes agentPulse {
  0%, 100% { opacity: 0.16; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.08); }
}
.agent-node.is-active {
  opacity: 0.95;
  border-color: rgba(240, 230, 250, 0.95);
  box-shadow: 0 0 22px rgba(138, 79, 224, 0.85);
  animation-play-state: paused;
}
.agent-node-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(240, 230, 250, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.agent-node.is-active .agent-node-label { opacity: 0.55; }
.agent-node-snippet {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  width: max-content;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  font-family: monospace;
  font-size: 0.62rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(240, 230, 250, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.agent-node-snippet.is-visible { opacity: 1; }

.agent-layer.is-paused .agent-node,
.agent-layer.is-paused .agent-line {
  animation-play-state: paused;
}
.agent-layer-static .agent-node,
.agent-layer-static .agent-line {
  animation: none;
}

/* Hide the custom cursor's target elements' default cursor only when the JS enables it */
body.custom-cursor-active, body.custom-cursor-active a, body.custom-cursor-active button {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--color-violet-bright);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}
.cursor-dot.is-visible { opacity: 0.9; }
.cursor-dot.is-hovering {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: transparent;
  border: 2px solid var(--color-violet-bright);
}

/* ============================================================
   Glowing pulse — slow, subtle, like a distant light source.
   ============================================================ */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(138, 79, 224, 0); filter: drop-shadow(0 0 0 rgba(138, 79, 224, 0)); }
  50% { box-shadow: 0 0 38px rgba(138, 79, 224, 0.7); filter: drop-shadow(0 0 16px rgba(138, 79, 224, 0.75)); }
}
.glow-pulse { animation: glowPulse 3.6s ease-in-out infinite; }
.glow-pulse:hover { animation-duration: 1.6s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  border: 1px solid transparent;
}
.btn:hover { transform: scale(1.05); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-violet-bright), var(--color-purple-deep));
  color: var(--color-text-light);
  box-shadow: 0 8px 24px rgba(138, 79, 224, 0.35);
}

/* WhatsApp CTAs — icon + an expanding "live" ring instead of a plain
   pill, so they read as a distinct, always-on invitation. */
.btn-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, var(--color-violet-bright) 55%, var(--color-purple-deep) 100%);
  background-size: 200% 200%;
  color: var(--color-text-light);
  box-shadow: 0 8px 26px rgba(138, 79, 224, 0.4);
  animation: whatsappGradient 5s ease-in-out infinite;
  overflow: visible;
}
.btn-whatsapp svg { flex-shrink: 0; }
.btn-whatsapp::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1.5px solid rgba(37, 211, 102, 0.8);
  opacity: 0;
  animation: whatsappRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes whatsappGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes whatsappRing {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.22); }
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-light);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(201, 174, 232, 0.08); }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 18px 40px; font-size: 1.1rem; }

/* ============================================================
   Wordmark — "Je[X]odus / Solutions"
   ============================================================ */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
}
.wordmark-word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-text-light);
  letter-spacing: 0.01em;
}
.wordmark-x {
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 1.2em;
  margin: 0 1px;
  background: linear-gradient(100deg, var(--color-violet-bright) 15%, #F0E6FA 50%, var(--color-violet-bright) 85%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: xShimmer 3.6s ease-in-out infinite;
}
@keyframes xShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: -240% 50%; }
}
.wordmark-x-dot {
  position: absolute;
  top: -0.05em;
  right: -0.12em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-light);
  box-shadow: 0 0 8px rgba(240, 230, 250, 0.8);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(240, 230, 250, 0.8); transform: scale(1); }
  50% { box-shadow: 0 0 18px rgba(240, 230, 250, 1); transform: scale(1.35); }
}
.wordmark-sub {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-violet-bright);
  padding-bottom: 3px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(14, 7, 19, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 174, 232, 0.12);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.site-header.is-scrolled {
  background: rgba(14, 7, 19, 0.85);
  border-bottom-color: rgba(201, 174, 232, 0.2);
}
.site-header .wordmark-word { font-size: clamp(1.9rem, 6.5vw, 2.8rem); }
.site-header .wordmark-sub { font-size: 0.85rem; }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a:not(.btn) {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}
.main-nav a:not(.btn):hover { color: var(--color-text-light); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(201, 174, 232, 0.25);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: background var(--transition-base), color var(--transition-base);
}
.lang-switch a:hover { color: var(--color-text-light); }
.lang-switch a.is-active {
  background: var(--color-violet-bright);
  color: var(--color-text-light);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text-light);
  margin-bottom: 14px;
}
.hero-question {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   About
   ============================================================ */
.about { padding: 100px 0; }
.about-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================================
   Section title
   ============================================================ */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 20px;
}
.portfolio .section-title { margin-bottom: 14px; }
.portfolio-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Card grid — used for both services and portfolio concepts
   ============================================================ */
.services, .portfolio { padding: 60px 0 120px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.glow-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(59, 15, 112, 0.35), rgba(14, 7, 19, 0.55));
  border: 1px solid rgba(201, 174, 232, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, border-color var(--transition-base), box-shadow 0.35s ease;
}
.glow-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(201, 174, 232, 0.4);
  box-shadow: 0 20px 40px rgba(138, 79, 224, 0.3);
}
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-violet-bright);
  filter: drop-shadow(0 0 10px rgba(138, 79, 224, 0.5));
  margin-bottom: 20px;
  transition: filter var(--transition-base);
}
.glow-card:hover .card-icon { filter: drop-shadow(0 0 16px rgba(138, 79, 224, 0.85)); }
.glow-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.glow-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(14, 7, 19, 0.6);
  border: 1px solid rgba(201, 174, 232, 0.3);
  color: var(--color-text-light);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
}

/* ============================================================
   Process + ambient "agency at work" backdrop
   ============================================================ */
.process { position: relative; padding: 60px 0 120px; overflow: hidden; }
.workspace-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.workspace-panel {
  position: absolute;
  width: min(42vw, 230px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 174, 232, 0.35);
  background: rgba(14, 7, 19, 0.45);
  backdrop-filter: blur(3px);
  color: var(--color-violet-bright);
  opacity: 0.5;
  animation: workspaceFloat 8s ease-in-out infinite;
}
.workspace-panel-1 { top: 4%; left: 4%; animation-delay: 0s; }
.workspace-panel-2 { top: 8%; right: 5%; animation-delay: -2.6s; }
.workspace-panel-3 { bottom: 6%; left: 12%; animation-delay: -5.2s; }
@keyframes workspaceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.workspace-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.workspace-net { width: 100%; height: auto; margin-bottom: 8px; }
.workspace-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.workspace-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(201, 174, 232, 0.2);
  overflow: hidden;
}
.workspace-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-violet-bright), var(--color-text-light));
  border-radius: 2px;
}
.process .container { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .workspace-panel { width: 40vw; padding: 8px 10px; }
  .workspace-label { font-size: 0.54rem; }
  .workspace-progress { font-size: 0.5rem; }
  .workspace-panel-3 { display: none; }
}
@media (max-width: 480px) {
  .workspace-panel { width: 44vw; opacity: 0.4; }
  .workspace-panel-2 { top: auto; bottom: 4%; right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-panel { animation: none; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}
.process-step { text-align: center; }
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-violet-bright);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 20px;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process-step p { color: var(--color-text-muted); font-size: 0.95rem; max-width: 280px; margin: 0 auto; }

/* ============================================================
   Results
   ============================================================ */
.results { padding: 60px 0 120px; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  margin-top: 20px;
}
.result-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--color-violet-bright), var(--color-text-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.result-item p { color: var(--color-text-muted); font-size: 0.95rem; max-width: 260px; margin: 0 auto; }

/* ============================================================
   Why section — editorial, punchy paragraphs
   ============================================================ */
.why-section { padding: 100px 0; }
.why-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.why-inner .section-title { margin-bottom: 40px; }
.why-paragraph {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 28px;
}
.why-paragraph:last-child { margin-bottom: 0; }

/* ============================================================
   Reel — horizontal "scroll inside" showcase
   ============================================================ */
.reel-section { position: relative; }
.reel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 90px 0 70px;
}
.reel-viewport::-webkit-scrollbar { display: none; }
.reel-eyebrow {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}
.reel-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 0 8vw;
}
.reel-card {
  flex: 0 0 auto;
  width: min(72vw, 340px);
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(59, 15, 112, 0.35), rgba(14, 7, 19, 0.55));
  border: 1px solid rgba(201, 174, 232, 0.18);
  backdrop-filter: blur(6px);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.reel-card:hover {
  border-color: rgba(201, 174, 232, 0.4);
  box-shadow: 0 20px 40px rgba(138, 79, 224, 0.25);
}
.reel-card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.reel-card p { color: var(--color-text-muted); font-size: 0.9rem; }

body.reel-js-active .reel-viewport {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
body.reel-js-active .reel-eyebrow { margin-bottom: 44px; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { padding: 60px 0 120px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 20px auto 0;
}
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
}
@media (max-width: 1000px) {
  .pricing-grid-3 { grid-template-columns: 1fr; max-width: 480px; }
}
.pricing-founder-notice {
  max-width: 640px;
  margin: -6px auto 36px;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: rgba(138, 79, 224, 0.14);
  border: 1px solid rgba(201, 174, 232, 0.3);
  border-radius: 999px;
}
.services-subtitle {
  text-align: center;
  max-width: 620px;
  margin: -6px auto 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.price-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid rgba(201, 174, 232, 0.15);
  background: rgba(240, 230, 250, 0.02);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-card-featured {
  border-color: var(--color-violet-bright);
  background: linear-gradient(160deg, rgba(138, 79, 224, 0.18), rgba(59, 15, 112, 0.25));
  box-shadow: 0 20px 50px rgba(138, 79, 224, 0.25);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: linear-gradient(135deg, var(--color-violet-bright), var(--color-purple-deep));
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.3rem; }
.price-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
}
.price-amount-tbd { font-size: 1.8rem; color: var(--color-text-muted); }
.price-period { font-size: 1.1rem; font-weight: 500; color: var(--color-text-muted); }
.price-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: -12px; }
.price-features li {
  padding: 8px 0;
  border-top: 1px solid rgba(201, 174, 232, 0.12);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.price-features li:first-child { border-top: none; }
.price-card .btn { align-self: flex-start; margin-top: auto; }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final { position: relative; padding: 160px 0; text-align: center; overflow: hidden; }
.cta-final-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vw;
  max-width: 900px;
  height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(138, 79, 224, 0.38), transparent 70%);
  filter: blur(14px);
  animation: ctaGlowPulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 32px;
  animation: ctaTextGlow 4s ease-in-out infinite;
}
@keyframes ctaTextGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(138, 79, 224, 0.25); }
  50% { text-shadow: 0 0 42px rgba(138, 79, 224, 0.75); }
}

/* ============================================================
   Lead capture form — glassmorphism, glow on focus
   ============================================================ */
.lead-form-section { padding: 60px 0 120px; }
.lead-form-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin: -6px auto 36px;
  max-width: 460px;
}
.glass-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 24px;
  background: rgba(240, 230, 250, 0.03);
  border: 1px solid rgba(201, 174, 232, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form-field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-light);
  background: rgba(14, 7, 19, 0.5);
  border: 1px solid rgba(201, 174, 232, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--color-violet-bright);
  box-shadow: 0 0 0 3px rgba(138, 79, 224, 0.25);
}
.form-field input.is-invalid, .form-field textarea.is-invalid {
  border-color: #ff8fa3;
  box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.15);
}
.form-error {
  min-height: 1em;
  font-size: 0.78rem;
  color: #ff8fa3;
}
.glass-form .btn { align-self: flex-start; }
.form-status {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  min-height: 1.2em;
}
.form-status.is-success { color: var(--color-violet-bright); }
.form-status.is-error { color: #ff8fa3; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  padding: 80px 0 44px;
  border-top: 1px solid rgba(201, 174, 232, 0.15);
  background: rgba(14, 7, 19, 0.45);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  max-width: 700px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(138, 79, 224, 0.3), transparent 70%);
  filter: blur(10px);
  animation: footerGlowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes footerGlowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-inner .wordmark-word { font-size: 1.8rem; }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-email-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}
.footer-email-link:hover { color: var(--color-text-light); }
.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(138, 79, 224, 0.14);
  border: 1px solid rgba(201, 174, 232, 0.25);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.footer-wa-link:hover {
  background: rgba(138, 79, 224, 0.28);
  border-color: var(--color-violet-bright);
  transform: scale(1.04);
}
.footer-copy { color: var(--color-text-muted); font-size: 0.85rem; }

/* ============================================================
   Scene reveal — GSAP animates from this base state (opacity,
   scale and blur) to its resolved state as each scene scrolls in.
   ============================================================ */
.scene-reveal { opacity: 0; transform: scale(0.92); filter: blur(14px); }

/* ============================================================
   Chat widget
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.chat-toggle {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 32% 28%, #2a1444, #05030a 72%);
  box-shadow: 0 0 0 1.5px rgba(201, 174, 232, 0.35) inset, 0 10px 34px rgba(138, 79, 224, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  animation: chatToggleGlow 3.2s ease-in-out infinite;
  transition: transform var(--transition-base);
}
.chat-toggle:hover { transform: scale(1.08); }
@keyframes chatToggleGlow {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(201, 174, 232, 0.35) inset, 0 10px 34px rgba(138, 79, 224, 0.5); }
  50% { box-shadow: 0 0 0 1.5px rgba(201, 174, 232, 0.5) inset, 0 10px 46px rgba(138, 79, 224, 0.85); }
}
.mascot-icon { width: 100%; height: 100%; }
.mascot-icon-small { width: 30px; height: 30px; flex-shrink: 0; }

.chat-panel {
  width: min(320px, 86vw);
  max-height: 70vh;
  border-radius: 18px;
  background: rgba(20, 10, 28, 0.97);
  border: 1px solid rgba(201, 174, 232, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-panel.is-open { opacity: 1; transform: scale(1) translateY(0); }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(138, 79, 224, 0.35), rgba(59, 15, 112, 0.35));
  font-family: var(--font-heading);
  font-size: 0.95rem;
}
.chat-header span { flex: 1; }
.chat-close {
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.chat-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-message {
  background: rgba(138, 79, 224, 0.14);
  border: 1px solid rgba(201, 174, 232, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-quick-reply {
  text-align: left;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}
.chat-quick-reply:hover { background: rgba(201, 174, 232, 0.08); border-color: var(--color-violet-bright); }

.chat-email-btn {
  text-align: center;
  background: transparent;
  border: 1px dashed rgba(201, 174, 232, 0.35);
  color: var(--color-text-muted);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.chat-email-btn:hover {
  color: var(--color-text-light);
  border-color: var(--color-violet-bright);
  background: rgba(201, 174, 232, 0.06);
}

.chat-answer-block { display: flex; flex-direction: column; gap: 10px; }
.chat-wa-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-violet-bright);
  color: var(--color-text-light);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: transform var(--transition-base), background var(--transition-base);
}
.chat-wa-btn:hover { transform: scale(1.04); background: var(--color-purple-deep); }

.chat-back-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ============================================================
   Responsive — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  .main-nav { gap: 14px; }
  .main-nav a:not(.btn) { display: none; }
  .lang-switch a { display: inline-block; }

  .card-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 48px; }
  .results-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; align-items: flex-start; }
  .chat-widget { right: 16px; bottom: 16px; }
}

/* ============================================================
   Responsive — 375px and below
   ============================================================ */
@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .wordmark-word { font-size: 1.2rem; }
  .hero-title { font-size: 1.7rem; }
  .chat-panel { width: 90vw; }
}

/* ============================================================
   Wide screens — 1440px and up
   ============================================================ */
@media (min-width: 1440px) {
  :root { --container-width: 1320px; }
  .hero-title { font-size: 3.8rem; }
}

/* Respect reduced-motion: disable the space scene (handled in JS/body
   class), keep content statically visible instead of blurred-out. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-reveal { opacity: 1; transform: none; filter: none; }
  .glow-pulse { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
