@property --orbit-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --navy: #072454;
  --cobalt: #116bce;
  --glass: #f3faff;
  background: linear-gradient(180deg, #c9e9ff 0, #e3f4ff 47%, #f0f9ff 100%);
}
body { min-height: 100vh; color: var(--navy); }
main { min-height: 65vh; }
.nav {
  position: relative; z-index: 2; border-radius: 0 0 21px 21px;
  background: linear-gradient(145deg, #f4fbff, #d6ecff);
  box-shadow: 0 8px 28px #0a4b8028;
}
.brand { background: white; }
.hero { overflow: hidden; min-height: 450px; background-color: #87c9fb; }
.hero::before {
  background: linear-gradient(270deg, #d8efffe8, #d7efff52 66%, #e7f7ff12),
    linear-gradient(0deg, #daefff 0%, transparent 33%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 8vw, 8rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { font-weight: 900; letter-spacing: -.045em; text-shadow: 0 2px 18px #e4f5ff; }
.hero p { color: #14365e; font-weight: 700; margin-block: .65rem 1.35rem; }
.clouds { position: absolute; pointer-events: none; inset: 0; overflow: hidden; }
.clouds i {
  position: absolute; display: block; width: clamp(240px, 53vw, 740px); height: 110px;
  border-radius: 50%; opacity: .65;
  background: radial-gradient(ellipse at 15% 73%, #ffffffe8 2%, transparent 44%),
    radial-gradient(ellipse at 45% 56%, #fff 0%, transparent 48%),
    radial-gradient(ellipse at 72% 42%, #ffffffe8, transparent 46%),
    radial-gradient(ellipse at 86% 62%, #fbfdffed, transparent 44%);
  filter: blur(7px); animation: cloud-drift 24s ease-in-out infinite alternate;
}
.clouds i:nth-child(1) { inset: 5% auto auto -12%; }
.clouds i:nth-child(2) { inset: auto -9% 5% auto; animation-delay: -12s; }
.clouds i:nth-child(3) { inset: 31% auto auto 3%; animation-delay: -8s; opacity: .38; }
@keyframes cloud-drift { from { transform: translate3d(-12%, -3%, 0) scale(.96); } to { transform: translate3d(28%, 8%, 0) scale(1.1); } }

.viewport-mist {
  position: fixed; z-index: 5; pointer-events: none; bottom: 0; inset-inline: 0;
  height: clamp(36px, 9vh, 90px); opacity: .64;
  background: linear-gradient(to top, #fff, transparent 72%),
    radial-gradient(ellipse at 11% 105%, #fff 0 23%, transparent 61%),
    radial-gradient(ellipse at 42% 102%, #fff 0 20%, transparent 59%),
    radial-gradient(ellipse at 78% 116%, #fff 0 23%, transparent 61%);
}
footer { margin-block-end: 4rem; }

.orbit, .sheet, .cards article, .messages {
  border: 2px solid transparent;
  background: linear-gradient(145deg, #fafdff, #e6f4ff) padding-box,
    conic-gradient(from var(--orbit-angle), #0874d1 0%, #71c9ff 21%, #215ac8 34%, #9ddaff 62%, #e9faff 76%, #0874d1 100%) border-box;
  box-shadow: 0 10px 30px #1368a824;
  animation: orbit 9s linear infinite;
}
@keyframes orbit { to { --orbit-angle: 360deg; } }
.search label { display: flex; align-items: center; gap: .5rem; }
.search div { margin-top: .25rem; }
.search input, .search select, .sheet input, .sheet select, .sheet textarea { border-color: #83b8ed; }
.experience { padding-top: 1.4rem; }
.section-heading h2 { color: var(--navy); margin-top: 0; }
.journey.journey-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin: 0; }
.journey a.route-card {
  display: block; overflow: hidden; min-width: 0; padding: 0; border-radius: 17px; color: var(--navy);
  border: 2px solid transparent;
  background: linear-gradient(145deg, #fafdff, #d9eeff) padding-box,
    conic-gradient(from var(--orbit-angle), #005fcb, #7bd4ff 26%, #164fc5 44%, #d8f3ff 70%, #005fcb) border-box;
  transition: transform .25s, box-shadow .25s;
}
.route-card:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 12px 24px #0c66ac3d; }
.route-name { display: flex; gap: .5rem; align-items: center; min-height: 65px; padding: .25rem .65rem; font-weight: 800; }
.sky-icon, .sky-photo {
  display: inline-block; flex: none; aspect-ratio: 1;
  background-size: 300% 200%; background-position: var(--tile-x) var(--tile-y); background-repeat: no-repeat;
}
.sky-icon { width: 43px; background-image: url(sky-icons.webp); }
.sky-photo { display: block; width: 100%; background-image: url(sky-photos.webp); }
.tile-land { --tile-x: 0%; --tile-y: 0%; }
.tile-build { --tile-x: 50%; --tile-y: 0%; }
.tile-project { --tile-x: 100%; --tile-y: 0%; }
.tile-deal { --tile-x: 0%; --tile-y: 100%; }
.tile-key { --tile-x: 50%; --tile-y: 100%; }
.tile-search { --tile-x: 100%; --tile-y: 100%; }
.empty-card { display: grid; grid-template-columns: minmax(100px, 175px) 1fr; gap: 1.1rem; align-items: center; }
.empty-card .sky-photo, .listing-banner { overflow: hidden; border-radius: 12px; }
.listing-banner { aspect-ratio: 2; }
.listing-banner .sky-photo { margin-top: -18%; }
.sheet h1 { color: var(--navy); }
.sheet progress { accent-color: #146bca; width: 100%; }
@media (max-width: 720px) {
  .hero { min-height: 0; background-position: 43% center; }
  .hero-inner { padding-top: 3.5rem; }
  .journey.journey-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .nav { gap: .4rem; padding-inline: .75rem; }
  .hero-inner { padding-block: 3.1rem 2.15rem; }
  .search { padding: .75rem; }
  .journey.journey-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .route-name { min-height: 53px; }
  .sky-icon { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sky-heading { display: flex; align-items: center; gap: .55rem; }
.listing-banner { position: relative; } .listing-banner .photo-caption { position: absolute; bottom: .4rem; right: .4rem; padding: 0 .5rem; border-radius: 6px; background: #f3faff; color: #072454; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand { display: grid; place-items: center; width: clamp(110px, 14vw, 178px); height: 66px; background: transparent; border-radius: 0; }
.brand img { position: static; width: 100%; height: 100%; object-fit: contain; }
.nav { background: linear-gradient(140deg, #eaf7ff, #cce8ff); }
.sky-home .hero-inner { padding-block: clamp(3rem, 5vw, 5.5rem) 2.25rem; }
.sky-home .hero-inner > p { max-width: 37rem; }
.sky-home .clouds i { opacity: .8; animation-duration: 15s; }
.sky-home .search { max-width: 820px; }
.search-modes { display: flex; flex-wrap: wrap; gap: .35rem; border: 0; padding: 0; margin: 0 0 .55rem; }
.search-modes label { position: relative; flex: 1 1 auto; }
.search-modes label input { position: absolute; opacity: 0; width: 1px; }
.search-modes label span, .sale-action {
  width: 100%; min-height: 42px; display: grid; place-items: center; padding: .3rem .55rem;
  background: #d9edff; color: #073363; border-radius: 9px; cursor: pointer;
}
.sale-action { width: auto; flex: 1 1 auto; font-weight: bold; }
.search-modes input:checked + span { color: #fff; background: #0756bd; }
.search-modes input:focus-visible + span { outline: 3px solid #0064b7; outline-offset: 2px; }
.sky-home .search div { display: flex; margin: 0; }
.sky-home .search button { min-height: 44px; flex: none; }
.skyline-path { position: relative; margin-top: 1.6rem; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; max-width: 820px; }
.skyline-path::before {
  content: ""; position: absolute; inset-inline: 7%; bottom: 0; height: 4px;
  background: linear-gradient(90deg,#b5e8ff,#0b72d6,#e4f8ff,#0979e3,#b5e8ff);
  background-size: 220% 100%; border-radius: 5px; animation: sky-flow 4s linear infinite;
}
@keyframes sky-flow { to { background-position: 220% 0; } }
.skyline-path a { position: relative; display: grid; justify-items: center; text-align: center; gap: .1rem; padding: .5rem .25rem .65rem; min-width: 0; background: #f7fbffed; border: 1px solid #459ee6; font-weight: 800; }
.skyline-path a:hover { transform: translateY(-3px); }
.discovery { padding-block: 1.5rem .9rem; }
.discovery-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .9rem; }
.map-card, .results-pane, .feature, .hub-card { overflow: hidden; border-radius: 18px; min-width: 0; }
.map-card { grid-column: 2; grid-row: 1; }
.results-pane { grid-column: 1; grid-row: 1; padding: 1rem; min-height: 285px; }
.results-pane h3 { margin-block: 0 .7rem; }
.map-art { position: relative; aspect-ratio: 1.9; overflow: hidden; background: #c6e4f9; }
.map-layer { position: absolute; inset: 0; background: center 54% / cover no-repeat url(sky-map.webp); transform: scale(var(--map-zoom,1)); transition: transform .35s ease; }
.map-pin { position: absolute; color: #fff; background: #0756bd; border: 2px solid #e6f7ff; border-radius: 22px; padding: .2rem .55rem; text-align: center; font-weight: bold; box-shadow: 0 2px 10px #07245488; animation: pin-rise 3s ease-in-out infinite alternate; white-space: nowrap; }
.map-pin:hover, .map-pin:focus-visible { background: #07356d; z-index: 2; }
.pin-vanak { right: 26%; top: 61%; }
.pin-niavaran { right: 16%; top: 27%; animation-delay: -.7s; }
.pin-zafaranieh { left: 14%; top: 28%; animation-delay: -1.6s; }
.pin-tajrish { left: 35%; top: 48%; animation-delay: -1.1s; }
@keyframes pin-rise { to { transform: translateY(-7px); } }
.map-controls { position: absolute; bottom: .55rem; right: .55rem; display: flex; gap: .25rem; }
.map-controls button { width: 44px; height: 44px; padding: 0; font-size: 1.4rem; }
.map-controls button:disabled { background: #d5e8f9; color: #24466c; cursor: default; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .85rem; }
.map-caption span { color: #284970; font-size: .9rem; }
.result-item { padding-block: .65rem; display: flex; align-items: start; gap: .65rem; border-block-start: 1px solid #a8cbed; }
.result-item .sky-photo { width: 70px; border-radius: 8px; }
.result-item h4, .result-item p { margin: 0; overflow-wrap: anywhere; }
.result-empty { padding: .75rem; color: #24466c; }
.hub { padding-block: .65rem 2.2rem; }
.hub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.hub-card > .sky-photo { width: 39%; float: left; margin: .65rem; border-radius: 10px; }
.hub-card > div, .feature > div { padding: .85rem; }
.hub-card h2, .feature h2 { margin: 0; font-size: 1.2rem; }
.hub-card p, .feature p { margin-block: .35rem .55rem; }
.feature { display: grid; grid-template-columns: minmax(85px, 245px) 1fr; align-items: center; margin-block-end: 1rem; }
.feature progress { display: block; width: min(100%,22rem); accent-color: #0756bd; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-control { padding: .4rem .8rem; }
.viewport-mist::before {
  content: ""; position: absolute; inset: 0 -10%; pointer-events: none;
  background: radial-gradient(ellipse at 28% 120%, #fff 0 24%, transparent 59%), radial-gradient(ellipse at 75% 115%, #fff 0 19%, transparent 59%);
  animation: cloud-drift 20s ease-in-out infinite alternate;
}
@media (max-width: 800px) {
  .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .sky-home .hero-inner { padding-block-start: 2.3rem; }
  .skyline-path { gap: .27rem; }
  .skyline-path a { font-size: .79rem; padding-inline: .08rem; }
  .skyline-path .sky-icon { width: 32px; }
  .discovery-grid { grid-template-columns: 1fr; }
  .map-card, .results-pane { grid-column: 1; grid-row: auto; }
  .results-pane { min-height: auto; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card > .sky-photo { width: 26%; max-width: 110px; }
  .map-pin { font-size: .82rem; }
}

.nav-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
.install-action { display: inline-grid; place-items: center; min-height: 44px; padding: .4rem .65rem; border-radius: 10px; color: #08366c; background: #edf8ff; border: 1px solid #83b6e7; font-weight: 700; }
.install-guide { max-width: 850px; }
.install-guide details { border-radius: 12px; margin-block: 1rem; padding: .5rem .9rem .7rem; }
.install-guide summary { min-height: 44px; cursor: pointer; font-weight: 800; padding-block: .5rem; }
.install-guide ol { padding-inline-start: 1.25rem; }
.install-guide li { margin-block: .7rem; }
.guide-icon { display: inline-grid; place-items: center; position: relative; width: 33px; height: 33px; border-radius: 7px; background: #d6ecff; color: #0756bd; font: bold 21px Arial,sans-serif; margin-inline-end: .25rem; vertical-align: middle; }
.guide-icon.share-icon::after { content: ""; position: absolute; inset: 42% 25% 23%; border: 1.5px solid currentColor; border-top: 0; border-radius: 2px; }
.guide-icon.add-icon::after { content: ""; position: absolute; inset: 21%; border: 1.5px solid currentColor; border-radius: 4px; }
@media (max-width: 420px) { .nav-actions .button, .install-action { padding-inline: .45rem; font-size: .85rem; } }
