:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary: #06b6d4;
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: #404040;
  --accent: #1f1f1f;
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-secondary: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--background);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--background);
}

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

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.1), transparent),
              radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1), transparent);
}

.floating-note {
  position: absolute;
  color: rgba(139, 92, 246, 0.2);
  font-size: 2rem;
}

.note-1 {
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.note-2 {
  top: 40%;
  right: 20%;
  animation: float 8s ease-in-out infinite reverse;
}

.note-3 {
  bottom: 40%;
  left: 25%;
  animation: float 7s ease-in-out infinite;
}

.note-4 {
  top: 60%;
  right: 30%;
  animation: float 5s ease-in-out infinite reverse;
}

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

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 2rem;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-description {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subdescription {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 1s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.feature-item i {
  color: var(--primary);
}

/* Interface Showcase */
.interface-showcase {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.3), transparent);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--muted);
  border-radius: 2rem;
  color: var(--foreground);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.interface-carousel {
  max-width: 1400px;
  margin: 0 auto;
}

.interface-card {
  background: linear-gradient(135deg, var(--background), rgba(38, 38, 38, 0.2));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.interface-content {
  flex: 1 1 35%;
  min-width: 320px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.interface-counter {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.interface-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.interface-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.interface-features {
  list-style: none;
  margin-bottom: 2rem;
}

.interface-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.interface-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.interface-image {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  padding: 2rem;
  flex: 1 1 65%;
  min-width: 320px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.interface-mockup { 
  max-width: 100%;  
  width: 100%;
  height: 600px; 
  background: var(--background);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.mockup-header {
  padding: 1.5rem;
  background: var(--muted);
  display: flex;
  gap: 0.5rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.status-dot.active {
  background: #10b981;
  animation: pulse 2s infinite;
}

.status-dot.processing {
  background: #3b82f6;
  animation: pulse 2s infinite 0.3s;
}

.status-dot.waiting {
  background: #8b5cf6;
  animation: pulse 2s infinite 0.7s;
}

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

.mockup-content {
  padding: 0;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.mockup-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-btn:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

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

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

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-number::after {
  content: '+';
}

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

/* Value Proposition */
.value-proposition {
  padding: 5rem 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card.problem {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.value-card.solution {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.value-card.result {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.value-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
}

.problem .value-icon {
  background: #ef4444;
  color: white;
}

.solution .value-icon {
  background: #22c55e;
  color: white;
}

.result .value-icon {
  background: #3b82f6;
  color: white;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.problem h3 {
  color: #fca5a5;
}

.solution h3 {
  color: #86efac;
}

.result h3 {
  color: #93c5fd;
}

.value-card ul {
  list-style: none;
  text-align: left;
}

.value-card li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.problem li {
  color: #fca5a5;
}

.solution li {
  color: #86efac;
}

.result li {
  color: #93c5fd;
}

/* How It Works Timeline - FIXED */
.how-it-works {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--background), rgba(38, 38, 38, 0.2));
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), #ec4899, #f59e0b);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 2rem);
  margin-right: 0;
  text-align: left;
}

.timeline-content {
  background: linear-gradient(135deg, var(--background), rgba(38, 38, 38, 0.8));
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 4px solid var(--background);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

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

.timeline-item:nth-child(odd) .step-header {
  flex-direction: row-reverse;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--muted-foreground);
  opacity: 0.5;
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.gradient-green {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.gradient-orange {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.timeline-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.timeline-content p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Features */
.features {
  padding: 5rem 0;
}

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

.feature-card {
  background: linear-gradient(135deg, var(--background), rgba(38, 38, 38, 0.5));
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.gradient-indigo {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.gradient-teal {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), #ec4899, #f59e0b);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

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

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.cta-feature i {
  opacity: 0.8;
}

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

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

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-apps {
  display: flex;
  gap: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-badges {
  display: flex;
  gap: 1rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  
  .interface-card {
    grid-template-columns: 1fr;
  }
  
  .interface-content {
    padding: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .value-grid {
    grid-template-columns: 1fr;
  }
  
  /* Timeline responsive */
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item::before {
    left: 2rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 4rem;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .step-header {
    flex-direction: row;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .interface-title {
    font-size: 1.75rem;
  }
  
  .interface-description {
    font-size: 1rem;
  }
  
  .interface-mockup {
    height: 280px;
  }

  .interface-content,
  .interface-image {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-apps {
    flex-direction: column;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

section iframe {
    display: block;
    margin: 3rem auto;
    width: 90%;
    max-width: 960px;
    height: 540px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
