/* ============================================
   MAIN STYLES (Homepage) - Pro Compressor
   ============================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-primary-dark: #0f0f12;
  --bg-secondary-dark: #1a1a1f;
  --bg-tertiary-dark: #252530;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-primary-dark: #f9fafb;
  --text-secondary-dark: #9ca3af;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --success-color: #10b981;
  --border-color: #e2e8f0;
  --border-color-dark: #2d2d35;
  --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);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: var(--bg-primary-dark);
  --bg-secondary: var(--bg-secondary-dark);
  --bg-tertiary: var(--bg-tertiary-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --border-color: var(--border-color-dark);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-smooth);
  padding-top: 70px;
}

/* Hero Section */
.hero {
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out;
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: var(--transition-smooth);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero__cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.hero__cta-icon {
  width: 20px;
  height: 20px;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tool Section Wrapper */
.tool-wrapper {
  padding: 0 24px 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  transition: var(--transition-smooth);
}

.tool-wrapper__container {
  max-width: 800px;
  margin: 0 auto;
}

/* How To Use Section */
.how-to-use {
  padding: 80px 24px;
  background: var(--bg-secondary);
  transition: var(--transition-smooth);
}

.how-to-use__container {
  max-width: 1000px;
  margin: 0 auto;
}

.how-to-use__header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

.how-to-use__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  position: relative;
  overflow: visible;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.step-card__number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  z-index: 2;
}

.step-card__icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.step-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  padding: 80px 24px;
  background: var(--bg-primary);
  transition: var(--transition-smooth);
}

.faq__container {
  max-width: 800px;
  margin: 0 auto;
}

.faq__header {
  text-align: center;
  margin-bottom: 48px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq__item:hover {
  border-color: var(--border-color);
}

.faq__item--open {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.faq__question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.faq__question:hover {
  color: var(--primary-color);
}

.faq__arrow {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.faq__item--open .faq__arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer-content {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features Section */
.features {
  padding: 80px 24px;
  background: var(--bg-secondary);
  transition: var(--transition-smooth);
}

.features__container {
  max-width: 1000px;
  margin: 0 auto;
}

.features__header {
  text-align: center;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card__description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 60px 20px 40px;
  }

  .how-to-use,
  .faq,
  .features {
    padding: 60px 20px;
  }

  .step-card,
  .feature-card {
    padding: 24px 20px;
  }

  .step-card__number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    top: -14px;
    left: 20px;
  }

  .step-card__icon {
    margin-top: 6px;
  }

  .faq__question {
    padding: 16px 20px;
  }

  .faq__answer-content {
    padding: 0 20px 16px;
  }
}
