:root {
  --bg-root: #000000;
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-tertiary: #1f1f26;

  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.4);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  filter: brightness(1.2);
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
}

.section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.bg-secondary {
  background-color: var(--bg-primary);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: rgba(10, 10, 12, 0.85); /* var(--bg-primary) with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.brand-icon {
  color: var(--accent-primary);
}

.brand-text {
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn.compact {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  filter: none; /* override a:hover */
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  transform: translateY(-2px);
  filter: none;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.5;
  z-index: -1;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.hero-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* App Mockup UI */
.app-mockup {
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0,0,0,0.8);
  overflow: hidden;
  transform: rotateY(-15deg) rotateX(5deg) scale(1.05); /* 3D dynamic perspective */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.app-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg) scale(1.1);
}

.mockup-header {
  height: 48px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-body {
  display: flex;
  height: 380px;
}

.mockup-dropzone {
  flex: 1;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.mockup-dropzone h3 {
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.mockup-dropzone p {
  color: var(--text-secondary);
  font-size: 13px;
}

.mockup-sidebar {
  width: 220px;
  background-color: var(--bg-primary);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-stat {
  font-size: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mockup-queue-item {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-queue-item.active {
  border-left: 2px solid var(--warning);
}

.mockup-queue-item.done {
  border-left: 2px solid var(--success);
}

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

.badge {
  font-weight: 700;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge.success { color: var(--success); }
.badge.warning { color: var(--warning); }

.progress-bar {
  height: 4px;
  background-color: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--warning);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  position: relative;
}

/* Connecting Line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 72px; /* Center of the icon-wrapper */
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light) 0%, var(--accent-primary) 50%, var(--border-light) 100%);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  position: absolute;
  top: -12px;
  right: calc(50% - 48px);
  width: 24px;
  height: 24px;
  background-color: var(--accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.step-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: 0 0 0 8px var(--bg-primary); /* Masks the connecting line */
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

.pro-badge-wrapper {
  position: relative;
  overflow: hidden;
}

.pro-badge {
  position: absolute;
  top: 16px;
  right: -24px;
  background: linear-gradient(90deg, #f59e0b, #ed8936);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 32px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 400px));
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
}

.pricing-card {
  background-color: var(--bg-root);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlight {
  background-color: #1a1a24;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-primary);
  color: white;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-header h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.price span {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
}

.price .period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: normal;
  display: block;
  margin-top: -8px;
  margin-bottom: 8px;
}

.pricing-header p {
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled i {
  color: var(--text-muted);
}

.pricing-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 15px;
}

.faq-item.active .faq-answer {
  padding-bottom: 24px;
  max-height: 300px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background-color: var(--bg-root);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 64px;
}

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

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .app-mockup {
    transform: none !important; /* Disable 3D effect on mobile for better fit */
    max-width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps-grid::before {
    display: none;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-links {
    gap: 32px;
    flex-direction: column;
  }
  
  .section {
    padding: 64px 0;
  }
}
