/* ==========================================================================
   PlayLead B2B — White-Label Gamification Showroom
   Modern European SaaS Theme (Dark Minimalist with Vibrant Accents)
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette */
  --bg-dark: #070B14;
  --bg-card: #0F172A;
  --bg-card-hover: #131F38;
  --bg-surface: #1E293B;
  --bg-surface-elevated: #28354D;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(99, 102, 241, 0.35);

  --primary: #6366F1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --primary-hover: #4F46E5;
  --purple: #8B5CF6;
  --coral: #FF4757;
  --amber: #F59E0B;
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Typography (100% DSGVO-Compliant Local WOFF2 + Native System Stack Fallback) */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);

  /* Transitions */
  --tr-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

/* German Hyphenation & Typography: cleanly break long compound words at syllables */
html[lang="de"],
body[lang="de"],
:lang(de) {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Balanced text-wrapping for headings and subtitles without orphan words */
.hero-title,
.section-title,
.modal-header-title,
.generator-title,
.tier-name,
.step-title,
.stack-card-title {
  text-wrap: balance;
}

.hero-subtitle,
.section-subtitle,
.modal-header-desc,
.generator-desc,
.trust-quote {
  text-wrap: pretty;
}

/* Exclude technical, code, button, and monetary elements from hyphenation */
code,
pre,
.font-mono,
.btn-primary,
.btn-secondary,
.btn-open-external,
.btn-copy-code,
.btn-test-url,
.btn-video-demo,
.btn-video-hero,
.badge-pill,
.badge-mini,
.card-ribbon,
.step-number,
.header-lang-switch,
.footer-lang-switcher,
.footer-dach-line,
.price-amount,
.metric-val,
.generated-url-text,
.feat-tag,
.trust-quote,
.trust-author,
.trust-author a,
.trust-lead-link {
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

body {
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 90% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 10% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    var(--bg-dark);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- GLOW BADGES & UTILITIES --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #C7D2FE;
  text-transform: uppercase;
}

.badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #C7D2FE 60%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- HEADER NAVBAR --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--tr-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px var(--primary-glow);
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 1;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--tr-fast);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Header Language Switcher (EN / DE) --- */
.header-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
  user-select: none;
}

.lang-switch-btn {
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--tr-fast);
  cursor: pointer;
  background: transparent;
  border: none;
  line-height: 1.2;
}

.lang-switch-btn:hover {
  color: #FFFFFF;
}

.lang-switch-btn.active {
  color: #FFFFFF;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.lang-switch-sep {
  color: var(--border-medium);
  font-size: 11px;
  opacity: 0.6;
  user-select: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: all var(--tr-fast);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--tr-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-btn-equal {
  min-width: 224px;
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.hero-subaction {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-subaction-link {
  color: #818CF8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--tr-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(129, 140, 248, 0.4);
}

.hero-subaction-link:hover {
  color: #A5B4FC;
  text-decoration-color: #A5B4FC;
}

/* 3 Metrics Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  width: 100%;
}

.metric-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: all var(--tr-smooth);
  min-width: 0;
  overflow-wrap: break-word;
}

.metric-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.85);
}

.metric-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-val .metric-accent {
  color: var(--emerald);
}

.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: #E2E8F0;
  margin-top: 4px;
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- INTERACTIVE SHOWROOM (MAIN ATTRACTION) --- */
.showroom-section {
  padding: 80px 0 100px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Showroom Tabs */
.showroom-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.showroom-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.showroom-tab:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--bg-surface);
}

.showroom-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.showroom-tab .tab-icon {
  font-size: 17px;
}

.showroom-tab .tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Showroom Controls Toolbar */
.showroom-toolbar {
  max-width: 580px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.btn-open-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #C7D2FE;
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  transition: all var(--tr-fast);
}

.btn-open-external:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Smartphone Mockup */
.mockup-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  padding: 10px 0;
}

.phone-mockup {
  position: relative;
  width: 390px;
  height: 740px;
  background: #000000;
  border-radius: 48px;
  border: 10px solid #1E293B;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(99, 102, 241, 0.15);
  overflow: hidden;
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth);
}

.phone-mockup:hover {
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(99, 102, 241, 0.25);
}

/* Speaker / Dynamic Island */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 26px;
  background: #000000;
  border-radius: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-lens {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0F172A;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.8);
}

/* The embedded game iframe */
.phone-screen-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  display: block;
  touch-action: manipulation;
}

