/* INBDE Turbo Design System - CSS Variables & Base Styles */

:root {
  /* Color System - HSL for easy manipulation */
  --background: 0 0% 100%;
  --foreground: 222.2 47.4% 11.2%;
  
  --card: 0 0% 100%;
  --card-foreground: 222.2 47.4% 11.2%;
  
  --primary: 217 91% 48%;
  --primary-foreground: 0 0% 98%;
  
  --secondary: 210 40% 94%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  
  --accent: 142 76% 36%;
  --accent-foreground: 0 0% 98%;
  
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 217 91% 48%;
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 48%) 0%, hsl(262, 83%, 58%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(142, 76%, 36%) 0%, hsl(217, 91%, 48%) 100%);
  --gradient-bg: linear-gradient(135deg, hsl(217, 91%, 48%) 0%, hsl(262, 83%, 58%) 50%, hsl(142, 76%, 36%) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px hsl(217, 91%, 48%, 0.3);
  
  /* Animation Durations */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  
  /* Border Radius */
  --radius: 0.5rem;
  --radius-lg: calc(var(--radius) + 0.25rem);
  --radius-md: var(--radius);
  --radius-sm: calc(var(--radius) - 0.25rem);
}

/* Dark Mode */
.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  
  --card: 224 71% 4%;
  --card-foreground: 0 0% 98%;
  
  --primary: 217 91% 60%;
  --primary-foreground: 222.2 47.4% 11.2%;
  
  --secondary: 222.2 84% 4.9%;
  --secondary-foreground: 210 40% 98%;
  
  --accent: 142 76% 45%;
  --accent-foreground: 222.2 47.4% 11.2%;
  
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 217 91% 60%;
  
  /* Glass Effects - Dark Mode */
  --glass-bg: rgba(0, 0, 0, 0.3);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Gradients - Dark Mode */
  --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(262, 83%, 65%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(142, 76%, 45%) 0%, hsl(217, 91%, 60%) 100%);
  --gradient-bg: linear-gradient(135deg, hsl(240, 10%, 3.9%) 0%, hsl(224, 71%, 4%) 50%, hsl(217.2, 32.6%, 17.5%) 100%);
  
  /* Shadows - Dark Mode */
  --shadow-glow: 0 0 40px hsl(217, 91%, 60%, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

/* Glass Morphism Utility Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-strong {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Animation Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.animate-pulse-soft {
  animation: pulse-soft 3s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.4s ease-out;
}

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  from { box-shadow: 0 0 20px hsl(var(--primary), 0.3); }
  to { box-shadow: 0 0 40px hsl(var(--primary), 0.6), 0 0 60px hsl(var(--primary), 0.4); }
}

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

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Background Patterns */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-gradient {
  background: var(--gradient-bg);
  opacity: 0.05;
}

.bg-dots {
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--primary)) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.1;
}

.bg-grid {
  background-image: 
    linear-gradient(hsl(var(--border)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border)) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--duration-normal) ease;
}

.header.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid hsl(var(--border));
}

.dark .header.scrolled {
  background: rgba(0, 0, 0, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: all var(--duration-fast) ease;
}

.theme-toggle:hover {
  background: hsl(var(--secondary));
  transform: scale(1.1);
}

/* Main Content */
.main-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 400px;
    gap: 4rem;
  }
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
    text-align: left;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.375rem;
    text-align: left;
  }
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: all var(--duration-fast) ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.feature-icon.emerald { background: linear-gradient(135deg, #10b981, #047857); }
.feature-icon.purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }

.feature-text {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Form Container */
.form-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-header p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: all var(--duration-fast) ease;
}

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

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

/* Advanced Fields */
.advanced-fields {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted), 0.3);
}

.advanced-fields.show {
  display: flex;
  animation: slide-up 0.3s ease-out;
}

.show-advanced-btn {
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  transition: all var(--duration-fast) ease;
}

.show-advanced-btn:hover {
  color: hsl(var(--primary), 0.8);
  text-decoration: underline;
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.checkbox-item:hover {
  background: hsl(var(--secondary));
}

.checkbox-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--primary));
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.submit-btn:active {
  transform: translateY(0);
}

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

.btn-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Early Bird Offer */
.early-bird-offer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, hsl(var(--accent), 0.1), hsl(var(--primary), 0.1));
  border: 1px solid hsl(var(--accent), 0.3);
  border-radius: var(--radius-lg);
}

.offer-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.offer-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.offer-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: all var(--duration-fast) ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* Social Proof */
.social-proof {
  text-align: center;
  margin: 3rem 0;
}

.social-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.social-avatars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.avatars {
  display: flex;
  gap: -0.5rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid hsl(var(--background));
  margin-left: -0.5rem;
}

.avatar:first-child {
  margin-left: 0;
}

.social-count {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border));
  margin-top: 4rem;
}

.footer p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--duration-fast) ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-avatars {
    flex-direction: column;
  }
}

/* Legal Pages Styling */
.legal-content, .contact-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-content h1, .contact-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.last-updated, .contact-intro {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 3rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.legal-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
}

/* Contact Page Styling */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-method {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
}

.contact-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-method h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.contact-method p {
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.contact-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--duration-normal) ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.response-time {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.response-time h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: hsl(var(--foreground));
}

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

.response-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
}

.response-item strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.response-item span {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.faq-preview {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.faq-preview h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: hsl(var(--foreground));
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
  font-weight: 600;
}

.faq-item p {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}