/* ============================================================
   DREAM
   ============================================================ */

.viz-emotion {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-emotion::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.4) 0%, transparent 70%);
  animation: emotionPulse 2.4s ease-in-out infinite;
}

.viz-emotion::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C084FC, #818CF8);
}

.viz-shared {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.viz-shared span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C084FC, #818CF8);
  animation: sharedFloat 2s ease-in-out infinite;
}

.viz-shared span:nth-child(1) { animation-delay: 0s; }

.viz-shared span:nth-child(2) { animation-delay: 0.3s; }

.viz-shared span:nth-child(3) { animation-delay: 0.6s; }

.viz-unique {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-unique::before {
  content: '';
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #C084FC, #818CF8);
  animation: uniqueMorph 4s ease-in-out infinite;
}

/* ===========================================
   DREAM BIG SECTION
   =========================================== */

.dream-section {
  padding: 120px 0 120px;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.dream-stage {
  position: relative;
  width: 100%;
  height: 980px;
  margin: 0 auto;
}

/* Soft halo behind the arc — anchors composition */

.dream-stage::before {
  content: '';
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1100px;
  height: 700px;
  background: radial-gradient(
    ellipse at center 70%,
    rgba(196, 137, 255, 0.22) 0%,
    rgba(159, 173, 255, 0.12) 35%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Keep stage children above the halo */

.dream-stage > * {
  position: relative;
  z-index: 1;
}

.dream-center-text {
  position: absolute;
  bottom: 320px;
  left: 50%;
  transform: translate(-50%, 50%);
  text-align: center;
  width: 100%;
  max-width: 720px;
  padding: 0 60px;
  z-index: 5;
}

.dream-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #818CF8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.dream-h {
  font-size: 64px;
  font-weight: 600;
  color: #111;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.dream-sub {
  font-size: 18px;
  color: #555;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto;
}

.dream-arc-origin {
  position: absolute;
  bottom: 320px;
  left: 50%;
  width: 0;
  height: 0;
}

.dream-card {
  position: absolute;
  width: 200px;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #2a1f5a;
  box-shadow: 0 16px 48px rgba(40, 25, 80, 0.22);
  left: calc(var(--x, 0px) - 100px);
  top:  calc(var(--y, 0px) - 140px);
  transform: rotate(var(--rotation, 0deg)) translateY(var(--float, 0px));
  opacity: var(--opacity, 1);
  transition: box-shadow 0.5s ease,
              transform 0.5s cubic-bezier(0.34, 1.6, 0.64, 1);
  will-change: left, top, transform, opacity;
}

.dream-card:hover {
  z-index: 200;
  transform: rotate(var(--rotation, 0deg)) translateY(var(--float, 0px)) scale(1.08);
  box-shadow: 0 28px 72px rgba(40, 25, 80, 0.4);
}

.dream-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(1.02);
  transition: filter 0.5s ease;
}

.dream-card:hover .dream-card-img {
  filter: saturate(1) brightness(1.05);
}

.dream-card-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(40, 25, 80, 0.8) 0%,
    rgba(159, 173, 255, 0.2) 45%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.dream-card:hover .dream-card-tint {
  opacity: 0.5;
}

.dream-card-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 14px rgba(40, 25, 80, 0.18);
  font-size: 12px;
  font-weight: 500;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.dream-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(129, 140, 248, 0.3);
  border-radius: 100px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 20px rgba(129, 140, 248, 0.15);
  font-size: 14px;
  font-weight: 500;
  color: #4F46E5;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dream-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 8px 28px rgba(129, 140, 248, 0.25);
}

.dream-cta span {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dream-cta:hover span {
  transform: translate(2px, -2px);
}

/* === FULLSCREEN MODAL === */

.dream-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.dream-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.dream-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 50, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dream-modal-stage {
  position: absolute;
  inset: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: #2a1f5a;
  box-shadow: 0 30px 100px rgba(20, 15, 50, 0.5);
  transform: scale(0.92);
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.dream-modal.open .dream-modal-stage {
  transform: scale(1);
}

.dream-modal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: modalKenBurns 12s ease-out forwards;
}

@keyframes modalKenBurns {
  from { transform: scale(1); }

  to   { transform: scale(1.08); }
}

.dream-modal-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 15, 50, 0.75) 0%,
    rgba(159, 173, 255, 0.2) 40%,
    transparent 80%
  );
}

.dream-modal-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  right: 60px;
  z-index: 2;
  max-width: 700px;
}

.dream-modal-pill {
  display: inline-flex;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  font-size: 13px;
  font-weight: 500;
  color: white;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dream-modal-title {
  font-size: 64px;
  font-weight: 600;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.dream-modal-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  font-weight: 400;
  max-width: 560px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.dream-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.dream-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

.dream-modal-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: white;
}

.dream-modal-close::before { transform: rotate(45deg); }

.dream-modal-close::after  { transform: rotate(-45deg); }

/* Soft ambient halo */

@keyframes haloBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

.pricing-card-3d {
  pointer-events: none; /* Default: nicht klickbar */
}

.pricing-card-3d.is-current {
  pointer-events: auto; /* Nur aktive Karte fängt Klicks */
}

/* === LIQUID GLASS BASE (alle Karten) === */

.pricing-card-3d {
  position: absolute;
  width: 460px;
  /* Translucent base — much lighter than before for liquid-glass effect */
  background: 
    /* Bottom inner shadow */
    linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.15) 100%),
    /* Main glass body */
    linear-gradient(135deg, 
      rgba(255,255,255,0.45) 0%, 
      rgba(255,255,255,0.25) 50%,
      rgba(255,255,255,0.35) 100%);
  
  /* Stronger backdrop blur — defining liquid glass property */
  backdrop-filter: blur(40px) saturate(220%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(220%) brightness(1.05);
  
  /* Almost invisible border — only a hint of light at the edge */
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  padding: 36px 36px 32px;
  
  /* Multiple layered shadows for liquid glass depth */
  box-shadow:
    /* Inner top highlight */
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    /* Inner bottom shadow */
    inset 0 -1px 1px rgba(0, 0, 0, 0.05),
    /* Subtle dropshadow */
    0 1px 2px rgba(40, 25, 80, 0.05),
    /* Main shadow */
    0 30px 80px rgba(40, 25, 80, 0.18),
    /* Distant ambient shadow */
    0 60px 120px rgba(40, 25, 80, 0.08);
  
  transition:
    transform 0.9s cubic-bezier(0.34, 1.5, 0.64, 1),
    opacity 0.7s ease,
    filter 0.7s ease,
    background 0.7s ease,
    box-shadow 0.7s ease;
  filter: blur(0);
  transform-style: preserve-3d;
  overflow: hidden; /* For inner highlights to work */
}

