/* HomeDex Website Styles */

:root {
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --accent: #0891b2;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --error: #ef4444;
  --success: #10b981;
}

* {
  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;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

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

/* Navigation */
.nav {
  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);
  z-index: 100;
}

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

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

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

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

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

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-cta img {
  height: 24px;
}

/* Problem Section */
.problem {
  padding: 80px 0;
  background: var(--surface);
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

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

.problem-card {
  background: var(--background);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.problem-card p {
  color: var(--text-secondary);
}

/* Solution Section */
.solution {
  padding: 80px 0;
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.solution-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.solution-image {
  text-align: center;
}

.solution-image img {
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--surface);
}

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

.feature-card {
  background: var(--background);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

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

.feature-card p {
  color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 24px 0;
  scroll-snap-type: x mandatory;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: center;
}

.screenshot-item img {
  height: 500px;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  padding: 48px 0;
  background: var(--text-primary);
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.legal-page .last-updated {
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-page ul {
  padding-left: 24px;
}

.legal-page a {
  color: var(--primary);
}

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

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .solution-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
