/* Hero section styles */
.hero {
  padding-top: 12rem;
  padding-bottom: 6rem;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--secondary);
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.hero-badge .status-dot {
  width: 8px;
  height: 8px;
  background: var(--foreground);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title .highlight {
  font-weight: 600;
}

.hero-description {
  font-size: clamp(1.1875rem, 2vw, 1.3125rem);
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-wrap: balance;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Features section */
.features {
  padding: 8rem 0 10rem;
  background: var(--secondary);
}

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

.feature-card {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--foreground);
  color: white;
  margin-bottom: 2.5rem;
  transition: transform 0.3s;
}

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

.feature-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.feature-description {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Tools section */
.tools {
  padding: 8rem 0 10rem;
}

.tools-header {
  text-align: center;
  margin-bottom: 5rem 0 6rem;
}

.tools-heading {
  font-size: 13px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 1rem;
}

.tools-title {
  font-size: clamp(3rem, 4vw, 4.375rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

.tool-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s ease-out;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border-color: var(--foreground);
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.tool-card:hover .tool-icon {
  background: var(--foreground);
  color: white;
}

.tool-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-out;
}

.tool-arrow {
  opacity: 0.5;
  transition: all 0.3s;
}

.tool-title {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.tool-description {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* CTA section */
.cta {
  padding: 8rem 0 10rem;
  text-align: center;
}

.cta-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  background: var(--foreground);
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.02);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-column ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-column a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-content {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.footer-subtitle {
  margin-top: 0.5rem;
  font-size: 13px;
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* Mobile responsive for hero and sections */
@media (max-width: 768px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .features {
    padding: 4rem 0 5rem;
  }

  .features-grid {
    gap: 3rem;
  }

  .tools {
    padding: 4rem 0 5rem;
  }

  .tools-header {
    margin-bottom: 3rem;
  }

  .tool-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .tool-title {
    font-size: 20px;
  }

  .tool-description {
    font-size: 14px;
  }

  .cta {
    padding: 4rem 0 5rem;
  }

  footer {
    padding: 3rem 0 2rem;
  }

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

  .footer-column ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-badge {
    font-size: 12px;
    padding: 0.375rem 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .container {
    padding: 0 1rem;
  }

  .features-grid {
    gap: 2.5rem;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }

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

  .feature-description {
    font-size: 14px;
  }

  .tool-header {
    margin-bottom: 1.5rem;
  }

  .tool-tags {
    gap: 0.375rem;
  }

  .tool-tag {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
  }

  .cta-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-button {
    height: 44px;
    padding: 0 1.5rem;
    font-size: 15px;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .footer-column h3 {
    font-size: 13px;
  }

  .footer-column a {
    font-size: 13px;
  }
}

/* Dark mode specific improvements for better contrast */
[data-theme="dark"] .hero-badge {
  background: var(--secondary);
  border-color: var(--border);
}

[data-theme="dark"] .tool-card:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-icon {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .step-number {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .lang-dropdown {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-primary {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .btn-primary:hover {
  opacity: 0.9;
}

/* Dark mode button text fixes */
[data-theme="dark"] .preset-btn.active {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .copy-main-btn {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .cta-button {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .btn-secondary {
  background: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}

/* 404 page */
.not-found {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.not-found-content {
  text-align: center;
  max-width: 600px;
}

.not-found-code {
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.not-found-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.not-found-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.not-found-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--secondary);
  color: var(--foreground);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
  font-size: 16px;
}

.btn-secondary:hover {
  transform: scale(1.02);
}


/* Additional dark mode fixes */
[data-theme="dark"] .tool-icon {
  background: var(--secondary);
  color: var(--foreground);
}

[data-theme="dark"] .tool-card:hover .tool-icon {
  background: var(--foreground);
  color: var(--background);
}

[data-theme="dark"] .tool-tag {
  background: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}

[data-theme="dark"] .hero-badge .status-dot {
  background: var(--foreground);
}
