:root {
  --midnight-purple: #211A3C;
  --electric-cyan: #22D3EE;
  --deep-violet: #5B3FA8;
  --soft-lavender: #EEE9FF;
  --cool-silver: #E8EBF0;
  --ice-white: #F8FAFC;
  --main-text: #171522;
  --secondary-text: #6B6878;
  --white: #FFFFFF;
  --border: rgba(33, 26, 60, .14);
  --shadow: 0 24px 80px rgba(33, 26, 60, .12);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--ice-white);
  color: var(--main-text);
  font-family: "Assistant", "Rubik", "Arial", sans-serif;
  line-height: 1.6;
  text-align: right;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; direction: rtl; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.brand { display: grid; line-height: 1.1; }
.brand-name { font-weight: 800; letter-spacing: .08em; direction: ltr; }
.brand-tagline { color: var(--secondary-text); font-size: .88rem; }
.primary-nav, .header-actions { display: flex; align-items: center; gap: 18px; }
.primary-nav { justify-content: center; color: var(--secondary-text); font-size: .94rem; }
.primary-nav a:hover, .footer a:hover { color: var(--deep-violet); }
.language { color: var(--secondary-text); font-size: .9rem; white-space: nowrap; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--white); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--midnight-purple); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--electric-cyan); color: var(--midnight-purple); }
.btn-outline { background: var(--white); border-color: var(--midnight-purple); color: var(--midnight-purple); }
.btn-ghost { background: transparent; border-color: rgba(33, 26, 60, .18); color: var(--midnight-purple); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .86fr) minmax(380px, 1fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
  min-height: 760px;
  padding: 92px clamp(20px, 6vw, 96px) 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 26, 60, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 26, 60, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--deep-violet);
  font-size: .86rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  color: var(--midnight-purple);
  font-size: clamp(3rem, 8vw, 7.7rem);
  line-height: .94;
  letter-spacing: 0;
}
h2 { font-size: clamp(2rem, 4vw, 4.4rem); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: 1.35rem; }
.hero-text { max-width: 520px; color: var(--secondary-text); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.space-map {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}
.space-map svg {
  width: 100%;
  height: 100%;
  min-height: 520px;
  filter: drop-shadow(0 34px 60px rgba(33, 26, 60, .13));
  animation: floatGrid 9s ease-in-out infinite;
}
.grid-line { opacity: .58; }
.cyan-path {
  stroke-dasharray: 18 14;
  animation: lineTravel 4s linear infinite;
}
.window { fill: rgba(34, 211, 238, .14); stroke: var(--electric-cyan); stroke-width: 2; animation: pulseWindow 5s ease-in-out infinite; }
.w2 { animation-delay: 1.3s; }
.w3 { animation-delay: 2.2s; }
.node { fill: var(--electric-cyan); stroke: var(--white); stroke-width: 4; }
.map-label, .availability {
  position: absolute;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--midnight-purple);
  box-shadow: var(--shadow);
}
.label-location { top: 80px; right: 9%; }
.label-budget { top: 180px; left: 7%; }
.label-type { bottom: 140px; right: 18%; }
.label-rooms { bottom: 70px; left: 20%; }
.availability { top: 38px; left: 16%; display: grid; gap: 0; border-color: rgba(34, 211, 238, .55); }
.availability b { color: var(--electric-cyan); direction: ltr; font-size: .84rem; }
.availability small { color: var(--secondary-text); }

.search-panel {
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100% - 40px));
  margin: -92px auto 0;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.search-panel h2 { margin-bottom: 20px; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.search-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
label { display: grid; gap: 8px; color: var(--secondary-text); font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--ice-white);
  color: var(--main-text);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(34, 211, 238, .35); border-color: var(--electric-cyan); }
.form-note, .form-status { min-height: 24px; margin: 12px 0 0; color: var(--deep-violet); }

.section { padding: clamp(78px, 10vw, 150px) clamp(20px, 6vw, 96px); }
.spacious { padding-top: clamp(110px, 13vw, 190px); }
.wide-text { max-width: 980px; }
.wide-text p { max-width: 780px; color: var(--secondary-text); font-size: 1.35rem; }
.section-heading { max-width: 820px; margin-bottom: 44px; }
.type-list { border-top: 1px solid var(--border); }
.type-list a {
  display: grid;
  grid-template-columns: 70px minmax(120px, 220px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s ease, padding .2s ease, border-color .2s ease;
}
.type-list span { color: var(--deep-violet); direction: ltr; }
.type-list p { margin: 0; color: var(--secondary-text); }
.type-list a:hover { color: var(--electric-cyan); padding-inline-start: 12px; border-color: rgba(34, 211, 238, .7); }

.feature-section { padding-top: 40px; }
.property-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: end;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.price { color: var(--deep-violet); font-size: 1.8rem; font-weight: 800; direction: rtl; }
.feature-actions { display: grid; justify-items: start; gap: 18px; }
.badge { padding: 8px 12px; border: 1px solid var(--electric-cyan); border-radius: 4px; color: var(--midnight-purple); background: rgba(34, 211, 238, .1); }

.dark-section, .statement, .footer {
  background: var(--midnight-purple);
  color: var(--white);
}
.dark-section { padding: clamp(80px, 10vw, 150px) clamp(20px, 6vw, 96px); overflow: hidden; }
.dark-section .eyebrow, .statement span, .footer a:hover { color: var(--electric-cyan); }
.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
}
.locations a {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  transition: color .2s ease, transform .2s ease;
}
.locations a:hover { color: var(--electric-cyan); transform: translateY(-3px); }

