/* ===== EPHESUS-AI CUSTOM STYLES ===== */
/* Design: Luxury/Refined Dark Theme */
/* Typography: Syne (Display) + Outfit (Body) */
/* Inspired by kiberatung.de aesthetic */

/* --- Lighter Dark-Theme Surfaces (noch heller) --- */
body.bg-surface-50 { background-color: #1a1d28 !important; }
.bg-surface-50  { background-color: #1a1d28 !important; }
.bg-surface-100 { background-color: #222633 !important; }
.bg-surface-200 { background-color: #2a2f3e !important; }
.bg-surface-300 { background-color: #323848 !important; }
.bg-surface-400 { background-color: #3d4455 !important; }

/* Hellere Grautöne für bessere Lesbarkeit auf hellerem Hintergrund */
.text-gray-400 { color: #c2c8d4 !important; }
.text-gray-500 { color: #9ba2b1 !important; }

/* --- Smooth Scroll + Scrollbar Stability --- */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

/* --- 2026 CSS: Balanced Text + Render Performance --- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* content-visibility disabled — caused sections to render as empty on fast scroll */

/* --- Focus Visible (WCAG 2.2) --- */
:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Focus Not Obscured (WCAG 2.2 SC 2.4.11) --- */
:target, [id]:target {
  scroll-margin-top: 90px;
}

/* --- WCAG 2.2 Target Size Minimum (24x24px) --- */
a, button, input, select, textarea, [role="button"], summary {
  min-width: 24px;
  min-height: 24px;
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: more) {
  body { --text-primary: #fff; --text-secondary: #ccc; }
  .glass-card, .pricing-card { border-width: 2px; border-color: rgba(255,255,255,0.3); }
  .text-gray-400, .text-gray-500 { color: #bbb !important; }
}

/* --- Selection --- */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  z-index: 9999;
  pointer-events: none;
  will-change: width;
  transition: width 0.05s linear;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0b10; }
::-webkit-scrollbar-thumb { background: #252a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* --- Navbar --- */
#navbar {
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-bottom 0.5s ease;
}
#navbar.scrolled {
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- ephesus-ai Logo: prevent line-break at hyphen --- */
a.font-display.font-bold,
nav a.font-display,
footer a.font-display {
  white-space: nowrap;
}

/* --- Skip-to-content Link (WCAG 2.2: only visible on focus) --- */
a.skip-to-content:not(:focus):not(:focus-visible) {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  background: transparent !important;
  transform: none !important;
}
a.skip-to-content:focus,
a.skip-to-content:focus-visible {
  position: fixed !important;
  left: 1rem !important;
  top: 1rem !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  z-index: 99999 !important;
  background: #3b82f6 !important;
  color: #fff !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
  text-decoration: none !important;
  transform: none !important;
}

/* --- Animations DISABLED (per user request): All content visible immediately --- */
.fade-in,
.blur-in,
.scale-in,
.slide-left,
.slide-right,
.clip-reveal,
.char-reveal .char,
.split-letter {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  animation: none !important;
}
/* Mark as visible immediately so any JS logic treats them as already-animated */
.fade-in { /* no initial state */ }
/* Ensure demo cards are always visible even without observer */
.demo-card.fade-in,
.demo-option-card {
  opacity: 1;
  transform: none;
}

/* Hero fade-in: use CSS animation directly, no JS dependency */
#hero-section .fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Feature Cards --- */
.feature-card {
  padding: 2rem;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

/* --- Use Case Cards --- */
.use-case-card {
  padding: 2rem;
  background: rgba(15, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout style paint;
}
.use-case-card:hover {
  background: rgba(15, 17, 23, 0.8);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
}

/* --- Testimonial Cards --- */
.testimonial-card.glass-card,
.testimonial-card {
  padding: 2rem !important;
  background: rgba(20, 24, 35, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.25rem !important;
  transition: all 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  min-height: 340px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Boost review text readability */
.testimonial-card p[itemprop="reviewBody"] {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
}
/* Align testimonial grid evenly */
#testimonials .grid {
  align-items: stretch;
}
.testimonial-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

/* --- FAQ --- */
.faq-item {
  background: rgba(15, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.15);
}
.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(15, 17, 23, 0.7);
}

/* --- Marquee --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  margin: 0 0.5rem;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.025em;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Demo Cards --- */
.demo-card {
  padding: 1.75rem;
  background: rgba(15, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-glow, rgba(59,130,246,0.08)), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}
.demo-card:hover::before { opacity: 1; }
.demo-card:hover {
  border-color: var(--card-border, rgba(59,130,246,0.2));
  transform: translateY(-4px);
  background: rgba(15, 17, 23, 0.7);
}

/* --- Demo Option Cards --- */
.demo-option-card {
  padding: 2.5rem 2rem;
  background: rgba(15, 17, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  cursor: pointer;
}
.demo-option-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
  background: rgba(15, 17, 23, 0.8);
  box-shadow: 0 20px 60px -15px rgba(59, 130, 246, 0.1);
}

/* --- Voice Orb Animations --- */
@keyframes orbBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes orbPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.15; }
  50% { transform: scale(1.15); opacity: 0.3; }
}
@keyframes orbSpeaking {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.08); }
  75% { transform: scale(0.96); }
}
@keyframes orbListening {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

#voice-orb.speaking {
  animation: orbSpeaking 1.2s ease-in-out infinite !important;
}
#voice-orb.listening {
  animation: orbListening 2s ease-in-out infinite !important;
}

/* --- Chat Messages --- */
.chat-msg {
  max-width: 80%;
  padding: 0.875rem 1.25rem;
  border-radius: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: msgAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-msg.user {
  margin-left: auto;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-bottom-right-radius: 0.375rem;
  color: #e2e8f0;
}
.chat-msg.assistant {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 0.375rem;
  color: #cbd5e1;
}
.chat-msg.typing::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: rgba(59, 130, 246, 0.5);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Quick Reply Chips */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  animation: msgAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-quick-reply-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chat-quick-reply-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
  color: #bfdbfe;
}

/* ===== HIGH-END UPGRADES ===== */

/* --- Animated Gradient Mesh Background --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-gradient-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 20% 60%, rgba(245,158,11,0.06) 0%, transparent 50%),
              radial-gradient(ellipse 50% 50% at 80% 30%, rgba(139,92,246,0.05) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease-in-out infinite;
}

/* --- Dot Grid Background --- */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
}

/* --- Floating Orbs --- */
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px,15px) scale(0.95); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-25px,20px) scale(0.97); } 66% { transform: translate(15px,-30px) scale(1.03); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,20px); } }
.floating-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.floating-orb-1 { width: 500px; height: 500px; background: rgba(59,130,246,0.08); top: 10%; left: 30%; animation: float1 20s ease-in-out infinite; }
.floating-orb-2 { width: 400px; height: 400px; background: rgba(245,158,11,0.05); bottom: 20%; right: 10%; animation: float2 25s ease-in-out infinite; }
.floating-orb-3 { width: 300px; height: 300px; background: rgba(139,92,246,0.06); top: 50%; left: 60%; animation: float3 18s ease-in-out infinite; }

