/* ============================================================
   Villa Cenci — landing page
   Layout mirrored from a cinematic one-screen real-estate hero,
   re-skinned with Consi's palette and a deep, botanical green base.
   ============================================================ */

:root {
  --ink: #0A2116;
  --ink-deep: #061810;
  --ink-950: #04100A;
  --surface: #071710;
  --forest-900: #071710;
  --forest-800: #0A2116;
  --forest-700: #123322;
  --forest-600: #1B4A31;
  --moss: #6F9C7E;
  --accent: #01EC13;
  --accent-hover: #00D211;
  --accent-soft: #8CF29A;
  --paper: #F6FBF6;
  --mist: #D8E6DA;
  --silver: #A9BFAE;
  --danger: #F87171;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--ink-950); }

:focus-visible { outline: 2px solid rgba(1, 236, 19, .7); outline-offset: 3px; }

img { max-width: 100%; }

/* ---------- stage shell ---------- */

.page {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--paper);
  isolation: isolate;
}

.shell {
  position: relative;
  z-index: 20;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- hero media ---------- */

.hero-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s linear;
}

.hero-slides {
  position: absolute;
  inset: 0;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  transform: scale(1.08);
  animation: hero-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 52%;
  opacity: 0;
  transition: opacity 1.7s var(--ease-soft);
}

.hero-image-a { background-image: url("assets/villa-hero-a.jpg"); }
.hero-image-b { background-position: center 58%; }
.hero-image-c { background-position: center 46%; }

.hero-image.is-active { opacity: 1; }

@keyframes hero-drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.6%, -1.2%, 0); }
}

.hero-shade { position: absolute; inset: 0; }

.hero-shade-x {
  background: linear-gradient(90deg,
    rgba(4, 16, 10, .95) 0%,
    rgba(4, 16, 10, .78) 38%,
    rgba(4, 16, 10, .44) 68%,
    rgba(5, 22, 14, .26) 100%);
}

.hero-shade-y {
  background: linear-gradient(180deg,
    rgba(4, 16, 10, .55) 0%,
    rgba(4, 16, 10, .02) 38%,
    rgba(4, 16, 10, .3) 72%,
    rgba(4, 16, 10, .82) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 76% 46%, rgba(1, 236, 19, .08), transparent 70%),
    radial-gradient(52% 50% at 4% 92%, rgba(1, 236, 19, .09), transparent 72%),
    radial-gradient(42% 42% at 50% 108%, rgba(27, 74, 49, .5), transparent 70%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 190px rgba(4, 16, 10, .82);
}

/* ---------- permanent botanical frame ---------- */

.ambient-foliage {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.ambient {
  position: absolute;
  top: -10vh;
  width: 27vw;
  height: 112vh;
  opacity: .34;
  -webkit-mask-image: radial-gradient(135% 85% at 0% 32%, #000 28%, rgba(0, 0, 0, .72) 55%, transparent 82%);
  mask-image: radial-gradient(135% 85% at 0% 32%, #000 28%, rgba(0, 0, 0, .72) 55%, transparent 82%);
}

.ambient-left { left: -5vw; }

.ambient-right {
  right: -5vw;
  transform: scaleX(-1);
}

.ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: saturate(1.15) brightness(1.1);
}

/* ---------- foliage curtains (intro) ---------- */

.canopy {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

.canopy-side {
  position: absolute;
  top: -6vw;
  width: 66vw;
  aspect-ratio: 1467 / 2200;
  transform: scale(1.08);
  transform-origin: top left;
  transition: transform 1.45s var(--ease-out), opacity 1.45s linear;
  will-change: transform, opacity;
}

.canopy-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: drop-shadow(28px 0 42px rgba(0, 0, 0, .46));
}

.canopy-left { left: 0; }
.canopy-right { right: 0; transform-origin: top right; }
.canopy-right img {
  transform: scaleX(-1);
  filter: drop-shadow(-28px 0 42px rgba(0, 0, 0, .46));
}

.canopy-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 72vh;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(1, 236, 19, .55), transparent);
  box-shadow: 0 0 24px rgba(1, 236, 19, .32);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
}

[data-stage="4"] .canopy { visibility: visible; }
[data-stage="4"] .canopy-side { visibility: hidden; }

[data-stage="3"] .canopy-left,
[data-stage="4"] .canopy-left {
  transform: translateX(-84vw) scale(1.02);
  opacity: 0;
}

[data-stage="3"] .canopy-right,
[data-stage="4"] .canopy-right {
  transform: translateX(84vw) scale(1.02);
  opacity: 0;
}

[data-stage="3"] .canopy-line,
[data-stage="4"] .canopy-line { opacity: .24; }

/* ---------- intro backdrop + brand ---------- */

.intro-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink-950);
  pointer-events: none;
  transition: opacity 1.15s var(--ease-soft);
}

