/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700;800&family=Inconsolata:wght@200..900&display=swap');

:root {
  --primary-color: #e10589;
  --primary-hover: #c1056f;
  --secondary-color: #39e6a5;
  --secondary-hover: #2dd693;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --background: #ffffff;
  --background-light: #fafbfc;
  --background-gray: #f9fafb;
  --success-color: #10b981;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
html {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inconsolata', monospace;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 50px; /* Adjust based on header height */
}

/* Headings use Karla font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .page-title {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
}

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

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Global Email Link Styles */
a[href^="mailto:"] {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

a[href^="mailto:"]:hover {
  color: var(--primary-hover);
  text-decoration-color: var(--primary-hover);
  text-underline-offset: 3px;
}

/* Header Styles */
.header {
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo .logo {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

.header-logo .logo:hover {
  opacity: 0.8;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-link:hover {
  color: var(--primary-hover);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
}

.lang-switch:hover {
  color: var(--text-primary);
  background-color: var(--background-gray);
  border-color: var(--border-color);
}

.flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.language-text {
  font-size: 0.875rem;
  color: inherit;
  font-weight: 500;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 2rem;
  height: 0.25rem;
  background: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

/* Main Layout */
.main-container {
  display: flex;
  flex: 1;
  background: var(--background);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start; /* Align items to top for sticky sidebar */
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: var(--background);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  min-height: calc(100vh - 120px);
  position: sticky;
  top: 50px; /* Position under the header */
  align-self: flex-start; /* Prevents sidebar from stretching full height */
  max-height: calc(100vh - 50px); /* Limit height to viewport minus header */
  overflow-y: auto; /* Allow scrolling if content is too long */
  z-index: 5; /* Lower than header but above content */
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

.sidebar-header {
  padding: 3rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-nav {
  padding: 1.5rem 0 1rem;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background-color: var(--background-gray);
  border-left-color: var(--border-color);
}

.sidebar-nav a.active {
  color: var(--primary-color);
  background-color: #fdf2f8;
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 3rem 3rem 2rem 3rem;
  background: var(--background);
  overflow-y: auto;
}

/* Legal pages specific spacing - more space from header */
.legal-content-area,
.main-container .content-area {
  padding-top: 5rem; /* Increased from 4rem for even more space from header */
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  margin-top: 2rem; /* Increased from 1.5rem for more space */
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  font-weight: normal;
}

/* Content Styles */
.content {
  max-width: 800px;
  line-height: 1.7;
}

.content h1 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.content h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.content h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem 0;
}

.content h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
}

.content p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.content ul,
.content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.content a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.content th,
.content td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}

.content th {
  background: var(--background-gray);
  font-weight: 600;
  color: var(--text-primary);
}

.content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.content code {
  background: var(--border-light);
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-family: 'Monaco', 'Courier New', monospace;
}

.content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.content strong {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Inconsolata', monospace;
}

.content em {
  font-style: italic;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: 'Inconsolata', monospace;
  background: var(--background);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(225, 5, 137, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inconsolata', monospace;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-color);
  color: var(--background);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
}

/* Override button width for hero section - keep compact */
.hero-main .btn {
  width: auto !important;
}

/* Footer Styles */
footer {
  width: 100%;
  border-top: 1px solid var(--border-color);
  background: var(--background-light);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Footer Brand Section with Newsletter */
.footer-brand {
  max-width: 400px;
}

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

.footer-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Newsletter Section */
.newsletter-section {
  margin-bottom: 2rem;
}

.newsletter-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.newsletter-form .form-input {
  flex: 1;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
}

.newsletter-form .btn-footer {
  flex-shrink: 0;
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Target the actual button classes used in PHP footer */
.newsletter-form .btn.btn-primary {
  flex-shrink: 0;
  padding: 0.625rem 0.875rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  border-radius: var(--border-radius) !important;
  background: var(--primary-color) !important;
  color: white !important;
  border: 2px solid var(--primary-color) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  min-height: 2.25rem !important;
  height: 2.25rem !important;
}

.newsletter-form .btn.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.newsletter-disclaimer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.newsletter-disclaimer a:hover {
  text-decoration: underline;
}

/* Newsletter Message Styles */
.newsletter-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.newsletter-message.success {
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #15803d;
}

.newsletter-message.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #dc2626;
}

/* Contact Form Message Styles */
.contact-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-message.success {
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #15803d;
}

.contact-message.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #dc2626;
}

/* Language Switcher in Footer */
.footer-language-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-language-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Footer Navigation */
.footer-nav {
  min-width: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-col h3 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.heart-icon {
  color: var(--primary-color);
}

.fire-icon {
  color: #f97316;
}

.compliance-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: 140px; /* Leave space for chat button */
}

.compliance-badge {
  height: 40px;
  max-width: 60px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.compliance-badge:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Hero Sections */

/* Main Hero (Homepage) - Full height with animated waveform */
.hero-main {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Enhanced Canvas Wave Background */
.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(225, 5, 137, 0.02) 0%, rgba(57, 230, 165, 0.01) 100%);
  z-index: 1;
}

.hero-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(225, 5, 137, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(57, 230, 165, 0.1) 0%, transparent 50%);
  animation: siriPulse 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes siriPulse {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Canvas Wave Animation - Centered in hero section */
.hero-wave-canvas {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 320px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

/* Secondary Hero (Other pages) - Clean, simple approach */
.hero-secondary {
  padding: 8rem 0 5rem;
  background: #f8fafc;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

/* Simple subtle background without SVG waveforms */
.hero-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(225, 5, 137, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(57, 230, 165, 0.02) 0%, transparent 50%);
  z-index: 1;
}

/* Additional decorative elements */
.hero-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(225, 5, 137, 0.02) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 80%, rgba(57, 230, 165, 0.015) 0%, transparent 40%);
  z-index: 1;
}

/* Hero Container (shared between all hero types) */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Main hero specific container layout */
.hero-main .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Generic hero container layout for two-column heroes */
.hero.two-column .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Hero content styling for two-column layout */
.hero.two-column .hero-content {
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Hero Content Styles */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Main Hero Title - Creative gradient with enhanced colors */
.hero-main .hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Karla', sans-serif;
  position: relative;
  z-index: 3;
  background: linear-gradient(
    125deg, 
    var(--primary-color) 0%,
    #c21765 25%,
    var(--primary-color) 45%,
    #2dd693 70%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-primary); /* Fallback */
  text-shadow: none;
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Subtle gradient animation for main hero title */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Fallback for main hero title */
@supports not (-webkit-background-clip: text) {
  .hero-main .hero-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
    animation: none;
  }
}

.hero .btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(57, 230, 165, 0.2);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 230, 165, 0.3);
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual (only for main hero) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--background);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(225, 5, 137, 0.1);
}

.demo-interface {
  text-align: center;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.demo-title {
  font-weight: 600;
  color: var(--text-primary);
}

.demo-status {
  background: var(--success-color);
  color: var(--background);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.demo-waveform {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 0.25rem;
  margin: 1.5rem 0;
  height: 90px;
  position: relative;
}

.wave {
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(225, 5, 137, 0.3);
  position: absolute;
  bottom: 0;
}

.wave:nth-child(1) {
  animation-delay: 0s;
  animation-duration: 1.2s;
  left: calc(50% - 12px);
}

.wave:nth-child(2) {
  animation-delay: 0.1s;
  animation-duration: 1.8s;
  left: calc(50% - 6px);
}

.wave:nth-child(3) {
  animation-delay: 0.2s;
  animation-duration: 1.4s;
  left: calc(50%);
}

.wave:nth-child(4) {
  animation-delay: 0.3s;
  animation-duration: 2.0s;
  left: calc(50% + 6px);
}

.wave:nth-child(5) {
  animation-delay: 0.4s;
  animation-duration: 1.6s;
  left: calc(50% + 12px);
}

@keyframes wave {
  0%, 100% { 
    height: 20px; 
    background: var(--primary-color);
    box-shadow: 0 0 5px rgba(225, 5, 137, 0.3);
  }
  25% { 
    height: 65px; 
    background: linear-gradient(45deg, var(--primary-color), #9333ea);
    box-shadow: 0 0 15px rgba(225, 5, 137, 0.5);
  }
  50% { 
    height: 45px; 
    background: #9333ea;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
  }
  75% { 
    height: 80px; 
    background: linear-gradient(45deg, #9333ea, var(--primary-color));
    box-shadow: 0 0 20px rgba(225, 5, 137, 0.6);
  }
}

.demo-transcript {
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo-transcript p {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  background: var(--border-light);
}

.ai-response {
  background: #e0f2fe !important;
  color: #0369a1;
}

/* Features Section */
.features {
  padding: 2rem 0 6rem;
  background: var(--background);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

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

.feature-card {
  text-align: left;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: var(--background-light);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  top: 2rem;
  left: 2rem;
  margin: 0;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-color);
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0 2rem 64px;
  text-align: left;
  line-height: 1.3;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  text-align: left;
  flex-grow: 1;
}

/* Partner page specific styling for feature cards */
.feature-card ul {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
  text-align: left;
  flex-grow: 1;
}

.feature-card li {
  text-align: left;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-card li:last-child {
  margin-bottom: 0;
}

/* Ensure buttons align at bottom of feature cards */
.feature-card .btn {
  margin-top: auto;
  align-self: flex-start;
  text-align: center;
}

/* Partnership feature list styling */
.feature-card ul li svg {
  width: 16px;
  height: 16px;
  stroke: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-card ul li span,
.feature-card ul li {
  text-align: left;
}

/* CTA Badge */
.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

/* Hero Badge - variant for hero sections with pink styling */
.hero-badge {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

/* CTA Section */
.cta {
  background: var(--primary-color);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: white;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
}

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

.cta .btn {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.cta .btn-primary {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

.cta .btn-primary:hover {
  background: var(--background-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--background-light);
}

.cta .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.cta .btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta .btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

.cta .btn-small {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
}

.stat-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .mission-section {
    padding: 4rem 0;
  }
  
  .mission-section h2 {
    font-size: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-section .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Mobile Navigation Styles */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--background);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  padding: 6rem 2rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-color);
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

.mobile-cta {
  margin-top: 1rem;
  text-align: center;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.mobile-language-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  transition: color 0.2s ease;
}

.mobile-lang-switch:hover {
  color: var(--primary-color);
}

/* Hide chat widget when mobile menu is active */
.mobile-nav.active ~ .livekit-widget,
.mobile-nav.active ~ .fixed-bottom-group,
.mobile-nav.active ~ * .livekit-widget,
.mobile-nav.active ~ * .widget-toggle,
.mobile-nav.active ~ * .widget-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
  transition: all 0.3s ease !important;
}

/* Alternative approach - hide when mobile nav is active using adjacent selectors */
body:has(.mobile-nav.active) .livekit-widget,
body:has(.mobile-nav.active) .widget-toggle,
body:has(.mobile-nav.active) .widget-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
  transition: all 0.3s ease !important;
}

/* Equal opportunity disclaimer */
.disclaimer-section {
  padding: 2rem 0;
  background: var(--background-light);
  text-align: center;
}

.disclaimer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Sticky Header Styles */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  background: var(--secondary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-1px);
}

/* Compelling Contact Form */
.contact-form {
  background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
  padding: 3rem;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem; /* Add more space after contact form */
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.contact-form .page-header {
  text-align: center;
  border-bottom: none;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.contact-form .page-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-form .page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: normal;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-input,
.contact-form .form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: 'Inconsolata', monospace;
  background: var(--background);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(225, 5, 137, 0.1);
  transform: translateY(-2px);
}

.contact-form .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 5, 137, 0.3);
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 5, 137, 0.4);
}

/* Attractive Job Listings */
.job-listing {
  background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-listing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.job-listing:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.job-listing h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.job-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(225, 5, 137, 0.2);
}

.job-location {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-location::before {
  content: '📍';
  font-size: 1rem;
}

.job-listing p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.1rem;
  flex-grow: 1;
}

.job-listing h4 {
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.job-listing ul {
  margin-bottom: 2rem;
  padding-left: 0;
  color: var(--text-primary);
  flex-grow: 1;
}

.job-listing li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.job-listing li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Partnership journey specific styling - align detail sections at bottom */
.job-listing > div:last-child {
  margin-top: auto;
}

/* For partnership journey cards, ensure the detail div is at bottom */
.partnership-step-detail {
  margin-top: auto !important;
}

/* For partnership journey cards, ensure the detail div (with background-light) is at bottom */
.job-listing > div[style*="background: var(--background-light)"] {
  margin-top: auto !important;
}

.job-listing .btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  color: var(--text-primary);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(57, 230, 165, 0.2);
  margin-top: auto;
}

.job-listing .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 230, 165, 0.3);
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%);
}

.job-listing .btn::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.job-listing .btn:hover::after {
  transform: translateX(3px);
}

/* Form Styling Enhancements */
.required {
  color: var(--primary-color);
  font-weight: bold;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-success {
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #15803d;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  font-weight: 500;
}

.text-center {
  text-align: center;
}

/* Form Container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-container {
    flex-direction: column;
  }

  /* Hide desktop sidebar on tablet and mobile */
  .sidebar.desktop-only {
    display: none;
  }

  /* Show mobile pills navigation */
  .legal-pills-container.mobile-only {
    display: block;
  }

  /* Ensure content area takes full width when sidebar is hidden */
  .content-area {
    width: 100%;
    max-width: none;
  }
  
  .partnership-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .partnership-image {
    order: -1;
    height: 300px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Tablet specific adjustments */
@media (max-width: 900px) {
  .hero-main .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-main::after {
    width: 200%;
    left: -50%;
    animation-duration: 5s;
  }
}

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

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .form-input,
  .newsletter-form .btn-footer {
    width: 100%;
  }

  /* Remove the old footer-columns rule - now handled by specific breakpoints above */
  .footer-container {
    padding: 2rem 1rem;
  }

  .content-area {
    padding: 2rem 1rem 1rem 1rem;
    width: 100%;
    max-width: none;
  }

  /* Legal pages mobile spacing */
  .main-container .content-area {
    padding-top: 4rem; /* Increased mobile spacing to maintain proportions */
  }

  /* Legal page specific mobile layout */
  .legal-pills-container + .content-area {
    padding-top: 1.5rem; /* Slightly more space when pills navigation is present */
  }

  .page-title {
    font-size: 2rem;
  }

  .content h1 {
    font-size: 1.75rem;
  }

  footer {
    margin-top: auto;
  }

  /* Responsive styles for both hero types */
  .hero-main {
    min-height: 75vh;
    padding: 0 0 2rem;
    margin-top: 0;
    background: #f8fafc;
    overflow: hidden;
  }

  /* Mobile canvas positioning - centered in hero */
  .hero-wave-canvas {
    height: 240px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero-secondary {
    padding: 5rem 0 4rem;
  }

  /* Mobile-optimized backgrounds for secondary hero */
  .hero-secondary::before {
    background: 
      radial-gradient(ellipse at 30% 30%, rgba(225, 5, 137, 0.025) 0%, transparent 60%),
      radial-gradient(ellipse at 70% 70%, rgba(57, 230, 165, 0.015) 0%, transparent 60%);
  }

  .hero-secondary::after {
    background: 
      radial-gradient(ellipse at 50% 20%, rgba(225, 5, 137, 0.015) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 80%, rgba(57, 230, 165, 0.01) 0%, transparent 50%);
  }

  /* Mobile adjustments for generic hero */
  .hero {
    padding: 5rem 0 4rem;
  }

  /* Keep pink-prominent gradient effect for generic hero titles on mobile */
  .hero h1,
  .about-hero h1,
  .hero-section h1 {
    font-size: 2rem;
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-color) 40%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary); /* Fallback */
    background-size: 200% 100%;
    animation: gradientShift 8s ease-in-out infinite;
  }

  /* Mobile-optimized backgrounds for generic heroes */
  .hero::before,
  .about-hero::before,
  .hero-section::before {
    background: 
      radial-gradient(ellipse at center top, rgba(225, 5, 137, 0.015) 0%, transparent 70%),
      radial-gradient(ellipse at 30% 80%, rgba(57, 230, 165, 0.01) 0%, transparent 50%);
  }

  .hero-secondary .hero-title {
    font-size: 2rem;
    /* Keep pink-prominent gradient effect on mobile */
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-color) 40%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary); /* Fallback */
    background-size: 200% 100%;
    animation: gradientShift 8s ease-in-out infinite;
  }

  /* Missing mobile hero layout styles */
  .hero .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: auto;
  }

  .cta {
    padding: 6rem 0;
  }

  .cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }
  
  .partnership-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .partnership-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .partnership-card {
    padding: 2rem;
    gap: 1.5rem;
    text-align: left;
  }
  
  .partnership-card h2 {
    font-size: 2rem;
    text-align: left;
  }
  
  .partnership-image {
    height: 250px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefit-card {
    padding: 2rem;
    text-align: left;
  }
  
  .journey-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .journey-step {
    padding: 2rem;
  }
  
  .step-detail {
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }
  
  .step-value {
    text-align: left;
  }
  
  /* Partnership step detail specific styling for job-listing cards */
  .partnership-step-detail {
    margin-top: auto !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    text-align: left;
    min-height: auto;
  }

  .partnership-step-detail > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .partnership-step-detail span:first-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: left;
    flex: 1;
    word-break: normal;
    hyphens: auto;
    white-space: normal;
    overflow: visible;
    line-height: 1.4;
    min-width: 120px;
  }

  .partnership-step-detail span:last-child {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
    white-space: normal;
    flex-shrink: 0;
    word-break: normal;
    line-height: 1.4;
    min-width: fit-content;
  }

  /* For longer text on mobile, allow controlled wrapping */
  @media (max-width: 480px) {
    .partnership-step-detail {
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
    }
    
    .partnership-step-detail > div {
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
    }
    
    .partnership-step-detail span:first-child {
      text-align: left;
      flex: none;
      min-width: auto;
    }
    
    .partnership-step-detail span:last-child {
      text-align: left;
      flex: none;
      min-width: auto;
    }
    
    .feature-card h3 {
      margin: 0.5rem 0 1.5rem 64px;
    }
  }
}

@media (max-width: 640px) {
  .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .compliance-badges {
    justify-content: flex-start;
    margin-right: 60px; /* Reduced space for mobile chat button */
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-language-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page-specific styles */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.7;
}

.prose h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.prose a {
  color: var(--primary-color);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--secondary-color);
}

/* Mission Section */
.mission-section {
  padding: 6rem 0;
  background: var(--background);
}

.mission-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mission-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.mission-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

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

.value-card {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Hero specific button styling - matches Apply Now button exactly */
.hero-main .btn.btn-secondary.btn-large {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%) !important;
  color: var(--text-primary) !important;
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: var(--border-radius) !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 4px 15px rgba(57, 230, 165, 0.2) !important;
  min-width: auto !important;
  width: auto !important;
}

.hero-main .btn.btn-secondary.btn-large:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(57, 230, 165, 0.3) !important;
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%) !important;
}

