/* Landing v4 — cinematic phone dive, GPU-cheap scroll scenes */

:root {
  --ph-w: 280px;
  --ph-h: 572px;
}
.land-v4 {
  --land-ease: cubic-bezier(.16, 1, .3, 1);
  --ph-w: 280px;
  --ph-h: 572px;
}
.land-v4 .fx-grid { display: none; }
.land-v4 .fx-glow { opacity: .55; }
.land-v4 .land-section,
.land-v4 .land-stats,
.land-v4 .land-pay,
.land-v4 .land-faq,
.land-v4 .land-cta-band,
.land-v4 .land-scene,
.land-v4 .land-marquee { position: relative; z-index: 1; }

.land-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; pointer-events: none;
}
.land-progress i {
  display: block; height: 100%; width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--lime), var(--accent2));
}

.land-nav-v2 {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 40;
  margin: 0 max(12px, 4vw);
  padding: 14px 18px;
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 6, 10, .55);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.land-nav-v2.is-scrolled {
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  border-color: rgba(149,245,184,.22);
  background: rgba(5, 6, 10, .82);
}

/* ——— Film: hero + camera into phone ——— */
.film-pin { height: 280vh; }
.film-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.film-glow {
  position: absolute;
  left: 58%;
  top: 50%;
  z-index: 0;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,245,184,.14), rgba(126,203,255,.05) 45%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.film-copy {
  position: absolute;
  left: max(28px, 6vw);
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 42vw);
  z-index: 3;
  will-change: opacity, transform;
}
.land-chip {
  display: inline-block;
  margin: 0 10px 8px 0;
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 11px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(149,245,184,.1);
  border: 1px solid rgba(149,245,184,.28);
}
.land-brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -.03em;
  margin: 0 0 12px;
  line-height: 1;
}
.land-brand-mark em { font-style: normal; color: var(--lime); }
.film-copy h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.film-copy h1 span {
  background: linear-gradient(120deg, var(--lime), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.film-copy .lead {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 42ch;
  margin: 0;
  line-height: 1.55;
}
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.land-cta { animation: land-pulse 2.8s ease-in-out infinite; }
@keyframes land-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(149,245,184,0); }
  50% { box-shadow: 0 12px 40px rgba(149,245,184,.25); }
}
.land-hero-stats {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.land-hero-stats li { display: grid; gap: 2px; }
.land-hero-stats b { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; }
.land-hero-stats span { font-size: 12px; color: var(--muted); }

.film-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ph-w, 280px);
  height: var(--ph-h, 572px);
  margin: 0;
  transform: translate3d(calc(-50% + 16vw), -50%, 0) rotateY(-22deg) rotateX(8deg);
  transform-origin: 50% 50%;
  will-change: transform;
  z-index: 2;
}
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: #0a0b10;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    inset 0 0 0 8px #070910,
    0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  contain: layout paint;
}
.ph-side {
  position: absolute;
  right: -10px; top: 18%;
  width: 10px; height: 28%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#2a2d36, #14161c);
  pointer-events: none;
}
.ph-bezel {
  position: absolute;
  inset: 10px;
  border-radius: 32px;
  background: #0e1018;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ph-notch {
  position: absolute; left: 50%; top: 8px;
  width: 88px; height: 10px; margin-left: -44px;
  border-radius: 8px; background: #000; z-index: 2;
}
.ph-status {
  display: flex; justify-content: space-between;
  padding: 14px 14px 4px;
  font-size: 10px; color: rgba(255,255,255,.55); font-weight: 700;
}
.ph-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ph-head b { display: block; font-size: 13px; }
.ph-head small { font-size: 10px; color: var(--accent2); }
.ph-ava {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 12px var(--display); color: #0a0b11;
  background: linear-gradient(135deg, var(--lime), var(--accent2));
}
.ph-chat {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 7px; padding: 10px 10px 8px;
  overflow: hidden;
}
.ph-msg {
  max-width: 86%;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.35;
  animation: ph-in .55s var(--land-ease) both;
}
.ph-msg.in { align-self: flex-end; background: linear-gradient(135deg, rgba(149,245,184,.92), rgba(126,203,255,.85)); color: #0a0b11; border-bottom-right-radius: 4px; }
.ph-msg.out { align-self: flex-start; background: rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.ph-msg.kb { background: none; padding: 0; display: flex; gap: 5px; flex-wrap: wrap; max-width: 100%; }
.ph-msg.kb i { font-style: normal; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.ph-msg:nth-child(1) { animation-delay: .2s; }
.ph-msg:nth-child(2) { animation-delay: .7s; }
.ph-msg:nth-child(3) { animation-delay: 1.15s; }
.ph-msg:nth-child(4) { animation-delay: 1.7s; }
.ph-msg:nth-child(5) { animation-delay: 2.2s; }
.ph-msg:nth-child(6) { animation-delay: 2.7s; }
.ph-msg:nth-child(7) { animation-delay: 3.2s; }
@keyframes ph-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}
.ph-input {
  margin: 6px 10px 10px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted); font-size: 11px;
}
.ph-input b { color: var(--lime); }
.ph-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 32%, transparent 68%, rgba(255,255,255,.04));
  pointer-events: none;
}