[data-stage="3"] .intro-backdrop,
[data-stage="4"] .intro-backdrop { opacity: 0; }

.intro-brand {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-logo {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: scale(.96);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  will-change: transform, opacity, filter;
}

.intro-eyebrow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(216, 230, 218, .62);
}

.intro-villa {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  line-height: .95;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  padding-left: .1em;
}

.intro-rule {
  width: 132px;
  height: 1px;
  margin-top: .3rem;
  background: linear-gradient(to right, transparent, rgba(1, 236, 19, .55), transparent);
}

.intro-by {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(216, 230, 218, .6);
}

[data-stage="1"] .intro-logo,
[data-stage="2"] .intro-logo { opacity: 1; transform: scale(1); filter: blur(0); }

[data-stage="2"] .intro-logo { transform: scale(1.02); }

[data-stage="3"] .intro-logo,
[data-stage="4"] .intro-logo {
  opacity: 0;
  transform: scale(1.04) translateY(-14px);
  filter: blur(3px);
  transition-duration: .9s;
  transition-delay: 0s;
  transition-timing-function: var(--ease-soft);
}

[data-stage="4"] .intro-brand,
[data-stage="4"] .intro-backdrop { visibility: hidden; }

/* ---------- corner foliage ---------- */

.corner-foliage {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.corner {
  position: absolute;
  bottom: -8vw;
  width: min(78vw, 46vh);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(-44px) translateY(40px) scale(.9) rotate(-2deg);
  transform-origin: bottom left;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  will-change: transform, opacity;
}

.corner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(16px 8px 24px rgba(0, 0, 0, .5));
}

.corner-left { left: -10vw; }
.corner-right {
  right: -10vw;
  transform-origin: bottom right;
  transform: translateX(44px) translateY(40px) scale(.9) rotate(2deg);
}
.corner-right img { transform: scaleX(-1); filter: drop-shadow(-16px 8px 24px rgba(0, 0, 0, .5)); }

[data-stage="3"] .corner-left,
[data-stage="4"] .corner-left { opacity: .9; transform: none; }

[data-stage="3"] .corner-right,
[data-stage="4"] .corner-right { opacity: .88; transform: none; transition-delay: .06s; }

@media (min-width: 1100px) {
  .corner {
    bottom: -4.5rem;
    width: clamp(320px, min(calc(67vw - 500px), 74vh), 860px);
    transform: translateX(-44px) translateY(40px) scale(.9) rotate(-2deg);
  }
  .corner-left { left: -3.5rem; }
  .corner-right { right: -3.5rem; }
  [data-stage="3"] .corner-left,
  [data-stage="4"] .corner-left { opacity: .98; transform: none; transition-delay: .7s; }
  [data-stage="3"] .corner-right,
  [data-stage="4"] .corner-right { opacity: .96; transform: none; transition-delay: .8s; }
}

/* ---------- header ---------- */