/* --- Gradient Border Cards --- */
.gradient-border {
  position: relative;
  background: rgba(15, 17, 23, 0.6);
  border-radius: 1.25rem;
  overflow: hidden;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(245,158,11,0.1), rgba(139,92,246,0.2), rgba(59,130,246,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gradient-border:hover::before { opacity: 1; }

/* --- 3D Tilt Effect --- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.tilt-card:hover {
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.08);
}

/* --- Timeline (How It Works) --- */
.timeline-container { position: relative; }
.timeline-line {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 120px);
  background: linear-gradient(to bottom, rgba(59,130,246,0.3), rgba(245,158,11,0.3), rgba(59,130,246,0.1));
}
@media (min-width: 768px) {
  .timeline-line {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: calc(100% - 60px);
    height: 2px;
    margin-left: 30px;
    background: linear-gradient(to right, rgba(59,130,246,0.3), rgba(245,158,11,0.3), rgba(59,130,246,0.1));
  }
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 20px rgba(59,130,246,0.5);
  position: relative;
  z-index: 2;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(59,130,246,0.3);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* --- Section Glow Dividers --- */
.glow-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(59,130,246,0.3), rgba(245,158,11,0.2), rgba(59,130,246,0.3), transparent);
  position: relative;
}
.glow-divider::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to right, transparent, rgba(59,130,246,0.05), transparent);
  filter: blur(10px);
}

/* --- Counter Animation --- */
.counter { font-variant-numeric: tabular-nums; }

/* --- Testimonial Quote Icon --- */
.quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: rgba(245, 158, 11, 0.15);
  font-family: Georgia, serif;
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
}

/* --- FAQ Smooth Animation --- */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
}
.faq-content > div { overflow: hidden; }

/* --- Typing Cursor --- */
@keyframes typingCursor {
  0%, 100% { border-color: rgba(59,130,246,0.8); }
  50% { border-color: transparent; }
}
.typing-cursor {
  border-right: 2px solid rgba(59,130,246,0.8);
  animation: typingCursor 0.8s step-end infinite;
  padding-right: 2px;
}

/* --- Glow Button Upgrade --- */
.glow-btn {
  position: relative;
  overflow: hidden;
}
.glow-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.glow-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* --- Stagger Animation Classes --- */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.1s !important; }
.stagger-3 { transition-delay: 0.15s !important; }
.stagger-4 { transition-delay: 0.2s !important; }
.stagger-5 { transition-delay: 0.25s !important; }
.stagger-6 { transition-delay: 0.3s !important; }

/* ===== ITERATION 3: MAXIMUM PREMIUM ===== */

/* --- Custom Cursor with Glow (Enhanced) --- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.4s ease, height 0.4s ease, background 0.4s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-glow.cursor-hover {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, rgba(139,92,246,0.05) 40%, transparent 70%);
}
.cursor-glow.cursor-click {
  width: 400px;
  height: 400px;
  transition: width 0.15s ease, height 0.15s ease;
}

/* Scroll progress bar moved to .scroll-progress-top (line ~2205) */

