:root {
  --bg: #0b040d;
  --bg-elev: #12060f;
  --bg-card: rgba(255, 255, 255, 0.035);
  --ink: #fbeef0;
  --muted: #c9a9b4;
  --dim: #8f6f7c;
  --crimson: #ff2f63;
  --rose: #ff6f97;
  --amber: #ffb648;
  --amber-glow: rgba(255, 182, 72, 0.18);
  --line: rgba(255, 182, 72, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --sticky-h: 76px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 47, 99, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 40%, rgba(255, 182, 72, 0.08), transparent 50%),
    radial-gradient(ellipse 35% 30% at 0% 70%, rgba(255, 47, 99, 0.08), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-bottom: calc(var(--sticky-h) + var(--safe-b) + 12px);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--rose); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #1a0a10; padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Three.js ambient backdrop */
#webgl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#webgl-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

main,
footer.footer {
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-t);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 4, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem;
}
.brand:hover { color: var(--ink); }
.brand img { border-radius: 9px; }
.nav__links { display: none; gap: 1.25rem; margin-left: auto; margin-right: 0.25rem; }
.nav__links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav .btn--ghost { margin-left: auto; }
@media (min-width: 720px) {
  .nav__links { display: flex; }
  .nav .btn--ghost { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border-radius: 999px; padding: 0.75rem 1.25rem; border: 0; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--crimson), #b3124a);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 47, 99, 0.28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 36px rgba(255, 47, 99, 0.38); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3rem;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    padding: 4.5rem 1.5rem 4rem;
  }
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.2vw, 3.4rem);
  line-height: 1.08;
}
.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 34rem;
}
.lede--tight { margin-bottom: 1.35rem; font-size: 1rem; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.meta { margin: 0; font-size: 0.85rem; color: var(--dim); }

/* Phone frames */
.hero__phones {
  position: relative;
  min-height: 440px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.phone { margin: 0; }
.phone__bezel {
  position: relative;
  background: #141016;
  border-radius: 32px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 2px #0a0508,
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 47, 99, 0.12);
  overflow: hidden;
}
.phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 16px;
  background: #0a0508;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}
.phone__bezel img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  background: #000;
}
.phone--front {
  position: relative;
  z-index: 2;
  width: min(270px, 58vw);
  transform: translate(14%, 0) rotate(2.5deg);
  animation: float 5.5s ease-in-out infinite;
}
.phone--back {
  position: absolute;
  width: min(230px, 48vw);
  transform: translate(-38%, -6%) rotate(-7deg);
  opacity: 0.92;
  z-index: 1;
}
.phone--sm { width: 210px; }
.phone--sm .phone__bezel {
  border-radius: 26px;
  padding: 7px;
  box-shadow: 0 0 0 2px #0a0508, 0 16px 40px rgba(0, 0, 0, 0.45);
}
.phone--sm .phone__notch { top: 12px; height: 13px; width: 26%; }
.phone--sm .phone__bezel img { border-radius: 20px; }

@keyframes float {
  0%, 100% { transform: translate(14%, 0) rotate(2.5deg); }
  50% { transform: translate(14%, -10px) rotate(2.5deg); }
}

@media (max-width: 700px) {
  .phone--back { display: none; }
  .phone--front {
    transform: none;
    width: min(280px, 72vw);
    animation: float-m 5.5s ease-in-out infinite;
  }
  @keyframes float-m {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .hero__phones { min-height: 0; }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}
.section > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
}

.grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.steps__n {
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 47, 99, 0.15);
  border: 1px solid rgba(255, 47, 99, 0.35);
  color: var(--rose);
  font-weight: 700;
  font-size: 0.9rem;
}
.steps h3 { margin: 0.1rem 0 0.3rem; font-size: 1.02rem; font-family: var(--font); font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Monetize */
.monetize { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.monetize__panel {
  background:
    linear-gradient(160deg, rgba(255, 47, 99, 0.12), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.4rem;
}
@media (min-width: 700px) { .monetize__panel { padding: 2.4rem 2.1rem; } }
.monetize__panel h2 { margin: 0 0 0.5rem; }
.monetize__grid {
  display: grid; gap: 0.9rem;
}
@media (min-width: 600px) { .monetize__grid { grid-template-columns: 1fr 1fr; } }
.monetize__grid > div {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}
.monetize__grid h3 { margin: 0 0 0.35rem; color: var(--amber); font-size: 1rem; }
.monetize__grid p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Carousel */
.carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
  margin: 0 -1.25rem;
  padding: 0.5rem 1.25rem 1rem;
}
.carousel:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.carousel__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.15rem; width: max-content;
}
.carousel__track li {
  scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
}
.cap { margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--muted); }