.topbar {
  width: 100%;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand-villa {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 500;
  line-height: .95;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}

.topbar-place {
  text-align: right;
  font-size: 10px;
  line-height: 1.625;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(216, 230, 218, .75);
}

.topbar-city { display: block; color: var(--accent); }

/* ---------- layout ---------- */

.layout {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.25rem;
}

.hero-copy {
  max-width: 760px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: .08s;
}

.hero-form {
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  transition-delay: .16s;
}

[data-stage="3"] .hero-copy,
[data-stage="4"] .hero-copy,
[data-stage="3"] .hero-form,
[data-stage="4"] .hero-form { opacity: 1; transform: none; }

[data-stage="3"] .hero-media,
[data-stage="4"] .hero-media { opacity: 1; }

/* ---------- hero copy ---------- */

.hero-eyebrow {
  margin: 0 0 1.1rem;
  padding-left: .18em;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(1, 236, 19, .82);
}

.hero-copy h1 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.55rem;
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--paper);
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .45);
}

.gradient-text {
  background: linear-gradient(178deg, #FFFFFF 0%, var(--mist) 46%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(216, 230, 218, .82);
}

.accent-text { color: var(--accent); }

.hero-stat { margin-top: 1.5rem; max-width: 640px; }

.kicker {
  margin: 0 auto .95rem;
  max-width: 94%;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--mist);
}

.kicker span { font-weight: 600; color: var(--accent); }
.kicker .kicker-line { display: block; font-weight: 600; color: var(--accent); }

.stat-card {
  border: 1px solid rgba(140, 242, 154, .34);
  border-radius: 22px;
  background: rgba(10, 33, 22, .4);
  padding: 1.25rem;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .24),
    inset 0 0 28px rgba(1, 236, 19, .035);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
}

.stat-figure { text-align: center; }

.stat-number {
  display: block;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.stat-number sup {
  margin-left: .1em;
  font-size: .44em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: super;
}

.stat-unit {
  display: block;
  margin-top: .3rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(216, 230, 218, .68);
}

.stat-ornament {
  margin-top: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.ornament-line { height: 1px; width: 2.5rem; background: rgba(140, 242, 154, .5); }

.ornament-diamond {
  height: 8px;
  width: 8px;
  transform: rotate(45deg);
  border: 1px solid rgba(140, 242, 154, .6);
}

.stat-caption {
  margin: 0;
  text-align: center;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(216, 230, 218, .78);
}

.stat-caption span { color: var(--accent-soft); }

.hero-legal {
  margin: .8rem 0 0;
  text-align: center;
  font-size: .7rem;
  line-height: 1.6;
  color: rgba(216, 230, 218, .7);
}

.hero-legal span {
  display: block;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- lead panel ---------- */

.lead-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 460px;
}

.lead-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  border-radius: 26px;
  padding: 1rem;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(12, 42, 28, .78), rgba(5, 20, 13, .72)),
    rgba(10, 33, 22, .68);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  backdrop-filter: blur(28px) saturate(125%);
  border: 1px solid rgba(140, 242, 154, .26);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .13),
    inset 0 0 60px rgba(1, 236, 19, .05);
}

.lead-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 0, rgba(216, 230, 218, .1), transparent 34%),
    linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .035) 52%, transparent 62%);
}

.panel-head { margin-bottom: .9rem; text-align: center; }

.panel-mark {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .65rem;
}

.panel-villa {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  padding-left: .14em;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.3));
}

.panel-eyebrow {
  margin: 0 0 .35rem;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: balance;
}

.panel-view { animation: panel-in .3s var(--ease-out); }

@keyframes panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-alert {
  margin-bottom: 1rem;
  padding: .75rem .875rem;
  border-radius: .75rem;
  border: 1px solid rgba(248, 113, 113, .45);
  background: rgba(69, 10, 10, .45);
  color: #FEE2E2;
  font-size: .75rem;
  line-height: 1.625;
}

/* ---------- form ---------- */

