/* Homepage — real estate website service section */
.hws {
  --hws-ink: #0b1630;
  --hws-ink-2: #3c4864;
  --hws-ink-3: #6b7690;
  --hws-line: rgba(11, 22, 48, .08);
  --hws-gold: #d4a853;
  --hws-gold-2: #b8923f;
  --hws-blue: #3b6cf6;
  --hws-green: #12a37f;
  --hws-violet: #7c5cff;
  --hws-ease: cubic-bezier(.22, .8, .24, 1);
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  color: var(--hws-ink);
}

.hws-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hws-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  animation: hwsFloat 14s ease-in-out infinite alternate;
}
.hws-orb--gold { background: rgba(212, 168, 83, .45); top: -180px; right: -140px; }
.hws-orb--blue { background: rgba(59, 108, 246, .28); bottom: -220px; left: -120px; animation-delay: -6s; }
.hws-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 22, 48, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 48, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

/* Content */
.hws-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(212, 168, 83, .35);
  box-shadow: 0 6px 18px -8px rgba(184, 146, 63, .35);
  font-size: .8rem;
  font-weight: 700;
  color: var(--hws-gold-2);
}
.hws-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hws-green);
}
.hws-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--hws-green);
  animation: hwsPing 1.8s var(--hws-ease) infinite;
}
.hws-title {
  margin: 1.1rem 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 900;
  line-height: 1.45;
  color: var(--hws-ink);
}
.hws-title-grad {
  display: block;
  font-size: .72em;
  margin-top: .25rem;
  background: linear-gradient(250deg, #b98420 0%, #d9a94a 45%, #4f6df5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hws-lead {
  color: var(--hws-ink-2);
  font-size: .98rem;
  line-height: 2.05;
  margin-bottom: 1.5rem;
}

.hws-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.hws-features li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--hws-line);
  box-shadow: 0 1px 2px rgba(11, 22, 48, .04), 0 6px 18px -10px rgba(11, 22, 48, .12);
  transition: translate .35s var(--hws-ease), box-shadow .35s var(--hws-ease), border-color .35s;
}
.hws-features li:hover {
  translate: 0 -3px;
  border-color: rgba(212, 168, 83, .4);
  box-shadow: 0 16px 30px -16px rgba(11, 22, 48, .25);
}
.hws-features strong { display: block; font-size: .88rem; font-weight: 800; color: var(--hws-ink); }
.hws-features small { display: block; font-size: .74rem; color: var(--hws-ink-3); margin-top: .1rem; }
.hws-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.05rem;
  color: var(--hws-gold-2);
  background: rgba(212, 168, 83, .14);
}
.hws-ico--green { color: var(--hws-green); background: rgba(18, 163, 127, .12); }
.hws-ico--blue { color: var(--hws-blue); background: rgba(59, 108, 246, .1); }
.hws-ico--violet { color: var(--hws-violet); background: rgba(124, 92, 255, .1); }

