:root {
  --navy-950: #031021;
  --navy-900: #06182f;
  --navy-800: #0b294b;
  --bbs-blue: #164b85;
  --yellow: #ffd21c;
  --white: #ffffff;
  --muted: #aebdcd;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font-manrope), Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

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

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

.hero {
  position: relative;
  min-height: 92svh;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 16, 33, 0.98) 0%, rgba(3, 16, 33, 0.83) 29%, rgba(3, 16, 33, 0.24) 66%, rgba(3, 16, 33, 0.06) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, rgba(3, 16, 33, 0.05) 38%);
}

.site-header {
  display: flex;
  align-items: center;
  width: min(100% - 56px, 1500px);
  margin: 0 auto;
  padding-top: 26px;
}

.site-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 4px;
}

.hero__content {
  width: min(100% - 56px, 1500px);
  margin: 0 auto;
  padding-top: clamp(80px, 12vh, 160px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 7.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero h1 > span:first-child {
  margin-bottom: 14px;
  font-size: 0.62em;
  font-weight: 250;
  letter-spacing: -0.055em;
}

.hero__headline-strong {
  white-space: nowrap;
}

.yellow-dot {
  color: var(--yellow);
}

.hero__description {
  max-width: 520px;
  margin: 34px 0 32px;
  color: #d5deea;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  font-weight: 350;
  line-height: 1.7;
}

.primary-cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 26px;
  border: 1px solid var(--yellow);
  border-radius: 3px;
  background: var(--yellow);
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.primary-cta:hover {
  transform: translateY(-3px);
  background: #ffe05b;
  box-shadow: 0 16px 38px rgba(255, 210, 28, 0.2);
}

.primary-cta > span {
  font-size: 1.05rem;
  transition: transform 220ms ease;
}

.primary-cta:hover > span {
  transform: translate(3px, -3px);
}

.hero__scroll {
  position: absolute;
  right: max(28px, calc((100vw - 1500px) / 2));
  bottom: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll span:last-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.catalog {
  padding: clamp(76px, 9vw, 140px) max(28px, calc((100vw - 1500px) / 2));
  background:
    radial-gradient(circle at 87% 5%, rgba(22, 75, 133, 0.27), transparent 30%),
    var(--navy-950);
}

.catalog__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 48px;
}

.catalog__heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
}

.catalog__heading h2 strong {
  font-weight: 800;
}

.catalog__heading > p {
  max-width: 380px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.property-card {
  --card-delay: 0ms;
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--navy-800);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(18px);
  animation: card-reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--card-delay);
  transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.property-card__link {
  position: absolute;
  inset: 0;
  display: block;
}

.property-card.image-error {
  background: linear-gradient(145deg, var(--navy-800), var(--bbs-blue));
}

.property-card.image-error .property-card__image {
  display: none;
}

.property-card:hover {
  z-index: 2;
  border-color: rgba(255, 210, 28, 0.86);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 210, 28, 0.18);
  transform: translateY(-7px) scale(1.015);
}

.property-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
}

.property-card:hover .property-card__image {
  transform: scale(1.065);
  filter: saturate(1.08) contrast(1.02);
}

.property-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 16, 33, 0.02) 30%, rgba(3, 16, 33, 0.98) 100%);
}

.property-card__actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.card-action {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(3, 16, 33, 0.72);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.card-action:hover,
.card-action:focus-visible {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.card-action:focus-visible {
  outline: 3px solid rgba(255, 210, 28, 0.45);
  outline-offset: 3px;
}

.card-action__copy {
  font-size: 1.25rem;
  transform: translateY(-1px);
}

.card-action__share-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}

.card-action:hover .card-action__share-icon,
.card-action:focus-visible .card-action__share-icon {
  filter: brightness(0);
}

.property-card__feedback {
  position: absolute;
  top: 64px;
  right: 14px;
  z-index: 5;
  padding: 8px 11px;
  border-radius: 4px;
  background: var(--yellow);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  color: var(--navy-950);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: feedback-in 180ms ease-out both;
}

.property-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
}

.property-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.property-card__title-row strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.012em;
}

.property-card__arrow {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--yellow);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.property-card:hover .property-card__arrow {
  transform: translate(3px, -3px);
  background: var(--yellow);
  color: var(--navy-950);
}

.property-card__description {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.79rem;
  line-height: 1.45;
}

.property-card__details {
  margin-top: 8px;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.closing-cta {
  display: grid;
  min-height: 560px;
  place-content: center;
  padding: 90px 28px;
  background: var(--yellow);
  color: var(--navy-950);
  text-align: center;
}

.closing-cta .eyebrow {
  color: var(--bbs-blue);
}

.closing-cta h2 {
  max-width: 930px;
  margin: 0 auto 38px;
  font-size: clamp(2.6rem, 5.4vw, 6.2rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.primary-cta--dark {
  justify-self: center;
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
}

.primary-cta--dark:hover {
  background: var(--navy-800);
  box-shadow: 0 16px 38px rgba(3, 16, 33, 0.2);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  padding: 72px max(28px, calc((100vw - 1500px) / 2)) 34px;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
}

.site-footer__brand img {
  width: 76px;
  border-radius: 4px;
}

.site-footer__brand p {
  max-width: 390px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  color: #d9e3ee;
  font-size: 0.78rem;
}

.site-footer__links a {
  transition: color 200ms ease;
}

.site-footer__links a:hover {
  color: var(--yellow);
}

.site-footer__copyright {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-card {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 840px;
    background-position: 65% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(3, 16, 33, 0.94) 0%, rgba(3, 16, 33, 0.45) 100%),
      linear-gradient(0deg, var(--navy-950) 0%, rgba(3, 16, 33, 0.05) 55%);
  }

  .site-header,
  .hero__content {
    width: min(100% - 40px, 1500px);
  }

  .site-logo {
    width: 66px;
    height: 66px;
  }

  .hero__content {
    padding-top: 120px;
  }

  .hero__scroll {
    display: none;
  }

  .catalog__heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__copyright {
    grid-column: 1;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
    background-position: 69% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(3, 16, 33, 0.9) 0%, rgba(3, 16, 33, 0.44) 100%),
      linear-gradient(0deg, var(--navy-950) 0%, rgba(3, 16, 33, 0.03) 62%);
  }

  .site-header {
    width: calc(100% - 32px);
    padding-top: 16px;
  }

  .site-logo {
    width: 58px;
    height: 58px;
  }

  .hero__content {
    width: calc(100% - 32px);
    padding-top: 155px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero__description {
    max-width: 320px;
    font-size: 0.96rem;
  }

  .primary-cta {
    width: 100%;
  }

  .catalog {
    padding-right: 16px;
    padding-left: 16px;
  }

  .catalog__heading {
    margin-bottom: 32px;
  }

  .property-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .property-card {
    min-height: 420px;
  }

  .card-action {
    width: 46px;
    height: 46px;
  }

  .property-card__feedback {
    top: 68px;
  }

  .closing-cta {
    min-height: 520px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
