/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animation class */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-play-state: paused;
}

.fade-in.fade-in-visible {
  animation-play-state: running;
}

/* Staggered animations */
.fade-in:nth-child(2) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.3s;
}

:root {
  --background: #ffffff;
  --foreground: #000000;
  --primary: #333333;
  --primary-hover: #444444;
  --primary-rgb: 51, 51, 51; /* RGB values for primary color */
  --card: #f8f8f8;
  --border: #eeeeee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.container,
.feature-item,
.approach-item,
.manifesto,
.hero,
.values,
.waitlist,
.footer,
.chat-section,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

p,
span,
div {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

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

/* Header */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--background);
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.7;
}

.logo svg {
  height: 2em;
  width: auto;
  margin-right: 0.35em;
}
.footer-logo svg {
  height: 1.7em;
  width: auto;
  margin-right: 0.35em;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.tagline {
  margin-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--primary);
  display: none;
  padding-left: 0.75rem;
}

@media (min-width: 640px) {
  .tagline {
    display: block;
  }
}

/* Header Layout */
.header-right {
  display: flex;
  align-items: center;
  position: relative;
}

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

.desktop-nav a {
  display: none;
  color: var(--foreground);
  text-decoration: none;
  margin-right: 2rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  min-height: 44px;
  align-items: center;
  font-weight: 500;
}

.desktop-nav a:hover {
  color: var(--primary);
  background: rgba(51, 51, 51, 0.05);
}

.desktop-nav a.active {
  color: var(--primary);
  background: rgba(51, 51, 51, 0.1);
  font-weight: 600;
}

@media (min-width: 768px) {
  .desktop-nav a {
    display: flex;
  }
}

/* Hamburger Menu Button (Mobile Only) */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.hamburger-line:not(:last-child) {
  margin-bottom: 5px;
}

/* Hamburger Animation States */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
  .hamburger-menu {
    display: none;
  }
}