/* --- Aurora / Northern Lights Effect --- */
@keyframes aurora {
  0% { transform: rotate(0deg) scale(1.5); opacity: 0.3; }
  33% { transform: rotate(120deg) scale(1.8); opacity: 0.2; }
  66% { transform: rotate(240deg) scale(1.4); opacity: 0.35; }
  100% { transform: rotate(360deg) scale(1.5); opacity: 0.3; }
}
.aurora-container {
  position: absolute;
  inset: -50%;
  overflow: hidden;
  pointer-events: none;
}
.aurora-beam {
  position: absolute;
  width: 150%;
  height: 150%;
  filter: blur(100px);
  opacity: 0.15;
}
.aurora-beam-1 {
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(59,130,246,0.3) 60deg, transparent 120deg, rgba(139,92,246,0.2) 200deg, transparent 280deg, rgba(59,130,246,0.15) 340deg, transparent 360deg);
  animation: aurora 30s linear infinite;
  top: -25%;
  left: -25%;
}
.aurora-beam-2 {
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(245,158,11,0.15) 80deg, transparent 160deg, rgba(59,130,246,0.2) 240deg, transparent 320deg);
  animation: aurora 40s linear infinite reverse;
  top: -25%;
  left: -25%;
}

/* --- Hero Fade In Up --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Animated Gradient Text Shimmer --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 25%, #fbbf24 50%, #60a5fa 75%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* --- Magnetic Button --- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Nav Link Animated Underline --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}

/* --- Blur-In Text Animation --- */
@keyframes blurIn {
  0% { filter: blur(12px); opacity: 0; transform: translateY(20px); }
  100% { filter: blur(0); opacity: 1; transform: translateY(0); }
}
.blur-in {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
}
.blur-in.visible {
  animation: blurIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Glassmorphism Cards --- */
.glass-card {
  background: rgba(15, 17, 23, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.15);
}

/* --- Button Micro-Interactions --- */
a[href*="cal.com"], .pulse-cta, [class*="bg-accent"][class*="rounded"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a[href*="cal.com"]:hover, .pulse-cta:hover, [class*="bg-accent"][class*="rounded"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
a[href*="cal.com"]:active, .pulse-cta:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .glass-card:hover { transform: none; }
  a[href*="cal.com"]:hover, .pulse-cta:hover { transform: none; }
}

/* --- Reveal Line Animation --- */
@keyframes revealLine {
  0% { width: 0; }
  100% { width: 100%; }
}
.reveal-line {
  position: relative;
  overflow: hidden;
}
.reveal-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #f59e0b);
  border-radius: 1px;
}
.reveal-line.visible::after {
  animation: revealLine 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* --- Scale-In Animation (for cards) --- */
@keyframes scaleIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.scale-in {
  opacity: 0;
  transform: scale(0.9);
}
.scale-in.visible {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Slide-In from Left/Right --- */
@keyframes slideInLeft {
  0% { transform: translateX(-60px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  0% { transform: translateX(60px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.slide-left { opacity: 0; }
.slide-right { opacity: 0; }
.slide-left.visible { animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide-right.visible { animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* --- Hover Card Shine Effect --- */
.shine-card {
  position: relative;
  overflow: hidden;
}
.shine-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 40%,
    rgba(255,255,255,0.03) 45%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.03) 55%,
    transparent 60%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.shine-card:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* --- Pulsing CTA --- */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}
.pulse-cta {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

/* --- Text Highlight on Scroll --- */
.highlight-word {
  display: inline;
  background: linear-gradient(90deg, #3b82f6, #f59e0b);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1), -webkit-text-fill-color 0.8s;
}
.highlight-word.visible {
  background-size: 100% 100%;
  -webkit-text-fill-color: transparent;
}

/* ===== ITERATION 4: ABSOLUTE MAXIMUM ===== */

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* --- SVG Wave Dividers --- */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: waveShift 8s linear infinite;
}
@keyframes waveShift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Page Load Curtain --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: #0a0b10;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* --- Back to Top with Ring --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 5.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.1);
}
.back-to-top svg.ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
}
.back-to-top svg.ring circle {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.1s linear;
}

/* --- Animated Border Flow --- */
@keyframes borderFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
.flow-border {
  position: relative;
}
.flow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg,
    rgba(59,130,246,0.0) 0%,
    rgba(59,130,246,0.5) 25%,
    rgba(245,158,11,0.5) 50%,
    rgba(139,92,246,0.5) 75%,
    rgba(59,130,246,0.0) 100%
  );
  background-size: 300% 100%;
  animation: borderFlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}
.flow-border:hover::before { opacity: 1; }

/* --- Audio Wave Visualizer --- */
.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}
.audio-wave .bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  animation: waveBar var(--wave-speed, 1s) ease-in-out infinite alternate;
}
@keyframes waveBar {
  0% { height: 15%; }
  100% { height: var(--wave-height, 80%); }
}

/* --- Text Scramble --- */
.scramble-text {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* --- Parallax Section --- */
.parallax-section {
  transform: translateZ(0);
  will-change: transform;
}

/* --- Hover Lift (extra smooth) --- */
.hover-lift {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3), 0 0 30px rgba(59,130,246,0.08);
}

/* --- Spotlight Effect (on hero) --- */
.spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.08s linear, top 0.08s linear;
  z-index: 2;
  mix-blend-mode: screen;
}

/* --- Animated Underline on Headings --- */
.heading-underline {
  position: relative;
  display: inline-block;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b);
  opacity: 0;
  transition: opacity 0.6s, width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.heading-underline.visible::after {
  opacity: 1;
  width: 100px;
}

/* ===== ITERATION 5: NEXT LEVEL ===== */

/* --- Split Letter Animation --- */
.split-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-40deg);
  animation: letterReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* --- Morphing SVG Blob --- */
.morph-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.08;
  filter: blur(60px);
}
.morph-blob path {
  animation: morphBlob 12s ease-in-out infinite;
}
@keyframes morphBlob {
  0%, 100% { d: path('M300,180 C380,100 500,150 480,260 C460,370 380,420 300,400 C220,380 100,350 120,260 C140,170 220,260 300,180'); }
  33% { d: path('M300,150 C420,80 520,200 460,300 C400,400 340,450 260,420 C180,390 80,320 140,220 C200,120 180,220 300,150'); }
  66% { d: path('M300,200 C360,120 480,180 500,280 C520,380 400,440 300,410 C200,380 120,340 100,240 C80,140 240,280 300,200'); }
}