/* Final CTA */
.final {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding-bottom: 4rem;
}
.final__icon { border-radius: 18px; margin-bottom: 0.35rem; box-shadow: 0 0 40px rgba(255, 47, 99, 0.35); }
.final h2 { margin: 0; }
.final p { margin: 0 0 0.75rem; color: var(--muted); max-width: 26rem; }

/* Sticky */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-b));
  background: rgba(11, 4, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.sticky__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sticky__brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.sticky__brand img { border-radius: 10px; flex-shrink: 0; }
.sticky__brand strong { display: block; font-size: 0.95rem; }
.sticky__brand span { display: block; font-size: 0.75rem; color: var(--dim); }
@media (min-width: 900px) {
  .sticky { display: none; }
  body { padding-bottom: 0; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  background: #070209;
}
.footer__inner { max-width: var(--max); margin: 0 auto; }
.footer__brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 600; margin-bottom: 0.35rem;
}
.footer__brand img { border-radius: 7px; }
.footer__tag { margin: 0 0 1.15rem; color: var(--muted); font-size: 0.9rem; }
.footer__nav {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; margin-bottom: 1.15rem;
}
.footer__nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.footer__nav a:hover { color: var(--rose); }
.footer__note { margin: 0 0 0.85rem; font-size: 0.8rem; color: var(--dim); max-width: 36rem; line-height: 1.5; }
.footer__note a { color: var(--muted); }
.footer__copy { margin: 0; font-size: 0.8rem; color: var(--dim); }

/* —— Live chat demo phone —— */
.phone--chat { width: min(300px, 78vw); transform: none !important; }
.phone--chat .phone__bezel {
  display: flex; flex-direction: column;
  background: #12060f;
  min-height: 560px;
  height: min(620px, 78vh);
  padding: 0; overflow: hidden;
}
.chat-demo__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}
.chat-demo__who { display: flex; gap: 10px; align-items: center; }
.chat-demo__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ff6f97, transparent 50%),
    linear-gradient(135deg, #3a1528, #12060f);
  border: 1px solid rgba(255,182,72,.35);
}
.chat-demo__who strong { display: block; font-size: 14px; }
.chat-demo__status { font-style: normal; font-size: 11px; color: #6dffa0; }
.chat-demo__vip {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ffb648, #ff6f97); color: #1a0a10;
}
.chat-demo__thread {
  flex: 1; overflow-y: auto; padding: 14px 12px 10px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.bubble-row { display: flex; }
.bubble-row--incoming, .bubble-row--typing { justify-content: flex-start; }
.bubble-row--outgoing { justify-content: flex-end; }
.bubble {
  max-width: 82%; padding: 10px 12px; border-radius: 16px;
  font-size: 14px; line-height: 1.35;
  animation: bubbleIn .35s ease both;
}
.bubble--incoming {
  background: rgba(255,255,255,.08);
  border-bottom-left-radius: 5px;
  color: #fbeef0;
}
.bubble--outgoing {
  background: linear-gradient(135deg, #ff2f63, #b3124a);
  border-bottom-right-radius: 5px; color: #fff;
}
.bubble--photo { padding: 4px; overflow: hidden; max-width: 78%; }
.bubble--photo img { display: block; width: 100%; border-radius: 12px; aspect-ratio: 3/4; object-fit: cover; }
.bubble--typing { display: flex; gap: 5px; align-items: center; padding: 12px 14px; }
.bubble--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #c9a9b4;
  animation: typingDot 1s infinite ease-in-out;
}
.bubble--typing span:nth-child(2) { animation-delay: .15s; }
.bubble--typing span:nth-child(3) { animation-delay: .3s; }
.chat-demo__composer {
  margin: 8px 10px 14px; padding: 12px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); color: #8f6f7c; font-size: 13px;
  background: rgba(0,0,0,.2);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes typingDot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
  .bubble--typing span { animation: none; }
}