.hws-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hws-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: translate .3s var(--hws-ease), box-shadow .3s var(--hws-ease), background .3s;
}
.hws-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0f1f45 0%, #1c3570 100%);
  box-shadow: 0 14px 30px -12px rgba(15, 31, 69, .55);
}
.hws-btn--primary i { transition: translate .3s var(--hws-ease); }
.hws-btn--primary:hover { color: #fff; translate: 0 -2px; box-shadow: 0 20px 36px -14px rgba(15, 31, 69, .6); }
.hws-btn--primary:hover i { translate: -4px 0; }
.hws-btn--ghost {
  color: var(--hws-ink);
  background: #fff;
  border: 1px solid rgba(11, 22, 48, .14);
}
.hws-btn--ghost i { color: var(--hws-gold-2); }
.hws-btn--ghost:hover { color: var(--hws-ink); translate: 0 -2px; border-color: rgba(212, 168, 83, .55); }

/* Visual */
.hws-visual {
  position: relative;
  display: block;
  padding: 1.5rem 0 2.5rem 2.5rem;
  text-decoration: none;
  color: inherit;
}
.hws-browser {
  --hws-view-h: 400px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 22, 48, .1);
  box-shadow: 0 40px 90px -30px rgba(11, 22, 48, .3), 0 12px 30px -12px rgba(11, 22, 48, .12);
  overflow: hidden;
  transition: translate .5s var(--hws-ease), box-shadow .5s var(--hws-ease);
}
.hws-visual:hover .hws-browser { translate: 0 -6px; box-shadow: 0 50px 100px -30px rgba(11, 22, 48, .35), 0 12px 30px -12px rgba(11, 22, 48, .12); }
.hws-browser-bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1rem;
  background: #f3f5fa;
  border-bottom: 1px solid var(--hws-line);
}
.hws-dots { display: inline-flex; gap: 6px; direction: ltr; }
.hws-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.hws-dots i:nth-child(2) { background: #f5b83d; }
.hws-dots i:nth-child(3) { background: #12a37f; }
.hws-url {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: .3rem .8rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--hws-line);
  font-size: .74rem;
  color: var(--hws-ink-3);
  text-align: center;
}
.hws-url i { color: var(--hws-green); font-size: .68rem; margin-inline-end: .2rem; }
.hws-view { height: var(--hws-view-h); overflow: hidden; position: relative; }

.hws-mock {
  --hws-scroll: calc(-100% + var(--hws-view-h));
  padding: 0 0 1rem;
  animation: hwsScroll 16s cubic-bezier(.45, 0, .25, 1) infinite;
  will-change: transform;
}
.hws-m-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--hws-line);
}
.hws-m-nav b { font-size: .82rem; font-weight: 900; color: var(--hws-ink); white-space: nowrap; }
.hws-m-nav b i { color: var(--hws-gold); }
.hws-m-links { display: flex; gap: .55rem; flex: 1; }
.hws-m-links i { width: 38px; height: 7px; border-radius: 4px; background: #e6e9f1; }
.hws-m-cta {
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  padding: .35rem .75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0d48f 0%, #d4a853 50%, #b8923f 100%);
}
.hws-m-hero {
  margin: .9rem 1.1rem;
  padding: 1.6rem 1.3rem 1.3rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 168, 83, .45), transparent 45%),
    linear-gradient(135deg, #0f1f45 0%, #1c3570 100%);
}
.hws-m-hero-text { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.hws-m-line { display: block; height: 8px; border-radius: 5px; background: #e6e9f1; width: 70%; }
.hws-m-hero .hws-m-line { background: rgba(255, 255, 255, .85); }
.hws-m-hero .hws-m-line--md { background: rgba(255, 255, 255, .4); }
.hws-m-line--lg { width: 62%; height: 12px; }
.hws-m-line--md { width: 44%; }
.hws-m-line--sm { width: 90px; }
.hws-m-search {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem;
  border-radius: 12px;
  background: #fff;
}
.hws-m-search span {
  flex: 1;
  font-size: .66rem;
  color: var(--hws-ink-3);
  padding: .35rem .5rem;
  border-radius: 8px;
  background: #f4f6fb;
  white-space: nowrap;
}
.hws-m-search span i { color: var(--hws-gold-2); }
.hws-m-search b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: .75rem;
  background: var(--hws-blue);
}
.hws-m-head { display: flex; align-items: center; justify-content: space-between; margin: 1.1rem 1.1rem .7rem; }
.hws-m-head em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--hws-ink); }
.hws-m-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  padding: 0 1.1rem;
}
.hws-m-card {
  display: grid;
  gap: .4rem;
  padding: .45rem .45rem .6rem;
  border-radius: 12px;
  border: 1px solid var(--hws-line);
  background: #fff;
}
.hws-m-img {
  position: relative;
  height: 74px;
  border-radius: 9px;
  display: grid;
  place-items: end center;
  color: rgba(255, 255, 255, .55);
  overflow: hidden;
}
.hws-m-img svg { width: 76%; height: auto; }
.hws-m-img--a { background: linear-gradient(160deg, #8fb4ff, #3b6cf6); }
.hws-m-img--b { background: linear-gradient(160deg, #f6d796, #c9993e); }
.hws-m-img--c { background: linear-gradient(160deg, #9fe3cf, #12a37f); }
.hws-m-img--d { background: linear-gradient(160deg, #c3b5ff, #7c5cff); }
.hws-m-img--e { background: linear-gradient(160deg, #ffc1b8, #e5634d); }
.hws-m-img--f { background: linear-gradient(160deg, #a9c1e6, #1c3570); }
.hws-m-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: .1rem .45rem;
  border-radius: 6px;
  background: #fff;
  color: var(--hws-green);
  font-size: .58rem;
  font-weight: 800;
}
.hws-m-meta { display: flex; gap: .3rem; }
.hws-m-meta i { width: 18px; height: 6px; border-radius: 3px; background: #eef0f5; }
.hws-m-price { width: 46%; height: 8px; border-radius: 4px; background: rgba(212, 168, 83, .55); }
.hws-m-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(212, 168, 83, .12);
  border: 1px dashed rgba(212, 168, 83, .45);
}
.hws-m-band .hws-m-line { background: rgba(184, 146, 63, .45); }
.hws-m-band-btn { width: 70px; height: 24px; border-radius: 7px; background: var(--hws-ink); }
.hws-m-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 0 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #0f1f45;
}
.hws-m-foot span { height: 34px; border-radius: 6px; background: rgba(255, 255, 255, .1); }

/* Phone */
.hws-phone {
  --hws-view-h: 300px;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 150px;
  padding: 7px;
  border-radius: 28px;
  background: #0b1630;
  box-shadow: 0 30px 60px -20px rgba(11, 22, 48, .45);
  transition: translate .5s var(--hws-ease);
}
.hws-visual:hover .hws-phone { translate: -4px -10px; }
.hws-phone-view { height: var(--hws-view-h); border-radius: 22px; overflow: hidden; background: #fff; }
.hws-mock--phone { animation-duration: 13s; animation-delay: -4s; display: grid; gap: .5rem; padding-bottom: .6rem; }
.hws-mock--phone .hws-m-nav { padding: .55rem .7rem; justify-content: space-between; }
.hws-m-burger { display: grid; gap: 3px; }
.hws-m-burger i { width: 14px; height: 2px; border-radius: 2px; background: var(--hws-ink); }
.hws-mock--phone .hws-m-hero { margin: 0 .5rem; padding: 1rem .7rem; display: grid; gap: .4rem; }
.hws-mock--phone .hws-m-card { margin: 0 .5rem; }
.hws-mock--phone .hws-m-img { height: 70px; }

/* Floating chips */
.hws-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(11, 22, 48, .08);
  box-shadow: 0 18px 40px -16px rgba(11, 22, 48, .3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: hwsBob 6s ease-in-out infinite;
  white-space: nowrap;
}
.hws-chip strong { display: block; font-size: .78rem; font-weight: 800; color: var(--hws-ink); }
.hws-chip small { display: block; font-size: .68rem; color: var(--hws-ink-3); }
.hws-chip > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1rem;
}
.hws-chip--speed { top: 16%; left: -8px; }
.hws-chip--crm { top: 42%; right: -30px; animation-delay: -2s; }
.hws-chip--crm > i { color: var(--hws-blue); background: rgba(59, 108, 246, .1); }
.hws-chip--lead { bottom: 6px; right: 22%; animation-delay: -4s; }
.hws-chip--lead > i { color: var(--hws-green); background: rgba(18, 163, 127, .12); }
.hws-ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--hws-green) 0 98%, #e6e9f1 0);
}
.hws-ring b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  font-size: .74rem;
  font-weight: 900;
  color: var(--hws-green);
}
.hws-spin { animation: hwsSpin 2.4s linear infinite; }

/* Recent works */
.hws-works { margin-top: clamp(3rem, 6vw, 4.5rem); }
.hws-works-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.hws-works-head h3 { margin: 0; font-size: 1.2rem; font-weight: 900; color: var(--hws-ink); }
.hws-works-head a { font-size: .85rem; font-weight: 800; color: var(--hws-gold-2); text-decoration: none; }
.hws-works-head a i { transition: translate .3s var(--hws-ease); display: inline-block; }
.hws-works-head a:hover i { translate: -4px 0; }
.hws-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.hws-work {
  --hws-shot-h: 230px;
  display: block;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--hws-line);
  box-shadow: 0 1px 2px rgba(11, 22, 48, .04), 0 12px 32px -8px rgba(11, 22, 48, .1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: translate .4s var(--hws-ease), box-shadow .4s var(--hws-ease);
}
.hws-work:hover { translate: 0 -5px; box-shadow: 0 30px 60px -24px rgba(11, 22, 48, .3); }
.hws-work-shot { background: #f3f5fa; }
.hws-work-bar { display: flex; gap: 5px; padding: .55rem .8rem; direction: ltr; border-bottom: 1px solid var(--hws-line); }
.hws-work-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d7dbe5; }
.hws-work-view { height: var(--hws-shot-h); overflow: hidden; background: #fff; }
.hws-work-view img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 5s cubic-bezier(.45, 0, .25, 1);
}
.hws-work:hover .hws-work-view img { transform: translateY(calc(-100% + var(--hws-shot-h))); }
.hws-work-body { padding: .9rem 1rem 1.1rem; }
.hws-work-type { font-size: .74rem; font-weight: 700; color: var(--hws-gold-2); }
.hws-work-body h4 { margin: .3rem 0 0; font-size: .95rem; font-weight: 800; color: var(--hws-ink); line-height: 1.7; }

/* Keyframes */
@keyframes hwsScroll {
  0%, 10% { transform: translateY(0); }
  45%, 58% { transform: translateY(var(--hws-scroll)); }
  92%, 100% { transform: translateY(0); }
}
@keyframes hwsBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hwsFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes hwsPing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes hwsSpin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1199px) {
  .hws-browser { --hws-view-h: 360px; }
  .hws-chip--crm { right: -10px; }
}
@media (max-width: 991px) {
  .hws-visual { max-width: 640px; margin-inline: auto; }
  .hws-chip--speed { left: 0; }
  .hws-chip--crm { right: 0; }
  .hws-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hws-works-grid .hws-work:nth-child(3) { display: none; }
}
@media (max-width: 575px) {
  .hws-features { gap: .55rem; }
  .hws-features li { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .75rem; }
  .hws-ico { width: 34px; height: 34px; font-size: .95rem; border-radius: 10px; }
  .hws-actions .hws-btn { flex: 1 1 100%; justify-content: center; }
  .hws-visual { padding: 1.2rem 0 2rem 1.4rem; }
  .hws-browser { --hws-view-h: 280px; }
  .hws-m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hws-m-links { display: none; }
  .hws-phone { --hws-view-h: 200px; width: 104px; padding: 5px; border-radius: 20px; }
  .hws-phone-view { border-radius: 16px; }
  .hws-chip { padding: .45rem .65rem; }
  .hws-chip--crm { display: none; }
  .hws-chip--lead { right: 6%; }
  .hws-works-grid { grid-template-columns: 1fr; }
  .hws-work { --hws-shot-h: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .hws-mock, .hws-orb, .hws-chip, .hws-spin, .hws-pulse::after { animation: none !important; }
  .hws-work-view img { transition: none; }
}
