* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #6c5ce7;
  --purple-dark: #3b2e7e;
  --black: #050509;
  --white: #ffffff;
  --bg: #070713;
  --text-main: #f5f5ff;
  --text-muted: #b3b3c9;
  --card-bg: #11101f;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --shadow-soft: 0 22px 40px rgba(0, 0, 0, 0.65);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition-fast: 0.2s ease-out;
}

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #2d1751 0, #050509 45%, #020106 100%);
  color: var(--text-main);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.92), rgba(5, 5, 9, 0.7), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem 0.85rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, var(--purple) 0, var(--purple-dark) 45%, #050509 100%);
  box-shadow: 0 12px 26px rgba(108, 92, 231, 0.45);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--white));
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple), #9b5de5);
  color: var(--white);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.5);
}

.btn--primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 40px rgba(108, 92, 231, 0.7);
}

.btn--outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.1rem, 3vw + 1.5rem, 3.1rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-flag {
  display: inline-block;
  height: 26px;
  margin-right: 0.4rem;
  vertical-align: middle;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero__content p {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  max-width: 34rem;
}

.search-bar {
  background: rgba(5, 5, 9, 0.92);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.6rem;
}

.search-bar input,
.search-bar select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 7, 19, 0.9);
  color: var(--text-main);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.75);
}

.hero__stats {
  display: flex;
  gap: 1.8rem;
  font-size: 0.85rem;
}

.hero__stats .number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero__stats .label {
  color: var(--text-muted);
}

.hero__cards {
  position: relative;
  display: grid;
  gap: 1rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(108, 92, 231, 0.25), rgba(5, 5, 9, 0.96));
  box-shadow: var(--shadow-soft);
}

.hero-card--primary {
  min-height: 150px;
}

.hero-card--secondary {
  background: linear-gradient(135deg, rgba(7, 7, 19, 0.96), rgba(14, 11, 35, 0.98));
}

.section {
  padding: 4rem 0 3rem;
}

.section--dark {
  background: radial-gradient(circle at top, #130b2a 0, #050509 40%, #020106 100%);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.3rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-item {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(150deg, rgba(8, 6, 24, 0.95), rgba(9, 9, 19, 0.98));
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.feature-item h3 {
  margin-bottom: 0.4rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.listings-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.listing-card {
  border-radius: 18px;
  overflow: hidden;
  background: #050509;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.listing-card__image {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.listing-card__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.listing-card__body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.listing-card__title {
  font-size: 1rem;
  font-weight: 600;
}

.listing-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.listing-card__price {
  font-weight: 700;
  color: var(--purple);
}

.listing-card__location {
  color: var(--text-muted);
}

.listing-card__details {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.listing-card__cta {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-card__cta button {
  padding-inline: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.step-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.2rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(108, 92, 231, 0.18), #050509 60%);
}

.step-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), #9b5de5);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta {
  padding-bottom: 4rem;
}

.cta__inner {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.6rem 1.8rem;
  background: radial-gradient(circle at top left, rgba(155, 93, 229, 0.32), rgba(5, 5, 9, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.download__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.download-buttons .btn {
  min-width: 180px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 0 1.4rem;
  background: #050509;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #000000;
  padding: 4px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__cards {
    order: -1;
  }

  .search-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listings-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .navbar__inner {
    gap: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__stats {
    flex-wrap: wrap;
    row-gap: 0.8rem;
  }

  .listings-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .download__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