/* Mobile Safari Anti-Wobble & Touch Optimization Invariant */
.puzzle-board,
.board-container,
.tile,
.tile-inner {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Game Highlights under the phone */
.game-features-bar {
  max-width: 600px;
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- HOW IT WORKS (3 STEPS) --- */
.how-it-works-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--tr-smooth);
  min-width: 0;
  overflow-wrap: break-word;
}

.step-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.step-icon {
  font-size: 32px;
  line-height: 1;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- EMBED CODE PREVIEW SNIPPET --- */
.embed-preview-wrapper {
  max-width: 780px;
  margin: 48px auto 0;
  background: #030712;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0A0F1D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.code-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.btn-copy-code {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all var(--tr-fast);
}

.btn-copy-code:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.code-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #94A3B8;
  overflow-x: auto;
}

.code-body .tag { color: #818CF8; }
.code-body .attr { color: #34D399; }
.code-body .val { color: #FBBF24; }

/* --- FOR AGENCIES (B2B VALUE PROP) --- */
.agencies-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
  border-top: 1px solid var(--border-subtle);
}

.agency-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.agency-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.agency-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agency-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.perk-check {
  color: var(--emerald);
  font-size: 16px;
  margin-top: 1px;
}

.perk-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.perk-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* --- PRICING SECTION --- */
.pricing-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  transition: all var(--tr-smooth);
  min-width: 0;
  overflow-wrap: break-word;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
}

.card-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.tier-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.tier-price {
  margin: 14px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.price-suffix {
  font-size: 14px;
  color: var(--text-muted);
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #CBD5E1;
}

.feature-row span.check {
  color: var(--emerald);
  font-size: 15px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-sizing: border-box;
}

/* --- TRUST & ABOUT BLOCK --- */
.trust-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-subtle);
}

.trust-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.trust-flag {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-quote {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #F1F5F9;
}

.trust-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.trust-author a,
.trust-lead-link {
  color: #818CF8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--tr-fast);
  white-space: nowrap !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

.trust-author a:hover,
.trust-lead-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.trust-lead-sep {
  color: var(--text-muted);
}

/* --- FOOTER --- */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #04070E;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Footer Language Switcher --- */
.footer-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-lang-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--tr-fast);
  cursor: pointer;
}

.footer-lang-btn:hover {
  color: #FFFFFF;
  border-color: var(--border-medium);
  background: rgba(30, 41, 59, 0.9);
}

.footer-lang-btn.active {
  color: #FFFFFF;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.footer-dach-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94A3B8;
}

.footer-dach-line a {
  color: #818CF8;
}
.footer-dach-line a:hover {
  text-decoration: underline;
}

/* --- TOAST NOTIFICATION --- */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--emerald);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 0.3s ease;
}

.toast-msg.hidden {
  display: none;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- HEADER RESPONSIVE: NEVER HIDE NAV LINKS --- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 13px;
  }
  .site-header .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* On half-screen split windows or tablets (<= 1060px), cleanly separate into 2 rows:
   Row 1: Logo (left) and Lang Switcher + Contact Us (right)
   Row 2: Nav links horizontally scrollable, never squished, never wrapped onto 2 lines, never hidden */