.film-cap {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  text-align: center;
  pointer-events: none;
}
.land-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 4;
}
.land-scroll-hint span {
  display: block; width: 20px; height: 32px;
  border: 2px solid rgba(255,255,255,.22); border-radius: 999px; position: relative;
}
.land-scroll-hint span::after {
  content: '';
  position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--lime);
  animation: land-scroll 1.6s ease-in-out infinite;
}
@keyframes land-scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.film-portal {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.film-portal.is-on { visibility: visible; opacity: 1; }
.portal-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(149,245,184,.08), transparent 60%),
    #07080e;
}
.portal-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(720px, calc(100% - 48px));
  padding: 28px 16px;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.98);
  transition: opacity .45s ease, transform .55s var(--land-ease);
}
.film-portal.is-ready .portal-inner {
  opacity: 1;
  transform: none;
}
.portal-inner h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4.2vw, 44px);
  letter-spacing: -.03em;
  margin: 0 0 14px;
  line-height: 1.15;
  max-width: none;
}
.portal-inner p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.5; }

/* ——— Marquee ——— */
.land-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.28);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.land-marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: land-marquee 36s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.land-marquee-track span::before { content: '◆'; margin-right: 28px; color: var(--lime); opacity: .7; }
@keyframes land-marquee { to { transform: translateX(-50%); } }

/* ——— Shared section chrome ——— */
.land-section {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 36px;
}
.land-section-head { margin-bottom: 24px; max-width: 52ch; }
.land-section-head .eyebrow,
.portal-inner .eyebrow {
  color: var(--lime); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 12px; margin: 0 0 10px;
}
.land-section-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: -.03em; margin: 0 0 10px;
}
.land-section-head .section-lead { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.5; }

/* ——— Capabilities: depth tunnel on scroll ——— */
.cap-pin { height: 220vh; }
.cap-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 40px;
  perspective: 1600px;
}
.cap-sticky .land-section-head {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 20px;
}
.cap-stage {
  position: relative;
  height: min(420px, 52vh);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--cz, 0) * 1px)) rotateY(calc(var(--cy, 0) * 1deg));
  will-change: transform;
}
.cap-card {
  position: absolute;
  left: 50%; top: 50%;
  width: min(280px, 72vw);
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(16,18,28,.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  backface-visibility: hidden;
}
.cap-card span {
  font: 800 12px var(--display); color: var(--lime); letter-spacing: .08em;
}
.cap-card h3 { margin: 8px 0 8px; font-size: 20px; }
.cap-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ——— Features: horizontal dolly ——— */
.feat-pin { height: 200vh; }
.feat-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 0 32px;
}
.feat-sticky .land-section-head {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 24px;
}
.feat-rail {
  display: flex; gap: 18px;
  padding: 0 max(24px, 6vw);
  width: max-content;
  transform: translate3d(calc(var(--fx, 0) * -1px), 0, 0);
  will-change: transform;
  perspective: 1200px;
}
.feat-card {
  flex: none;
  width: min(340px, 78vw);
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(22,24,34,.94), rgba(10,12,18,.9));
  border: 1px solid rgba(255,255,255,.08);
  transform: rotateY(-8deg);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.feat-card b { font: 800 28px var(--display); color: var(--lime); }
.feat-card h3 { margin: 12px 0 8px; font-size: 22px; }
.feat-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ——— Steps / stats / plans ——— */
.land-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.land-steps li {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 22px; border-radius: 22px;
  background: rgba(16,18,28,.7);
  border: 1px solid rgba(255,255,255,.08);
}
.land-steps strong { font-family: var(--display); font-size: 28px; color: var(--lime); line-height: 1; }
.land-steps h3 { margin: 0 0 6px; }
.land-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.land-stats {
  width: min(1100px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 22px;
  border-radius: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: linear-gradient(120deg, rgba(149,245,184,.08), rgba(16,18,28,.8));
  border: 1px solid rgba(255,255,255,.08);
}
.land-stat { text-align: center; }
.land-stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -.04em;
}
.land-stat span { color: var(--muted); font-size: 13px; }