/* Top sheen — wandering light on glass surface */

.pricing-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.05) 60%,
    transparent 100%
  );
  border-radius: 32px 32px 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Edge refraction simulation */

.pricing-card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.7) 0%,
    rgba(255,255,255,0.2) 30%,
    rgba(255,255,255,0.05) 70%,
    rgba(255,255,255,0.4) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* Tier index */

.card-index {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: rgba(129, 140, 248, 0.4);
  line-height: 1;
  z-index: 2;
  transition: color 0.4s ease;
}

/* Card content sits above pseudo-elements */

.pricing-card-3d > *:not(.card-index) {
  position: relative;
  z-index: 2;
}

/* Active card */

.pricing-card-3d.is-current {
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
  z-index: 10;
}

/* Past cards: angled left, slightly back */

.pricing-card-3d.is-past[data-tier-idx="0"] {
  transform: translate3d(-380px, -10px, -150px) rotateY(18deg) scale(0.78);
  opacity: 0.45;
  filter: blur(0.5px);
  z-index: 2;
}

.pricing-card-3d.is-past[data-tier-idx="1"] {
  transform: translate3d(-200px, -5px, -80px) rotateY(12deg) scale(0.86);
  opacity: 0.6;
  z-index: 3;
}

/* Future cards: angled right, slightly back */

.pricing-card-3d.is-future[data-tier-idx="1"] {
  transform: translate3d(200px, 20px, -80px) rotateY(-12deg) scale(0.86);
  opacity: 0.6;
  z-index: 3;
}

.pricing-card-3d.is-future[data-tier-idx="2"] {
  transform: translate3d(380px, 30px, -150px) rotateY(-18deg) scale(0.78);
  opacity: 0.45;
  filter: blur(0.5px);
  z-index: 2;
}

/* Card typography — consistent with site */

.card-tier-name {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 14px;
}

.card-scenarios {
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 400;
}

.card-divider {
  height: 0.5px;
  background: rgba(0,0,0,0.08);
  margin: 0 -8px 20px;
}

.card-models {
  list-style: none;
  margin-bottom: 24px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-models li {
  font-size: 14px;
  color: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.card-models li::before {
  content: '✓';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93C5FD 0%, #C084FC 100%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(192,132,252,0.3);
}

.card-models.empty {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  font-style: italic;
}

.card-price-block {
  margin-bottom: 22px;
}

.card-price {
  font-size: 32px;
  font-weight: 600;
  color: #4F46E5;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.card-price small {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #818CF8;
  margin-top: 1px;
}

.card-price-secondary {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin-top: 8px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #4F46E5;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 4px 12px rgba(40,25,80,0.08);
}

.card-cta:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
}

.card-cta span { transition: transform 0.3s ease; }

.card-cta:hover span { transform: translate(2px, -2px); }

/* Variant A: Active card gets full lila gradient */

.pricing-card-3d.is-current {
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.05) 100%),
    linear-gradient(135deg, 
      rgba(129,140,248,0.92) 0%, 
      rgba(192,132,252,0.92) 100%);
  border-color: rgba(255,255,255,0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 1px rgba(0,0,0,0.1),
    0 1px 2px rgba(40,25,80,0.05),
    0 36px 100px rgba(129,140,248,0.45),
    0 60px 120px rgba(192,132,252,0.2);
}

.pricing-card-3d.is-current .card-tier-name { color: white; }

.pricing-card-3d.is-current .card-index { color: rgba(255,255,255,0.55); }

.pricing-card-3d.is-current .card-scenarios { color: rgba(255,255,255,0.85); }

.pricing-card-3d.is-current .card-divider { background: rgba(255,255,255,0.3); }

.pricing-card-3d.is-current .card-models li { color: white; }

.pricing-card-3d.is-current .card-models li::before {
  background: white;
  color: #6366F1;
}

.pricing-card-3d.is-current .card-price { color: white; }

.pricing-card-3d.is-current .card-price small { color: rgba(255,255,255,0.85); }

.pricing-card-3d.is-current .card-price-secondary { color: rgba(255,255,255,0.78); }

.pricing-card-3d.is-current .card-cta {
  background: linear-gradient(135deg, #6EE7B7 0%, #34D399 100%);
  border-color: transparent;
  color: #064E3B;
  font-weight: 600;
}

.plus-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.plus-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-block;
}

.plus-icon::before,
.plus-icon::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(99,102,241,0.5);
  transition: transform 0.5s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.plus-icon::before {
  left: 0; top: 50%;
  width: 100%; height: 5px;
  margin-top: -2.5px;
}

.plus-icon::after {
  left: 50%; top: 0;
  width: 5px; height: 100%;
  margin-left: -2.5px;
}

.is-started .plus-icon::after {
  transform: rotate(90deg);
}
