:root {
  /* Light theme (default) */
  --bg-color: #ffffff;
  --bg-secondary: #f6f8fa;
  --text-color: #212b36;
  --text-color-light: #637381;
  --primary-color: #4f46e5;
  --primary-light: #c7d2fe;
  --primary-dark: #3730a3;
  --primary-rgb: 79, 70, 229;
  --border-color: #e0e5e9;
  --card-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.07);
  --shadow-light: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
  /* Dark theme variables */
  --bg-color: #121212;
  --bg-secondary: #1e1e1e;
  --text-color: #e4e6e7;
  --text-color-light: #a0a5a8;
  --primary-color: #6366f1;
  --primary-light: #312e81;
  --primary-dark: #a5b4fc;
  --primary-rgb: 99, 102, 241;
  --border-color: #2e2e33;
  --card-bg: #1e1e1e;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --shadow-light: rgba(0, 0, 0, 0.15);
  --header-bg: rgba(18, 18, 18, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header styles */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  background-color: var(--primary-light);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.theme-toggle:hover {
  transform: rotate(15deg);
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Hero section */
.hero-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 4rem 0;
  min-height: calc(100vh - 250px);
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
  max-width: 540px;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  font-weight: 600;
}

.models-display {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.model-chip {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.model-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-light);
}

.model-chip i {
  color: var(--primary-color);
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.start-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Chat Mockup */
.mockup {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.mockup-header {
  background-color: var(--bg-secondary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.mockup-controls {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.mockup-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-controls span:nth-child(1) {
  background-color: #ff5f57;
}
.mockup-controls span:nth-child(2) {
  background-color: #ffbd2e;
}
.mockup-controls span:nth-child(3) {
  background-color: #28c940;
}

.mockup-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color-light);
}

.mockup-content {
  padding: 20px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 90%;
}

.chat-bubble.ai {
  align-self: flex-start;
}

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble.ai .chat-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.chat-bubble.user .chat-icon {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.chat-text {
  background-color: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.chat-bubble.ai .chat-text {
  border-bottom-left-radius: 2px;
}

.chat-bubble.user .chat-text {
  border-bottom-right-radius: 2px;
  background-color: var(--primary-color);
  color: white;
}

.chat-text.typing {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-color-light);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Features section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 4rem 0;
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-color-light);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.landing-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Media queries */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    gap: 60px;
    padding: 2rem 0;
  }

  .hero-illustration {
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .landing-header {
    padding: 1rem 0;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .features-section {
    grid-template-columns: 1fr;
  }
  
  .start-button {
    width: 100%;
    justify-content: center;
  }
  
  /* Improve model chips display on small screens */
  .models-display {
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .model-chip {
    justify-content: center;
    width: 100%;
    padding: 10px;
  }
  
  /* Make mockup better fit small screens */
  .mockup {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .mockup-content {
    height: 220px;
  }
  
  /* Adjust button sizing */
  .start-button {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* Enhance feature cards on mobile */
  .feature-card {
    padding: 16px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .landing-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .feature-card {
    padding: 12px;
  }
}

/* Fix for iOS notch issues and other mobile-specific problems */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .landing-header {
    padding-top: max(1.5rem, env(safe-area-inset-top));
  }
  
  .landing-footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}
