:root {
  --ink: #14213d;
  --muted: #6f746f;
  --line: rgba(20, 33, 61, 0.12);
  --paper: #f8f6f0;
  --surface: #ffffff;
  --sage: #66776c;
  --copper: #9c7e4e;
  --gold: #c5a572;
  --ocean: #1b2a4a;
  --night: #08111f;
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 18px 24px auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 18px 0 12px;
  color: #fff;
  background: rgba(9, 19, 18, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-logo {
  width: 220px;
  height: auto;
  display: block;
}

.brand-mark {
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #10231f;
  background: linear-gradient(135deg, #f7dc92, #fdf8e6);
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.72;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.header-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid rgba(255, 238, 190, 0.5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff8df;
  background:
    linear-gradient(135deg, rgba(255, 242, 191, 0.22), rgba(197, 165, 114, 0.08)),
    rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.42), rgba(20, 33, 61, 0.2));
  opacity: 0;
  transition: opacity 180ms ease;
}

.header-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 238, 190, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.header-action:hover::before {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 150px 7vw 74px;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

.hero-video,
.hero-grain,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.08);
}

.hero-grain {
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-shade {
  background:
    radial-gradient(circle at 74% 26%, rgba(197, 165, 114, 0.18), transparent 33%),
    linear-gradient(90deg, rgba(5, 11, 24, 0.9) 0%, rgba(8, 17, 31, 0.62) 47%, rgba(8, 17, 31, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 11, 24, 0.9), rgba(5, 11, 24, 0.08) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact-band .eyebrow {
  color: #f3cf7f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: 0;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(58px, 8.4vw, 124px);
  line-height: 0.88;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 650;
}

.hero-copy {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions,
.chat-actions,
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #10231f;
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(215, 179, 106, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #edf0eb;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button.light {
  background: #fff;
}

.contact-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 30px 0 34px;
  border-radius: 999px;
  color: #08111f;
  background: linear-gradient(135deg, #fff4c9, var(--gold) 55%, #9c7e4e);
  border: 1px solid rgba(255, 244, 201, 0.7);
  box-shadow: 0 24px 50px rgba(197, 165, 114, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.72) 42%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.contact-action i {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff8df;
  background: rgba(8, 17, 31, 0.92);
  border-radius: 50%;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.contact-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 64px rgba(197, 165, 114, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-action:hover::before {
  transform: translateX(120%);
}

.contact-action:hover i {
  transform: translateX(3px);
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: 7vw;
  bottom: 58px;
  width: min(390px, 32vw);
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
}

.hero-reel {
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.reel-screen {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #000;
}

.reel-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 11, 24, 0.62), transparent 55%);
}

.reel-screen span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reel-body {
  padding: 24px;
}

.hero-panel span,
.listing-body span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  font-size: 54px;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.market-ticker {
  display: flex;
  gap: 8px;
}

.market-ticker b {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: #10231f;
  background: #fff;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  padding: 34px 7vw;
  background:
    linear-gradient(180deg, rgba(197, 165, 114, 0.08), transparent),
    #fff;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

.metrics span {
  color: var(--muted);
  line-height: 1.4;
}

.section {
  padding: 110px 7vw;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.market-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.market-grid article,
.listing-card {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.market-grid article {
  position: relative;
}

.market-grid article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.market-grid img,
.listing-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.market-grid article div,
.listing-body {
  padding: 26px;
}

.market-grid p,
.listing-body p,
.platform-band p,
.chat-copy p,
.admin-hero p,
.admin-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.listings {
  background: #fff;
}

.video-library {
  background: #fff;
}

.video-library .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.property-video-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr;
  grid-auto-rows: minmax(280px, auto);
  gap: 22px;
}

.property-video-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.property-video-card video {
  transition: transform 700ms ease;
}

.property-video-card:hover video {
  transform: scale(1.045);
}

.property-video-card.featured {
  grid-row: span 2;
  min-height: 742px;
}

.property-video-card > video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.property-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 17, 31, 0.82), rgba(8, 17, 31, 0.08) 58%);
  pointer-events: none;
}

.video-caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
}

.video-caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-caption h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
}

.video-caption p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.listing-body strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
}

.platform-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  align-items: center;
  gap: 58px;
  padding: 110px 7vw;
  color: #fff;
  background: linear-gradient(135deg, #14213d, #1b2a4a);
}

.platform-band p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.dashboard-preview {
  min-height: 430px;
  padding: 20px;
  background: #f8fbf7;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.dash-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.dash-top span {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--copper);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 230px 130px;
  gap: 14px;
}

.dash-map,
.dash-list,
.dash-chart {
  background: #fff;
  border: 1px solid rgba(19, 35, 31, 0.08);
}

.dash-map {
  grid-row: span 2;
  background:
    radial-gradient(circle at 42% 48%, var(--copper) 0 9px, transparent 10px),
    radial-gradient(circle at 64% 30%, var(--gold) 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(109, 138, 123, 0.26), rgba(23, 90, 115, 0.2)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=900&q=80");
  background-size: auto, auto, auto, cover;
  background-position: center;
}

.dash-list {
  padding: 18px;
}

.dash-list b {
  display: block;
  margin-bottom: 22px;
  color: var(--ink);
}

.dash-list span {
  display: block;
  width: var(--w);
  height: 12px;
  margin: 13px 0;
  background: #dce6df;
}

.dash-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.dash-chart i {
  flex: 1;
  height: var(--h);
  background: var(--sage);
}

.chat-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(400px, 1fr);
  gap: 54px;
  align-items: start;
}

.chatbot,
.admin-panel {
  background: #fff;
  box-shadow: var(--shadow);
}

.chatbot {
  padding: 24px;
}

.chat-window {
  min-height: 340px;
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 4px 18px;
}

.message {
  max-width: 82%;
  padding: 14px 16px;
  line-height: 1.5;
}

.message.bot {
  align-self: flex-start;
  color: var(--ink);
  background: #edf0eb;
}

.message.user {
  align-self: flex-end;
  color: #fff;
  background: var(--ocean);
}

.answer-field {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.answer-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 15px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
  resize: vertical;
}

textarea:focus,
input:focus {
  outline: 3px solid rgba(215, 179, 106, 0.28);
  border-color: var(--gold);
}

.chat-actions {
  justify-content: space-between;
  margin-top: 14px;
}

.contact-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 70px 7vw;
  color: #fff;
  background: var(--night);
}

.contact-band h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px);
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(9, 19, 18, 0.62), rgba(9, 19, 18, 0.78)),
    url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=2200&q=85") center/cover fixed;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0;
}

