/* ============================================================
   HAVENLINE · Design System
   Dark premium real-estate theme · violet accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0B0B10;
  --bg-2: #101018;
  --card: #14141E;
  --card-2: #191926;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #F5F5F8;
  --muted: #A3A3B2;
  --muted-2: #73737f;
  --accent: #7C5CFF;
  --accent-2: #A18AFF;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --gold: #E5C87F;
  --success: #4ADE80;
  --danger: #F87171;
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 10px 34px rgba(124, 92, 255, 0.35);
  --nav-h: 76px;
  --container: 1220px;
  --z-nav: 50;
  --z-drawer: 60;
  --z-lightbox: 70;
  --z-toast: 80;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }

.h-display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; }
.h-1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.h-2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h-3 { font-size: 1.25rem; }
.lead { font-size: 1.09rem; color: var(--muted); max-width: 640px; }

.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin: 14px auto 0; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.text-accent { color: var(--accent-2); }
.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: #6a4bf2; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn--light { background: #fff; color: #14141E; }
.btn--light:hover { background: #e9e6ff; }
.btn--sm { padding: 10px 20px; min-height: 40px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__fav {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  color: var(--muted); transition: color 0.2s ease, border-color 0.2s ease; cursor: pointer;
}
.nav__fav:hover { color: var(--accent-2); border-color: var(--accent-2); }
.nav__fav svg { width: 19px; height: 19px; }
.nav__fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); border-radius: 999px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; cursor: pointer; }
.nav__burger svg { width: 22px; height: 22px; }

/* Drawer (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(8, 8, 12, 0.97); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.drawer__close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__links { display: flex; flex-direction: column; gap: 6px; }
.drawer__links a { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; padding: 12px 8px; border-radius: 12px; color: var(--muted); transition: color 0.2s ease; }
.drawer__links a:hover, .drawer__links a.is-active { color: var(--text); }
.drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 120px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11, 11, 16, 0.96) 22%, rgba(11, 11, 16, 0.72) 52%, rgba(11, 11, 16, 0.38) 100%);
}
.hero__glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 65%);
  top: -160px; left: -120px; z-index: -1; pointer-events: none;
}
.hero__content { max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); background: rgba(255, 255, 255, 0.03); margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.hero__title { margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--accent-2); }
.hero__sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

/* Search panel */
.search-panel {
  background: rgba(20, 20, 30, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px;
  max-width: 860px; box-shadow: var(--shadow-card);
}
.search-panel .field { position: relative; }
.search-panel label {
  position: absolute; top: 9px; left: 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); pointer-events: none;
}
.search-panel input, .search-panel select {
  width: 100%; height: 62px; padding: 26px 16px 8px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045); border: 1px solid transparent; color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease; appearance: none; cursor: pointer;
}
.search-panel input { cursor: text; }
.search-panel input:focus, .search-panel select:focus { outline: none; border-color: var(--accent); background: rgba(124, 92, 255, 0.07); }
.search-panel select option { background: #191926; color: var(--text); }
.search-panel .btn { height: 62px; border-radius: var(--r-md); padding: 0 30px; }

/* Hero stats */
.stats-row { display: flex; gap: 0; margin-top: 60px; flex-wrap: wrap; }
.stat { padding: 0 42px; border-left: 1px solid var(--line-2); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat__num { font-family: var(--font-head); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; color: var(--text); }
.stat__num span { color: var(--accent-2); }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 84px) 0 72px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 62%);
  top: -260px; right: -180px; pointer-events: none;
}
.page-hero .lead { margin-top: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---------- Property card ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.prop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.prop-card:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.prop-card__media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--card-2); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.prop-card:hover .prop-card__media img { transform: scale(1.06); }
.prop-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 16, 0.55), transparent 45%); }
.prop-card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.tag {
  padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  background: rgba(11, 11, 16, 0.72); backdrop-filter: blur(6px); border: 1px solid var(--line-2);
}
.tag--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag--gold { background: rgba(229, 200, 127, 0.14); border-color: rgba(229, 200, 127, 0.5); color: var(--gold); }
.prop-card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11, 11, 16, 0.66); backdrop-filter: blur(6px); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  color: #fff;
}
.prop-card__fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill 0.2s ease; }
.prop-card__fav:hover { border-color: var(--accent-2); color: var(--accent-2); }
.prop-card__fav.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.prop-card__fav.is-active svg { fill: #fff; }
.prop-card__price {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #fff;
}
.prop-card__price small { font-size: 0.72em; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.prop-card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop-card__title { font-size: 1.12rem; transition: color 0.2s ease; }
.prop-card:hover .prop-card__title { color: var(--accent-2); }
.prop-card__loc { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.prop-card__loc svg { width: 15px; height: 15px; flex: none; color: var(--accent-2); }
.prop-card__meta {
  display: flex; gap: 18px; padding-top: 15px; margin-top: auto;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); flex-wrap: wrap;
}
.prop-card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.prop-card__meta svg { width: 16px; height: 16px; color: var(--muted-2); }

/* ---------- Category cards ---------- */
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1.16;
  border: 1px solid var(--line); cursor: pointer; display: block;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 16, 0.88) 8%, rgba(11, 11, 16, 0.12) 55%); }