.lead-form { display: flex; flex-direction: column; gap: .55rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { min-width: 0; }

.field > label,
.label-split {
  display: block;
  margin-bottom: .25rem;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(216, 230, 218, .82);
}

.field > .label-split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.label-hint {
  font-size: 11px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: normal;
  color: rgba(216, 230, 218, .72);
}

.field-row { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.field-row-city { grid-template-columns: 2fr 1fr; }

.lead-input {
  width: 100%;
  min-height: 41px;
  padding: .5rem .8rem;
  border-radius: 13px;
  border: 1px solid rgba(140, 242, 154, .3);
  background-color: rgba(255, 255, 255, .075);
  color: var(--paper);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 22px rgba(0, 0, 0, .08);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.lead-input::placeholder { color: rgba(216, 230, 218, .58); }

.lead-input:hover {
  border-color: rgba(140, 242, 154, .42);
  background-color: rgba(255, 255, 255, .1);
}

.lead-input:focus {
  outline: none;
  border-color: rgba(1, 236, 19, .78);
  background-color: rgba(255, 255, 255, .13);
  box-shadow:
    0 0 0 3px rgba(1, 236, 19, .14),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.lead-input.is-invalid { border-color: rgba(248, 113, 113, .9); }

.lead-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .14), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.field-error {
  margin: .375rem 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #FCA5A5;
}

/* custom select */

.premium-select { position: relative; }

.premium-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  padding-right: .45rem;
}

.premium-select-trigger[data-placeholder="true"] { color: rgba(216, 230, 218, .6); }

.premium-select-trigger[data-open="true"] {
  border-color: rgba(1, 236, 19, .78);
  background-color: rgba(255, 255, 255, .12);
  box-shadow:
    0 0 0 3px rgba(1, 236, 19, .13),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.premium-select-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-select-icon {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  margin-right: -.35rem;
  border-left: 1px solid rgba(140, 242, 154, .18);
  color: rgba(140, 242, 154, .88);
}

.premium-select-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform .18s var(--ease-out), color .18s ease;
}

.premium-select-trigger:hover .premium-select-chevron { color: var(--accent); }
.premium-select-trigger[data-open="true"] .premium-select-chevron { transform: rotate(180deg); color: var(--accent); }

.premium-select-menu {
  position: absolute;
  z-index: 90;
  left: 0;
  right: 0;
  padding: .375rem;
  overflow: hidden;
  border: 1px solid rgba(140, 242, 154, .34);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 42, 28, .98), rgba(5, 20, 13, .985)), #071710;
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transform-origin: top center;
  animation: select-in .16s var(--ease-out);
}

.premium-select-menu[data-placement="bottom"] { top: calc(100% + .45rem); }

.premium-select-menu[data-placement="top"] {
  bottom: calc(100% + .45rem);
  transform-origin: bottom center;
  animation-name: select-in-top;
}

@keyframes select-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes select-in-top {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.premium-select-scroll {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(1, 236, 19, .5) rgba(10, 33, 22, .5);
}

.premium-select-scroll::-webkit-scrollbar { width: 5px; }
.premium-select-scroll::-webkit-scrollbar-track { margin-block: .4rem; background: transparent; }
.premium-select-scroll::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 4px;
  background: rgba(1, 236, 19, .45);
}

.premium-select-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .625rem .75rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  color: rgba(255, 255, 255, .86);
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease, background-color .14s ease;
}

.premium-select-option[data-active="true"] {
  border-color: rgba(1, 236, 19, .14);
  background-color: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.premium-select-option[data-selected="true"] {
  border-color: rgba(140, 242, 154, .3);
  background: linear-gradient(90deg, rgba(1, 236, 19, .16), rgba(1, 236, 19, .04));
  color: #EFFBF1;
}

.premium-select-option[data-selected="true"][data-active="true"] {
  background: linear-gradient(90deg, rgba(1, 236, 19, .22), rgba(1, 236, 19, .07));
}

.premium-select-check {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  visibility: hidden;
}

.premium-select-option[data-selected="true"] .premium-select-check { visibility: visible; }

.premium-select-check svg { width: 1rem; height: 1rem; }

.premium-select-footer {
  margin-top: .25rem;
  padding-top: .25rem;
  border-top: 1px solid rgba(140, 242, 154, .12);
}

.premium-select-clear {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgba(216, 230, 218, .58);
  font-family: inherit;
  font-size: .7rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .14s ease, background-color .14s ease;
}

.premium-select-clear svg { width: .875rem; height: .875rem; }

.premium-select-clear:hover,
.premium-select-clear:focus-visible {
  background-color: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .88);
  outline: none;
}

