/* Landlords landing. Desktop values come from the Figma frame (1400 px wide).
   Figma has no tablet or phone frames: the breakpoints below are our own. */

:root {
  --bg: #121416;
  --bg-deep: #0b0c0d;
  --accent: #fc9200;
  --text: #ffffff;
  --muted: #b9bcc0;
  --font-display: 'Arsenal', system-ui, sans-serif;
  --font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.accent { color: var(--accent); }

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0.012em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 54px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 20px;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--outline { border: 1px solid var(--text); }
.btn--outline:hover { background: rgba(255, 255, 255, .08); }
.btn--primary {
  width: 275px;
  background: var(--accent);
  color: #121416;
  font-weight: 500;
}
.btn--primary:hover { background: #ffa82e; }
.btn--lang { width: 85px; padding: 0 0 0 7px; gap: 3px; font-size: 16px; cursor: default; }
.btn--lang svg { flex-shrink: 0; width: 13px; height: 8px; }
.btn--auth { width: 189px; font-size: 21px; }
.btn--wide { width: 253px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  height: 750px;
  background: var(--bg-deep);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url(../img/hero-background.png) center top / cover no-repeat;
}
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: 22px;
}
.nav__logo img { width: 144px; height: 87px; }
.nav__menu {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav__links {
  display: flex;
  gap: 20px;
  margin-left: 50px;
  font-size: 16px;
  letter-spacing: 0.03em;
  position: relative;
  top: 2px;
}
.nav__links a:hover { color: var(--accent); }
.nav__actions {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__burger { display: none; }

.hero__body {
  position: relative;
  height: calc(750px - 109px);
}
.hero__text {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 159px;
}
.hero .h-display { letter-spacing: 0; }
.hero__lead { margin-top: 6px; line-height: 23px; }
.hero__waiting { margin-top: 51px; font-weight: 500; }
.hero__pills { display: flex; gap: 19px; margin-top: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--text);
  border-radius: 12px;
  letter-spacing: 0.03em;
}
.pill--dev { width: 261px; }
.pill--inv { width: 326px; }
.hero__phones {
  position: absolute;
  top: -109px;
  left: 0;
  right: 0;
  height: 750px;
  max-width: 1400px;
  margin: 0 auto;
  pointer-events: none;
}
.hero__phone { position: absolute; }
.hero__phone--back { left: 608px; top: 55px; width: 701px; }
.hero__phone--front { left: 782px; top: 100px; width: 616px; }

/* Map call to action */
.mapcta {
  background: #070809 url(../img/map-background.png) center top / cover no-repeat;
  min-height: 586px;
  text-align: center;
}
.mapcta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 60px;
}
.mapcta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 46px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.mapcta .btn--primary { margin-top: 252px; }
.mapcta__note {
  margin-top: 21px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

/* Features */
.features { padding: 99px 0 150px; }
.features__head { text-align: center; margin-bottom: 101px; }
.features__head p { margin-top: 12px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 624px;
  gap: 76px;
  align-items: center;
}
.feature + .feature { margin-top: 146px; }
/* The text boxes repeat the Figma frames: 430 px on the left, 480 px on the right. */
.feature--flip { grid-template-columns: 624px 1fr; gap: 54px; }
.feature--flip .feature__img { order: -1; }
.feature__img { border-radius: 24px; width: 624px; }
.feature__text { width: 430px; justify-self: start; text-align: center; }
.feature--flip .feature__text { width: 480px; }
.feature h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.feature p { margin-top: 12px; font-size: 26px; line-height: 30px; letter-spacing: 0.01em; }
.feature .feature__sub { margin-top: 8px; font-size: 20px; line-height: 26px; color: var(--muted); }

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  background: #050607;
  min-height: 800px;
}
.footer__bg {
  position: absolute;
  inset: 0;
  background: url(../img/footer-background.png) center top / cover no-repeat;
}
.footer__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 115px;
}
.h-display--footer { max-width: 560px; font-size: 44px; line-height: 56px; }
.footer__facts { margin-top: 15px; font-size: 24px; line-height: 39px; letter-spacing: 0.02em; }
.footer__buttons { display: flex; gap: 20px; margin-top: 61px; }
.footer__buttons .btn:last-child { width: 185px; }
.footer__brand { width: 360px; flex-shrink: 0; line-height: 33px; }
.footer__brand > img { width: 122px; height: auto; }
.footer__brand p { white-space: nowrap; }
.footer__company { margin-top: 56px; margin-bottom: 4px; font-size: 24px; font-weight: 700; letter-spacing: 0.018em; }
.footer__brand a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 9px; margin-top: 46px; }
.footer__social a { transition: transform .15s; }
.footer__social a:hover { transform: translateY(-2px); }
.footer__legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  align-items: center;
  margin-top: 72px;
  padding-top: 47px;
  padding-bottom: 60px;
  font-size: 20px;
}
.footer__legal::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, rgba(252, 146, 0, .7), rgba(252, 146, 0, .35));
}
.footer__legal a:hover { color: var(--accent); }