.hero-main .btn.btn-secondary.btn-large::after {
  content: '→' !important;
  font-size: 1.2rem !important;
  transition: transform 0.2s ease !important;
}

.hero-main .btn.btn-secondary.btn-large:hover::after {
  transform: translateX(3px) !important;
}

/* Legal Table Styles */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  table-layout: fixed !important;
}

.legal-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
}

.legal-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

/* Default table layout - auto width */
.legal-table th,
.legal-table td {
  width: auto !important;
}

/* Two-column table layout */
.legal-table.two-column th:first-child,
.legal-table.two-column td:first-child {
  width: 25% !important;
}

.legal-table.two-column th:nth-child(2),
.legal-table.two-column td:nth-child(2) {
  width: 75% !important;
}

/* Three-column table layout for billing rates */
.legal-table.billing-rates th:first-child,
.legal-table.billing-rates td:first-child {
  width: 35% !important;
}

.legal-table.billing-rates th:nth-child(2),
.legal-table.billing-rates td:nth-child(2) {
  width: 15% !important;
  text-align: center;
}

.legal-table.billing-rates th:nth-child(3),
.legal-table.billing-rates td:nth-child(3) {
  width: 50% !important;
}

/* Four-column table layout for cookies */
.legal-table.four-column th:first-child,
.legal-table.four-column td:first-child {
  width: 25% !important;
}