/* consent */

.consent { margin: 0; }

.consent-label {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .75rem;
  padding: .25rem 0;
  cursor: pointer;
  user-select: none;
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: .125rem 0 0;
  border: 1px solid rgba(216, 230, 218, .5);
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.consent-label input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .14s var(--ease-out);
  background: var(--ink-950);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 82% 0, 38% 62%);
}

.consent-label input[type="checkbox"]:hover { border-color: rgba(140, 242, 154, .65); }

.consent-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-label input[type="checkbox"]:checked::before { transform: scale(1); }

.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(1, 236, 19, .5);
  outline-offset: 2px;
}

.consent-label span {
  font-size: .7rem;
  line-height: 1.6;
  color: rgba(216, 230, 218, .7);
}

/* CTA */

.submit-wrap { padding-top: .125rem; }

.lead-cta {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: .65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid rgba(1, 236, 19, .55);
  border-radius: 14px;
  background: linear-gradient(135deg, #01EC13, #00C40F);
  color: var(--ink-950);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lead-cta:hover {
  filter: brightness(1.06);
  box-shadow:
    0 15px 34px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .36);
  transform: translateY(-1px);
}

.lead-cta:active { transform: translateY(0); }
.lead-cta:focus-visible { outline: 2px solid rgba(1, 236, 19, .8); outline-offset: 3px; }

.lead-cta:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.cta-arrow, .cta-spinner { width: 1rem; height: 1rem; flex: 0 0 auto; }

.cta-spinner, .cta-loading { display: none; }

.lead-cta.is-loading .cta-arrow, .lead-cta.is-loading .cta-label { display: none; }
.lead-cta.is-loading .cta-spinner { display: block; animation: spin 1s linear infinite; }
.lead-cta.is-loading .cta-loading { display: inline; }

@keyframes spin { to { transform: rotate(1turn); } }

.lead-privacy {
  margin: .1rem 0 0;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(216, 230, 218, .58);
}

/* success */

.panel-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.success-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(140, 242, 154, .4);
  background: var(--ink-deep);
  color: var(--accent);
  animation: badge-pop .55s var(--ease-out) both;
}

.success-badge svg { width: 2rem; height: 2rem; }

@keyframes badge-pop {
  from { transform: scale(0) rotate(-30deg); }
  to { transform: scale(1) rotate(0); }
}

.success-title {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--paper);
}

.success-text {
  margin: 0 0 1.5rem;
  max-width: 24rem;
  font-size: .875rem;
  line-height: 1.625;
  color: rgba(216, 230, 218, .72);
}

.success-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding: .5rem 1rem;
  border-top: 1px solid rgba(1, 236, 19, .2);
  border-bottom: 1px solid rgba(1, 236, 19, .2);
  font-size: .75rem;
  color: rgba(216, 230, 218, .65);
}

.success-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; color: var(--accent); }

.success-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  margin-bottom: .5rem;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(140, 242, 154, .4);
  background: rgba(140, 242, 154, .08);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.success-whatsapp svg { width: 1rem; height: 1rem; }

.success-whatsapp:hover {
  background: rgba(140, 242, 154, .14);
  border-color: rgba(140, 242, 154, .65);
}

.success-reset {
  min-height: 2.75rem;
  padding: 0 .75rem;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: .75rem;
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .18s ease;
}

.success-reset:hover { color: var(--paper); }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .topbar { padding-left: 2rem; padding-right: 2rem; }
  .brand-villa { font-size: 1.05rem; }
  .topbar-place { font-size: 10.5px; }
  .layout { padding: 1.75rem 2rem; }
  .hero-copy h1 { font-size: 3.35rem; }
  .hero-sub { font-size: 1rem; line-height: 1.6; }
  .kicker { font-size: 1.15rem; }
  .stat-card { padding: 1.5rem 1.75rem; }
  .stat-grid { grid-template-columns: .9fr 1.1fr; gap: 1.5rem; }
  .stat-figure { border-right: 1px solid rgba(140, 242, 154, .22); padding-right: 1.5rem; }
  .stat-number { font-size: 2.45rem; }
  .stat-caption { text-align: left; font-size: .9rem; }
  .hero-legal { font-size: .78rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row-city { grid-template-columns: 2fr 1fr; }
  .lead-input { font-size: .875rem; }
  .lead-panel { padding: 1.3rem; }
  .panel-head h2 { font-size: 1.45rem; }
  .panel-villa { font-size: 1.7rem; }
  .success-title { font-size: 1.6rem; }
  .success-text { font-size: .92rem; }
}