@media (max-width: 1060px) {
  .site-header {
    height: auto;
  }
  .nav-container {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 20px 8px;
    gap: 8px 14px;
  }
  .logo-group {
    order: 1;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    display: flex !important; /* Never disappear upon narrowing */
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 6px 0 3px;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    font-size: 12.5px;
    padding: 2px 0;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .logo-text {
    font-size: 17px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .site-header .btn-primary {
    padding: 7px 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 8px 12px 6px;
    gap: 6px 10px;
  }
  .nav-actions {
    gap: 8px;
  }
  .header-lang-switch {
    padding: 2px 4px;
  }
  .lang-switch-btn {
    padding: 2px 6px;
    font-size: 11px;
  }
  .site-header .btn-primary {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .btn-primary,
  .btn-secondary {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .showroom-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .metrics-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .agency-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trust-card {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .trust-author {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .hero-section {
    padding: 48px 0 36px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions a,
  .hero-actions button,
  .hero-btn-equal {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
  }

  .hero-subaction {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
  }

  .phone-mockup {
    width: 100%;
    max-width: 360px;
    height: 680px;
    border-radius: 40px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}



/* ==========================================================================
   CONVERSION BOOST SECTIONS (ROI Calculator, Integrations, GDPR Guarantee)
   ========================================================================== */

/* --- 1. INTERACTIVE ROI CALCULATOR --- */
.roi-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.roi-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #C7D2FE;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--primary);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Big ROI Result Display */
.roi-results-box {
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.roi-results-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--primary) 50%, var(--purple) 100%);
}

.roi-primary-metric {
  text-align: center;
}

.metric-highlight-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 6px;
  display: block;
}

.metric-savings-amount {
  font-size: 46px;
  font-weight: 800;
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.1;
}

.metric-period {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-annual-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.metric-annual-sub strong {
  color: var(--emerald);
}

/* Comparison Subcards */
.roi-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comparison-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--tr-smooth);
}

.comparison-card.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.comp-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-card.highlight .comp-badge {
  color: var(--emerald);
}

.comp-leads {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 6px 0 2px;
  font-family: var(--font-mono);
}

.comp-rate {
  font-size: 12px;
  color: var(--text-secondary);
}

.roi-cta-bar {
  text-align: center;
}

/* --- 2. ZERO-CODE INTEGRATION BLOCK --- */
.integrations-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
  max-width: 100%;
}

.integrations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 36px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.integration-code-card {
  background: #090D16;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.code-snippet-body {
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #E2E8F0;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.code-snippet-body code {
  font-family: inherit;
}

.code-card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-mini {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 700;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

.integration-stack-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.stack-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.stack-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stack-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stack-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: all var(--tr-fast);
  min-width: 0;
}

.stack-badge:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.stack-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.stack-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stack-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.stack-role {
  font-size: 11px;
  color: var(--text-muted);
}

.stack-custom-note {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* --- 3. GDPR & DACH PRIVACY GUARANTEE --- */
.compliance-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
}

.compliance-banner {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.compliance-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.compliance-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--tr-smooth);
  min-width: 0;
  overflow-wrap: break-word;
}

.compliance-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.65);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.compliance-icon {
  font-size: 32px;
  line-height: 1;
}

.compliance-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.compliance-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive queries for conversion blocks */
@media (max-width: 992px) {
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .integrations-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 24px;
  }
  .compliance-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 24px;
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 13.5px;
    line-height: 1.45;
  }
  .roi-card,
  .compliance-banner {
    padding: 24px 16px;
  }
  .compliance-cards-grid {
    grid-template-columns: 1fr;
  }
  .roi-comparison-grid {
    grid-template-columns: 1fr;
  }

  /* Compact zero-code integration cards on mobile */
  .integrations-section {
    padding: 44px 0;
  }
  .integrations-grid {
    gap: 14px;
    margin-top: 18px;
  }
  .integration-code-card {
    padding: 16px 14px 14px;
    border-radius: var(--radius-md);
  }
  .code-card-header {
    padding-bottom: 8px;
    gap: 6px;
  }
  .code-dots {
    gap: 4px;
  }
  .code-dots .dot {
    width: 8px;
    height: 8px;
  }
  .code-filename {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .integration-code-card .btn-copy-code {
    padding: 4px 8px;
    font-size: 10.5px;
    flex-shrink: 0;
  }
  .code-snippet-body {
    font-size: 11px;
    line-height: 1.45;
    margin: 10px 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .code-card-footer {
    padding-top: 10px;
    gap: 6px;
  }
  .badge-mini {
    font-size: 10px;
    padding: 3px 8px;
  }
  .integration-stack-card {
    padding: 16px 14px 14px;
    border-radius: var(--radius-md);
    gap: 12px;
  }
  .stack-card-title {
    font-size: 15px;
    line-height: 1.35;
  }
  .stack-card-desc {
    font-size: 12px;
    line-height: 1.45;
  }
  .stack-badges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stack-badge {
    padding: 7px 9px;
    gap: 8px;
  }
  .stack-icon {
    font-size: 16px;
  }
  .stack-name {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stack-role {
    font-size: 9.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stack-custom-note {
    font-size: 11px;
    padding-top: 8px;
    line-height: 1.4;
  }

  /* Trust & About Founder Block Mobile Optimization */
  .trust-card {
    padding: 24px 16px;
    gap: 14px;
  }
  .trust-flag {
    font-size: 38px;
  }
  .trust-quote {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
  }
  .trust-author {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    line-height: 1.4;
  }
  .trust-lead-sep {
    display: none;
  }
  .trust-lead-title {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
  }
  .trust-author a,
  .trust-lead-link {
    font-size: 14.5px;
    padding: 2px 8px;
    white-space: nowrap !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }
  .trust-lead-role {
    font-size: 13px;
    color: var(--text-secondary);
  }
}

@media (max-width: 340px) {
  .stack-badges-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .integration-code-card,
  .integration-stack-card {
    padding: 12px 10px;
  }
}



/* ==========================================================================
   ANALYTICS & B2B PROPOSAL LINK GENERATOR STYLES
   ========================================================================== */

/* --- Client Personalization Welcome Banner (Aligned with Showroom Controls) --- */
.client-welcome-banner {
  max-width: 580px;
  width: 100%;
  margin: 0 auto 16px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.20) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInDown 0.4s ease-out;
}

.client-welcome-banner .welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A5B4FC;
  white-space: nowrap;
  flex-shrink: 0;
}

.client-welcome-banner .welcome-badge .welcome-sparkle {
  font-size: 13px;
}

.client-welcome-banner .welcome-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.client-welcome-banner .welcome-headline {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-welcome-banner .welcome-headline strong {
  color: #38BDF8;
  font-weight: 700;
}

.client-welcome-banner .welcome-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .client-welcome-banner {
    padding: 10px 14px;
    gap: 10px;
  }
  .client-welcome-banner .welcome-desc {
    display: none;
  }
}

/* --- B2B Proposal Link Generator (Full Container Width on Desktop) --- */
.proposal-generator-card {
  width: 100%;
  margin: 44px 0 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.generator-header {
  margin-bottom: 24px;
  text-align: center;
}

.generator-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0 6px;
}

.generator-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
}

