/* ============================================
   COMPONENT STYLES — PropBoxIQ marketing site
   ============================================ */

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(18, 109, 133, 0.25);
}
.btn--primary:hover {
  background: var(--teal-deep);
  box-shadow: 0 10px 28px rgba(18, 109, 133, 0.35);
}
.btn--white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.btn--white:hover {
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.btn--ghost-on-teal {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn--ghost-on-teal:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn--lg {
  padding: 16px 28px;
  font-size: var(--text-base);
}

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  max-width: 100%;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__logo {
  flex-shrink: 0;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.nav__wordmark-accent {
  color: var(--cyan);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--teal-ink) 0%, var(--teal) 60%, var(--teal-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__house {
  animation: floatY 8s ease-in-out infinite;
}
.hero__house:nth-child(3) {
  animation-delay: -2s;
}
.hero__house:nth-child(4) {
  animation-delay: -4s;
}
.hero__house:nth-child(5) {
  animation-delay: -6s;
}
@keyframes floatY {
  0%, 100% { transform: translate(var(--tx, 0), 0); }
  50% { transform: translateY(-8px); }
}
.hero__cursor-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  left: 50%;
  top: 50%;
  transform: translate(var(--mx, 0px), var(--my, 0px)) translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95, 212, 231, 0.32) 0%, rgba(95, 212, 231, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  transition: transform 600ms var(--ease-out);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.95;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-hero);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
}
.hero__title-line {
  display: inline-block;
  white-space: nowrap;
}
.hero__title-iq {
  color: var(--cyan);
}
.hero__sub {
  max-width: 560px;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero — splitting reveal */
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: charIn 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--char-index) * 35ms + 200ms);
}
@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Deal Card */
.deal-card {
  position: relative;
  z-index: 3;
  justify-self: end;
  width: min(380px, 100%);
  margin-top: clamp(8px, 2vw, 24px);
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 1s var(--ease-out) 700ms forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.deal-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.deal-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
}
.deal-card__addr {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}
.deal-card__score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.deal-card__score-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.deal-card__score-max {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-left: 4px;
}
.deal-card__bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.deal-card__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  border-radius: inherit;
  animation: barFill 1.4s var(--ease-out) 1.1s forwards;
  --w: 94%;
}
@keyframes barFill {
  to { width: var(--w); }
}
.deal-card__rows {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.deal-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
}
.deal-card__row dt {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.deal-card__row dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- Section base ---------- */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  background: var(--surface);
  position: relative;
}
.section__header {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 720px;
}
.section__header--center {
  margin-inline: auto;
  text-align: center;
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section__title {
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Reveal-on-scroll (opacity only — no CLS) */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes revealFade {
  to { opacity: 1; }
}

/* ---------- Workflow ---------- */
.workflow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.workflow__item {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.workflow__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 109, 133, 0.3);
}
.workflow__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-teal);
  display: grid;
  place-items: center;
  color: var(--teal);
  margin-bottom: 18px;
}
.workflow__icon svg {
  width: 28px;
  height: 28px;
}
.workflow__step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.workflow__name {
  font-size: var(--text-lg);
  margin-bottom: 8px;
}
.workflow__copy {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Split (Map + Memo) ---------- */
.split {
  background: var(--surface);
}
.split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.split__card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, var(--surface-teal) 0%, #fff 65%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.split__copy h3 {
  font-size: var(--text-lg);
  margin-bottom: 8px;
}
.split__copy p {
  font-size: var(--text-base);
  color: var(--muted);
  max-width: 50ch;
}
.split__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 14, 18, 0.1);
  padding: 12px;
}
.split__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.split__img--memo-wrap {
  display: grid;
  place-items: center;
  background: #fff;
  padding: 28px 12px;
  margin-top: auto;
}
.split__img--memo {
  max-width: 320px;
  width: 80%;
  filter: drop-shadow(0 16px 36px rgba(10, 14, 18, 0.18));
}

/* ---------- Features ---------- */
.features {
  background: var(--surface);
}
.features__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.features__copy .section__title {
  margin-bottom: 24px;
}
.features__list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.features__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--ink-2);
}
.features__list strong {
  color: var(--ink);
  font-weight: 600;
}
.features__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.features__check svg {
  width: 14px;
  height: 14px;
}
.features__phone {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, var(--surface-teal) 0%, #fff 70%);
  border-radius: var(--radius-2xl);
  padding: 32px;
  min-height: 480px;
}
.features__phone::before {
  content: "";
  position: absolute;
  inset: 14% 12%;
  background: radial-gradient(ellipse at center, rgba(95, 212, 231, 0.35) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.features__phone img {
  position: relative;
  z-index: 1;
  max-width: 300px;
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(10, 14, 18, 0.2));
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--surface-teal);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  animation: marqueeScroll 36s linear infinite;
  width: max-content;
}
.marquee__dot {
  color: var(--muted-2);
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--surface);
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
}
.cta__inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 720px;
}
.cta__title {
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
}
.cta__sub {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer__copy {
  font-size: var(--text-sm);
  color: var(--muted);
}
.footer__cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  transition: color var(--transition);
}
.footer__cta:hover {
  color: var(--teal-deep);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero__inner {
    text-align: left;
  }
  .deal-card {
    justify-self: stretch;
    width: 100%;
    max-width: 420px;
  }
  .workflow__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .split__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .features__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features__phone {
    order: -1;
  }
  .features__phone img {
    max-width: 280px;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .nav {
    padding: 16px 20px;
  }
  .nav__wordmark {
    font-size: 16px;
  }
  .hero {
    padding: 100px 0 70px;
  }
  .deal-card {
    padding: 18px;
  }
  .deal-card__score-value {
    font-size: 36px;
  }
  .btn {
    padding: 11px 18px;
  }
}
