/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --coral: #f43f5e;
  --coral-dark: #e11d48;
  --coral-light: #fff1f2;
  --indigo: #6366f1;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--coral);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link-secondary {
  color: var(--slate-500);
}

.nav-link-secondary:hover {
  color: var(--navy);
  background: var(--slate-100);
}

.btn-login {
  color: var(--navy);
  border: 1.5px solid var(--slate-200);
  background: var(--white);
}

.btn-login:hover {
  border-color: var(--slate-400);
  background: var(--slate-100);
}

.btn-signup {
  color: var(--white);
  background: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-signup:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

/* ===== HERO ===== */
.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,63,94,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--coral-light);
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  opacity: 0.3;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--slate-500);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ===== SEARCH BAR ===== */
.search-container {
  width: 100%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.search-container:focus-within {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15), 0 0 0 3px rgba(244,63,94,0.1);
  border-color: var(--coral);
}

.search-row {
  display: flex;
  align-items: center;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.search-field svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--slate-400);
}

.search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--navy);
  background: transparent;
  min-width: 0;
}

.search-field input::placeholder {
  color: var(--slate-400);
}

.search-divider {
  width: 1px;
  height: 28px;
  background: var(--slate-200);
  flex-shrink: 0;
}

.search-field-location input {
  font-weight: 500;
}

.search-btn {
  padding: 0.875rem 1.75rem;
  margin: 0.5rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244,63,94,0.3);
}

.search-btn:active {
  transform: translateY(0);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  color: var(--slate-400);
  font-size: 0.8125rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.categories-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-500);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  transition: height var(--transition);
}

.category-card:nth-child(1)::before { background: var(--indigo); }
.category-card:nth-child(2)::before { background: var(--coral); }
.category-card:nth-child(3)::before { background: var(--teal); }
.category-card:nth-child(4)::before { background: var(--amber); }

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.category-card:hover::before {
  height: 4px;
}

.category-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.08);
}

.category-card:nth-child(1) .category-icon {
  background: rgba(99,102,241,0.1);
  color: var(--indigo);
}
.category-card:nth-child(2) .category-icon {
  background: rgba(244,63,94,0.1);
  color: var(--coral);
}
.category-card:nth-child(3) .category-icon {
  background: rgba(20,184,166,0.1);
  color: var(--teal);
}
.category-card:nth-child(4) .category-icon {
  background: rgba(245,158,11,0.1);
  color: var(--amber);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.65;
  flex: 1;
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.category-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--slate-500);
  transition: all var(--transition);
}

.category-card:hover .category-arrow {
  background: var(--navy);
}

.category-card:hover .category-arrow svg {
  color: var(--white);
  transform: translateX(1px);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 5rem 1.5rem;
  background: var(--slate-100);
}

.how-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

.step-connector {
  position: absolute;
  top: 3.75rem;
  right: -1rem;
  width: 2rem;
  color: var(--slate-300);
}

.step-connector svg {
  width: 100%;
}

/* ===== CTA ===== */
.cta {
  padding: 5rem 1.5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(244,63,94,0.08);
  pointer-events: none;
}

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

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.0625rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,63,94,0.3);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--slate-300);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary-dark:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--coral);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--white);
}

.footer-logo-text span {
  color: var(--coral);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.7;
}

.footer-links-group {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--slate-300);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1023px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .navbar-inner {
    padding: 0 1rem;
  }

  .nav-link-secondary {
    display: none;
  }

  .hero {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  .search-row {
    flex-direction: column;
  }

  .search-divider {
    width: 100%;
    height: 1px;
  }

  .search-field {
    padding: 0.875rem 1rem;
  }

  .search-btn {
    width: calc(100% - 1rem);
    margin: 0 0.5rem 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 0.625rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    padding: 1.5rem 1rem;
  }

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

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

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

  .footer-brand {
    max-width: none;
  }

  .footer-links-group {
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