.legal-table.four-column th:nth-child(2),
.legal-table.four-column td:nth-child(2) {
  width: 40% !important;
}

.legal-table.four-column th:nth-child(3),
.legal-table.four-column td:nth-child(3) {
  width: 20% !important;
}

.legal-table.four-column th:nth-child(4),
.legal-table.four-column td:nth-child(4) {
  width: 15% !important;
}

.legal-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.4;
  vertical-align: top;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: var(--background-gray);
}

.legal-table code {
  background: var(--background-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-family: 'Monaco', 'Courier New', monospace;
  font-weight: 500;
}

/* Mobile responsiveness for legal tables */
@media (max-width: 768px) {
  .legal-table {
    font-size: 0.8rem;
  }
  
  .legal-table th,
  .legal-table td {
    padding: 0.4rem 0.5rem;
  }
  
  .legal-table th {
    font-size: 0.75rem;
  }
  
  .legal-table code {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.cookie-banner-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  flex-shrink: 0;
}

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

.cookie-banner-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.cookie-banner-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.cookie-banner-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-banner-link a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.cookie-banner-actions {
  flex-shrink: 0;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Cookie Button Styles */
.btn-cookie {
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inconsolata', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 120px;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border-color: var(--primary-color);
}

.btn-cookie-accept:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 5, 137, 0.3);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-cookie-reject:hover {
  background: var(--background-gray);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-cookie-customize {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  color: var(--text-primary);
  border-color: var(--secondary-color);
}

.btn-cookie-customize:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(57, 230, 165, 0.3);
}

.btn-cookie-save {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.btn-cookie-save:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Cookie Modal Styles */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-container {
  position: relative;
  background: var(--background);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: cookieModalSlideIn 0.3s ease-out;
}

@keyframes cookieModalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  background: var(--background-gray);
  color: var(--text-primary);
}

.cookie-modal-close svg {
  width: 20px;
  height: 20px;
}

.cookie-modal-content {
  padding: 1rem 2rem 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-modal-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-category {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  background: var(--background-light);
  transition: border-color 0.2s ease;
}

.cookie-category:hover {
  border-color: var(--border-color);
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.cookie-category-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-category-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-category-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Cookie Switch Styles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: all 0.3s ease;
  border-radius: 24px;
}

.cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(26px);
}

.cookie-switch input:disabled + .cookie-switch-slider {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-switch-slider:before {
  transform: translateX(26px);
}

.cookie-modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--background-light);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cookie {
    width: 100%;
    min-width: auto;
    padding: 1rem;
    font-size: 1rem;
  }

  .cookie-modal-container {
    margin: 0.5rem;
    max-height: 95vh;
  }

  .cookie-modal-header,
  .cookie-modal-content,
  .cookie-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-category-toggle {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cookie-banner-container {
    padding: 0.75rem;
  }

  .cookie-banner-text h3 {
    font-size: 1rem;
  }

  .cookie-banner-text p {
    font-size: 0.8rem;
  }

  .btn-cookie {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .cookie-modal-header h3 {
    font-size: 1.25rem;
  }

  .cookie-category {
    padding: 1rem;
  }

  .footer-cookie-settings {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .cookie-settings-link {
    font-size: 0.8rem;
    padding: 0.375rem 0;
  }
}

/* Footer Cookie Settings Link */
.footer-cookie-settings {
  margin-top: 1rem;
}

.cookie-settings-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.cookie-settings-link:hover {
  color: var(--primary-color);
}

.cookie-settings-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cookie-settings-link:hover svg {
  transform: rotate(45deg);
}

/* Spacing Utilities */
.section-spacing {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.section-spacing-top {
  margin-top: 4rem;
}

.section-spacing-bottom {
  margin-bottom: 4rem;
}

.section-spacing-large {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.section-spacing-small {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section-spacing {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
  
  .section-spacing-top {
    margin-top: 3rem;
  }
  
  .section-spacing-bottom {
    margin-bottom: 3rem;
  }
  
  .section-spacing-large {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
  
  .section-spacing-small {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Text Center Utility */
.text-center {
  text-align: center;
}

/* Footer Cookie Policy Link */
.footer-cookie-link {
  margin: 0;
  padding: 0;
  border-top: none;
}

.footer-cookie-link a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.375rem 0;
  justify-content: flex-start;
}

.footer-cookie-link a:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}

.footer-cookie-link a::before {
  content: '🍪';
  font-size: 0.875rem;
  margin-right: 0.125rem;
  transition: transform 0.2s ease;
}

.footer-cookie-link a:hover::before {
  transform: scale(1.1);
}

/* Platform Capabilities Styles */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.capability-category {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.capability-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.capability-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.capability-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.capability-list li:last-child {
  border-bottom: none;
}

.capability-list li:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.capability-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .capability-category {
    padding: 1.5rem;
  }
  
  .capability-category-title {
    font-size: 0.875rem;
  }
  
  .capability-list li {
    font-size: 0.9rem;
    padding: 0.625rem 0;
  }
}

.hero-visual {
  order: 1; /* Changed from -1 to put demo card after title */
}

.hero-content {
  order: 0; /* Ensure title comes first */
  text-align: center; /* Center align on mobile */
}

/* Hero Main Subtitle with Semi-transparent Background Box */
.hero-main .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 3;
}

/* Hero Main Button Container with Extra Spacing */
.hero-main .hero-buttons {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.hero-visual {
  order: 1; /* Changed from -1 to put demo card after title */
}

.hero-card {
  max-width: 100%;
  padding: 1.5rem;
}

/* Mobile responsive styles for hero subtitle box */
.hero-main .hero-subtitle {
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  margin-bottom: 2rem !important;
  border-radius: var(--border-radius) !important;
}

.hero-main .hero-buttons {
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
}

/* Keep gradient effect for generic hero titles on mobile */
.hero h1,
.about-hero h1,
.hero-section h1 {
  font-size: 2rem;
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-color) 40%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-primary); /* Fallback */
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Mobile-optimized waveforms for generic heroes */
.hero::before,
.about-hero::before,
.hero-section::before {
  background: 
    radial-gradient(ellipse at center top, rgba(225, 5, 137, 0.015) 0%, transparent 70%),
    radial-gradient(ellipse at 30% 80%, rgba(57, 230, 165, 0.01) 0%, transparent 50%);
}

/* Additional decorative elements */
.hero-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 20%, rgba(225, 5, 137, 0.02) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 80%, rgba(57, 230, 165, 0.015) 0%, transparent 40%);
  z-index: 1;
}

/* Simple container without complications */
.hero-secondary .hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Clear, visible hero title with pink-prominent gradient effect */
.hero-secondary .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Karla', sans-serif;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-color) 40%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-primary); /* Fallback for browsers that don't support background-clip */
  text-shadow: none; /* Remove any text shadow to keep gradient clean */
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .hero-secondary .hero-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
    animation: none;
  }
}

/* Clear, visible hero subtitle */
.hero-secondary .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #374151;
  font-weight: 400;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* Generic Hero (fallback for pages using plain .hero class, .about-hero, .hero-section) */
.hero,
.about-hero,
.hero-section {
  padding: 8rem 0 5rem;
  background: #f8fafc;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Simple backgrounds for generic heroes */
.hero::before,
.about-hero::before,
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center top, rgba(225, 5, 137, 0.02) 0%, transparent 70%),
    radial-gradient(ellipse at 30% 80%, rgba(57, 230, 165, 0.015) 0%, transparent 50%);
  z-index: 1;
}

.hero .container,
.about-hero .container,
.hero-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Generic hero titles with pink-prominent gradient effect */
.hero h1,
.about-hero h1,
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-color) 40%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-primary); /* Fallback for browsers that don't support background-clip */
  text-shadow: none; /* Remove any text shadow to keep gradient clean */
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Fallback for generic hero titles */
@supports not (-webkit-background-clip: text) {
  .hero h1,
  .about-hero h1,
  .hero-section h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
    animation: none;
  }
}

.hero .hero-subtitle,
.about-hero .hero-subtitle,
.hero-section .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* ================================
   PARTNERSHIP PAGE STYLES
   ================================ */

/* Partnership Types Section */
.partnership-types {
  background: var(--background);
}

.partnership-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.partnership-tab {
  padding: 1rem 2rem;
  background: var(--background-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.partnership-tab:hover {
  border-color: var(--secondary-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.partnership-tab.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.partnership-content {
  display: none;
}

.partnership-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.partnership-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.partnership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.partnership-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partnership-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partnership-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 2;
}

.solution-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.technology-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
}

.integration-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.affiliate-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.partnership-card h2 {
  font-family: 'Karla', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.partnership-card > .partnership-info > p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.partnership-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partnership-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.partnership-benefits svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary-color);
  flex-shrink: 0;
}

.partnership-image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  height: 400px;
}