.budget-line {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-block: 1px solid var(--border);
}
.budget-line button {
  min-width: 190px;
  padding: 22px 18px;
  border: 0;
  border-inline-start: 1px solid var(--border);
  background: transparent;
  color: var(--secondary-text);
  cursor: pointer;
  white-space: nowrap;
}
.budget-line button.active, .budget-line button:hover {
  color: var(--midnight-purple);
  background: rgba(34, 211, 238, .12);
}
.demo-results {
  margin-top: 24px;
  padding: 18px 0;
  color: var(--secondary-text);
}
.demo-results strong { color: var(--midnight-purple); }

.principle-grid, .safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(34, 211, 238, .65);
}
.principle-grid article, .safety-grid article {
  min-height: 190px;
  padding: 28px;
  border-bottom: 1px solid var(--border);
  border-inline-start: 1px solid var(--border);
}
.principle-grid p, .safety-grid p { color: var(--secondary-text); }

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--electric-cyan);
  transform-origin: right;
  animation: growLine 3.5s ease-in-out infinite;
}
.process-track article { position: relative; padding-top: 74px; }
.process-track span {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--ice-white);
  border: 1px solid var(--electric-cyan);
  border-radius: 50%;
  color: var(--deep-violet);
  direction: ltr;
  font-weight: 800;
}
.process-track p { color: var(--secondary-text); }

.statement {
  padding: clamp(90px, 12vw, 170px) clamp(20px, 8vw, 120px);
}
.statement h2 { margin-bottom: 26px; font-size: clamp(3.6rem, 10vw, 10rem); }
.statement p { max-width: 880px; font-size: clamp(1.5rem, 4vw, 3.4rem); color: rgba(255, 255, 255, .78); }

.split-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px) auto;
  gap: 34px;
  align-items: center;
}
.clean-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--secondary-text); }
.clean-list li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; background: var(--electric-cyan); }
.owner-band {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 96px);
  background: var(--cool-silver);
}
.owner-band p, .contact-copy p { color: var(--secondary-text); font-size: 1.2rem; }

.contact-section {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(30px, 6vw, 80px);
}
.email-link { display: inline-block; margin-top: 18px; color: var(--deep-violet); font-size: clamp(1.4rem, 3vw, 2.4rem); direction: ltr; }
.contact-form, .owner-modal form { display: grid; gap: 14px; }

.footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  padding: 50px clamp(20px, 6vw, 96px);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 22px; color: rgba(255, 255, 255, .78); }
.footer > a { direction: ltr; }
.footer small { color: rgba(255, 255, 255, .58); }

.sticky-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 18;
  padding: 13px 18px;
  border-radius: 6px;
  background: var(--electric-cyan);
  color: var(--midnight-purple);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.modal {
  width: min(620px, calc(100% - 30px));
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--main-text);
  box-shadow: 0 30px 120px rgba(33, 26, 60, .32);
}
.modal::backdrop { background: rgba(33, 26, 60, .62); backdrop-filter: blur(6px); }
.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--ice-white);
  cursor: pointer;
  font-size: 1.3rem;
}
dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
dl div { padding: 14px; background: var(--ice-white); border: 1px solid var(--border); border-radius: 6px; }
dt { color: var(--secondary-text); font-size: .85rem; }
dd { margin: 0; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes floatGrid {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-8px, 10px, 0); }
}
@keyframes lineTravel { to { stroke-dashoffset: -64; } }
@keyframes pulseWindow {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes growLine {
  0%, 100% { transform: scaleX(.82); opacity: .58; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-toggle { display: block; }
  .primary-nav, .header-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: start;
  }
  .site-header.nav-open .primary-nav, .site-header.nav-open .header-actions { display: flex; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .space-map { min-height: 430px; }
  .space-map svg { min-height: 420px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .btn { grid-column: 1 / -1; }
  .principle-grid, .safety-grid, .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-track::before { display: none; }
  .split-section, .contact-section, .footer { grid-template-columns: 1fr; }
  .owner-band { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header { padding: 13px 16px; }
  .brand { min-width: 0; max-width: 230px; overflow: hidden; }
  .brand-name { font-size: .96rem; letter-spacing: .04em; }
  .brand-tagline { font-size: .8rem; }
  .hero { padding-inline: 16px; padding-bottom: 108px; }
  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
  .hero-copy { width: 100%; min-width: 0; }
  .hero-actions .btn, .owner-band .btn, .tenants .btn { width: 100%; }
  .space-map { min-width: 0; overflow: hidden; }
  .map-label { font-size: .8rem; }
  .label-budget { left: 0; }
  .search-panel { width: calc(100% - 24px); margin-top: -72px; padding: 18px; }
  .search-form, .type-list a, .property-feature, .principle-grid, .safety-grid, .process-track { grid-template-columns: 1fr; }
  .type-list a { gap: 6px; }
  .locations { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; }
  .locations a { min-width: max-content; font-size: 2.45rem; }
  .process-track article { padding-top: 0; padding-inline-start: 88px; min-height: 82px; }
  .process-track span { top: 4px; right: 0; }
  dl { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