.admin-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  min-height: 300px;
  color: #fff;
}

.admin-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(44px, 6vw, 82px);
}

.admin-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.admin-panel {
  padding: 30px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-panel h2 {
  margin-bottom: 6px;
  font-size: 30px;
}

.question-editor {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.question-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.question-row label {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.save-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 800;
  color: var(--ocean);
}

@media (max-width: 1000px) {
  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 420px);
    margin-top: 42px;
  }

  .reel-screen {
    height: 190px;
  }

  .metrics,
  .market-grid,
  .listing-grid,
  .property-video-grid,
  .platform-band,
  .chat-section,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .platform-band,
  .chat-section {
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .site-header {
    inset: 10px;
    height: auto;
    align-items: flex-start;
    padding: 10px;
  }

  nav {
    display: none;
  }

  .header-action {
    min-height: 44px;
    padding: 0 15px;
    font-size: 10px;
  }

  .brand-logo {
    width: 178px;
  }

  .hero {
    min-height: 92vh;
    padding: 126px 22px 44px;
  }

  h1 {
    font-size: 56px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-proof span {
    min-height: 34px;
    font-size: 10px;
  }

  .metrics div,
  .section,
  .platform-band,
  .contact-band {
    padding-left: 22px;
    padding-right: 22px;
  }

  .market-grid img,
  .listing-card img {
    height: 250px;
  }

  .property-video-card,
  .property-video-card.featured {
    min-height: 390px;
    grid-row: auto;
  }

  .dashboard-preview {
    min-height: 360px;
    padding: 14px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 180px 110px 110px;
  }

  .dash-map {
    grid-row: auto;
  }

  .chat-section {
    grid-template-columns: 1fr;
  }

  .chatbot {
    padding: 16px;
  }

  .message {
    max-width: 94%;
  }

  .contact-band,
  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-action {
    width: 100%;
  }

  .question-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
