/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.nav-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #1f2937;
}

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

.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ff6600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e55a00 0%, #cc5200 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
  line-height: 1.1;
}

.hero-highlight {
  color: #ff6600;
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ff6600;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Extension Preview */
.extension-preview {
  position: relative;
  perspective: 1000px;
}

.browser-window {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.browser-window:hover {
  transform: rotateY(-3deg) rotateX(3deg);
}

.browser-header {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.browser-dots {
  display: flex;
  gap: 0.375rem;
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-title {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.browser-content {
  padding: 1.5rem;
}

.extension-ui {
  max-width: 320px;
}

.extension-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.extension-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.extension-header h3 {
  flex: 1;
  font-size: 1.125rem;
  color: #111827;
  margin: 0;
}

.guidelines-link {
  font-size: 0.8125rem;
  color: #6b7280;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.guidelines-link:hover {
  color: #ff6600;
  background: rgba(255, 102, 0, 0.1);
}

.page-info {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.page-title {
  font-weight: 500;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

.page-url {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace;
}

.title-optimization {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.optimization-badge {
  background: #0ea5e9;
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.optimized-title {
  font-weight: 500;
  color: #0c4a6e;
}

.title-input {
  margin-bottom: 1rem;
}

.title-input label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.title-field {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.title-field:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  color: white;
  border: none;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #e55a00 0%, #cc5200 100%);
  transform: translateY(-1px);
}

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

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Features */
.features {
  background: white;
}

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

.feature-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.feature-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Installation */
.install {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.install-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.install-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.install-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.install-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.install-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1.5rem;
}

.install-steps {
  text-align: left;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.install-steps li {
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.install-steps code {
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 0.875rem;
  color: #374151;
}

.install-btn {
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
}

.install-btn:hover {
  background: linear-gradient(135deg, #e55a00 0%, #cc5200 100%);
  transform: translateY(-1px);
}

/* How it Works */
.how-it-works {
  background: white;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step-content h3 {
  font-size: 1.125rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #6b7280;
}

.step-connector {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #ff6600 0%, #e55a00 100%);
  opacity: 0.3;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Footer */
.footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 3rem 0 1.5rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.footer-title {
  font-weight: 600;
  color: #111827;
}

.footer-description {
  color: #6b7280;
  line-height: 1.6;
}

.footer-description a {
  color: #ff6600;
  text-decoration: none;
}

.footer-description a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ff6600;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-icon {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .feature-title {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .step-connector {
    width: 2px;
    height: 3rem;
    transform: rotate(90deg);
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

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

.feature-card,
.install-card,
.step {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.1s; }
.feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

.install-card:nth-child(2) { animation-delay: 0.1s; }
.install-card:nth-child(3) { animation-delay: 0.2s; }

.step:nth-child(3) { animation-delay: 0.1s; }
.step:nth-child(5) { animation-delay: 0.2s; }