/* --- Cursor Trail --- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.6);
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* --- Gradient Shadow on Cards --- */
.gradient-shadow {
  position: relative;
}
.gradient-shadow::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: inherit;
  filter: blur(25px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}
.gradient-shadow:hover::after {
  opacity: 0.3;
}

/* --- Animated Grid Lines --- */
.grid-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.03;
}
.grid-lines::before, .grid-lines::after {
  content: '';
  position: absolute;
  inset: 0;
}
.grid-lines::before {
  background:
    repeating-linear-gradient(90deg, rgba(59,130,246,0.3) 0px, transparent 1px, transparent 120px),
    repeating-linear-gradient(0deg, rgba(59,130,246,0.3) 0px, transparent 1px, transparent 120px);
  animation: gridPulse 4s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Marquee Hover Reverse --- */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* --- Floating Orbit Tags --- */
.orbit-container {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-tag {
  position: absolute;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  animation: orbitFloat var(--orbit-speed, 20s) linear infinite;
  transform-origin: 250px 250px;
}
@keyframes orbitFloat {
  0% { transform: rotate(0deg) translateX(var(--orbit-radius, 220px)) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(var(--orbit-radius, 220px)) rotate(-360deg); }
}

/* --- Section Color Shift indicator --- */
.section-accent {
  position: relative;
}
.section-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  border-radius: 2px;
  background: var(--section-color, #3b82f6);
  opacity: 0.6;
}

/* --- Animated Noise/Grain --- */
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}
.animated-grain {
  animation: grainShift 8s steps(10) infinite;
}

/* ===== ITERATION 6: FINAL — EVERYTHING ===== */

/* --- Rotating Neon Border on CTA --- */
@keyframes rotateBorder {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.neon-border {
  position: relative;
  z-index: 1;
}
.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), #3b82f6, #f59e0b, #a855f7, #22c55e, #3b82f6);
  z-index: -1;
  animation: rotateBorder 3s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
}
.neon-border:hover::before { opacity: 1; }
.neon-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
}

/* --- Glitch Text Effect --- */
.glitch {
  position: relative;
}
.glitch:hover {
  animation: glitchText 0.3s ease;
}
@keyframes glitchText {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, 1px); }
  20% { transform: translate(2px, -1px); filter: hue-rotate(90deg); }
  30% { transform: translate(-1px, 2px); }
  40% { transform: translate(1px, -2px); filter: hue-rotate(0); }
  50% { transform: translate(-2px, -1px); }
  60% { transform: translate(2px, 1px); filter: hue-rotate(-90deg); }
  70% { transform: translate(0); filter: hue-rotate(0); }
}

/* --- Confetti Canvas --- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
}

/* --- Neon Glow Text --- */
.neon-glow {
  text-shadow: 0 0 10px rgba(59,130,246,0.5), 0 0 30px rgba(59,130,246,0.3), 0 0 60px rgba(59,130,246,0.15);
}

