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

:root {
  --green-500: #00a868;
  --green-600: #008f58;
  --green-50:  #e6f7f1;
  --gray-50:   #f9f9f9;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #6b7280;
  --gray-800:  #1f2937;
  --gray-900:  #111827;
  --white:     #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 48px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  border: 2px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--green-500);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-600);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-800);
}

.btn--ghost:hover {
  background: var(--gray-100);
}

.btn--outline {
  background: transparent;
  border-color: var(--green-500);
  color: var(--green-500);
}

.btn--outline:hover {
  background: var(--green-50);
}

.btn--white {
  background: var(--white);
  color: var(--green-600);
  font-weight: 700;
}

.btn--white:hover {
  background: var(--gray-100);
}

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
}

/* ===========================
   HEADER
=========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span {
  color: var(--green-500);
}

.logo--white {
  color: var(--white);
}

.logo--white span {
  color: var(--green-50);
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background 0.15s, color 0.15s;
}

.nav__link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.header__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-200);
}

.mobile-menu a {
  padding: 10px 0;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu.is-open {
  display: flex;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, #f0faf6 0%, #e8f5ee 50%, #f5fbf8 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}

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

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.tabs {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.tab {
  padding: 8px 24px;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab--active {
  background: var(--green-500);
  color: var(--white);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1.5px solid var(--gray-200);
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--green-500);
}

.search-box__icon {
  padding: 0 14px;
  color: var(--gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-box__input {
  flex: 1;
  padding: 16px 8px;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: transparent;
}

.search-box__input::placeholder {
  color: var(--gray-400);
}

.search-box__btn {
  padding: 14px 24px;
  background: var(--green-500);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box__btn:hover {
  background: var(--green-600);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__tags span {
  font-size: 0.82rem;
  color: var(--gray-600);
  background: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.hero__tags span:hover {
  border-color: var(--green-500);
  color: var(--green-500);
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  position: relative;
}

.image-placeholder {
  height: 240px;
  background: linear-gradient(135deg, #b7e4cf, #7ecba9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
}

.image-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

.image-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  background: var(--green-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-500);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.image-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.image-badge small {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===========================
   STATS
=========================== */
.stats {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-500);
}

.stat span {
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ===========================
   LISTINGS
=========================== */
.listings {
  padding: 80px 0;
  background: var(--gray-50);
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.card__image {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.card__image--1 {
  background: linear-gradient(135deg, #a8d5c2, #5aab8a);
}

.card__image--2 {
  background: linear-gradient(135deg, #91c4d8, #4a96b3);
}

.card__image--3 {
  background: linear-gradient(135deg, #c4b5d8, #8a6fb0);
}

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.card__tag--premium {
  background: #f59e0b;
}

.card__body {
  padding: 16px 20px 20px;
}

.card__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.card__price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-600);
}

.card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.card__features {
  display: flex;
  gap: 12px;
}

.card__features li {
  font-size: 0.8rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 20px;
}

.listings__cta {
  text-align: center;
}

/* ===========================
   HOW IT WORKS
=========================== */
.how {
  padding: 80px 0;
  background: var(--white);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.how__step {
  text-align: center;
  padding: 24px 16px;
}

.how__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.how__icon--1 { background: #e6f7f1; color: var(--green-500); }
.how__icon--2 { background: #fef3c7; color: #d97706; }
.how__icon--3 { background: #ede9fe; color: #7c3aed; }
.how__icon--4 { background: #fee2e2; color: #dc2626; }

.how__step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.how__step p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===========================
   BENEFITS
=========================== */
.benefits {
  padding: 80px 0;
  background: var(--gray-50);
}

.benefits__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benefits__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 32px;
  line-height: 1.25;
  color: var(--gray-900);
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.benefits__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  width: 28px;
  height: 28px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits__list li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.benefits__list li p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.benefits__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 220px;
  background: var(--gray-900);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--gray-200);
}

.phone-screen {
  background: var(--white);
  border-radius: 26px;
  padding: 24px 16px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-bar {
  width: 60px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.phone-card {
  background: var(--green-50);
  border: 1px solid #b2dfcb;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.phone-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.phone-detail {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.phone-check {
  width: 40px;
  height: 40px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.2rem;
}

.phone-card--sm {
  background: var(--gray-50);
  border-color: var(--gray-200);
  padding: 12px 16px;
  text-align: left;
}

.phone-mini-label {
  font-size: 0.72rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.phone-mini-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  padding: 80px 0;
  text-align: center;
}

.cta-section__inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section__inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.cta-section__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--gray-900);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-400);
  max-width: 220px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 10px;
  transition: color 0.15s;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom span {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 0.82rem;
  color: var(--gray-400);
  transition: color 0.15s;
}

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

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__image {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listings__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .benefits__visual {
    order: -1;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav,
  .header__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .listings__grid {
    grid-template-columns: 1fr;
  }

  .how__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .search-box__btn {
    padding: 14px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .how__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: 1fr;
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }
}