/* Vigthoria.io - Modern AI Landing Page Styles */

/* ========== Base Styles & Variables ========== */
:root {
  /* Light Theme Colors */
  --primary-light: #6b46c1;
  --primary-light-hover: #5a3ba3;
  --secondary-light: #38b2ac;
  --secondary-light-hover: #2c9a94;
  --text-light: #1a202c;
  --text-light-muted: #4a5568;
  --bg-light: #ffffff;
  --bg-light-alt: #f7fafc;
  --border-light: #e2e8f0;
  --shadow-light: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  /* Dark Theme Colors */
  --primary-dark: #9f7aea;
  --primary-dark-hover: #8c69d8;
  --secondary-dark: #4fd1c5;
  --secondary-dark-hover: #40b8ad;
  --text-dark: #f7fafc;
  --text-dark-muted: #cbd5e0;
  --bg-dark: #121212;
  --bg-dark-alt: #1f1f1f;
  --border-dark: #2d3748;
  --shadow-dark: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
  
  /* Enhanced Gradients */
  --gradient-purple: linear-gradient(135deg, #6b46c1 0%, #9f7aea 100%);
  --gradient-blue-green: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
  --gradient-futuristic: linear-gradient(135deg, #6b46c1 0%, #4299e1 50%, #38b2ac 100%);
  --gradient-vigthoria: linear-gradient(135deg, #7349c9 0%, #38a6d6 50%, #38b2ac 100%);
  --gradient-operator: linear-gradient(135deg, #7349c9 0%, #604af0 100%);
  --gradient-coder: linear-gradient(135deg, #38b2ac 0%, #22d3ee 100%);
  --gradient-llm: linear-gradient(135deg, #4299e1 0%, #2563eb 100%);
  --gradient-app: linear-gradient(135deg, #e879f9 0%, #9f7aea 100%);
  
  /* Animation Speeds */
  --transition-slow: 0.5s;
  --transition-normal: 0.3s;
  --transition-fast: 0.15s;
  
  /* Sizing */
  --container-width: 1200px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* Default to Light Theme */
:root {
  --primary: var(--primary-light);
  --primary-hover: var(--primary-light-hover);
  --secondary: var(--secondary-light);
  --secondary-hover: var(--secondary-light-hover);
  --text: var(--text-light);
  --text-muted: var(--text-light-muted);
  --bg: var(--bg-light);
  --bg-alt: var(--bg-light-alt);
  --border: var(--border-light);
  --shadow: var(--shadow-light);
}

/* Dark Theme */
[data-theme="dark"] {
  --primary: var(--primary-dark);
  --primary-hover: var(--primary-dark-hover);
  --secondary: var(--secondary-dark);
  --secondary-hover: var(--secondary-dark-hover);
  --text: var(--text-dark);
  --text-muted: var(--text-dark-muted);
  --bg: var(--bg-dark);
  --bg-alt: var(--bg-dark-alt);
  --border: var(--border-dark);
  --shadow: var(--shadow-dark);
}

/* ========== Reset & Base Styles ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  padding-left: 1.2rem;
  margin-top: 0;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
}

.col {
  flex: 1;
  padding: 1rem;
  min-width: 0;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.text-left {
  text-align: left;
}

/* ========== Navigation ========== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.main-header.scrolled {
  background-color: var(--bg);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.logo-text {
  color: var(--text);
  transition: color var(--transition-normal);
}

.logo-dot {
  color: var(--primary);
}

.logo-io {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

nav ul li a:hover {
  color: var(--primary);
}

.cta-button {
  background-color: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-md);
  font-weight: 600;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.mobile-menu span {
  height: 3px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

/* Fix for header and hero section connection */
header {
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-section {
  margin-top: 0;
  padding-top: 0;
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  background-color: var(--bg-alt);
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.theme-toggle:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 4px;
  left: 4px;
  background-color: var(--primary);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .theme-toggle:before {
  transform: translateX(28px);
}

.theme-toggle i {
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
}

[data-theme="light"] .theme-toggle .fa-sun {
  color: white;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  color: white;
}

/* ========== Hero Section Enhanced ========== */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.08) 0%, rgba(56, 178, 172, 0.08) 100%);
  z-index: 1;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(107, 70, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 70, 193, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.hero-bg-circles {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(107, 70, 193, 0.05) 0%, rgba(107, 70, 193, 0) 60%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
  position: relative;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 8px;
  background-color: rgba(107, 70, 193, 0.2);
  z-index: -1;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 80%;
}

.hero-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.hero-product-item {
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.hero-product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.hero-product-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.5rem;
}

.hero-product-icon.operator {
  background: var(--gradient-operator);
}

.hero-product-icon.coder {
  background: var(--gradient-coder);
}

.hero-product-icon.llm {
  background: var(--gradient-llm);
}

.hero-product-icon.app {
  background: var(--gradient-app);
}

.hero-product-info h3 {
  font-size: 1.1rem;
  margin: 0 0 5px;
}

.hero-product-info p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

/* ========== Enhanced AI Cube Animation ========== */
.ai-ecosystem {
  position: relative;
  width: 400px;
  height: 400px;
  perspective: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-cube {
  width: 240px;
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  margin: 0 auto;
  /* Remove animation to prevent distortion - now handled by JS */
}

.ai-cube-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Remove animation to prevent distortion - now handled by JS */
}

.ai-cube-face {
  position: absolute;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(107, 70, 193, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition-normal);
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 0 20px rgba(107, 70, 193, 0.2);
  backface-visibility: visible;
  transform-style: preserve-3d;
}

/* Ensure each face is exactly the same distance from the center */
.ai-cube-face:nth-child(1) {
  transform: translateZ(120px); /* Front */
  background: linear-gradient(45deg, rgba(107, 70, 193, 0.2) 0%, rgba(56, 178, 172, 0.2) 100%);
}

.ai-cube-face:nth-child(2) {
  transform: rotateY(90deg) translateZ(120px); /* Right */
  background: linear-gradient(45deg, rgba(56, 178, 172, 0.2) 0%, rgba(66, 153, 225, 0.2) 100%);
}

.ai-cube-face:nth-child(3) {
  transform: rotateY(180deg) translateZ(120px); /* Back */
  background: linear-gradient(45deg, rgba(66, 153, 225, 0.2) 0%, rgba(159, 122, 234, 0.2) 100%);
}

.ai-cube-face:nth-child(4) {
  transform: rotateY(-90deg) translateZ(120px); /* Left */
  background: linear-gradient(45deg, rgba(159, 122, 234, 0.2) 0%, rgba(107, 70, 193, 0.2) 100%);
}

.ai-cube-face:nth-child(5) {
  transform: rotateX(90deg) translateZ(120px); /* Top */
  background: linear-gradient(45deg, rgba(107, 70, 193, 0.2) 0%, rgba(79, 209, 197, 0.2) 100%);
}

.ai-cube-face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(120px); /* Bottom */
  background: linear-gradient(45deg, rgba(79, 209, 197, 0.2) 0%, rgba(107, 70, 193, 0.2) 100%);
}

.face-content {
  transform: translateZ(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.face-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--primary);
  animation: icon-pulse 3s infinite alternate;
}

.face-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.face-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.face-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(107, 70, 193, 0.3));
}

@keyframes icon-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Floating particles around the cube */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

/* ========== Product Images & Animations ========== */
.animated-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: var(--bg-alt);
}

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.product-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Produkt Bilder */
.product-image.animated-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-purple);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

.product-image.animated-image-container:hover::before {
  opacity: 0.1;
}

.product-image .animated-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, var(--bg-alt) 25%, rgba(107, 70, 193, 0.1) 50%, var(--bg-alt) 75%);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  z-index: 5; /* Über dem Bild bleiben, bis es geladen ist */
}

.product-image .animated-placeholder.loaded {
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease, z-index 0s 0.5s;
}

.product-image .product-logo {
  max-width: 80px;
  max-height: 80px;
  filter: drop-shadow(0 0 5px var(--primary));
}

.product-image .image-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 4;
  pointer-events: none;
}

.product-image:hover .image-shine {
  animation: shine 1.5s ease;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animation Delays */
.delay-02s {
  animation-delay: 0.2s;
}

.delay-03s {
  animation-delay: 0.3s;
}

.delay-04s {
  animation-delay: 0.4s;
}

/* Specific animation for newsletter button */
.newsletter-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  background-color: var(--primary);
  color: white;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.newsletter-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  margin-right: 8px;
}

.margin-top-3 {
    margin-top: 3rem;
}

/* Newsletter Form Feedback */
.newsletter-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.newsletter-message.success {
    background-color: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.newsletter-message.error {
    background-color: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.newsletter-message.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Helper for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Stripe Pricing Table Integration */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary);
    background-color: rgba(107, 70, 193, 0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.pricing-feature-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border);
}

.pricing-feature-summary h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.subscription-info {
    padding: 1.5rem;
    background-color: rgba(107, 70, 193, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-width: 100%;
  height: 500px;
  max-height: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  z-index: 1001; /* Ensure it's above other elements like the footer */
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.chat-title {
  font-size: 1.25rem;
  margin: 0;
}

.chat-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

.chat-messages {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message {
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  position: relative;
  max-width: 80%;
}

.message.sent {
  background-color: var(--primary);
  color: white;
  align-self: flex-end;
}

.message.received {
  background-color: var(--bg-alt);
  color: var(--text);
  align-self: flex-start;
}

.message .message-content {
  max-width: 100%;
  word-wrap: break-word;
}

.message .message-time {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-input-container {
  padding: 0.5rem 1rem;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.chat-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  margin-right: 0.5rem;
  background-color: var(--bg);
  color: var(--text);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-submit {
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.chat-submit:hover {
  background-color: var(--primary-hover);
}

.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  z-index: 1001; /* Ensure it's above other elements like the footer */
  transition: background-color var(--transition-fast);
}

.chat-button:hover {
  background-color: var(--primary-hover);
}

/* ...existing code... */