/* --- Social Proof Toast --- */
.social-toast {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: 320px;
  padding: 1rem 1.25rem;
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  z-index: 60;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.social-toast.show {
  transform: translateY(0);
}
.social-toast:hover {
  border-color: rgba(59,130,246,0.2);
}

/* --- 3D Card Flip --- */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  position: relative;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card-back {
  transform: rotateY(180deg);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* --- Animated Checkmark --- */
.check-animate svg {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.check-animate.visible svg {
  stroke-dashoffset: 0;
}

/* --- Clip-Path Section Reveal --- */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.clip-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* --- Animated SVG Phone --- */
@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-15deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  25% { transform: rotate(0deg); }
}
.phone-ring {
  display: inline-block;
  animation: phoneRing 3s ease-in-out infinite;
  transform-origin: center;
}

/* --- Smooth Number Slot Roller --- */
.slot-number {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: bottom;
}
.slot-number .slot-inner {
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Tageszeit-Hintergrund --- */
body.time-morning { --time-accent: #f59e0b; }
body.time-afternoon { --time-accent: #3b82f6; }
body.time-evening { --time-accent: #a855f7; }
body.time-night { --time-accent: #3b82f6; }

/* --- Section Entrance: Stagger Children --- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ITERATION 7: ULTIMATE HIGH-END ===== */

/* --- Lenis Smooth Scroll --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* --- SplitText Character Animation --- */
.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-80deg);
  transform-origin: center bottom;
}
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.05em;
}

/* --- Sticky CTA Bar --- */
.sticky-cta {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(10, 11, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.875rem 0;
}
.sticky-cta.visible {
  bottom: 0;
}
.sticky-cta .cta-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Exit Intent Popup --- */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.exit-overlay.show {
  opacity: 1;
  visibility: visible;
}
.exit-popup {
  background: linear-gradient(135deg, rgba(15,17,23,0.98), rgba(20,22,30,0.98));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 60px rgba(59,130,246,0.1);
}
.exit-overlay.show .exit-popup {
  transform: scale(1) translateY(0);
}

/* --- Pricing Cards --- */
.pricing-card {
  background: rgba(15, 17, 23, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
}
.pricing-card:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(59,130,246,0.1);
}
.pricing-card.featured {
  border-color: rgba(59,130,246,0.3);
  background: rgba(15, 17, 23, 0.7);
  box-shadow: 0 0 40px rgba(59,130,246,0.08);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(245,158,11,0.3), rgba(59,130,246,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.pricing-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s;
}
.pricing-toggle.active {
  background: rgba(59,130,246,0.3);
}
.pricing-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-toggle.active::after {
  transform: translateX(28px);
}
.price-value {
  transition: opacity 0.3s, transform 0.3s;
}

/* --- Phone Mockup --- */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: rgba(15, 17, 23, 0.8);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4), 0 0 40px rgba(59,130,246,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: rgba(10,11,16,0.9);
  border-radius: 0 0 1rem 1rem;
  z-index: 3;
}
.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 2rem;
  overflow: hidden;
  background: #0a0b10;
}
.phone-conversation {
  padding: 3rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  overflow: hidden;
}
.phone-msg {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
}
.phone-msg.ai {
  align-self: flex-start;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.2);
  color: #e2e8f0;
  border-bottom-left-radius: 0.25rem;
}
.phone-msg.human {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  color: #cbd5e1;
  border-bottom-right-radius: 0.25rem;
}
.phone-msg.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Testimonial Carousel --- */
.testimonial-carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  background: #3b82f6;
  width: 24px;
  border-radius: 4px;
}

/* --- Pinned Section Progress --- */
.pin-progress-bar {
  position: absolute;
  top: 50%;
  left: 2rem;
  width: 3px;
  height: 200px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.pin-progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #3b82f6, #f59e0b);
  border-radius: 2px;
  transition: height 0.1s linear;
}

/* --- Animated Badge Pulse --- */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

/* --- Savings Highlight --- */
.savings-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ===== ITERATION 8: FINAL HIGH-END — KOSTENLOS ===== */

/* --- Film Grain Noise Overlay (cinematic premium feel) --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 0.75rem 0.75rem;
  text-decoration: none;
  transition: top 0.3s ease;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* --- Focus-Visible (Keyboard Users Only) — Premium Ring --- */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset 0.15s ease;
}
*:focus-visible:active {
  outline-offset: 1px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
  transition: outline-offset 0.15s ease, box-shadow 0.15s ease;
}
button:focus-visible:active, a:focus-visible:active {
  outline-offset: 1px;
}
/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* --- Enhanced Button Micro-Interactions --- */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-premium:hover::before {
  transform: translateX(100%);
}
.btn-premium:active {
  transform: scale(0.97);
}

/* --- Glassmorphism Enhancement for Sticky Elements --- */
.glass-ultra {
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.08);
}

/* --- Text Selection Enhancement --- */
h1::selection, h2::selection, h3::selection, .shimmer-text::selection {
  background: rgba(59, 130, 246, 0.5);
  -webkit-text-fill-color: white;
}

/* --- Scrollbar Color Transition --- */
::-webkit-scrollbar-thumb {
  transition: background 0.3s;
}

/* --- Enhanced Card Hover Glow Ring --- */
.glow-ring {
  position: relative;
}
.glow-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from 0deg, rgba(59,130,246,0.2), rgba(245,158,11,0.1), rgba(139,92,246,0.15), rgba(59,130,246,0.2));
  transition: opacity 0.5s;
  z-index: -1;
  filter: blur(12px);
}
.glow-ring:hover::after { opacity: 1; }

/* --- Animated Underline Links in Text --- */
.link-animated {
  position: relative;
  text-decoration: none;
  color: #60a5fa;
}
.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-animated:hover::after { width: 100%; }