.cat-card__label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.cat-card__label h3 { font-size: 1.15rem; margin-bottom: 3px; }
.cat-card__label span { font-size: 13.5px; color: var(--muted); }

/* ---------- Feature / value cards ---------- */
.icon-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; transition: border-color 0.25s ease, transform 0.25s ease;
}
.icon-card:hover { border-color: rgba(124, 92, 255, 0.45); transform: translateY(-4px); }
.icon-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.icon-card__icon svg { width: 24px; height: 24px; color: var(--accent-2); }
.icon-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.icon-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.step-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; overflow: hidden; }
.step-card__num {
  font-family: var(--font-head); font-size: 4.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(124, 92, 255, 0.4);
  position: absolute; top: 14px; right: 18px; pointer-events: none;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; max-width: 78%; }
.step-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; }
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.testi-card__stars { display: flex; gap: 4px; }
.testi-card__stars svg { width: 17px; height: 17px; color: var(--gold); fill: var(--gold); }
.testi-card__quote { font-size: 15.5px; color: var(--text); }
.testi-card__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi-card__person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-card__person strong { display: block; font-size: 15px; }
.testi-card__person span { font-size: 13px; color: var(--muted); }

/* ---------- Agents ---------- */
.agent-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color 0.25s ease, transform 0.25s ease;
}
.agent-card:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-5px); }
.agent-card__photo { aspect-ratio: 1 / 1.06; overflow: hidden; background: var(--card-2); }
.agent-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.agent-card:hover .agent-card__photo img { transform: scale(1.05); }
.agent-card__body { padding: 22px; }
.agent-card__body h3 { font-size: 1.12rem; }
.agent-card__role { font-size: 13.5px; color: var(--accent-2); margin: 3px 0 12px; }
.agent-card__stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); }
.agent-card__contact { display: flex; gap: 10px; margin-top: 6px; }
.agent-card__contact a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; cursor: pointer;
}
.agent-card__contact a:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.agent-card__contact svg { width: 15px; height: 15px; }

/* ---------- Filters (listings page) ---------- */
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end;
  position: relative; z-index: 5;
}
.f-field { display: flex; flex-direction: column; gap: 7px; }
.f-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.f-field input, .f-field select {
  height: 48px; padding: 0 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.2s ease; appearance: none; cursor: pointer; width: 100%;
}
.f-field input { cursor: text; }
.f-field input:focus, .f-field select:focus { outline: none; border-color: var(--accent); }
.f-field select option { background: #191926; }
.filters__actions { display: flex; gap: 10px; }

.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 26px; flex-wrap: wrap; }
.listing-bar__count { color: var(--muted); font-size: 15px; }
.listing-bar__count strong { color: var(--text); }
.listing-bar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.listing-bar__sort select {
  height: 42px; padding: 0 34px 0 14px; border-radius: var(--r-sm);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A3B2' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2); color: var(--text); appearance: none; cursor: pointer;
}
.listing-bar__sort select:focus { outline: none; border-color: var(--accent); }

.empty-state { text-align: center; padding: 90px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-state svg { width: 46px; height: 46px; color: var(--muted-2); margin: 0 auto 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Property detail ---------- */
.gallery { display: grid; grid-template-columns: 1.9fr 1fr; grid-template-rows: repeat(2, 240px); gap: 14px; }
.gallery__item { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--card-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s ease; }
.gallery__item:hover img { transform: scale(1.04); opacity: 0.92; }
.gallery__item--main { grid-row: span 2; }
.gallery__more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 16, 0.62); font-weight: 600; font-size: 1.05rem; z-index: 2;
}

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; margin-top: 44px; }
.detail-main > * + * { margin-top: 40px; }
.detail-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.detail-block h2 { font-size: 1.3rem; margin-bottom: 18px; }
.detail-block p + p { margin-top: 14px; }
.detail-block p { color: var(--muted); font-size: 15.5px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spec {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; display: flex; align-items: center; gap: 13px;
}
.spec svg { width: 21px; height: 21px; color: var(--accent-2); flex: none; }
.spec strong { display: block; font-size: 15px; }
.spec span { font-size: 12.5px; color: var(--muted); }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.feature-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--muted); }
.feature-list svg { width: 17px; height: 17px; color: var(--success); flex: none; }