@media (min-width: 1100px) {
  .page { height: 100dvh; overflow: hidden; }
  .shell { height: 100dvh; }

  .canopy-side {
    top: -8vh;
    width: 62vw;
    height: 116vh;
    aspect-ratio: auto;
    transform-origin: left top;
  }
  .canopy-right { width: 54vw; transform-origin: right top; }
  .canopy-side img { object-position: right center; }
  .canopy-right img {
    transform: scaleX(-1);
    object-position: right center;
  }
  .canopy-line { inset: 0 auto 0 50%; height: auto; }

  .topbar { padding: 1.25rem clamp(2.5rem, 4.5vw, 5rem) 0; }
  .brand-villa { font-size: 1.15rem; }
  .layout {
    padding: 1.25rem clamp(2.5rem, 4.5vw, 5rem);
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 3rem;
  }
  .hero-form { justify-content: flex-end; }
  .hero-copy h1 { font-size: 3.7rem; }
  .lead-panel { padding: 1.2rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .lead-input { font-size: .875rem; }
}

@media (min-width: 1280px) {
  .layout { gap: 3.75rem; }
  .hero-copy h1 { font-size: 4.05rem; }
  .lead-panel { padding: 1.3rem; }
}

@media (min-width: 1400px) {
  .layout { gap: 4.25rem; }
  .hero-copy h1 { font-size: 4.45rem; }
}

/* compact desktop heights — keeps everything above the fold */
@media (min-width: 1100px) and (max-height: 820px) {
  .layout { padding-top: .75rem; padding-bottom: .75rem; }
  .hero-copy h1 { font-size: 3.3rem; }
  .hero-sub { margin-top: .9rem; font-size: .92rem; }
  .hero-stat { margin-top: 1.15rem; }
  .kicker { margin-bottom: .7rem; font-size: 1rem; }
  .stat-card { padding: 1rem 1.15rem; }
  .stat-number { font-size: 1.9rem; }
  .stat-caption { font-size: .82rem; }
  .hero-legal { margin-top: .6rem; }
  .lead-panel { padding: 1.1rem; }
  .panel-head { margin-bottom: .75rem; }
  .panel-mark { margin-bottom: .6rem; }
  .panel-villa { font-size: 1.35rem; }
  .panel-head h2 { font-size: 1.22rem; }
  .lead-form { gap: .45rem; }
  .lead-input { min-height: 38px; padding-top: .4rem; padding-bottom: .4rem; }
  .consent-label { min-height: 2.25rem; }
  .lead-cta { min-height: 40px; }
}

/* very short desktop viewports: allow scrolling instead of clipping */
@media (min-width: 1100px) and (max-height: 680px) {
  .page { height: auto; overflow-x: hidden; overflow-y: auto; }
  .shell { height: auto; min-height: 100dvh; }
}

@media (max-width: 639px) {
  .lead-panel {
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    backdrop-filter: blur(22px) saturate(120%);
    box-shadow:
      0 24px 62px rgba(0, 0, 0, .42),
      inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .canopy-side {
    -webkit-mask-image: linear-gradient(180deg, #000 54%, rgba(0, 0, 0, .72) 74%, rgba(0, 0, 0, .28) 89%, transparent);
    mask-image: linear-gradient(180deg, #000 54%, rgba(0, 0, 0, .72) 74%, rgba(0, 0, 0, .28) 89%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .intro-brand, .intro-backdrop, .canopy { visibility: hidden; }
}