.land-pay, .land-faq {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(126,203,255,.07), rgba(16,18,28,.85));
  border: 1px solid rgba(255,255,255,.08);
}
.land-pay .eyebrow { margin: 0 0 8px; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--lime); }
.land-pay h2, .land-faq h2 { margin: 0 0 10px; font-family: var(--display); }
.land-pay .section-lead { margin: 0; max-width: 62ch; }
.pay-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 18px 0 0; padding: 0;
}
.pay-pills li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(149,245,184,.28);
  background: rgba(149,245,184,.08);
  font-size: 13px;
  font-weight: 600;
}
.faq-list { display: grid; gap: 8px; margin-top: 16px; }
.faq-list details {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 4px 16px;
  background: rgba(8,10,16,.45);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.land-v4 .section,
.land-v4 .price-grid { width: min(1100px, calc(100% - 40px)); }
.land-v4 .section.alt { padding-left: 24px; padding-right: 24px; }
.land-v4 .section.alt h2,
.land-v4 .section.alt .section-lead,
.land-v4 .section.alt .price-grid { padding-left: 0; padding-right: 0; max-width: none; }
.land-v4 .news-sec,
.land-v4 #reviews { content-visibility: auto; contain-intrinsic-size: 1px 640px; }

.land-cta-band {
  width: min(1100px, calc(100% - 40px));
  margin: 36px auto 24px;
  padding: 36px 32px;
  border-radius: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, rgba(149,245,184,.14), rgba(16,18,28,.9));
  border: 1px solid rgba(149,245,184,.25);
}
.land-cta-band h2 { font-family: var(--display); margin: 0 0 8px; font-size: clamp(22px, 3vw, 34px); }
.land-cta-band p { margin: 0; color: var(--muted); max-width: 42ch; }

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .6s ease, transform .7s var(--land-ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.land-v4 .price-card { transition-delay: calc(var(--i, 0) * 70ms); }

.land-v4 .land-foot { padding-bottom: max(28px, env(safe-area-inset-bottom)); }

@media (max-width: 980px) {
  .land-nav-v2 { border-radius: 20px; padding: 12px 14px; }
  .land-nav-v2 nav { display: none; }
  .land-nav-v2 nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    padding: 14px; gap: 4px; border-radius: 18px;
    background: rgba(8, 10, 16, .96);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 24px 60px rgba(0,0,0,.5); z-index: 50;
  }
  .land-nav-v2 nav.open a { padding: 12px 14px; border-radius: 12px; }
  .land-nav-v2 .land-burger { display: inline-flex; }

  .film-pin { height: 220vh; }
  .film-copy {
    left: 24px; right: 24px; top: 18%;
    transform: none; width: auto; max-width: none;
  }
  .film-copy h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .film-phone { left: 50%; top: 68%; --ph-w: 200px; --ph-h: 410px; transform: translate(-50%, -50%) rotateY(-12deg) rotateX(6deg); }
  .land-scroll-hint { display: none; }

  .cap-pin, .feat-pin { height: 180vh; }
  .land-steps { grid-template-columns: 1fr; }
  .land-stats { grid-template-columns: 1fr 1fr; }
  .land-cta-band { flex-direction: column; align-items: stretch; }
  .land-cta-band .btn { width: 100%; justify-content: center; }
  .land-v4 .price-grid { grid-template-columns: 1fr; }
  .land-section, .land-stats, .land-pay, .land-faq, .land-cta-band, .land-v4 .section {
    width: min(100% - 32px, 1100px);
  }
}

@media (max-width: 640px) {
  .land-nav-v2 { margin: 8px 10px; }
  .film-copy { left: 16px; right: 16px; top: 14%; }
  .land-chip { display: block; width: max-content; }
  .film-phone { --ph-w: 168px; --ph-h: 344px; top: 70%; }
  .ph-msg { font-size: 10px; }
  .cap-sticky, .feat-sticky { padding-top: 72px; }
  .land-stats, .land-pay, .land-faq, .land-cta-band, .land-section, .land-v4 .section { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .film-pin, .cap-pin, .feat-pin { height: auto; }
  .film-sticky, .cap-sticky, .feat-sticky {
    position: relative; height: auto; overflow: visible;
    padding: 48px 20px 64px;
  }
  .film-copy {
    position: relative; left: auto; top: auto; transform: none; width: auto; max-width: 52ch;
  }
  .film-phone {
    position: relative; left: auto; top: auto;
    transform: none !important;
    width: var(--ph-w, 240px);
    height: var(--ph-h, 490px);
    margin: 28px auto 0;
  }
  .film-portal, .land-scroll-hint { display: none !important; }
  .land-cta, .ph-msg, .land-marquee-track { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cap-card {
    position: relative; left: auto; top: auto; transform: none !important;
    opacity: 1 !important; visibility: visible !important;
  }
  .cap-stage { height: auto; display: grid; gap: 10px; place-items: stretch; }
  .feat-rail { flex-wrap: wrap; width: auto; transform: none !important; }
}
