/* CRE4Lease v4 — Navy + Kavian Green, AAA-contrast palette */
:root {
  /* Primary brand — AAA contrast on white text */
  --c-navy:       #0A1A33;     /* primary dark — 16:1 vs white */
  --c-navy-2:     #15294D;
  --c-navy-deep:  #050E1F;
  --c-navy-soft:  #1F3666;

  /* Brand green (Kavian flag heritage) — accent only */
  --c-emerald:    #1E8A3C;     /* primary brand green — 4.6:1 vs white (AA) */
  --c-emerald-7:  #15682C;
  --c-emerald-6:  #2BB454;
  --c-emerald-5:  #3DD46E;     /* bright accent — passes AA-large on navy */
  --c-lime:       #B8F542;     /* high-vis accent for data/beams only */
  --c-lime-soft:  #D4FA80;

  /* Neutrals — high contrast */
  --c-ivory:      #FBFBF8;
  --c-bone:       #F0F1ED;
  --c-ink:        #061021;
  --c-ink-2:      #182238;
  --c-mute:       #4F5A70;     /* AA on white (5.2:1) */
  --c-line:       #DCE0E7;

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-sans:    'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }
@media (min-width: 1280px) { .wrap { padding: 0 56px; } }

.section { padding: 96px 0; position: relative; }
@media (max-width: 767px) { .section { padding: 64px 0; } }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--c-emerald);
  font-feature-settings: 'ss01';
}
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--c-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31,138,61,0.18);
}
.eyebrow--inverse { color: var(--c-emerald-6); }
.eyebrow--inverse .dot { background: var(--c-lime); box-shadow: 0 0 0 4px rgba(163,230,53,0.2); }

/* Typography overrides — !important required to win against Tailwind preflight,
   which sets h1/h2/h3 to font-size:inherit;font-weight:inherit and would
   otherwise shrink everything to body text size. */
h1, h2, h3, h4 { font-family: var(--f-display) !important; font-weight: 400 !important; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(40px, 7.5vw, 96px) !important; }
h2 { font-size: clamp(30px, 5vw, 64px) !important; line-height: 1.08; }
h3 { font-size: clamp(22px, 2.5vw, 30px) !important; line-height: 1.18; letter-spacing: -0.015em; }
h4 { font-size: 18px !important; font-weight: 600 !important; line-height: 1.3; font-family: var(--f-sans) !important; letter-spacing: -0.005em; }
@media (max-width: 480px) {
  h1 { font-size: clamp(36px, 11vw, 56px) !important; }
  h2 { font-size: clamp(28px, 8vw, 40px) !important; }
}
.italic-accent { font-style: italic; font-weight: 300; color: var(--c-emerald); }
p { margin: 0; line-height: 1.6; color: var(--c-ink-2); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--c-ink-2); line-height: 1.55; max-width: 640px; }
.small { font-size: 13px; color: var(--c-mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 16px 28px; border-radius: 9999px;
  border: 0; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn--lime {
  background: var(--c-emerald); color: #fff;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.18) inset, 0 0 0 1px rgba(0,0,0,0.04);
}
.btn--lime:hover {
  background: var(--c-emerald-6);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2) inset, 0 12px 32px -8px rgba(31,138,61,0.5);
}
.btn--emerald {
  background: var(--c-navy); color: var(--c-ivory);
}
.btn--emerald:hover { background: var(--c-navy-2); transform: translateY(-1px); }
.btn--ghost-light {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.btn--ghost-dark {
  background: transparent; color: var(--c-navy);
  border: 1px solid rgba(11,31,58,0.2);
}
.btn--ghost-dark:hover { background: rgba(11,31,58,0.05); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
}
.pill--glass {
  background: rgba(10,26,51,0.75);
  border: 1px solid rgba(184,245,66,0.35);
  color: #fff;
  backdrop-filter: blur(12px);
  font-weight: 600;
}
.pill--lime {
  background: rgba(163,230,53,0.12);
  border: 1px solid rgba(163,230,53,0.3);
  color: var(--c-lime);
}
.pill--bone {
  background: var(--c-bone);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
}

.live-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; }
.live-dot::before, .live-dot::after {
  content: ''; position: absolute; inset: 0;
  background: var(--c-lime); border-radius: 50%;
}
.live-dot::before { animation: ping 1.8s ease-out infinite; opacity: 0.7; }
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%, 100% { transform: scale(2.5); opacity: 0; }
}