.generator-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.gen-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gen-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gen-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: all var(--tr-fast);
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.gen-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.generator-output-box {
  background: #090D16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.generated-url-text {
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: #38BDF8;
  word-break: break-all;
  user-select: all;
  flex: 1;
  line-height: 1.5;
}

.generator-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.generator-actions .btn-copy-code {
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
  max-width: 100%;
}

.btn-test-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: all var(--tr-fast);
  white-space: nowrap;
  max-width: 100%;
}

.btn-test-url:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}

@media (max-width: 900px) {
  .proposal-generator-card {
    padding: 32px 24px;
    margin-top: 32px;
  }
  .generator-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .generator-form-grid .gen-field:first-child {
    grid-column: span 2;
  }
  .generator-output-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .generator-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .proposal-generator-card {
    padding: 20px 14px;
    margin-top: 24px;
  }
  .generator-title {
    font-size: 19px;
    line-height: 1.3;
  }
  .generator-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .generator-form-grid .gen-field:first-child {
    grid-column: span 1;
  }
  .generator-output-box {
    padding: 14px 12px;
    gap: 12px;
  }
  .generator-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .generator-actions button,
  .generator-actions a {
    width: 100%;
    flex: none;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 42px;
  }
}

@media (max-width: 360px) {
  .proposal-generator-card {
    padding: 16px 10px;
  }
  .generator-output-box {
    padding: 12px 10px;
  }
  .generator-actions button,
  .generator-actions a {
    font-size: 12px;
    padding: 8px 10px;
  }
}


/* --- Global Body / HTML Lock when Modal is Active --- */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* --- B2B CONTACT & DEMO MODAL (PROTECTED BY CLOUDFLARE TURNSTILE) --- */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-smooth);
  box-sizing: border-box;
}

.lead-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal-card {
  width: 100%;
  max-width: 480px;
  margin: auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.2);
  padding: 32px 28px 24px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--tr-smooth);
}

.lead-modal-overlay.active .lead-modal-card {
  transform: translateY(0) scale(1);
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lead-modal-close:hover,
.lead-modal-close:active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.modal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #C7D2FE;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.modal-header-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-right: 36px;
}

.modal-header-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
}

.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  box-sizing: border-box;
  transition: all var(--tr-fast);
}

.contact-form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.turnstile-container {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 4px 0 2px;
  max-width: 100%;
  overflow: hidden;
}

.btn-contact-submit {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--tr-fast);
  cursor: pointer;
  border: none;
}

.btn-contact-submit:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 180px;
  line-height: 1.45;
  font-family: inherit;
}

/* DSGVO / GDPR Mandatory Consent Checkbox */
.contact-form-gdpr {
  margin: 3px 0 6px;
}

.gdpr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.gdpr-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.gdpr-checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.gdpr-checkbox-label input:checked + .gdpr-checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.gdpr-checkbox-label input:checked + .gdpr-checkbox-custom::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.gdpr-checkbox-label input:focus + .gdpr-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.gdpr-checkbox-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Fallback direct email and one-click copy row */
.modal-fallback-row {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.modal-fallback-email {
  color: #818CF8;
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--tr-fast);
}