.detail-side { position: sticky; top: calc(var(--nav-h) + 22px); display: flex; flex-direction: column; gap: 22px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.side-agent { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.side-agent img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.side-agent strong { display: block; }
.side-agent span { font-size: 13px; color: var(--muted); }

.price-banner {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 20px 24px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(124, 92, 255, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.35); border-radius: var(--r-lg); margin-top: 26px;
}
.price-banner__amount { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.price-banner__amount small { font-size: 0.55em; color: var(--muted); font-weight: 500; }
.price-banner__psf { font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 15px; border-radius: var(--r-sm); min-height: 48px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.2s ease; width: 100%;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A3B2' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group select option { background: #191926; }
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select { border-color: var(--danger); }
.form-error { font-size: 12.5px; color: var(--danger); display: none; }
.form-group.has-error .form-error { display: block; }
.form-note { font-size: 13px; color: var(--muted-2); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.calc__result {
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.16), rgba(124, 92, 255, 0.04));
  border: 1px solid rgba(124, 92, 255, 0.35); border-radius: var(--r-lg); padding: 34px;
  text-align: center; position: sticky; top: calc(var(--nav-h) + 22px);
}
.calc__monthly { font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.calc__label { font-size: 14px; color: var(--muted); }
.calc__breakdown { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.calc__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calc__row strong { color: var(--text); }
.range-field output { font-weight: 600; color: var(--accent-2); }
input[type="range"] {
  width: 100%; height: 5px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--accent) var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%));
  border-radius: 999px; outline: none; cursor: pointer; margin: 12px 0 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent); cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }

/* ---------- FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.25s ease; }
.faq__item.is-open { border-color: rgba(124, 92, 255, 0.45); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; cursor: pointer;
}
.faq__q svg { width: 19px; height: 19px; flex: none; color: var(--accent-2); transition: transform 0.25s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  background: linear-gradient(120deg, #1b1430, #14141E 60%);
  border: 1px solid rgba(124, 92, 255, 0.35);
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.3), transparent 65%);
  top: -220px; right: -120px; pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 560px; position: relative; }
.cta-band p { color: var(--muted); margin-top: 12px; max-width: 480px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 76px 0 0; margin-top: 96px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 56px; }
.footer__about p { color: var(--muted); font-size: 14.5px; margin: 18px 0 24px; max-width: 320px; }
.footer h4 { font-size: 15px; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--accent-2); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; color: var(--muted); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--accent-2); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.socials a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.socials svg { width: 16px; height: 16px; }
.footer__bottom {
  border-top: 1px solid var(--line); padding: 24px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted-2);
}
.footer__bottom a { color: var(--muted); transition: color 0.2s ease; }
.footer__bottom a:hover { color: var(--accent-2); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(5, 5, 9, 0.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.2s ease; color: #fff;
}
.lightbox__btn:hover { background: var(--accent); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 130%); z-index: var(--z-toast);
  background: var(--card-2); border: 1px solid rgba(124, 92, 255, 0.5); border-radius: 14px;
  padding: 15px 24px; display: flex; align-items: center; gap: 12px; font-size: 15px;
  box-shadow: var(--shadow-card); transition: transform 0.35s ease; max-width: min(480px, calc(100vw - 40px));
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--success); flex: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: var(--z-nav);
  width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  box-shadow: var(--shadow-accent);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: #6a4bf2; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-inview { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.page-404 .code { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(124, 92, 255, 0.65); }
.page-404 h1 { margin: 12px 0 14px; }
.page-404 p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: none; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .testi-track { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta-desktop { display: none; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .btn { grid-column: span 2; }
  .stats-row { gap: 26px 0; }
  .stat { padding: 0 26px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 300px 200px 200px; }
  .gallery__item--main { grid-row: span 1; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 620px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .testi-track { grid-template-columns: 1fr; }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel .btn { grid-column: span 1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__actions { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: auto; }
  .stat { padding: 0 18px; }
  .stat__num { font-size: 1.6rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { text-align: left; }
}