.partnership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Fallback styling for missing images */
.partnership-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--background-light), var(--background-gray));
  z-index: -1;
}

.partnership-card:hover .partnership-image img {
  transform: scale(1.05);
}

.partnership-badge, .quick-setup-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.partnership-badge {
  top: 1rem;
  right: 1rem;
}

.quick-setup-badge {
  bottom: 1rem;
  left: 1rem;
}

.partnership-badge svg, .quick-setup-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--secondary-color);
}

/* Why Partner Section */
.why-partner {
  background: var(--background-light);
}

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

.section-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-primary);
  border: 1px solid var(--secondary-color);
  border-radius: 50px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  margin-top: 2rem; /* Add more space above the badge */
}

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

.benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  text-align: left;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
  stroke-width: 2;
}

.benefit-card h3 {
  font-family: 'Karla', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Partnership Journey Section */
.partnership-journey {
  background: var(--background);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
}

.journey-step {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.3s ease;
}

.journey-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 2.5rem;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.step-content h3 {
  font-family: 'Karla', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
  text-align: left;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.step-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  text-align: left;
}

.step-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-align: left;
}

.step-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

/* Partnership step detail specific styling for job-listing cards */
.partnership-step-detail {
  margin-top: auto !important;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  text-align: left;
  min-height: auto;
}

.partnership-step-detail > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}

.partnership-step-detail span:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-align: left;
  flex: 1;
  word-break: normal;
  hyphens: auto;
  white-space: normal;
  overflow: visible;
  line-height: 1.4;
  min-width: 120px;
}

.partnership-step-detail span:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
  white-space: normal;
  flex-shrink: 0;
  word-break: normal;
  line-height: 1.4;
  min-width: fit-content;
}

