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

:root {
  --primary-color: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary-color: #10B981;
  --accent-color: #F59E0B;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-dark: #111827;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

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

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

.nav-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-links .btn-docs {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-links .btn-docs:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 60px;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

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

.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Why Section */
.why-section {
  background: var(--bg-light);
}

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

.why-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.why-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Features Section */
.features-section {
  background: white;
}

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

.feature-card {
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

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

.feature-icon {
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--text-light);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Performance Section */
.performance-section {
  background: var(--bg-dark);
  color: white;
}

.performance-section .section-title,
.performance-section .section-subtitle {
  color: white;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.performance-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.performance-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.performance-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.perf-stat {
  display: flex;
  flex-direction: column;
}

.perf-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.perf-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.optimization-features {
  margin-top: 3rem;
}

.optimization-features h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

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

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

.opt-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.optimization-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.optimization-item p {
  opacity: 0.9;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Getting Started Section */
.getting-started-section {
  background: var(--bg-light);
}

.code-example {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.code-step {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-step h3 {
  background: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.125rem;
}

.code-step pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: #1e1e1e;
}

.code-step code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d4d4d4;
}

.advanced-examples {
  margin-top: 4rem;
}

.advanced-examples h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

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

.example-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.example-card h4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  margin: 0;
}

.example-card pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: #1e1e1e;
}

.example-card code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d4d4d4;
}

/* Comparison Section */
.comparison-section {
  background: white;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow-md);
  border-radius: 1rem;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table th.highlight {
  background: var(--primary-dark);
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
  background: var(--bg-light);
}

.comparison-table td {
  padding: 1rem;
}

.comparison-table td.highlight {
  background: rgba(79, 70, 229, 0.05);
  font-weight: 600;
  color: var(--primary-color);
}

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

.note {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid var(--primary-color);
}

.note h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.note ul {
  list-style: none;
  padding: 0;
}

.note li {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  color: var(--text-light);
}

.note li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Use Cases Section */
.use-cases-section {
  background: var(--bg-light);
}

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

.use-case-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.use-case-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.use-case-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.use-case-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Pricing Section */
.pricing-section {
  background: white;
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.pricing-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .pricing-grid-three {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.free {
  border-color: var(--border-color);
}

.pricing-card.pro {
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
  transform: scale(1.05);
}

.pricing-card.enterprise {
  border-color: var(--border-color);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.pro:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  text-align: center;
}

.pricing-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.price-period {
  font-size: 1.125rem;
  color: var(--text-light);
}

.pricing-description {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 1rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-lighter);
  margin: 0;
}

.pricing-comparison-callout {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
}

.pricing-comparison-callout h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.pricing-comparison-callout p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.savings-highlight {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.savings-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  min-width: 200px;
}

.savings-item.highlight {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
}

.savings-label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.savings-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.savings-arrow {
  font-size: 2rem;
  font-weight: bold;
}

.savings-note {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 1rem;
  margin-bottom: 0;
}

.savings-detail {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-faq {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.pricing-faq h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

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

.faq-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 0.5rem;
}

.faq-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .why-grid,
  .features-grid,
  .performance-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .comparison-notes {
    grid-template-columns: 1fr;
  }
}

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

.hero-content,
.section-title,
.section-subtitle {
  animation: fadeInUp 0.8s ease-out;
}