/* Tablet: 768–1199 */
@media (max-width: 1199px) {
  :root { --gutter: 40px; }
  .nav__links { gap: 16px; margin-left: 28px; font-size: 15px; }
  .nav__actions { gap: 12px; }
  .btn--auth { width: auto; font-size: 17px; }
  .hero__text { max-width: 560px; }
  .hero__phones { left: auto; right: -260px; width: 800px; }
  .hero__phone--back { left: 0; }
  .hero__phone--front { left: 174px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feature--flip { grid-template-columns: 1fr 1fr; }
  .feature__img { width: 100%; }
  .feature__text, .feature--flip .feature__text { width: auto; justify-self: stretch; }
  .br-d { display: none; }
  .feature h3 { font-size: 22px; line-height: 26px; }
  .feature p { font-size: 20px; line-height: 26px; }
  .footer__brand { width: 320px; }
}

/* Menu collapses into a burger below 1024 */
@media (max-width: 1023px) {
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0 10px;
    background: none;
    border: 1px solid var(--text);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav__burger span { display: block; height: 2px; background: var(--text); border-radius: 1px; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 12px;
    padding: 24px;
    background: #16181b;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__links { top: 0; flex-direction: column; gap: 16px; margin: 0; font-size: 18px; }
  .nav__actions { margin: 0; }
  .nav__actions .btn--auth { flex: 1; }
}

/* Tablet portrait: below 900 the hero and features stack */
@media (max-width: 899px) {
  .hero { height: auto; }
  .hero__body { height: auto; display: flex; flex-direction: column; }
  .hero__text { max-width: none; padding-top: 70px; }
  /* The desktop pair of phones, scaled: box 790 x 640 px of the Figma frame. */
  .hero__phones {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 790 / 640;
    margin: 0 auto -1px;
    overflow: hidden;
  }
  .hero__phone--back { left: -6%; top: -8%; width: 88.7%; }
  .hero__phone--front { left: 16%; top: -1%; width: 78%; }
  .mapcta { min-height: 0; }
  .mapcta__inner { padding-top: 60px; padding-bottom: 70px; }
  .mapcta__title { font-size: 34px; line-height: 40px; }
  .mapcta .btn--primary { margin-top: 140px; }
  .mapcta__note { font-size: 20px; }
  .features { padding: 80px 0 100px; }
  .features__head { margin-bottom: 64px; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__img { order: 0; }
  .feature + .feature { margin-top: 90px; }
  .feature__img { max-width: 624px; margin: 0 auto; }
  .feature__text { max-width: 600px; margin: 0 auto; }
  .footer__inner { flex-direction: column; padding-top: 80px; gap: 56px; }
  .footer__brand { width: auto; }
  .footer__company { margin-top: 28px; }
  .footer__social { margin-top: 28px; }
  .footer__legal { margin-top: 56px; }
}

/* Phone: below 600 */
@media (max-width: 599px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .nav { padding-top: 14px; }
  .nav__logo img { width: 96px; height: auto; }
  .h-display { font-size: 30px; line-height: 36px; }
  .h-section { font-size: 34px; }
  .hero__text { padding-top: 44px; }
  .hero__lead { line-height: 22px; margin-top: 12px; }
  .hero__waiting { margin-top: 32px; }
  .hero__pills { flex-direction: column; gap: 12px; }
  .pill, .pill--dev, .pill--inv { width: auto; height: 50px; padding: 0 16px; font-size: 18px; }
  .mapcta__title { font-size: 26px; line-height: 32px; }
  .mapcta__title br { display: none; }
  .mapcta .btn--primary { margin-top: 110px; width: 100%; max-width: 320px; }
  .mapcta__note { font-size: 17px; }
  .features { padding: 64px 0 80px; }
  .features__head { margin-bottom: 48px; }
  .feature + .feature { margin-top: 72px; }
  .feature__img { border-radius: 16px; }
  .feature h3 { font-size: 20px; line-height: 24px; }
  .feature p { font-size: 17px; line-height: 23px; }
  .feature .feature__sub { font-size: 15px; line-height: 20px; }
  .h-display--footer { font-size: 30px; line-height: 38px; }
  .footer__facts { font-size: 19px; line-height: 32px; }
  .footer__buttons { flex-direction: column; margin-top: 36px; }
  .footer__buttons .btn, .footer__buttons .btn:last-child { width: 100%; }
  .footer__brand { line-height: 27px; font-size: 17px; }
  .footer__company { font-size: 20px; }
  .footer__legal { flex-direction: column; align-items: flex-start; font-size: 16px; gap: 12px; }
}