/* For longer text on mobile, allow controlled wrapping */
@media (max-width: 480px) {
  .partnership-step-detail {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .partnership-step-detail > div {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .partnership-step-detail span:first-child {
    text-align: left;
    flex: none;
    min-width: auto;
  }
  
  .partnership-step-detail span:last-child {
    text-align: left;
    flex: none;
    min-width: auto;
  }
  
  .feature-card h3 {
    margin: 0.5rem 0 1.5rem 64px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .partnership-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .partnership-image {
    order: -1;
    height: 300px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .partnership-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .partnership-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .partnership-card {
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .partnership-card h2 {
    font-size: 2rem;
  }
  
  .partnership-image {
    height: 250px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefit-card {
    padding: 2rem;
    text-align: center;
  }
  
  .journey-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .journey-step {
    padding: 2rem;
  }
  
  .step-detail {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .step-value {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .partnership-card {
    padding: 1.5rem;
  }
  
  .partnership-card h2 {
    font-size: 1.75rem;
  }
  
  .footer-col h3 {
    font-size: 0.8rem;
  }
  
  .footer-col a {
    font-size: 0.95rem;
  }
  
  .footer-col li {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 600px) and (min-width: 320px) {
  .footer-columns {
    gap: 2.5rem;
  }

  .footer-col h3 {
    font-size: 0.875rem;
  }

  .footer-col a {
    font-size: 1.125rem;
    white-space: normal;
  }

  .footer-col li {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 319px) {
  .footer-columns {
    gap: 2rem;
  }

  .footer-col h3 {
    font-size: 0.8rem;
  }

  .footer-col a {
    font-size: 1rem;
    white-space: normal;
  }

  .footer-col li {
    margin-bottom: 0.5rem;
  }
}

/* Header specific button styling - match newsletter button height exactly */
.header-nav .btn.btn-primary.btn-small,
.desktop-nav .btn.btn-primary.btn-small {
  padding: 0.625rem 0.875rem !important;
  font-size: 0.875rem !important;
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  box-sizing: border-box !important;
}

.header-nav .btn.btn-outline.btn-small,
.desktop-nav .btn.btn-outline.btn-small {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  box-sizing: border-box !important;
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

/* Ensure all content text elements use Inconsolata font consistently */
.content,
.content p,
.content span,
.content div,
.content strong,
.content b,
.content em,
.content i,
.legal-content,
.legal-content p,
.legal-content span,
.legal-content div,
.legal-content strong,
.legal-content b,
.legal-content em,
.legal-content i {
  font-family: 'Inconsolata', monospace;
}

/* Legal page specific mobile layout */
.legal-pills-container + .content-area {
  padding-top: 1rem;
}

/* Mobile Pills Navigation Styles */
.legal-pills-container {
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0 1rem 0; /* Increased top padding for header spacing */
  display: none; /* Hidden by default, shown on mobile */
  position: sticky;
  top: 50px; /* Account for header height - adjust based on your header */
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add shadow to make it stand out */
}

.legal-pills-header {
  padding: 0 1rem 1rem 1rem; /* Increased bottom padding */
}

.legal-pills-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.legal-pills-nav {
  position: relative;
}

.legal-pills-scroll {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 0.5rem 1rem;
  flex-wrap: wrap; /* Allow pills to wrap to next lines */
  /* Remove horizontal scroll properties since we're now wrapping */
}

/* Remove webkit scrollbar hiding since we're not scrolling horizontally anymore */

.legal-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--background-gray);
  border: 1px solid var(--border-color);
  border-radius: 9999px; /* Fully rounded pills */
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-height: 36px;
  box-sizing: border-box;
  /* Remove scroll-snap-align since we're not scrolling */
}

.legal-pill:hover {
  color: var(--text-primary);
  background: var(--background);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-pill.active {
  color: white;
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(225, 5, 137, 0.3);
}

.legal-pill.disabled {
  color: var(--text-muted);
  background: var(--background-light);
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.legal-pill.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Smaller mobile screens adjustments for pills */
@media (max-width: 480px) {
  .legal-pills-container {
    padding: 1.5rem 0 0.75rem 0; /* Adjust for smaller screens */
    top: 45px; /* Adjust for potentially smaller header on mobile */
  }
  
  .legal-pills-header {
    padding: 0 0.75rem 0.75rem 0.75rem;
  }
  
  .legal-pills-title {
    font-size: 1rem;
  }
  
  .legal-pills-scroll {
    padding: 0 0.75rem 0.5rem 0.75rem;
    gap: 0.375rem;
  }
  
  .legal-pill {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 32px;
  }
}

/* Legal Content Consistent Styling */
.content p,
.content li,
.content span,
.content div:not(.page-header):not(.sidebar):not(.legal-pills-container) {
  color: var(--text-primary) !important;
  font-family: 'Inconsolata', monospace !important;
  line-height: 1.7 !important;
}

/* Legal content specific overrides for consistency */
.legal-content,
.legal-content *,
.main-container .content-area .content,
.main-container .content-area .content *,
.main-container .content-area p,
.main-container .content-area li,
.main-container .content-area span,
.main-container .content-area div:not(.page-header):not(.sidebar):not(.legal-pills-container) {
  color: var(--text-primary) !important;
  font-family: 'Inconsolata', monospace !important;
}

/* Legal links styling */
.content a,
.legal-content a {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
  font-family: 'Inconsolata', monospace !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.content a:hover,
.legal-content a:hover {
  color: var(--primary-hover) !important;
  text-decoration: underline !important;
}

.content a:visited,
.legal-content a:visited {
  color: var(--primary-color) !important;
}

/* Legal headings consistency */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: var(--text-primary) !important;
  font-family: 'Karla', sans-serif !important;
}

/* Sidebar adjustments for smaller screens */
.sidebar {
  top: 45px; /* Adjust for potentially smaller mobile header */
  max-height: calc(100vh - 45px);
}

.page-title {
  font-size: 2rem;
}

/*
================================================================================
  Component: Testimonial Rotator
================================================================================
*/
.testimonial-rotator {
    position: relative;
    padding: 2rem;
    background-color: var(--color-background-offset);
    border-radius: var(--border-radius-large);
    overflow: hidden;
}

/*
================================================================================
  Print Styles for PDF Generation
================================================================================
*/
@media print {
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    font-family: 'Karla', sans-serif !important;
    font-weight: 600 !important;
  }

  h1 + p, h2 + p, h3 + p, h4 + p,
  h5 + p, h6 + p,
  .page-title + p,
  .section-title + p {
    margin-top: 0.5rem !important;
  }

  table, .legal-table, blockquote {
    page-break-inside: avoid;
  }
}

/* ===== CHAT WIDGET STYLES ===== */

/* Fixed Bottom Group - Responsive layout for badges + Talk to AI */
.fixed-bottom-group {
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.compliance-badges-floating {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 1;
}

.compliance-badge-floating {
  height: 32px;
  width: auto;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.livekit-widget {
  position: relative;
  bottom: auto;
  right: auto;
  z-index: 1001;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  order: 2;
}

/* Widget Toggle Button */
.widget-toggle {
  background: linear-gradient(135deg, var(--primary-color, #39e6a5) 0%, var(--secondary-color, #e10589) 100%);
  border: none;
  border-radius: 50px;
  padding: 16px 20px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  margin: 20px auto;
  width: fit-content;
}

.widget-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.widget-badge {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Widget Panel */
.widget-panel {
  position: absolute;
  bottom: 0px;
  right: 0;
  width: 380px;
  height: 520px;
  background: linear-gradient(135deg, #1a1a3a 0%, #2d2d5a 50%, #3a3a6e 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inconsolata', monospace;
  z-index: 1002;
}

.widget-panel.open {
  display: flex;
}

/* Widget Header */
.widget-header {
  background: linear-gradient(135deg, var(--primary-color, #39e6a5) 0%, var(--secondary-color, #e10589) 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Karla', sans-serif;
}

.widget-title p {
  margin: 2px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.widget-close {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.widget-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Widget Content */
.widget-content {
  flex: 1;
  padding: 0;
  overflow: hidden;
}

/* Welcome Message */
.welcome-message {
  text-align: center;
  color: white;
}

.welcome-message .lisa-avatar {
  display: block;
  margin: 0 auto 12px auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color, #39e6a5) 0%, var(--secondary-color, #e10589) 100%);
  padding: 3px;
}

.welcome-message p {
  margin: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 14px;
}

.lisa-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

/* Start Conversation Area */
.start-conversation-area {
  text-align: center;
  margin-bottom: 12px;
  margin-top: 15px;
}

.start-conversation-btn {
  background: linear-gradient(135deg, var(--primary-color, #39e6a5) 0%, var(--secondary-color, #e10589) 100%);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 12px;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}

.start-conversation-btn:hover {
  transform: scale(1.05);
}

.privacy-notice {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 6px;
}

.privacy-notice a {
  color: var(--secondary-color, #e10589);
  text-decoration: none;
}

.privacy-notice a:hover {
  text-decoration: underline;
  color: white;
}

/* Voice Activity Container */
.voice-activity-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  flex: 1;
  color: white;
}

.lisa-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color, #39e6a5) 0%, var(--secondary-color, #e10589) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 15px;
  padding: 3px;
  transition: all 0.3s ease;
}

.lisa-avatar-image-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  border: 3px solid var(--primary-color, #39e6a5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  z-index: 1;
  transition: border-color 0.3s ease;
}

.activity-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.status-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.8s ease;
  opacity: 1;
}

.status-text.fade-out {
  opacity: 0.3;
  transform: translateY(-5px);
}

.status-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.end-call-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.end-call-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Voice Activity States */
.voice-activity-container.listening .pulse-ring {
  animation: pulse-listening 2s infinite;
  opacity: 1;
  border-color: var(--primary-color, #39e6a5);
}

.voice-activity-container.listening .status-text {
  color: var(--primary-color, #39e6a5);
}

.voice-activity-container.user-speaking .pulse-ring {
  animation: pulse-user-speaking 1.5s infinite;
  opacity: 1;
  border-color: #ffc107;
}

.voice-activity-container.user-speaking .status-text {
  color: #ffc107;
}

.voice-activity-container.ai-speaking .lisa-avatar-large {
  animation: glow-lisa 1.5s infinite;
}

.voice-activity-container.ai-speaking .pulse-ring {
  animation: pulse-ai-speaking 1s infinite;
  opacity: 1;
  border-color: var(--secondary-color, #e10589);
}

.voice-activity-container.ai-speaking .status-text {
  color: var(--secondary-color, #e10589);
}

.voice-activity-container.error .pulse-ring {
  animation: pulse-error 1s infinite;
  opacity: 1;
  border-color: #dc3545;
}

.voice-activity-container.error .status-text {
  color: #dc3545;
}

/* Loading and Error States */
.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color, #39e6a5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.error-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

#retry-btn {
  background: var(--primary-color, #39e6a5);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  margin-top: 16px;
}

/* Widget Footer */
.widget-footer {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.widget-footer small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.widget-footer a {
  color: var(--secondary-color, #e10589);
  text-decoration: none;
}

.widget-footer a:hover {
  text-decoration: underline;
  color: white;
}

/* Chat Widget Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-listening {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@keyframes pulse-user-speaking {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

@keyframes pulse-ai-speaking {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

@keyframes pulse-error {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@keyframes glow-lisa {
  0%, 100% { box-shadow: 0 4px 20px rgba(225, 5, 137, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(225, 5, 137, 0.6); }
}

/* Responsive behavior for chat widget */
@media (max-width: 768px) {
  .fixed-bottom-group {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }
  
  .compliance-badge-floating {
    height: 28px;
  }

  .widget-panel {
    width: 360px;
    height: 460px;
  }
  
  /* German language override for mobile 768px */
  [data-language="de"] .widget-panel,
  body.lang-de .widget-panel,
  body[class*="de-"] .widget-panel {
    width: 400px !important;
    height: 480px !important;
  }
}

@media (max-width: 480px) {
  .fixed-bottom-group {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }
  
  .compliance-badges-floating {
    gap: 6px;
  }
  
  .compliance-badge-floating {
    height: 24px;
  }

  .widget-panel {
    width: 340px;
    height: 440px;
    right: -10px;
  }
  
  /* German language override for mobile 480px */
  [data-language="de"] .widget-panel,
  body.lang-de .widget-panel,
  body[class*="de-"] .widget-panel {
    width: 100% !important;
    max-width: 420px !important;
    height: 460px !important;
    right: -10px;
  }

  .lisa-avatar-large {
    width: 140px;
    height: 140px;
  }

  .pulse-ring {
    width: 180px;
    height: 180px;
  }
}

/* Enhanced Fullscreen Conversation View with Dark Theme */
.fullscreen-conversation-view {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  width: 100% !important; /* Safari fallback */
  height: 100vh !important;
  height: 100% !important; /* Safari fallback */
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  display: none !important;
  z-index: 9999 !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  overflow: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Prevent body scrolling when fullscreen overlay is visible */
body.fullscreen-active {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Safari Mobile Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .fullscreen-conversation-view {
    width: 100vw !important;
    width: 100% !important;
    height: -webkit-fill-available !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body.fullscreen-active {
    height: -webkit-fill-available !important;
    width: 100% !important;
    overflow: hidden !important;
  }
}

/* German Language Fullscreen Overrides - Critical for proper width */
[data-language="de"] .fullscreen-conversation-view,
.fullscreen-conversation-view[data-language="de"],
body.german-page .fullscreen-conversation-view,
body.lang-de .fullscreen-conversation-view,
body[class*="de-"] .fullscreen-conversation-view {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure voice activity container is properly centered in German fullscreen */
[data-language="de"] .fullscreen-conversation-view .voice-activity-container,
body.lang-de .fullscreen-conversation-view .voice-activity-container,
body.german-page .fullscreen-conversation-view .voice-activity-container,
body[class*="de-"] .fullscreen-conversation-view .voice-activity-container {
  width: 100% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  /* Reset any German constraints that might affect this */
  position: relative !important;
}

/* Safari Mobile German Fullscreen */
@supports (-webkit-touch-callout: none) {
  [data-language="de"] .fullscreen-conversation-view,
  .fullscreen-conversation-view[data-language="de"],
  body.german-page .fullscreen-conversation-view,
  body.lang-de .fullscreen-conversation-view,
  body[class*="de-"] .fullscreen-conversation-view {
    width: 100vw !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: -webkit-fill-available !important;
    min-height: 100vh !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Safari German voice activity container */
  [data-language="de"] .fullscreen-conversation-view .voice-activity-container,
  body.lang-de .fullscreen-conversation-view .voice-activity-container,
  body.german-page .fullscreen-conversation-view .voice-activity-container,
  body[class*="de-"] .fullscreen-conversation-view .voice-activity-container {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
}

/* iOS Safari Specific Viewport Fixes */
@media screen and (max-device-width: 900px) and (-webkit-min-device-pixel-ratio: 1) {
  .fullscreen-conversation-view {
    width: 100vw !important;
    width: 100% !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  
  .fullscreen-conversation-view .voice-activity-container {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
}

/* Additional Safari Mobile Force Width */
@media screen and (max-width: 900px) {
  .fullscreen-conversation-view {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

/* Safari Mobile Detection and Force Full Width */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .fullscreen-conversation-view {
      width: 100vw !important;
      min-width: 100vw !important;
      max-width: 100vw !important;
      left: 0 !important;
      right: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  }
}

.fullscreen-conversation-view.visible {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Dark background overlays matching hero section exactly */
.fullscreen-conversation-view::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    radial-gradient(circle at 20% 20%, rgba(57, 230, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(225, 5, 137, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(57, 230, 165, 0.05) 0%, transparent 50%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.fullscreen-conversation-view::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(57, 230, 165, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(225, 5, 137, 0.5) 1px, transparent 1px) !important;
  background-size: 300px 300px, 400px 400px, 350px 350px !important;
  animation: floating-stars 25s linear infinite !important;
  pointer-events: none !important;
  opacity: 0.7 !important;
  z-index: 1 !important;
}

.fullscreen-conversation-view .voice-activity-container {
  transform: scale(0.8) translateY(50px) !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  position: relative !important;
  z-index: 10 !important;
}

.fullscreen-conversation-view.visible .voice-activity-container {
  transform: scale(1) translateY(0) !important;
}

.fullscreen-conversation-view .lisa-avatar-large {
  position: relative !important;
  margin: 0 auto 40px !important;
  width: 300px !important;
  height: 300px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.fullscreen-conversation-view .lisa-avatar-large::before {
  content: '' !important;
  position: absolute !important;
  top: -20px !important;
  left: -20px !important;
  right: -20px !important;
  bottom: -20px !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, 
    rgba(57, 230, 165, 0.8) 0deg, 
    rgba(225, 5, 137, 0.8) 120deg, 
    rgba(255, 193, 7, 0.8) 240deg, 
    rgba(57, 230, 165, 0.8) 360deg) !important;
  animation: avatar-border-spin 3s linear infinite !important;
  z-index: -1 !important;
}

.fullscreen-conversation-view .lisa-avatar-large::after {
  content: '' !important;
  position: absolute !important;
  top: -40px !important;
  left: -40px !important;
  right: -40px !important;
  bottom: -40px !important;
  border-radius: 50% !important;
  background: conic-gradient(from 180deg, 
    transparent 0deg, 
    rgba(57, 230, 165, 0.3) 60deg, 
    transparent 120deg,
    rgba(225, 5, 137, 0.3) 180deg,
    transparent 240deg,
    rgba(255, 193, 7, 0.3) 300deg,
    transparent 360deg) !important;
  animation: avatar-border-spin-reverse 4s linear infinite !important;
  z-index: -2 !important;
}

.fullscreen-conversation-view .lisa-avatar-image-large {
  width: 300px !important;
  height: 300px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 0 40px rgba(57, 230, 165, 0.4),
    0 0 80px rgba(225, 5, 137, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.3) !important;
  animation: avatar-glow 3s ease-in-out infinite !important;
}

.fullscreen-conversation-view .pulse-ring {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 350px !important;
  height: 350px !important;
  border: 4px solid rgba(57, 230, 165, 0.8) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  animation: pulse-connecting-enhanced 2s ease-in-out infinite !important;
  box-shadow: 
    0 0 30px rgba(57, 230, 165, 0.5),
    inset 0 0 30px rgba(57, 230, 165, 0.2) !important;
}

.fullscreen-conversation-view .pulse-ring::before {
  content: '' !important;
  position: absolute !important;
  top: -15px !important;
  left: -15px !important;
  right: -15px !important;
  bottom: -15px !important;
  border: 2px solid rgba(225, 5, 137, 0.6) !important;
  border-radius: 50% !important;
  animation: pulse-secondary-ring 2.5s ease-in-out infinite !important;
  box-shadow: 0 0 40px rgba(225, 5, 137, 0.4) !important;
}

.fullscreen-conversation-view .pulse-ring::after {
  content: '' !important;
  position: absolute !important;
  top: -30px !important;
  left: -30px !important;
  right: -30px !important;
  bottom: -30px !important;
  border: 1px solid rgba(255, 193, 7, 0.5) !important;
  border-radius: 50% !important;
  animation: pulse-tertiary-ring 3s ease-in-out infinite !important;
  box-shadow: 0 0 50px rgba(255, 193, 7, 0.3) !important;
}

.fullscreen-conversation-view .pulse-ring.listening {
  border-color: rgba(57, 230, 165, 0.8) !important;
  animation: pulse-listening-enhanced 2s ease-in-out infinite !important;
}

.fullscreen-conversation-view .pulse-ring.ai-speaking {
  border-color: rgba(225, 5, 137, 0.8) !important;
  animation: pulse-ai-speaking-enhanced 1.5s ease-in-out infinite !important;
}

.fullscreen-conversation-view .pulse-ring.user-speaking {
  border-color: rgba(255, 193, 7, 0.8) !important;
  animation: pulse-user-speaking-enhanced 1.8s ease-in-out infinite !important;
}

.fullscreen-conversation-view .pulse-ring.connecting {
  border-color: rgba(57, 230, 165, 0.6) !important;
  animation: pulse-connecting-enhanced 2.5s ease-in-out infinite !important;
}

.fullscreen-conversation-view .pulse-ring.error {
  border-color: rgba(255, 69, 58, 0.8) !important;
  animation: pulse-error-enhanced 1s ease-in-out infinite !important;
}

.fullscreen-conversation-view .activity-status {
  margin-top: 50px !important;
  margin-bottom: 30px !important;
}

.fullscreen-conversation-view .status-text {
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  margin-bottom: 10px !important;
  animation: text-glow 2s ease-in-out infinite !important;
}

/* Safari Mobile Text and Element Sizing Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 900px) {
  .fullscreen-conversation-view .status-text {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    padding: 0 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 90% !important;
    margin: 0 auto 20px auto !important;
  }
  
  .fullscreen-conversation-view .lisa-avatar-large {
    width: 280px !important;
    height: 280px !important;
    margin: 0 auto 30px !important;
  }
  
  .fullscreen-conversation-view .lisa-avatar-image-large {
    width: 280px !important;
    height: 280px !important;
  }
  
  .fullscreen-conversation-view .pulse-ring {
    width: 320px !important;
    height: 320px !important;
  }
  
  .fullscreen-conversation-view .end-call-btn {
    min-width: 200px !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    margin-top: 40px !important;
  }
  
  .fullscreen-conversation-view .website-input-box {
    width: 90% !important;
    max-width: 350px !important;
    min-width: 280px !important;
  }
  
  .fullscreen-conversation-view .website-input-container {
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }
}

.fullscreen-conversation-view .website-input-container {
  margin-top: 30px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  z-index: 20 !important;
}

.fullscreen-conversation-view .website-input-label {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  margin-bottom: 5px !important;
}

.fullscreen-conversation-view .website-input-box {
  width: 400px !important;
  max-width: 80vw !important;
  padding: 16px 24px !important;
  font-size: 1rem !important;
  background: rgba(20, 10, 40, 0.8) !important;
  border: 2px solid rgba(225, 5, 137, 0.6) !important;
  border-radius: 50px !important;
  color: white !important;
  text-align: center !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  transition: all 0.3s ease !important;
  box-shadow: 
    0 0 20px rgba(225, 5, 137, 0.3),
    inset 0 0 20px rgba(225, 5, 137, 0.1) !important;
}

.fullscreen-conversation-view .website-input-box:focus {
  outline: none !important;
  border-color: rgba(225, 5, 137, 0.9) !important;
  box-shadow: 
    0 0 30px rgba(225, 5, 137, 0.5),
    inset 0 0 30px rgba(225, 5, 137, 0.2) !important;
  background: rgba(25, 15, 50, 0.9) !important;
}

.fullscreen-conversation-view .website-input-box::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  font-style: italic !important;
}

.fullscreen-conversation-view .website-submit-btn {
  padding: 14px 40px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(225, 5, 137, 0.9) 0%, rgba(138, 43, 226, 0.9) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50px !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 
    0 0 20px rgba(225, 5, 137, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.3) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  overflow: hidden !important;
}

.fullscreen-conversation-view .website-submit-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.5s ease !important;
}

.fullscreen-conversation-view .website-submit-btn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 
    0 0 30px rgba(225, 5, 137, 0.6),
    0 8px 25px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.fullscreen-conversation-view .website-submit-btn:hover::before {
  left: 100% !important;
}

.fullscreen-conversation-view .website-submit-btn:active {
  transform: translateY(0) scale(1.02) !important;
}

.fullscreen-conversation-view .end-call-btn {
  margin-top: 40px !important;
  padding: 16px 32px !important;
  font-size: 1.1rem !important;
  background: rgba(255, 69, 58, 0.9) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50px !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.fullscreen-conversation-view .end-call-btn:hover {
  background: rgba(255, 69, 58, 1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(255, 69, 58, 0.4) !important;
}

/* Enhanced Animation Keyframes */
@keyframes avatar-glow {
  0%, 100% { 
    box-shadow: 
      0 0 40px rgba(57, 230, 165, 0.4),
      0 0 80px rgba(225, 5, 137, 0.3),
      0 20px 60px rgba(0, 0, 0, 0.3);
  }
  50% { 
    box-shadow: 
      0 0 60px rgba(57, 230, 165, 0.6),
      0 0 120px rgba(225, 5, 137, 0.5),
      0 20px 60px rgba(0, 0, 0, 0.3);
  }
}

@keyframes pulse-connecting-enhanced {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 0.4; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 0; 
  }
}

@keyframes pulse-listening-enhanced {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.15); 
    opacity: 0.4; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.3); 
    opacity: 0; 
  }
}

@keyframes pulse-ai-speaking-enhanced {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.9; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 0.5; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.4); 
    opacity: 0; 
  }
}

@keyframes pulse-user-speaking-enhanced {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 0.4; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.25); 
    opacity: 0; 
  }
}

@keyframes pulse-error-enhanced {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.9; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.15); 
    opacity: 0.5; 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.3); 
    opacity: 0; 
  }
}

@keyframes text-glow {
  0%, 100% { 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
  }
  50% { 
    text-shadow: 
      0 2px 10px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(57, 230, 165, 0.3),
      0 0 40px rgba(225, 5, 137, 0.2); 
  }
}

/* New enhanced animations for fullscreen overlay */
@keyframes particles-float {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-10px) translateX(5px); }
  66% { transform: translateY(5px) translateX(-3px); }
  100% { transform: translateY(0px) translateX(0px); }
}

@keyframes particles-float-gentle {
  0% { transform: translateY(0px) translateX(0px) scale(1); }
  25% { transform: translateY(-2px) translateX(1px) scale(1.02); }
  50% { transform: translateY(-1px) translateX(2px) scale(0.98); }
  75% { transform: translateY(1px) translateX(-1px) scale(1.01); }
  100% { transform: translateY(0px) translateX(0px) scale(1); }
}

@keyframes cosmic-rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gentle-drift {
  0% { transform: translateY(0px) translateX(0px); }
  20% { transform: translateY(-1px) translateX(0.5px); }
  40% { transform: translateY(-0.5px) translateX(1px); }
  60% { transform: translateY(0.5px) translateX(0.5px); }
  80% { transform: translateY(1px) translateX(-0.5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

/* Pulsating Universe Background */
@keyframes universe-pulse {
  0% { 
    filter: brightness(1) contrast(1) saturate(1); 
    transform: scale(1); 
  }
  25% { 
    filter: brightness(1.1) contrast(1.1) saturate(1.2); 
    transform: scale(1.01); 
  }
  50% { 
    filter: brightness(1.2) contrast(1.2) saturate(1.4); 
    transform: scale(1.02); 
  }
  75% { 
    filter: brightness(1.1) contrast(1.1) saturate(1.2); 
    transform: scale(1.01); 
  }
  100% { 
    filter: brightness(1) contrast(1) saturate(1); 
    transform: scale(1); 
  }
}

/* Twinkling Stars */
@keyframes stars-twinkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  25% { 
    opacity: 0.7; 
    transform: scale(0.8); 
  }
  50% { 
    opacity: 1.2; 
    transform: scale(1.2); 
  }
  75% { 
    opacity: 0.9; 
    transform: scale(0.9); 
  }
}

/* Cosmic Drift for Stars */
@keyframes cosmic-drift {
  0% { transform: translateX(0px) translateY(0px) rotate(0deg); }
  25% { transform: translateX(2px) translateY(-1px) rotate(90deg); }
  50% { transform: translateX(0px) translateY(-2px) rotate(180deg); }
  75% { transform: translateX(-2px) translateY(-1px) rotate(270deg); }
  100% { transform: translateX(0px) translateY(0px) rotate(360deg); }
}

/* Nebula Pulsing */
@keyframes nebula-pulse {
  0% { 
    opacity: 0.8; 
    transform: scale(1) rotate(0deg); 
  }
  33% { 
    opacity: 1.2; 
    transform: scale(1.05) rotate(120deg); 
  }
  66% { 
    opacity: 0.9; 
    transform: scale(0.95) rotate(240deg); 
  }
  100% { 
    opacity: 0.8; 
    transform: scale(1) rotate(360deg); 
  }
}

@keyframes avatar-border-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes avatar-border-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse-secondary-ring {
  0% { 
    transform: scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.15); 
    opacity: 0.4; 
  }
  100% { 
    transform: scale(1.3); 
    opacity: 0; 
  }
}

@keyframes pulse-tertiary-ring {
  0% { 
    transform: scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: scale(1.2); 
    opacity: 0.3; 
  }
  100% { 
    transform: scale(1.4); 
    opacity: 0; 
  }
}

/* Additional Chat Widget Styles from global-chat-widget.php */
/* Page Blocker Overlay */
.page-block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999; /* Below the widget, but above everything else */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.page-block-overlay.visible {
  display: flex;
}

.overlay-message p {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

.overlay-message small {
  font-size: 1rem;
  opacity: 0.9;
}

/* Additional responsive behavior for chat widget */
@media (max-width: 1240px) {
  .fixed-bottom-group {
    right: 20px;
  }
}

/* Additional widget panel styles */
.widget-panel.open {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Welcome message styles */
.welcome-message {
  align-items: center;
}

.message-content {
  flex: 1;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  color: #333;
}

/* Additional pulse ring states */
.pulse-ring.user-speaking {
  border-color: #fbbf24;
  animation: pulse-user-speaking 1.5s infinite;
}

.pulse-ring.ai-speaking {
  border-color: var(--secondary-color, #e10589);
  animation: pulse-ai-speaking 1.8s infinite;
}

.pulse-ring.error {
  border-color: #ef4444;
  animation: pulse-error 1s infinite;
}

.lisa-avatar-large.ai-speaking {
  animation: glow-lisa 2s ease-in-out infinite;
}

/* Test Page Styles */
.test-page-body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 40px;
  background: #f5f5f5;
}

.test-page-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.test-page-container h1 {
  color: #333;
  margin-bottom: 20px;
}

.test-page-container p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.nav-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.nav-links a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #39e6a5 0%, #e10589 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin-right: 10px;
  transition: transform 0.2s;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

/* About Page Styles */
.about-video-container {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.about-story-container {
  max-width: 900px;
  margin: 0 auto 6rem;
}

.about-story-card {
  background: linear-gradient(135deg, var(--background-card) 0%, var(--background-gray) 100%);
  padding: 3rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.about-story-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-story-primary {
  color: var(--primary-color);
}

.about-story-secondary {
  color: var(--secondary-color);
}

.about-story-card p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-story-card p:last-child {
  margin-bottom: 0;
}

.about-story-card.gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.about-story-card.gradient h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-story-card.gradient p {
  color: white;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-story-card.gradient p:last-child {
  margin: 0;
}

/* Partner Page Styles */
.partner-features-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.partner-features-section.light {
  background: var(--background-light);
}

.partner-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.partner-benefit-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  color: var(--text-primary);
}

.partner-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.partner-benefit-icon {
  width: 16px;
  height: 16px;
  stroke: var(--secondary-color);
  flex-shrink: 0;
}

.partner-cta-button {
  margin-top: auto;
}

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

.partner-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.partner-step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.partner-step-title {
  margin: 0;
  font-size: 1.5rem;
}

.partnership-step-detail {
  background: var(--background-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  margin-top: 1rem;
}

.partnership-step-detail-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.partnership-step-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.partnership-step-timeframe {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* New smooth cosmic animations for fullscreen overlay */
@keyframes cosmic-drift-smooth {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-30px, -20px) rotate(360deg); }
}

@keyframes cosmic-rotation-smooth {
  0% { transform: translate(-100px, -100px) rotate(0deg); }
  100% { transform: translate(-100px, -100px) rotate(360deg); }
}

@keyframes nebula-flow {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translateX(-50%) scale(1.1) rotate(180deg); opacity: 0.6; }
}

@keyframes gentle-shimmer {
  0%, 100% { 
    opacity: 0.8;
    background-position: 0% 0%, 100% 100%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  50% { 
    opacity: 1;
    background-position: 100% 100%, 0% 0%, 50% 50%, 25% 75%, 75% 25%, 50% 0%;
  }
}

@keyframes subtle-pulse {
  0%, 100% { 
    opacity: 0.2;
    transform: scale(1);
  }
  50% { 
    opacity: 0.4;
    transform: scale(1.05);
  }
}

/* Enhanced Welcome Message with Universe Frame */
.welcome-message {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.welcome-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(57, 230, 165, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(225, 5, 137, 0.05) 0%, transparent 50%),
    radial-gradient(1px 1px at 25px 35px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 85px 15px, rgba(57, 230, 165, 0.4), transparent),
    radial-gradient(1px 1px at 150px 75px, rgba(225, 5, 137, 0.3), transparent),
    radial-gradient(1px 1px at 200px 25px, rgba(255, 255, 255, 0.2), transparent);
  background-size: 100% 100%, 100% 100%, 200px 100px, 200px 100px, 200px 100px, 200px 100px;
  animation: gentle-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.welcome-message .lisa-avatar {
  position: relative;
  z-index: 2;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(57, 230, 165, 0.3), rgba(225, 5, 137, 0.3));
  background-clip: padding-box;
  border-radius: 50%;
  padding: 2px;
}

.welcome-message .lisa-avatar::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  opacity: 0.2;
  animation: subtle-pulse 3s ease-in-out infinite;
  z-index: -1;
}

.welcome-message p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.start-conversation-btn {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 15px rgba(225, 5, 137, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.start-conversation-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.start-conversation-btn:hover::before {
  left: 100%;
}

.privacy-notice {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Welcome Screen Styles */
.welcome-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 0.8rem 1rem;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.universe-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.universe-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(57, 230, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(225, 5, 137, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(57, 230, 165, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.universe-background::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(57, 230, 165, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(225, 5, 137, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, rgba(57, 230, 165, 0.4) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 100px 100px, 40px 40px, 70px 70px;
  animation: floating-stars 25s linear infinite;
  pointer-events: none;
  opacity: 0.8;
}



.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 100%;
}

.lisa-hero-section {
  position: relative;
  margin-bottom: 1rem;
}

.lisa-avatar-hero {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 3px;
  animation: avatar-glow 3s ease-in-out infinite;
}

.lisa-avatar-image-hero {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
  z-index: -1;
}

.oscilloscope-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 40px;
  margin: 0.8rem 0;
}

.waveform-line {
  width: 3px;
  background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  animation: waveform-pulse 1.5s ease-in-out infinite;
  transform-origin: bottom;
}

.waveform-line:nth-child(1) {
  height: 14px;
  animation-delay: 0s;
}

.waveform-line:nth-child(2) {
  height: 24px;
  animation-delay: 0.1s;
}

.waveform-line:nth-child(3) {
  height: 32px;
  animation-delay: 0.2s;
}

.waveform-line:nth-child(4) {
  height: 20px;
  animation-delay: 0.3s;
}

.waveform-line:nth-child(5) {
  height: 16px;
  animation-delay: 0.4s;
}

.welcome-text {
  margin-bottom: 1rem;
}

.welcome-text h3 {
  font-family: 'Karla', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  background: linear-gradient(135deg, var(--secondary-color), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-text p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.3;
}

.start-conversation-area {
  text-align: center;
}

.start-conversation-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0.8rem 0;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(225, 5, 137, 0.3);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.start-conversation-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.start-conversation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(225, 5, 137, 0.4);
}

.start-conversation-btn:hover::before {
  left: 100%;
}

.privacy-notice {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.privacy-notice a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.privacy-notice a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Add padding to privacy notice in corner widget only */
.widget-panel .privacy-notice {
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* Lisa Chat Widget Styles */
.lisa-chat-widget {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  height: 450px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lisa-chat-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(57, 230, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(225, 5, 137, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(57, 230, 165, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.lisa-chat-widget::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(57, 230, 165, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(225, 5, 137, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, rgba(57, 230, 165, 0.4) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 100px 100px, 40px 40px, 70px 70px;
  animation: floating-stars 25s linear infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes floating-stars {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-8px, -12px) rotate(90deg); }
  50% { transform: translate(12px, -8px) rotate(180deg); }
  75% { transform: translate(-5px, 10px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}



.chat-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-avatar {
  position: relative;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-info {
  flex: 1;
}

.chat-title {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-family: 'Karla', sans-serif;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
}

.chat-interface {
  flex: 1;
  background: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Welcome State */
.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.lisa-avatar-hero {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lisa-avatar-image-hero {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 0 20px rgba(225, 5, 137, 0.3);
  position: relative;
  z-index: 3;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  animation: hero-pulse-primary 2s infinite;
}

.pulse-ring-secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  opacity: 0;
  animation: hero-pulse-secondary 2s infinite 0.5s;
}

@keyframes hero-pulse-primary {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

@keyframes hero-pulse-secondary {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.chat-welcome h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: 'Karla', sans-serif;
}

.chat-welcome p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.start-conversation-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(225, 5, 137, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10;
}

.start-conversation-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.start-conversation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(225, 5, 137, 0.5);
}

.start-conversation-btn:hover::before {
  left: 100%;
}

/* Connecting State */
.chat-connecting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.connecting-spinner {
  position: relative;
  margin-bottom: 20px;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.connecting-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chat-connecting p {
  font-size: 14px;
  color: #64748b;
}

/* Active Chat State */
.chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message.user {
  background: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.chat-message.ai {
  background: white;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.chat-controls {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-pulse {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: voice-pulse 1.5s infinite;
}

@keyframes voice-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.btn-end-chat {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-end-chat:hover {
  background: #dc2626;
}

/* Error State */
.chat-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.chat-error p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.btn-retry {
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-retry:hover {
  background: #4b5563;
}

/* Responsive adjustments for welcome screen */
@media (max-width: 480px) {
  .widget-panel {
    width: 340px;
    height: 450px;
  }
  
  .welcome-screen {
    padding: 1.2rem 0.8rem 2rem 0.8rem;
  }
  
  /* Ensure privacy notice is visible on mobile */
  .widget-panel .privacy-notice {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
  }
  
  .lisa-avatar-hero {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.6rem;
  }
  
  .lisa-hero-section {
    margin-bottom: 0.8rem;
  }
  
  .welcome-text h3 {
    font-size: 1rem;
  }
  
  .welcome-text p {
    font-size: 0.75rem;
  }
  
  .welcome-text {
    margin-bottom: 0.8rem;
  }
  
  .start-conversation-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .oscilloscope-container {
    height: 35px;
    gap: 2px;
    margin: 0.6rem 0;
  }
  
  .waveform-line {
    width: 2px;
  }
  
  .waveform-line:nth-child(1) { height: 10px; }
  .waveform-line:nth-child(2) { height: 18px; }
  .waveform-line:nth-child(3) { height: 26px; }
  .waveform-line:nth-child(4) { height: 14px; }
  .waveform-line:nth-child(5) { height: 12px; }

  /* Mobile styles for website input in fullscreen */
  .fullscreen-conversation-view .website-input-box {
    width: 300px !important;
    max-width: 90vw !important;
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
  }

  .fullscreen-conversation-view .website-input-label {
    font-size: 1.1rem !important;
  }

  .fullscreen-conversation-view .website-submit-btn {
    padding: 12px 32px !important;
    font-size: 1rem !important;
  }

  .fullscreen-conversation-view .website-input-container {
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    gap: 12px !important;
  }

  .lisa-chat-widget {
    max-width: 320px;
    height: 430px;
  }
  
  .chat-welcome {
    padding: 20px 16px 30px 16px;
  }
  
  /* Ensure privacy notice is visible in chat widget on mobile */
  .lisa-chat-widget .privacy-notice {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
  }
  
  .lisa-avatar-image-hero {
    width: 60px;
    height: 60px;
  }
  
  .pulse-ring {
    width: 76px;
    height: 76px;
  }
  
  .pulse-ring-secondary {
    width: 88px;
    height: 88px;
  }
  
  .chat-welcome h3 {
    font-size: 16px;
  }
  
  .chat-welcome p {
    font-size: 13px;
  }
  
  .start-conversation-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* German Language Adjustments - Compact sizing for longer German text */
/* Corner Widget - German language adjustments */
[data-language="de"] .widget-panel,
.widget-panel[data-language="de"] {
  width: 400px !important;
  height: 530px !important;
}

[data-language="de"] .widget-panel .welcome-message p,
.widget-panel[data-language="de"] .welcome-message p {
  font-size: 13px;
  line-height: 1.4;
}

[data-language="de"] .widget-panel .privacy-notice,
.widget-panel[data-language="de"] .privacy-notice {
  font-size: 11px;
  padding: 0 6px;
  line-height: 1.3;
}

/* Hero Chat Widget - German language adjustments */
[data-language="de"] .lisa-chat-widget,
.lisa-chat-widget[data-language="de"] {
  max-width: 420px !important;
  height: 460px !important;
  min-height: 460px !important;
}

[data-language="de"] .chat-welcome,
.lisa-chat-widget[data-language="de"] .chat-welcome {
  padding: 18px 16px;
}

[data-language="de"] .chat-welcome h3,
.lisa-chat-widget[data-language="de"] .chat-welcome h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.2;
}

[data-language="de"] .chat-welcome p,
.lisa-chat-widget[data-language="de"] .chat-welcome p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
}

[data-language="de"] .start-conversation-btn,
.lisa-chat-widget[data-language="de"] .start-conversation-btn {
  padding: 10px 18px;
  font-size: 13px;
  margin-bottom: 12px;
}

[data-language="de"] .privacy-notice,
.lisa-chat-widget[data-language="de"] .privacy-notice {
  font-size: 11px;
  line-height: 1.3;
  padding: 0 6px;
}

/* Mobile adjustments for German language */
@media (max-width: 480px) {
  [data-language="de"] .widget-panel,
  .widget-panel[data-language="de"] {
    width: 100% !important;
    max-width: 420px !important;
    height: 460px !important;
    right: -10px;
  }
  
  [data-language="de"] .lisa-chat-widget,
  .lisa-chat-widget[data-language="de"] {
    width: 100% !important;
    max-width: 420px !important;
    height: 460px !important;
    min-height: 460px !important;
  }
  
  [data-language="de"] .chat-welcome,
  .lisa-chat-widget[data-language="de"] .chat-welcome {
    padding: 20px 15px;
  }
}

/* Detect German pages by URL and add data attribute via JS (if needed) */
body[class*="de-"] .widget-panel,
body.german-page .widget-panel {
  width: 400px !important;
  height: 530px !important;
}

body[class*="de-"] .lisa-chat-widget,
body.german-page .lisa-chat-widget {
  max-width: 420px !important;
  height: 460px !important;
  min-height: 460px !important;
}

body[class*="de-"] .widget-panel .welcome-message p,
body.german-page .widget-panel .welcome-message p {
  font-size: 13px;
  line-height: 1.4;
}

body[class*="de-"] .widget-panel .privacy-notice,
body.german-page .widget-panel .privacy-notice {
  font-size: 11px;
  padding: 0 6px;
  line-height: 1.3;
}

body[class*="de-"] .chat-welcome,
body.german-page .chat-welcome {
  padding: 18px 16px;
}

body[class*="de-"] .chat-welcome h3,
body.german-page .chat-welcome h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.2;
}

body[class*="de-"] .chat-welcome p,
body.german-page .chat-welcome p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
}

body[class*="de-"] .start-conversation-btn,
body.german-page .start-conversation-btn {
  padding: 10px 18px;
  font-size: 13px;
  margin-bottom: 12px;
}

body[class*="de-"] .privacy-notice,
body.german-page .privacy-notice {
  font-size: 11px;
  line-height: 1.3;
  padding: 0 6px;
}

/* Additional language class-based selectors for reliability */
body.lang-de .widget-panel {
  width: 400px !important;
  height: 530px !important;
}

body.lang-de .lisa-chat-widget {
  max-width: 420px !important;
  height: 460px !important;
  min-height: 460px !important;
}

body.lang-de .widget-panel .welcome-message p {
  font-size: 13px;
  line-height: 1.4;
}

body.lang-de .widget-panel .privacy-notice {
  font-size: 11px;
  padding: 0 6px;
  line-height: 1.3;
}

body.lang-de .chat-welcome {
  padding: 18px 16px;
}

body.lang-de .chat-welcome h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.2;
}

body.lang-de .chat-welcome p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
}

body.lang-de .start-conversation-btn {
  padding: 10px 18px;
  font-size: 13px;
  margin-bottom: 12px;
}

body.lang-de .privacy-notice {
  font-size: 11px;
  line-height: 1.3;
  padding: 0 6px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile-first responsive fixes */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .header-container {
    padding: 1rem;
    max-width: 100%;
  }
  
  .hero-main {
    padding: 2rem 1rem 3rem;
    min-height: auto;
  }
  
  .hero-main .hero-container {
    padding: 0;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
  }
  
  .features {
    padding: 3rem 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta {
    padding: 3rem 1rem;
  }
  
  .cta h2 {
    font-size: 1.75rem;
  }
  
  .cta p {
    font-size: 1rem;
  }
  
  .footer-container {
    padding: 2rem 1rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .header-container {
    padding: 0.75rem;
  }
  
  .hero-main {
    padding: 1.5rem 0.75rem 2rem;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .features {
    padding: 2rem 0.75rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .cta {
    padding: 2rem 0.75rem;
  }
  
  .cta h2 {
    font-size: 1.5rem;
  }
  
  .footer-container {
    padding: 1.5rem 0.75rem;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Text Wrapping and Layout Improvements - CSS v1.9.0 */
@media (max-width: 768px) {
  /* Prevent unnecessary text wrapping on mobile */
  .hero-section h1,
  .hero-section .hero-title,
  .hero-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  /* Allow wrapping only when truly necessary */
  @media (max-width: 480px) {
    .hero-section h1,
    .hero-section .hero-title,
    .hero-title {
      white-space: normal;
      word-break: break-word;
      hyphens: auto;
    }
  }
  
  /* Button text optimization */
  .btn,
  .hero-start-btn,
  #heroStartChatBtn,
  .start-conversation-btn,
  button {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: max-content;
    padding: 0.75rem 1.5rem;
    /* Fix mobile touch issues */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Ensure important buttons can expand as needed */
  .btn-primary,
  .hero-start-btn,
  #heroStartChatBtn,
  .start-conversation-btn {
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
    max-width: 100%;
  }
  
  /* Improve text in navigation and smaller elements */
  .mobile-nav a,
  .mobile-nav-content a,
  .nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }
  
  /* Card and section titles */
  .card-title,
  .section-title,
  h2, h3, h4 {
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
  }
  
  /* Ensure text containers have adequate space */
  .container,
  .hero-content,
  .section-content {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}