/* Hairline rule */
.rule { height: 1px; background: var(--c-line); border: 0; margin: 0; }
.rule--inverse { background: rgba(255,255,255,0.12); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > *,
.reveal-stagger.is-revealed > * { opacity: 1 !important; transform: translateY(0) !important; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Grain overlay (subtle, premium) */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--c-line);
}
.nav__row { display: flex; align-items: center; height: 80px; gap: 32px; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: #fff; transition: color 0.3s; }
.nav.is-scrolled .nav__logo { color: var(--c-navy); }
.nav__wordmark { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.nav__wordmark .accent { color: var(--c-emerald-6); }
.nav.is-scrolled .nav__wordmark .accent { color: var(--c-emerald); }
.nav__links { display: none; gap: 32px; margin-left: 16px; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover { color: #fff; }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--c-lime); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav.is-scrolled .nav__link { color: var(--c-ink-2); }
.nav.is-scrolled .nav__link:hover { color: var(--c-navy); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__login {
  display: none; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
}
@media (min-width: 1024px) { .nav__login { display: inline-flex; } }
.nav.is-scrolled .nav__login { color: var(--c-ink-2); }
.nav__cta {
  font-size: 14px; padding: 10px 20px; border-radius: 9999px;
  background: var(--c-emerald); color: #fff; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: var(--c-emerald-6); transform: translateY(-1px); }
.nav__menu {
  display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
  color: #fff;
}
@media (min-width: 1024px) { .nav__menu { display: none; } }
.nav.is-scrolled .nav__menu { color: var(--c-ink); border-color: var(--c-line); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--c-navy);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; padding: 20px 24px; height: 80px; }
.drawer__close {
  margin-left: auto; width: 44px; height: 44px;
  background: rgba(255,255,255,0.1); border: 0; border-radius: 12px;
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.drawer__links { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.drawer__link {
  font-family: var(--f-display); font-size: 36px; line-height: 1.4;
  color: #fff; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer__link:last-child { border-bottom: 0; }
.drawer__cta { padding: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--c-navy-deep);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
  isolation: isolate;
}

/* Photoreal skyline backdrop with slow Ken Burns */
.hero__photo {
  position: absolute; inset: -4%;
  z-index: 0;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(0.65) contrast(1.05) brightness(0.55);
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo { animation: none; }
}

/* Color-mix overlay (navy bias) */
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,26,51,0.55) 0%,
    rgba(10,26,51,0.65) 60%,
    rgba(5,14,31,0.85) 100%);
  mix-blend-mode: multiply;
}

/* Live data overlay canvas */
.hero__data-canvas {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.9;
}
.hero__data-canvas canvas { width: 100% !important; height: 100% !important; display: block; }

.hero__overlay {
  position: absolute; inset: 0; z-index: 3;
  background:
    /* Strong left-side scrim for AAA text */
    linear-gradient(95deg, rgba(5,14,31,0.96) 0%, rgba(5,14,31,0.85) 35%, rgba(5,14,31,0.45) 60%, rgba(5,14,31,0.1) 85%),
    /* Bottom vignette */
    linear-gradient(180deg, transparent 0%, transparent 60%, rgba(5,14,31,0.55) 100%);
  pointer-events: none;
}

.hero__grid {
  position: absolute; inset: 0; z-index: 2; opacity: 0.06;
  background-image:
    linear-gradient(rgba(184,245,66,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,245,66,0.4) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at right center, #000 30%, transparent 75%);
}
.hero__content { position: relative; z-index: 10; width: 100%; }
.hero__col { max-width: 720px; }

.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em {
  font-style: italic; font-weight: 300;
  color: var(--c-emerald-5);
  position: relative;
  display: inline-block;
}

/* Word rotator — italic accent rotates */
.word-rotator {
  position: relative; display: inline-block;
  vertical-align: baseline;
  height: 1em; line-height: 1;
  overflow: hidden;
}
.word-rotator__inner { position: relative; display: block; height: 1em; }
.word-rotator__sizer {
  display: inline-block; visibility: hidden;
  font-style: italic; font-weight: 300;
  pointer-events: none;
}
.word-rotator__word {
  position: absolute; top: 0; left: 0; white-space: nowrap;
  display: block;
  font-style: italic; font-weight: 300;
  color: var(--c-emerald-5);
  opacity: 0;
  animation: rotateWord 12s cubic-bezier(.65,.05,.36,1) infinite;
}
.word-rotator__word:nth-child(1) { animation-delay: 0s; }
.word-rotator__word:nth-child(2) { animation-delay: 3s; }
.word-rotator__word:nth-child(3) { animation-delay: 6s; }
.word-rotator__word:nth-child(4) { animation-delay: 9s; }

@keyframes rotateWord {
  0%   { transform: translateY(110%); opacity: 0; }
  3%   { transform: translateY(0);    opacity: 1; }
  22%  { transform: translateY(0);    opacity: 1; }
  25%  { transform: translateY(-110%); opacity: 0; }
  100% { transform: translateY(-110%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .word-rotator__word { animation: none; opacity: 1; transform: none; }
  .word-rotator__word:not(:first-child) { display: none; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hero__lede { color: rgba(255,255,255,0.92); margin-top: 28px; max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }

.hero__search {
  margin-top: 36px; max-width: 720px;
  background: rgba(11,31,58,0.55);
  border: 1px solid rgba(163,230,53,0.18);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  padding: 8px;
  display: flex; gap: 8px; align-items: stretch;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}
.hero__search-inner { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 16px; min-width: 0; }
.hero__search input {
  flex: 1; min-width: 0; height: 56px;
  background: transparent; color: #fff; border: 0; outline: 0;
  font-size: 16px; font-family: inherit;
}
.hero__search input::placeholder { color: rgba(232,239,250,0.5); }
.hero__search button {
  flex-shrink: 0; padding: 0 24px; height: 56px;
  background: var(--c-emerald); color: #fff;
  border: 0; border-radius: 12px; font-weight: 600;
  font-family: inherit; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.hero__search button:hover { background: var(--c-emerald-6); transform: translateY(-1px); }

.hero__chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chip {
  font-size: 12px; padding: 7px 12px;
  background: rgba(11,31,58,0.5);
  border: 1px solid rgba(163,230,53,0.14);
  color: rgba(232,239,250,0.78);
  border-radius: 9999px;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.hero__chip:hover { background: rgba(31,138,61,0.2); color: #fff; border-color: rgba(46,184,87,0.5); }

.hero__meta {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 36px;
  font-size: 14px; color: #fff; font-weight: 500;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--c-emerald-5); flex-shrink: 0; }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(250,250,247,0.5);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(163,230,53,0.6), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::before {
  content: ''; position: absolute; left: 0; top: -16px;
  width: 1px; height: 16px; background: var(--c-lime);
  animation: scroll-down 2.4s ease-in-out infinite;
}
@keyframes scroll-down {
  0%   { top: -16px; }
  100% { top: 48px; }
}
@media (max-width: 767px) { .hero__scroll { display: none; } }

/* ===== Brand lockup band ===== */
.brand-band {
  background: var(--c-ivory);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 56px 0;
}
.brand-band__inner {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 36px;
  align-items: center;
}
.brand-band__lockup { display: flex; align-items: center; gap: 20px; }
.brand-band__text { display: flex; flex-direction: column; gap: 4px; }
.brand-band__name {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(26px, 3vw, 36px); font-weight: 600;
  color: var(--c-navy); line-height: 1; letter-spacing: -0.01em;
}
.brand-band__name .accent { color: var(--c-emerald); font-style: italic; font-weight: 400; }
.brand-band__tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-mute); font-weight: 500;
}
.brand-band__divider {
  width: 1px; height: 64px; background: var(--c-line);
  align-self: center;
}
.brand-band__copy {
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6;
  color: var(--c-ink-2); max-width: 580px;
}
.brand-band__copy strong { color: var(--c-navy); font-weight: 600; }

@media (max-width: 768px) {
  .brand-band__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .brand-band__divider { width: 60px; height: 1px; }
}

/* ===== Marquee logos / partners ===== */
.partners { background: var(--c-ivory); padding: 32px 0; border-bottom: 1px solid var(--c-line); }
.partners__inner { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: center; opacity: 0.65; }
.partners__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--c-mute); }
.partners__logo {
  font-family: var(--f-display); font-size: 19px;
  color: var(--c-ink-2); letter-spacing: -0.02em; font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.section-header { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 720px; margin-bottom: 64px; }
.section-header.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-header__title em { font-style: italic; font-weight: 300; color: var(--c-emerald); }
.section-header__title em.navy { color: var(--c-navy); }
.section-header p { color: var(--c-mute); font-size: clamp(15px, 1.3vw, 18px); max-width: 580px; }

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--c-bone);
}
@media (max-width: 1023px) { .flow { grid-template-columns: 1fr; } }

.flow__step {
  position: relative;
  padding: 48px 40px;
  background: var(--c-ivory);
  border-right: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 360px;
  transition: background 0.3s;
}
.flow__step:last-child { border-right: 0; }
@media (max-width: 1023px) {
  .flow__step { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .flow__step:last-child { border-bottom: 0; }
}
.flow__step:hover { background: #fff; }

.flow__num {
  font-family: var(--f-display); font-size: 14px; font-weight: 500;
  color: var(--c-navy);
  display: flex; align-items: center; gap: 8px;
}
.flow__num::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line);
}
.flow__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--c-navy); color: var(--c-emerald-6);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.flow__step h3 { color: var(--c-ink); }
.flow__step p { color: var(--c-mute); font-size: 15px; }
.flow__more {
  margin-top: auto; font-size: 13px; font-weight: 600;
  color: var(--c-emerald);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ===== AI MATCH (visual feature) ===== */
.match-section {
  background: var(--c-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.match-section .grain { opacity: 0.04; }
.match-section h2 { color: #fff; }
.match-section h2 em { color: var(--c-emerald-6); }

.match-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
}
@media (max-width: 1023px) { .match-grid { grid-template-columns: 1fr; gap: 40px; } }

.match-section .lede { color: rgba(250,250,247,0.78); margin-top: 24px; }

.match-features { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.match-feature {
  display: flex; gap: 16px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.match-feature:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.match-feature__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(163,230,53,0.12);
  border: 1px solid rgba(163,230,53,0.2);
  color: var(--c-lime);
  display: flex; align-items: center; justify-content: center;
}
.match-feature h4 { color: #fff; margin-bottom: 4px; }
.match-feature p { color: rgba(250,250,247,0.65); font-size: 14px; }

/* AI demo console */
.console {
  background: var(--c-navy-deep);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250,250,247,0.85);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
  position: relative;
  min-height: 420px;
}
.console__chrome {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.console__chrome span {
  width: 11px; height: 11px; border-radius: 50%;
}
.console__chrome span:nth-child(1) { background: rgba(255,95,86,0.5); }
.console__chrome span:nth-child(2) { background: rgba(255,189,46,0.5); }
.console__chrome span:nth-child(3) { background: rgba(39,201,63,0.6); }
.console__chrome strong { margin-left: 12px; font-family: var(--f-sans); font-size: 12px; color: rgba(250,250,247,0.5); font-weight: 500; }
.console__line { padding: 4px 0; }
.console__prompt { color: var(--c-lime); }
.console__hint { color: rgba(250,250,247,0.4); }
.console__match {
  margin-top: 16px;
  padding: 16px;
  background: rgba(163,230,53,0.06);
  border: 1px solid rgba(163,230,53,0.18);
  border-radius: 12px;
  display: flex; gap: 16px;
  align-items: center;
}
.console__match-img {
  width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.console__match-body { flex: 1; min-width: 0; font-family: var(--f-sans); }
.console__match-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.console__match-meta { font-size: 12px; color: rgba(250,250,247,0.55); }
.console__match-score {
  text-align: right; font-family: var(--f-sans); flex-shrink: 0;
}
.console__match-score strong { font-size: 22px; color: var(--c-lime); font-weight: 600; display: block; line-height: 1; }
.console__match-score span { font-size: 10px; color: rgba(250,250,247,0.5); text-transform: uppercase; letter-spacing: 0.1em; }

.cursor { display: inline-block; width: 8px; height: 14px; background: var(--c-lime); margin-left: 2px; vertical-align: middle; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== STATS ===== */
.stats {
  background: var(--c-ivory);
  padding: 64px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 767px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }

.stat__num {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  color: var(--c-navy);
  line-height: 1;
}
.stat__num em { font-style: italic; font-weight: 300; color: var(--c-emerald); font-size: 0.6em; }
.stat__label {
  margin-top: 12px; font-size: 13px; color: var(--c-mute);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500;
}

/* ===== Listings preview ===== */
.listings-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1023px) { .listings-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .listings-row { grid-template-columns: 1fr; } }

.listing-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(6,78,59,0.18);
  border-color: rgba(6,78,59,0.2);
}
.listing-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.listing-card:hover .listing-card__img img { transform: scale(1.04); }
.listing-card__type {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 9999px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; color: var(--c-ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.listing-card__match {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 12px; border-radius: 9999px;
  background: var(--c-navy); color: var(--c-emerald-6);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.listing-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.listing-card__title { font-family: var(--f-sans); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--c-ink); }
.listing-card__addr { font-size: 13px; color: var(--c-mute); display: inline-flex; align-items: center; gap: 4px; }
.listing-card__foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.listing-card__price { font-family: var(--f-display); font-size: 24px; color: var(--c-navy); letter-spacing: -0.015em; }
.listing-card__price span { font-family: var(--f-sans); font-size: 12px; color: var(--c-mute); margin-left: 2px; font-weight: 500; }
.listing-card__sqft { font-size: 13px; color: var(--c-ink-2); font-weight: 500; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
@media (max-width: 767px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: 24px;
  padding: 40px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.price-card--feature {
  background: var(--c-navy); color: #fff;
  border-color: var(--c-navy);
}
.price-card__badge {
  position: absolute; top: 24px; right: 24px;
  padding: 5px 10px; border-radius: 9999px;
  background: var(--c-emerald); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.price-card__eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-emerald); margin-bottom: 8px;
}
.price-card--feature .price-card__eyebrow { color: var(--c-emerald-6); }
.price-card h3 { color: var(--c-ink); font-family: var(--f-display); font-size: 28px; line-height: 1.1; margin-bottom: 24px; }
.price-card--feature h3 { color: #fff; }
.price-card__num { font-family: var(--f-display); font-size: 64px; line-height: 1; letter-spacing: -0.03em; color: var(--c-ink); }
.price-card--feature .price-card__num { color: var(--c-emerald-6); }
.price-card__num small { font-family: var(--f-sans); font-size: 14px; font-weight: 500; color: var(--c-mute); margin-left: 6px; }
.price-card--feature .price-card__num small { color: rgba(250,250,247,0.6); }
.price-card__desc { margin-top: 12px; color: var(--c-mute); font-size: 15px; }
.price-card--feature .price-card__desc { color: rgba(250,250,247,0.75); }
.price-card__list {
  margin: 28px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.price-card__list li {
  display: flex; gap: 10px; font-size: 14px; color: var(--c-ink-2); line-height: 1.5;
}
.price-card--feature .price-card__list li { color: rgba(250,250,247,0.85); }
.price-card__list svg { flex-shrink: 0; color: var(--c-emerald); margin-top: 3px; }
.price-card--feature .price-card__list svg { color: var(--c-emerald-6); }
.price-card__cta { margin-top: 32px; }

/* ===== Trust band ===== */
.trust-band {
  background: var(--c-bone); padding: 56px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 767px) { .trust-grid { grid-template-columns: 1fr; gap: 28px; } }
.trust-item { display: flex; gap: 16px; }
.trust-item__icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--c-navy); color: var(--c-emerald-6);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.trust-item h4 { color: var(--c-ink); margin-bottom: 4px; font-family: var(--f-sans); font-weight: 600; font-size: 16px; }
.trust-item p { font-size: 14px; color: var(--c-mute); }

/* ===== Final CTA ===== */
.cta-section {
  position: relative;
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
  padding: 120px 0;
}
@media (max-width: 767px) { .cta-section { padding: 80px 0; } }
.cta-section .grain { opacity: 0.04; }
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(163,230,53,0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(16,185,129,0.18), transparent 50%);
  pointer-events: none;
}
.cta-section h2 { color: #fff; max-width: 16ch; margin: 0 auto; text-align: center; }
.cta-section h2 em { color: var(--c-emerald-6); font-style: italic; font-weight: 300; }
.cta-section p { color: rgba(250,250,247,0.78); margin: 24px auto 0; text-align: center; max-width: 540px; }
.cta-actions {
  margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ===== Footer ===== */
.foot {
  background: var(--c-navy-deep); color: rgba(232,239,250,0.75);
  padding: 80px 0 32px;
}
.foot__grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
}
@media (max-width: 1023px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px)  { .foot__grid { grid-template-columns: 1fr 1fr; } }

.foot__brand .nav__wordmark { color: #fff; font-size: 22px; }
.foot__about { margin-top: 16px; max-width: 320px; font-size: 14px; line-height: 1.6; color: rgba(250,250,247,0.55); }

.foot__col h5 {
  font-size: 12px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 16px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot__col a { font-size: 14px; color: rgba(250,250,247,0.55); transition: color 0.2s; }
.foot__col a:hover { color: var(--c-lime); }

.foot__bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(250,250,247,0.45);
}
.foot__bottom a { color: inherit; }
.foot__bottom-links { display: flex; gap: 24px; }

/* Responsive tuning */
@media (max-width: 767px) {
  .hero { min-height: 92vh; padding-top: 100px; }
  .hero__search { flex-direction: column; padding: 12px; gap: 8px; }
  .hero__search-inner { padding: 0 12px; }
  .hero__search input { height: 48px; }
  .hero__search button { width: 100%; height: 52px; justify-content: center; }
  .hero__meta { gap: 12px 24px; margin-top: 32px; }
}

/* Print fallback for OG / SSR */
@media print {
  .hero__bg-canvas, .grain { display: none !important; }
}