.modal-fallback-email:hover {
  color: #A5B4FC;
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--tr-fast);
  user-select: none;
  -webkit-user-select: none;
}

.btn-copy-email:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy-email.copied {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Mobile Viewport Optimization (< 640px) e.g. Samsung S10 / iPhone */
@media (max-width: 640px) {
  .lead-modal-overlay {
    padding: 12px 8px;
    align-items: flex-start; /* Ensures top of modal & close button is NEVER pushed offscreen */
  }

  .lead-modal-card {
    padding: 22px 14px 18px;
    margin-top: 6px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
  }

  .lead-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.12);
  }

  .modal-header-badge {
    font-size: 11px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .modal-header-title {
    font-size: 18px;
    line-height: 1.25;
    padding-right: 38px;
    margin-bottom: 5px;
  }

  .modal-header-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .contact-form-grid {
    gap: 10px;
  }

  .contact-form-field label {
    font-size: 11px;
  }

  .contact-form-input,
  .contact-form-textarea {
    font-size: 16px !important; /* CRITICAL: >=16px disables mobile browser auto-zoom on input tap */
    padding: 9px 12px;
  }

  .gen-input {
    font-size: 16px !important; /* Prevents auto-zoom in proposal generator as well */
  }

  .btn-contact-submit {
    padding: 11px 16px;
    font-size: 14px;
  }
}

/* ==========================================================================
   LOOM / DEMO VIDEO MODAL & BUTTON (Prepared for Main Showroom)
   ========================================================================== */
.btn-video-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93C5FD;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--tr-fast);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.btn-video-demo:hover {
  background: rgba(37, 99, 235, 0.32);
  border-color: rgba(96, 165, 250, 0.8);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-video-demo:active {
  transform: translateY(0);
}

.btn-video-demo span:first-child {
  font-size: 11px;
  color: #60A5FA;
}

/* Hero Section Video CTA Button */
.btn-video-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #93C5FD;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.22);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-video-hero:hover {
  background: rgba(37, 99, 235, 0.32);
  border-color: rgba(147, 197, 253, 0.95);
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-video-hero:active {
  transform: translateY(0);
}

.btn-video-hero .video-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 9px;
  padding-left: 2px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  transition: transform var(--tr-fast);
}

.btn-video-hero:hover .video-play-icon {
  transform: scale(1.12);
  background: #60A5FA;
}

/* Showroom Section Header Video Trigger Bar */
.showroom-video-bar {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.video-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: min(96vw, calc((90vh - 54px) * 16 / 9), 1420px);
  max-height: 94vh;
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 80px rgba(37, 99, 235, 0.35);
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.hidden .video-modal-container {
  transform: scale(0.96);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #94A3B8;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--tr-fast);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
}

.video-responsive-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #030712;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video Modal Footer & Mobile Helpers */
.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(9, 13, 22, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-muted);
  gap: 16px;
}

.video-rotate-tip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #94A3B8;
  font-size: 12.5px;
}

.video-rotate-tip .rotate-icon {
  font-size: 14px;
}

.video-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-video-native-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #93C5FD;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  transition: all var(--tr-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-video-native-link:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #FFFFFF;
  border-color: rgba(96, 165, 250, 0.7);
}

.btn-video-try-live {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.35);
}

.btn-video-try-live:hover {
  background: rgba(16, 185, 129, 0.28);
  color: #A7F3D0;
  border-color: rgba(16, 185, 129, 0.7);
}

@media (max-width: 680px) {
  .btn-video-demo {
    font-size: 11.5px;
    padding: 6px 12px;
  }
  .video-modal-overlay {
    padding: 0 4px; /* Maximum edge-to-edge width on mobile phones */
  }
  .video-modal-container {
    border-radius: var(--radius-md);
  }
  .video-modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .video-modal-footer {
    padding: 10px 12px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .video-rotate-tip {
    font-size: 11.5px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
  }
  .video-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .btn-video-native-link {
    font-size: 11.5px;
    padding: 7px 9px;
    white-space: nowrap;
    justify-content: center;
  }
  .btn-video-native-link.btn-loom-link {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    border-color: rgba(255, 255, 255, 0.12);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .video-modal-overlay {
    padding: 0;
    background: #000000;
  }
  .video-modal-container {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .video-responsive-wrapper {
    height: 100vh;
    padding-bottom: 0;
  }
  .video-modal-footer {
    display: none;
  }
}