/* Mobile Language Switcher */
.mobile-language-switcher {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

@media (min-width: 768px) {
  .mobile-language-switcher {
    display: none;
  }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.mobile-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.5rem 2rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.mobile-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.mobile-nav a:hover::before {
  left: 100%;
}

.mobile-nav a:hover {
  color: var(--primary);
  background: rgba(51, 51, 51, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mobile-nav a.active {
  color: var(--primary);
  background: rgba(51, 51, 51, 0.1);
  font-weight: 700;
}

/* Tablet adjustments (iPad) */
@media (max-width: 1024px) and (min-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-language-switcher {
    display: flex;
  }
  
  .mobile-nav a {
    font-size: 1.75rem;
    padding: 2rem 2.5rem;
    margin: 0.75rem 0;
    min-width: 300px;
  }
}

/* Hide mobile nav on large desktop */
@media (min-width: 1025px) {
  .mobile-nav-overlay {
    display: none;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .hamburger-menu {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }
  
  .hamburger-menu:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }
  
  .mobile-nav a:active {
    transform: translateY(0) scale(0.98);
    background: rgba(51, 51, 51, 0.15);
  }
  
  /* Remove hover effects for touch devices */
  .mobile-nav a:hover::before {
    display: none;
  }
  
  .mobile-nav a:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Accessibility improvements */
.hamburger-menu:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-nav a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-overlay,
  .hamburger-line,
  .mobile-nav a,
  .mobile-nav a::before {
    transition: none;
  }
  
  .hamburger-menu.active .hamburger-line:nth-child(1),
  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transition: none;
  }
}

/* Mobile navigation improvements */
@media (max-width: 767px) {
  header {
    padding: 1rem 0;
  }
  
  header .container {
    padding: 0 1rem;
  }
  
  .brand .logo {
    font-size: 1.25rem;
  }
  
  .brand .logo svg {
    width: 28px;
    height: 28px;
  }
  
  .tagline {
    display: none;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Hide desktop language switcher on mobile */
  .desktop-nav .language-switcher {
    display: none;
  }
  
  /* Style mobile language switcher buttons */
  .mobile-language-switcher {
    margin-left: 0.5rem;
  }
  
  .mobile-language-switcher button {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    min-height: 36px;
    min-width: 36px;
  }
}

/* Enhanced mobile styles for smaller screens */
@media (max-width: 480px) {
  header {
    padding: 0.75rem 0;
  }
  
  .brand .logo {
    font-size: 1.1rem;
  }
  
  .brand .logo svg {
    width: 24px;
    height: 24px;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .mobile-language-switcher {
    margin-left: 0.25rem;
  }
  
  .mobile-language-switcher button {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    min-height: 32px;
    min-width: 32px;
  }
  
  .hamburger-menu {
    margin-left: 0.5rem;
  }
}

.language-switcher {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.language-switcher button {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-switcher button:hover {
  color: var(--primary);
  background: rgba(51, 51, 51, 0.05);
}

.language-switcher button.active {
  color: var(--primary);
  font-weight: 500;
  background: rgba(51, 51, 51, 0.1);
}

.language-switcher span {
  margin: 0 0.25rem;
  color: #555;
}

/* Hero Section */
.hero {
  padding: 8rem 0 7rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

.hero-logo {
  height: 2.4em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.01em;
  margin-bottom: 0.15em;
  background: #fff;
  border-radius: 50%;
  padding: 0.25em;
  box-sizing: content-box;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 500;
  font-style: italic;
  margin: 1.5rem auto 2rem;
  max-width: 800px;
  line-height: 1.6;
}

.hero-subtitle {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #444;
  padding: 0 1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Chat Suggestions Container - ensure flex display for proper toggling */
.chat-suggestions {
  display: flex; /* Or 'block' if you prefer them stacked and not wrapping */
  flex-wrap: wrap;
  gap: 0.75rem; /* Matches existing gap for suggestion buttons */
  margin-bottom: 1rem; /* Add some space below suggestions if they are visible */
}

/* Toggle Suggestions Button Styling */
#toggle-suggestions-btn {
  /* display: none; /* Initially hidden by inline style in HTML, JS controls this */
  width: 100%; /* Make it full width */
  margin-top: 1rem; /* Space above the button */
  margin-bottom: 0.5rem; /* Space below the button before the input */
  padding: 0.75rem 1rem; /* Adjust padding as needed */
  font-weight: 500; /* Slightly less bold than main CTA */
  background-color: #f0f0f0; /* A slightly different background */
  color: var(--primary);
  border: 1px solid var(--border);
}

#toggle-suggestions-btn:hover {
  background-color: #e9e9e9;
}

/* Charts Section */
.charts-section-container {
  padding: 6rem 0;
  background-color: #ffffff;
}

.charts-slider-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.charts-slider-container {
  position: relative;
  overflow: hidden;
}

.charts-slider {
  display: flex;
  gap: 2rem; /* Add spacing between slides */
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chart-slide {
  min-width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.chart-title {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  text-align: center;
}

.chart-container {
  height: 400px;
  background-color: #ffffff;
  border-radius: 16px;
}

/* Slider Navigation */
.slider-nav {
  display: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-dot.active {
  width: 16px;
  height: 16px;
  background: rgba(102, 126, 234, 0.3);
  border: 1px solid #667eea;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Chart Descriptions */
.chart-descriptions {
  margin-top: 2rem;
  text-align: center;
}

.chart-description-item {
  display: none;
}

.chart-description-item.active-description {
  display: block;
}

.chart-description-item .chart-description {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
  color: #444;
}

.chart-description-item .chart-note {
  font-size: 0.85rem;
  font-style: italic;
  color: #666;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.4;
}

/* Key Insights Section */
.key-insights-container {
  margin-top: 6rem;
  padding: 0 2rem;
  text-align: center;
}

.key-insights-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  color: #667eea;
}

.insight-tile {
  background-color: #ffffff;
  padding: 2.5rem 3.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  max-width: 950px;
  margin: 0 auto;
  text-align: justify;
  width: 100%;
  box-sizing: border-box;
}

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

.insight-item {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
  opacity: 1; /* Visible by default */
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  display: flex;
  align-items: flex-start;
  text-align: justify;
  transition: opacity 0.3s ease; /* Smooth opacity transitions */
}

/* Special class for animation control */
.insight-item.animating {
  opacity: 0;
}

/* Chat Input Placeholder Animation */
.chat-input::placeholder {
  color: #9ca3af; /* Lighter color for placeholder */
  transition: opacity 0.5s ease-in-out;
}

.chat-input.typing::placeholder {
  color: #9ca3af;
}

.typing-caret {
  display: inline-block;
  width: 1px;
  height: 1.2em;
  background-color: #9ca3af;
  animation: blink 1s infinite;
  vertical-align: middle;
}

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

/* Stop Generation Button */
.chat-submit.processing {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
  opacity: 1;
}

.chat-submit.processing:hover {
  background: #dc2626;
}

/* Stop icon for the button */
.chat-submit.processing::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: white;
  margin-right: 6px;
  vertical-align: middle;
}

/* Normal state transition */
.chat-submit {
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.chat-submit.processing {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.chat-submit.processing:hover {
  background: #dc2626;
}

/* Stop icon for the button */
.chat-submit.processing::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: white;
  margin-right: 6px;
  vertical-align: middle;
}

/* Floating Chat Bubble */
.floating-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.floating-bubble-inner {
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

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

.floating-bubble svg {
  flex-shrink: 0;
}

.floating-bubble span {
  font-weight: 500;
  white-space: nowrap;
}

/* Mini Chat Window */
.mini-chat-window {
  width: 360px;
  max-width: 90vw;
  max-height: 70vh;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-bubble.chat-open .mini-chat-window {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mini-chat-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-chat-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.mini-chat-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-chat-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.mini-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-chat-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: messageAppear 0.3s ease-out;
}

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

.mini-chat-message.bot {
  align-self: flex-start;
  background: #f3f4f6;
  color: #1f2937;
  border-top-left-radius: 4px;
}

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

/* Typing indicator */
.typing-indicator {
  background: transparent !important;
  padding: 0.5rem 1rem !important;
  height: 40px;
  display: flex;
  align-items: center;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: inline-block;
  animation: typingAnimation 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingAnimation {
  0%, 80%, 100% { 
    transform: scale(0.6);
    opacity: 0.5;
  } 
  40% { 
    transform: scale(1);
    opacity: 1;
  }
}

.mini-chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 0.5rem;
}

.mini-chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: white;
}

.mini-chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.mini-chat-send {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mini-chat-send:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.mini-chat-send:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-bubble {
    right: 1rem;
    bottom: 1rem;
  }
  
  .mini-chat-window {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
    height: 60vh;
    max-height: none;
  }
  
  .floating-bubble-inner {
    padding: 0.75rem 1.25rem;
  }
  
  .floating-bubble span {
    display: none;
  }
}

.insight-item:last-child {
  margin-bottom: 0;
}

.typing-animation {
  display: inline-block;
  border-right: 0.15em solid #667eea;
  animation:
    typing 1.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #667eea;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .insight-tile {
    max-width: 100%;
    padding: 1.5rem 1.1rem;
  }
  .insight-item {
    font-size: 1rem;
    padding: 0.1rem 0;
  }
  .chart-slide {
    padding: 1.5rem;
  }
  .chart-container {
    height: 250px; /* Reduced height for mobile */
  }
  .chart-title {
    font-size: 1.4rem;
  }
  .chart-description-item .chart-description {
    font-size: 0.9rem;
  }
  .chart-description-item .chart-note {
    font-size: 0.8rem;
  }
  .insights-grid {
    gap: 1.5rem;
  }
  .insight-card {
    padding: 1.5rem;
  }
}

/* Bold label for insights (before colon) */
.insight-item .insight-label {
  font-weight: 700;
  margin-right: 0.3em;
}

/* Ensure emoji and text are aligned */
.insight-item .emoji {
  font-size: 1.1em;
  vertical-align: middle;
  margin-right: 0.55em;
  line-height: 1;
}

/* Typing animation supports bold and emoji */
.insight-item .typing-animation {
  display: inline-block;
  border-right: 0.15em solid #667eea;
  animation:
    typing 1.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

/* Common section styles */
section {
  padding: 6rem 0;
  overflow: hidden;
  position: relative;
}

section h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Vision Section */
.vision {
  background-color: var(--card);
}

.vision p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

/* Approach Section */
.approach {
  background-color: #ffffff;
  padding: 7rem 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 4rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.approach-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(255, 255, 255, 0.4) inset,
    0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  z-index: 1;
  overflow: hidden;
}

.approach-item:hover .approach-number {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 15px rgba(255, 255, 255, 0.6) inset,
    0 15px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Bubble highlight/reflection */
.approach-number::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 25%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(3px);
  z-index: 1;
  pointer-events: none;
  transition: all 0.5s ease;
}

/* Bubble inner glow */
.approach-number::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* Make sure the number is above the bubble effects */
.approach-number span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Subtle bubble movement on hover */
@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}

.approach-item:hover .approach-number {
  animation: bubbleFloat 3s ease-in-out infinite;
}

.approach-content {
  flex: 1;
  padding-top: 0.5rem;
}

.approach-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.approach-content p {
  color: #666;
  line-height: 1.7;
  font-size: 1.05rem;
}

.philosophy-box {
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: rgba(245, 245, 247, 0.6);
  border-radius: 16px;
  text-align: center;
  font-style: italic;
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Vision Section */
.vision {
  background-color: #fbfbfd;
}

.vision .container > h2 {
  margin-bottom: 4rem;
}

.platform-card {
  background: white;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 4rem;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  font-weight: 700;
  text-align: left;
}

.platform-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin: 0 0 1.5rem 0;
  max-width: 100%;
  text-align: left;
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.feature-item h4 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.feature-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

.platform-card:hover,
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.tagline {
  text-align: center;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* Values Section */
.values {
  background-color: var(--card);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.value-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.value-number {
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  background: linear-gradient(145deg, #f8f8f8, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.value-item:hover .value-number {
  transform: scale(1.08);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.value-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Waitlist Section */
.waitlist-subtitle {
  max-width: 600px;
  margin: 0 auto 1rem;
  text-align: center;
}

.waitlist-note {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-style: italic;
  font-size: 0.875rem;
}

/* Form Messages */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
}

.form-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Loading state */
button.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Styles */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--foreground);
  font-family: inherit;
}

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

form button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: var(--primary-hover);
}

/* Chat Interface */
.chat-section {
  margin: 2rem auto;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.chat-section:hover,
.chat-section:focus-within,
.chat-section.chat-active,
.chat-section.chat-focus {
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.chat-section.chat-thinking {
  animation: chat-thinking 1.5s infinite alternate;
}

@keyframes chat-thinking {
  0% {
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.08),
      0 1px 2px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow:
      0 8px 32px rgba(var(--primary-rgb), 0.15),
      0 2px 8px rgba(255, 255, 255, 0.3);
  }
}

/* Glass effect highlight */
.chat-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Glass effect side shine */
.chat-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
}

/* Chat messages container */
.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}

/* Chat message bubbles */
.chat-message {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 12px;
  max-width: 85%;
  animation: messageAppear 0.3s ease-out forwards;
}

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

.user-message {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  margin-left: auto;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bot-message {
  background: rgba(248, 248, 248, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--foreground);
  margin-right: auto;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-width: 60px;
}

.typing-indicator .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 0 3px;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-indicator .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.chat-suggestion-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--primary);
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-suggestion-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-suggestion-btn.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}

.chat-input-container {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.chat-input {
  flex: 1;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--foreground);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.chat-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.chat-submit {
  background: linear-gradient(135deg, #333333 0%, #444444 100%);
  color: white;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.6s ease;
  pointer-events: none;
}

.chat-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: #6b7280;
}

/* Stop button hover state */
.chat-submit.processing:hover {
  background: #dc2626; /* Darker red on hover */
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.chat-submit .submit-icon,
.chat-submit .stop-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.chat-submit .stop-icon {
  opacity: 0;
  transform: scale(0.8);
}

/* Stop state */
.chat-submit.processing .submit-icon {
  opacity: 0;
  transform: scale(0.8);
}

.chat-submit.processing .stop-icon {
  opacity: 1;
  transform: scale(1);
}

/* Hover state for stop button */
.chat-submit.processing:hover .stop-icon {
  transform: scale(1.1);
}

.chat-submit.processing:active .stop-icon {
  transform: scale(0.95);
}

.chat-submit:hover svg {
  transform: translateY(-2px);
}

.chat-submit.clicked {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-submit.clicked svg {
  transform: translateY(1px);
}

.chat-submit.processing {
  animation: processing-pulse 1.5s infinite alternate;
  background: #ef4444; /* Red background for stop state */
  pointer-events: auto; /* Keep pointer events enabled for stop button */
}

@keyframes processing-pulse {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.chat-submit:hover::before {
  left: 100%;
}

@media (max-width: 768px) {
  .chat-section {
    margin: 1.5rem;
    padding: 1.5rem;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .chat-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
  }

  .chat-messages {
    flex: 1;
    max-height: none;
  }

  .chat-suggestions {
    flex-direction: column;
  }

  .chat-suggestion-btn {
    width: 100%;
    text-align: center;
  }

  .chat-input-container {
    flex-direction: column;
  }

  .chat-submit {
    width: 100%;
    padding: 1rem;
  }

  #fullscreen-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #fullscreen-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-left,
.footer-right {
  margin-bottom: 1rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-tagline {
  font-size: 0.875rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-left,
  .footer-right {
    margin-bottom: 0;
  }
}

/* Manifesto Section */
.manifesto {
  background-color: #ffffff;
  padding: 7rem 0;
}

.manifesto .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto h2 {
  text-align: center;
  margin: 0 auto 0.5rem;
  color: #333;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  width: 100%;
  display: block;
}

.manifesto p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.8rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.manifesto-tagline {
  font-size: 1.6rem;
  font-weight: 400;
  color: #555;
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 800px;
  line-height: 1.5;
  font-style: italic;
  padding: 0 2rem;
  display: block;
  box-sizing: border-box;
}

.manifesto-tagline::before,
.manifesto-tagline::after {
  content: "—";
  color: var(--primary);
  margin: 0 0.75rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .manifesto-tagline {
    font-size: 1.2rem;
    margin: -0.5rem auto 2rem;
  }

  .manifesto-tagline::before,
  .manifesto-tagline::after {
    margin: 0 0.5rem;
  }
}

.insight-box {
  background: rgba(245, 245, 247, 0.8);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.insight-box p {
  font-style: italic;
  margin: 0;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
}

/* Clarity Grid Styles */
.clarity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.clarity-tile {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    gap: 0.8rem;
}

.clarity-tile .tile-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.clarity-tile.before {
    background-color: #F5F5F5;
    color: #666666;
    border: 1px solid #DDDDDD;
}

.clarity-tile.after {
    background-color: rgba(102, 126, 234, 0.08);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Automation Flow Styles */
.automation-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
}

.automation-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.automation-tile {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    gap: 0.8rem;
}

.automation-tile .tile-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Clarity Flow Styles (similar to automation) */
.clarity-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
}

.clarity-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.clarity-center {
    font-size: 4rem;
    color: var(--primary);
    animation: pulse 2s infinite;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon {
    width: 64px;
    height: 64px;
    filter: none;
}

/* Ensure consistent tile sizing - override previous settings */
.clarity-tile {
    min-height: 120px;
    padding: 1.5rem;
    gap: 0.6rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.automation-tile {
    min-height: 120px;
    padding: 1.5rem;
    gap: 0.6rem;
}

/* Mobile comparison styles for icons */
.clarity-before .tile-icon,
.clarity-after .tile-icon,
.automation-before .tile-icon,
.automation-after .tile-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.clarity-before,
.clarity-after,
.automation-before,
.automation-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.before-column .automation-tile {
    background-color: #F5F5F5;
    color: #666666;
    border: 1px solid #DDDDDD;
}

.after-column .automation-tile {
    background-color: rgba(102, 126, 234, 0.08);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.automation-center {
    font-size: 4rem;
    color: var(--primary);
    animation: pulse 2s infinite;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effects for tiles */
.clarity-tile:hover,
.automation-tile:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.clarity-tile.before:hover {
    background-color: #F0F0F0;
    border-color: #CCCCCC;
}

.clarity-tile.after:hover {
    background-color: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.before-column .automation-tile:hover {
    background-color: #F0F0F0;
    border-color: #CCCCCC;
}

.after-column .automation-tile:hover {
    background-color: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Sequential Animation for Automation */
.automation-column.before-column, .automation-center, .automation-column.after-column .automation-tile {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.chart-slide.active-slide .automation-column.before-column {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.chart-slide.active-slide .automation-center {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.chart-slide.active-slide .automation-column.after-column .automation-tile:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.chart-slide.active-slide .automation-column.after-column .automation-tile:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.chart-slide.active-slide .automation-column.after-column .automation-tile:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

/* Responsive design for clarity and automation slides */
@media (max-width: 768px) {
  /* Mobile-optimized clarity slide - hide desktop flow, show compact comparisons */
  .clarity-flow {
    display: none !important;
  }
  
  .clarity-mobile-comparisons {
    display: block !important;
  }

  .clarity-comparison {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.6rem;
    background: rgba(248, 248, 248, 0.8);
    border-radius: 10px;
    min-height: 50px; /* Prevent cropping */
  }

  .clarity-before {
    flex: 1;
    color: #666;
    text-align: center;
    padding: 0.4rem;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clarity-arrow {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0.3rem;
  }

  .clarity-after {
    flex: 1;
    color: #667eea;
    text-align: center;
    padding: 0.4rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.8rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile-optimized automation slide - compact before/after comparison */
  .automation-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-height: 400px; /* Limit height to prevent excessive scrolling */
  }

  .automation-comparison {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.6rem;
    background: rgba(248, 248, 248, 0.8);
    border-radius: 10px;
    min-height: 50px; /* Prevent cropping */
  }

  .automation-before {
    flex: 1;
    color: #666;
    text-align: center;
    padding: 0.4rem;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .automation-arrow {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0.3rem;
  }

  .automation-after {
    flex: 1;
    color: #667eea;
    text-align: center;
    padding: 0.4rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.8rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide original desktop layouts on mobile */
  .clarity-grid {
    display: none !important;
  }
  
  .automation-flow {
    display: none !important;
  }
  
  /* Show mobile versions on mobile */
  .clarity-mobile-comparisons,
  .automation-mobile-comparisons {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-height: 300px; /* Significantly reduced height */
  }
  
  /* SVG icon styling for tiles */
  .clarity-before svg,
  .clarity-after svg,
  .automation-before svg,
  .automation-after svg {
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
    flex-shrink: 0;
  }
  
  .clarity-before svg,
  .automation-before svg {
    fill: #666;
  }
  
  .clarity-after svg,
  .automation-after svg {
    fill: #667eea;
  }
}

/* Ensure mobile versions are hidden on desktop */
@media (min-width: 769px) {
  .clarity-mobile-comparisons,
  .automation-mobile-comparisons {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .clarity-tile {
    padding: 1.2rem;
    font-size: 1rem;
    min-height: 90px;
  }
  
  .clarity-tile .tile-icon {
    width: 24px;
    height: 24px;
  }
  
  .automation-center,
  .clarity-center {
    font-size: 2.5rem;
  }
  
  .ai-icon {
    width: 40px;
    height: 40px;
  }
  
  .automation-tile {
    padding: 1rem;
    font-size: 0.95rem;
    min-height: 70px;
  }
  
  .automation-tile .tile-icon {
    width: 20px;
    height: 20px;
  }
  
  .clarity-before .tile-icon,
  .clarity-after .tile-icon,
  .automation-before .tile-icon,
  .automation-after .tile-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 0.4rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  nav a,
  .language-switcher button,
  .cta-button,
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects for touch devices */
  .clarity-tile:hover,
  .automation-tile:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  /* Add active states for better touch feedback */
  .cta-button:active {
    transform: scale(0.98);
  }
  
  nav a:active {
    background: rgba(51, 51, 51, 0.15);
  }
  
  .language-switcher button:active {
    background: rgba(51, 51, 51, 0.15);
  }
}

/* Improve scrolling on iOS devices */
@supports (-webkit-overflow-scrolling: touch) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* Optimize focus indicators for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  :focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    transition: outline-offset 0.2s ease;
  }
  
  :focus:not(:focus-visible) {
    outline: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  header {
    border-bottom-width: 2px;
  }
  
  .cta-button {
    border: 2px solid transparent;
  }
  
  .cta-button:focus {
    border-color: currentColor;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 767px) {
  /* Header improvements */
  header {
    padding: 0.75rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .brand .tagline {
    font-size: 0.8rem;
    margin-top: 0.2rem;
  }
  
  /* Hero section mobile optimizations */
  .hero {
    padding: 4rem 0 3rem 0;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  /* Section spacing improvements */
  section {
    padding: 4rem 0;
  }
  
  section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  /* Manifesto mobile optimization */
  .manifesto {
    padding: 4rem 0;
  }
  
  .manifesto p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .manifesto-tagline {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  /* Approach section mobile improvements */
  .approach {
    padding: 4rem 0;
  }
  
  .approach-grid {
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .approach-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .approach-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .approach-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .approach-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Vision section mobile improvements */
  .vision {
    padding: 4rem 0;
  }
  
  .platform-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .platform-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .platform-card p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .features-grid {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-item p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Values section mobile improvements */
  .values-grid {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .value-item {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
  
  .value-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .value-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .value-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Waitlist section mobile improvements */
  .waitlist {
    padding: 4rem 0;
  }
  
  .form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .form-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem;
    font-size: 1rem;
  }
  
  /* Footer mobile improvements */
  footer {
    padding: 1.5rem 0;
  }
  
  .footer-logo {
    font-size: 1.1rem;
  }
  
  .footer-copyright,
  .footer-tagline {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Smartphone specific optimizations */
@media (max-width: 480px) {
  /* Extra small screens */
  .container {
    padding: 0 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.9rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .approach-item {
    padding: 1.2rem;
  }
  
  .platform-card,
  .feature-item {
    padding: 1.2rem;
  }
  
  .value-item {
    gap: 0.8rem;
  }
  
  .form-container {
    padding: 1.2rem;
    margin: 0 0.5rem;
  }
  
  /* Improve button sizing for mobile */
  .cta-button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
  }
  
  form button {
    padding: 1rem;
    font-size: 1rem;
    min-height: 48px;
  }
}