:root {
  --bg: #0c1117;
  --panel: #111a23;
  --panel-2: #152332;
  --line: #263748;
  --text: #ebf1f7;
  --muted: #9cb0c2;
  --accent: #4dd4b8;
  --accent-2: #8ab4ff;
  --shadow: 0 20px 50px rgba(2, 8, 14, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 15% 5%, #1a2634 0%, rgba(26, 38, 52, 0) 30%),
    radial-gradient(circle at 85% 15%, #1c2d3f 0%, rgba(28, 45, 63, 0) 30%),
    linear-gradient(160deg, #090d12, #0f1720 55%, #0a1118);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: opacity 0.38s ease, transform 0.38s ease;
}

body.page-enter {
  opacity: 0;
  transform: translateY(10px);
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.page-exit {
  opacity: 0;
  transform: translateY(-10px);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.3;
  z-index: -3;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #29d1ac;
  top: 10%;
  left: -5%;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #6fa7ff;
  bottom: 12%;
  right: -10%;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.2;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 16, 24, 0.68);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.4rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  border-color: rgba(255, 255, 255, 0.18);
  color: #051018;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  padding: 6.5rem 0 3.5rem;
}

.kicker {
  font-family: "Space Grotesk", sans-serif;
  color: #a8c8ea;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.9vw, 4rem);
  line-height: 1.06;
  max-width: 14ch;
}

.hero-copy {
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.7;
  margin-top: 1.3rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.7rem;
  align-items: center;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(760px, 100%);
  background: rgba(11, 19, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.38rem;
}

.hero-search input {
  flex: 1;
  min-width: 170px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
}

.hero-search input::placeholder {
  color: #88a0b7;
}

.hero-actions > .btn {
  text-decoration: none;
}

.hero-stats {
  margin-top: 2.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(17, 26, 35, 0.65);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  background: linear-gradient(170deg, rgba(18, 30, 42, 0.9), rgba(13, 21, 31, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-top h2 {
  font-size: clamp(1.4rem, 3.8vw, 2.2rem);
}

.muted {
  color: var(--muted);
  max-width: 36ch;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(120deg, rgba(77, 212, 184, 0.24), rgba(138, 180, 255, 0.22));
  color: var(--text);
  border-color: rgba(138, 180, 255, 0.5);
}

.card-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.property-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transform-style: preserve-3d;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.property-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(138, 180, 255, 0.5);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}

.pill.buy {
  background: rgba(77, 212, 184, 0.22);
  color: #adf3e4;
}

.pill.rent {
  background: rgba(138, 180, 255, 0.22);
  color: #c8deff;
}

.location,
.card-content p {
  color: var(--muted);
}

.card-content h3 {
  margin-top: 0.6rem;
  font-size: 1.2rem;
}

.card-content p {
  margin: 0.35rem 0 0.7rem;
}

.result-count {
  color: var(--muted);
  margin: 1rem 0 0;
}

.split {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bottom-stack {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.trust-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.trust-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 1rem;
}

.trust-grid h3 {
  font-size: 1.02rem;
}

.trust-grid ul {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

.landing-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.landing-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(138, 180, 255, 0.08), rgba(77, 212, 184, 0.06));
  border-radius: 18px;
  padding: 1rem;
}

.landing-card .tag {
  margin: 0;
  color: #b9d2ee;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
}

.landing-card h3 {
  margin-top: 0.45rem;
  font-size: 1.2rem;
}

.landing-card p {
  color: var(--muted);
  margin: 0.45rem 0 0.7rem;
}

.landing-card a {
  color: #d3e4ff;
  font-weight: 700;
  text-decoration: none;
}

.landing-card a:hover {
  text-decoration: underline;
}

.steps {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.steps div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.steps span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
}

.steps p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

label {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
  margin-top: 0.55rem;
  accent-color: var(--accent);
}

.estimate-box {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(140deg, rgba(77, 212, 184, 0.14), rgba(138, 180, 255, 0.08));
}

.estimate-box p,
.estimate-box span {
  margin: 0;
  color: var(--muted);
}

.estimate-box strong {
  display: block;
  margin: 0.45rem 0;
  font-size: 2rem;
}

footer {
  margin: 2.2rem auto 2.6rem;
  text-align: center;
  padding: 2.1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h2 {
  font-size: clamp(1.4rem, 3.8vw, 2.4rem);
}

footer p,
footer small {
  color: var(--muted);
}

.footer-links {
  margin: 1rem 0 0.6rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c8deff;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.07s;
}

.delay-2 {
  animation-delay: 0.14s;
}

.delay-3 {
  animation-delay: 0.21s;
}

.delay-4 {
  animation-delay: 0.29s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 4.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.62rem;
  }

  .hero-search .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-grid,
  .landing-grid {
    grid-template-columns: 1fr;
  }
}