/* --- Print Stylesheet --- */
@media print {
  body { background: white !important; color: black !important; font-size: 12pt !important; }
  body::after, #particle-canvas, .cursor-glow, .cursor-dot, .scroll-progress,
  .floating-orb, .aurora-container, .dot-grid, .grid-lines, .morph-blob,
  .back-to-top, .social-toast, .sticky-cta, #mobile-sticky-cta,
  .exit-overlay, #exit-intent-popup, .page-loader, #confetti-canvas,
  .spotlight, .orbit-container, .phone-mockup, .wave-divider,
  .glow-divider, .marquee-container, .hero-gradient-mesh,
  .gradient-text-animated { display: none !important; }

  nav, footer { break-inside: avoid; }
  section { break-inside: avoid; page-break-inside: avoid; }
  img { max-width: 100% !important; page-break-inside: avoid; }

  h1, h2, h3 { color: black !important; -webkit-text-fill-color: black !important; page-break-after: avoid; }
  .shimmer-text { background: none !important; -webkit-text-fill-color: black !important; color: black !important; }
  .fade-in, .blur-in, .scale-in, .slide-left, .slide-right, .clip-reveal, .char-reveal .char {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
  }

  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 0.75rem; color: #666; }
  a[href^="tel"]::after { content: ' (' attr(href) ')'; font-size: 0.75rem; color: #666; }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .feature-card, .use-case-card, .testimonial-card, .pricing-card, .demo-card, .faq-item { border: 1px solid #ddd !important; background: white !important; color: black !important; }
  p, li, blockquote { color: #222 !important; orphans: 3; widows: 3; }
}

/* --- Smooth FAQ Chevron Rotation --- */
.faq-item summary .faq-chevron {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
}

/* --- Scroll-Linked Section Color Variables --- */
section[data-section-color="blue"] { --section-glow: rgba(59,130,246,0.06); }
section[data-section-color="gold"] { --section-glow: rgba(245,158,11,0.06); }
section[data-section-color="purple"] { --section-glow: rgba(139,92,246,0.06); }
section[data-section-color="green"] { --section-glow: rgba(34,197,94,0.06); }

/* --- Animated Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Modern Typography Enhancement (2025+ CSS) --- */
/* Better line breaks for headings — no orphans, balanced */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
/* Pretty wrap for body text — avoids orphans on last line */
p, li, blockquote, .text-gray-400, .text-gray-300, .text-gray-500 {
  text-wrap: pretty;
}

/* --- Scroll-Driven Animations (native CSS, no JS needed) --- */
@supports (animation-timeline: scroll()) {
  /* Subtle parallax on background blur elements */
  section > .absolute:first-child > div[class*="blur-"] {
    animation: parallaxShift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes parallaxShift {
    from { transform: translateY(-8%); }
    to { transform: translateY(8%); }
  }
  /* Glow dividers animate on scroll */
  .glow-divider {
    animation: glowPulseScroll linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
  }
  @keyframes glowPulseScroll {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* --- @property Animated Gradient Border (hardware-accelerated) --- */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
/* gradient border via pseudo-element instead of border-image (preserves border-radius) */
@keyframes rotateGradientBorder {
  to { --gradient-angle: 360deg; }
}

/* Subgrid removed — broke pricing card layout */

/* --- CSS color-mix() for dynamic hover states --- */
@supports (color: color-mix(in srgb, red, blue)) {
  .nav-link:hover {
    color: color-mix(in srgb, #3b82f6 70%, white);
  }
  .feature-card:hover {
    border-color: color-mix(in srgb, #3b82f6 30%, transparent);
  }
}

/* --- Smooth number counter with CSS @property --- */
@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
.counter-animated {
  animation: countUp 2s ease-out forwards;
  counter-reset: num var(--num);
}
@keyframes countUp {
  from { --num: 0; }
}

/* --- View Transition for smooth demo overlay --- */
@supports (view-transition-name: auto) {
  #demo-overlay {
    view-transition-name: demo-modal;
  }
  ::view-transition-old(demo-modal) {
    animation: fadeScaleOut 0.3s ease-in;
  }
  ::view-transition-new(demo-modal) {
    animation: fadeScaleIn 0.3s ease-out;
  }
  @keyframes fadeScaleOut {
    to { opacity: 0; transform: scale(0.95); }
  }
  @keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.95); }
  }
}

/* --- @property: Smooth Aurora Gradient Color Shift (Hero) --- */
@property --aurora-hue-1 {
  syntax: "<color>";
  initial-value: rgba(59,130,246,0.12);
  inherits: false;
}
@property --aurora-hue-2 {
  syntax: "<color>";
  initial-value: rgba(245,158,11,0.06);
  inherits: false;
}
.hero-gradient-mesh {
  animation: auroraColorShift 10s ease-in-out infinite alternate;
}
@keyframes auroraColorShift {
  0%   { --aurora-hue-1: rgba(59,130,246,0.12); --aurora-hue-2: rgba(245,158,11,0.06); }
  50%  { --aurora-hue-1: rgba(139,92,246,0.10); --aurora-hue-2: rgba(59,130,246,0.08); }
  100% { --aurora-hue-1: rgba(245,158,11,0.08); --aurora-hue-2: rgba(139,92,246,0.07); }
}

/* --- @property: Breathing Glow on Featured Pricing Card --- */
@property --glow-spread {
  syntax: "<length>";
  initial-value: 30px;
  inherits: false;
}
.pricing-card.featured {
  animation: glowBreathe 4s ease-in-out infinite alternate;
}
@keyframes glowBreathe {
  from { --glow-spread: 30px; box-shadow: 0 0 var(--glow-spread) rgba(59,130,246,0.08); }
  to   { --glow-spread: 60px; box-shadow: 0 0 var(--glow-spread) rgba(59,130,246,0.18); }
}

/* --- Variable Font Optimization + Fluid Typography --- */
body {
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
}
h1 {
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  /* Mobile-first: 1.5rem (24px) at 320px, scaled up smoothly to 4.5rem (72px) at 1920px */
  font-size: clamp(1.5rem, 0.75rem + 3.5vw, 4.5rem);
}
h2 {
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 0.8rem + 2.5vw, 3rem);
}
h3 {
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

/* --- Hanging Punctuation (Safari, progressive enhancement) --- */
blockquote, .testimonial-card p {
  hanging-punctuation: first allow-end last;
}

/* --- High Contrast Mode (prefers-contrast) --- */
@media (prefers-contrast: more) {
  .feature-card, .use-case-card, .testimonial-card, .pricing-card, .demo-card, .faq-item {
    border-color: rgba(255,255,255,0.2);
    background: rgba(15, 17, 23, 0.85);
  }
  .glass-card, .glass-ultra, #navbar.scrolled {
    backdrop-filter: blur(30px);
    background: rgba(10, 11, 16, 0.95);
  }
  body::after { display: none; }
  .floating-orb, .aurora-container { opacity: 0.5; }
}

/* --- Content Visibility (skip rendering off-screen sections) --- */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* --- Contact Form --- */
#contact-form input:focus, #contact-form textarea:focus {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
#contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Footer Link Touch Targets --- */
footer a {
  display: inline-block;
  padding: 2px 0;
  line-height: 1.4;
}
@media (max-width: 768px) {
  footer a {
    min-height: 36px;
    line-height: 32px;
    padding: 2px 0;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cursor-glow, #particle-canvas, .cursor-dot, #confetti-canvas, body::after { display: none !important; }
  .fade-in, .blur-in, .scale-in, .slide-left, .slide-right, .split-letter, .clip-reveal, .char-reveal .char { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  html { scroll-behavior: auto; }
  .btn-premium::before { display: none; }
}

/* --- Mobile Adjustments --- */
@media (max-width: 640px) {
  .feature-card, .use-case-card, .testimonial-card { padding: 1.5rem; }
  .floating-orb, .aurora-container, .cursor-glow, .dot-grid, #particle-canvas, .spotlight, .cursor-dot, .orbit-container, .grid-lines, .morph-blob { display: none; }
  .shimmer-text { animation-duration: 0s; background: linear-gradient(90deg, #3b82f6, #f59e0b); -webkit-background-clip: text; background-clip: text; }
  .back-to-top { bottom: 5.5rem; right: 5rem; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .wave-divider { height: 40px; }
  .social-toast { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
  .flip-card:hover .flip-card-inner { transform: none; }
  .neon-border::before { display: none; }
}

/* ===== CRO: FORM VALIDATION ERROR STATES ===== */
.form-field-error {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
.form-error-msg {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.375rem;
  display: block;
  animation: errorSlideIn 0.25s ease-out;
}
@keyframes errorSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CRO: SUBMIT BUTTON SPINNER ===== */
#contact-submit .animate-spin {
  display: inline-block;
}

/* ===== CRO: SUCCESS CELEBRATION ===== */
.success-celebration {
  position: relative;
  width: 0;
  height: 0;
  margin: 0 auto;
  pointer-events: none;
}
.success-celebration .particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color, #3b82f6);
  left: 50%;
  top: 0;
  opacity: 0;
  animation: particleBurst 1s ease-out var(--delay, 0s) forwards;
}
@keyframes particleBurst {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x, 0), var(--y, -80px)) rotate(var(--r, 45deg)) scale(0); opacity: 0; }
}

/* Animated checkmark */
.success-checkmark {
  animation: checkmarkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}
@keyframes checkmarkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.success-check-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkDraw 0.5s ease-out 0.4s forwards;
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* ===== PREMIUM ENHANCEMENTS ===== */

/* --- Premium Text Gradient Animation --- */
.gradient-text-animated {
  background: linear-gradient(270deg, #3b82f6, #14D4EB, #a855f7, #3b82f6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

/* --- Premium Glassmorphism for Interactive Elements --- */
.glass-premium {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === Entry animations for dynamic elements === */
@supports (selector(:open)) {
  .exit-overlay.show,
  #exit-popup {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 300ms ease, transform 300ms ease;
  }

  @starting-style {
    .exit-overlay.show,
    #exit-popup {
      opacity: 0;
      transform: scale(0.95) translateY(10px);
    }
  }
}

/* === Physics-based spring easing === */
:root {
  --spring-bounce: linear(
    0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
    0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%,
    1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%,
    1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%,
    0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1
  );
}

.magnetic-btn:hover,
.glow-btn:hover {
  transition: transform 0.5s var(--spring-bounce);
}

/* === @property animated gradient borders on feature cards === */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorderFeature {
  to { --border-angle: 360deg; }
}

.feature-card:hover {
  border-image: conic-gradient(from var(--border-angle), #3b82f6, #14D4EB, #a855f7, #3b82f6) 1;
  animation: rotateBorderFeature 3s linear infinite;
}

/* CSS scroll-driven fade/scale animations removed — conflicted with GSAP (kept opacity:0 on cards) */

/* --- Branch Cards (industry section) --- */
.branch-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}
.branch-card:hover {
  transform: translateY(-4px);
}
.branch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.branch-card:hover::before {
  opacity: 1;
}

/* ===== View Transitions API — Cross-document (MPA) ===== */
@view-transition {
  navigation: auto;
}

@supports (view-transition-name: none) {
  ::view-transition-old(root) {
    animation: 180ms ease-out both fade-out;
  }
  ::view-transition-new(root) {
    animation: 220ms ease-in both fade-in;
  }
}

/* ===== Chat Widget Teaser deaktivieren (weißes Rechteck) ===== */
.ep-teaser { display: none !important; }

/* ===== Force feature card SVG icons visible (override GSAP DrawSVG residue) ===== */
.feature-card svg path,
.feature-card svg circle,
.feature-card svg polyline,
.feature-card svg line,
.feature-card svg rect {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  opacity: 1 !important;
}

/* ===== How-it-works step numbers — behind text, not on top ===== */
#how-it-works .fade-in.relative {
  overflow: visible !important;
}
#how-it-works .fade-in.relative > div:first-child {
  z-index: 0;       /* watermark behind text */
  pointer-events: none;
}
#how-it-works .fade-in.relative > div.relative {
  position: relative;
  z-index: 1;
  padding-top: 5rem !important; /* push text clear of 6rem step number */
}

/* ===== Back-to-top: completely hidden (user request) ===== */
.back-to-top {
  display: none !important;
}

/* ===== Hide scroll-nav when chat is open ===== */
body.chat-open .scroll-section-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== Testimonials: always visible (no fade-in stall) ===== */
#testimonials .testimonial-card,
#testimonials .testimonial-card.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== Hide WhatsApp float button if not configured ===== */
a[href*="wa.me"][class*="fixed"][class*="bottom-6"] {
  display: none !important;
}

/* ===== ACCESSIBILITY: WCAG AA Color Contrast Boost ===== */
/* Tailwind text-gray-500 (#6b7280) only hits 4.07:1 on #0a0b10 — bumps to 5.5:1 */
.text-gray-500 { color: #8a93a4 !important; }
.text-gray-600 { color: #707a8c !important; }

/* Lottie: respect prefers-reduced-motion (JS also handles this, CSS as fallback) */
@media (prefers-reduced-motion: reduce) {
  lottie-player { display: none !important; }
}

/* ===== PREMIUM TOUCHES — Phase 2 ===== */

/* --- Noise texture overlay (subtle film grain on dark backgrounds) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* --- Universal card hover lift (Cognigy pattern) --- */
.feature-card,
.use-case-card,
.testimonial-card,
.branch-card,
.demo-card,
.pricing-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-card:hover,
.use-case-card:hover,
.testimonial-card:hover,
.branch-card:hover,
.demo-card:hover {
  transform: translateY(-3px);
}

/* --- Scroll-progress bar (top of viewport) --- */
.scroll-progress-top {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #22d3ee, #f59e0b);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* --- Focus ring consistency (forms) --- */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- Section label dot (monospace caps with accent dot) --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(59, 130, 246, 0.9);
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

/* --- ElevenLabs widget visibility ---
   Default: visible (needed for voice demo on branch pages).
   Hide only if explicitly marked as hidden via data-hide attribute.
*/
elevenlabs-convai[data-hide="true"] {
  position: fixed !important;
  bottom: -9999px !important;
  right: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* --- Hero 2-column layout (desktop) --- */
/* --- Hero phone column: hidden on mobile, flex on desktop --- */
.hero-phone-col {
  display: none;
}
/* --- Hero 2-column layout (desktop) --- */
@media (min-width: 1024px) {
  .hero-flex-row {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .hero-flex-row .hero-text-col {
    text-align: left;
  }
  .hero-flex-row .hero-cta-row {
    justify-content: flex-start;
  }
  .hero-phone-col {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
  }
}
/* --- Hero phone mockup opacity --- */
#hero-phone .phone-mockup {
  opacity: 0.58;
}
/* Push phone column slightly lower than text center */
.hero-phone-col {
  padding-top: 2.5rem;
}

/* ===== SCROLL SECTION INDICATOR ===== */
.scroll-section-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scroll-section-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.scroll-dot {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  min-width: 7px !important;
  min-height: 7px !important;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  transition: background 0.25s, transform 0.25s;
}
.scroll-dot:hover,
.scroll-dot.active {
  background: #3b82f6;
  transform: scale(1.3);
}
.scroll-dot-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,11,16,0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scroll-dot:hover .scroll-dot-label {
  opacity: 1;
}
@media (max-width: 1024px) {
  .scroll-section-nav { display: none; }
}

/* ===== MICRO-INTERACTIONS (Phase 2) ===== */

/* --- Primary Button Lift + Glow --- */
.glow-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}
.glow-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(59,130,246,0.35), 0 2px 8px rgba(0,0,0,0.3) !important;
}
.glow-btn:active {
  transform: translateY(0px) !important;
}

/* --- Feature Cards Enhanced Hover --- */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}
.feature-card:hover {
  transform: translateY(-4px) scale(1.012) !important;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.12) !important;
}

/* --- Pricing Card Hover --- */
.pricing-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}
.pricing-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.4) !important;
}

/* --- CTA Pulse Glow (on featured CTA) --- */
@keyframes ctaPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 28px 4px rgba(59,130,246,0.25); }
}
.pulse-cta {
  animation: ctaPulseGlow 3s ease-in-out infinite;
}
.pulse-cta:hover {
  animation: none;
}

/* --- Nav Links Underline Slide --- */
#navbar a.nav-link {
  position: relative;
}
#navbar a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #3b82f6;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#navbar a.nav-link:hover::after {
  width: 100%;
}

/* --- Smooth image zoom on hover (team, case-studies) --- */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: inherit;
}
.img-zoom-wrap img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-wrap:hover img {
  transform: scale(1.05);
}
