/* ===== TalkyTown ===== */
:root {
  --bg: #131017;
  --bg-alt: #1a1420;
  --surface: #241b2e;
  --surface-2: #2c2138;
  --border: rgba(255, 255, 255, 0.08);
  --purple: #8655a9;
  --purple-light: #a87fd0;
  --pink: #e7547b;
  --pink-light: #f47fa0;
  --gold: #e8b44e;
  --text: #f4f1f8;
  --muted: #a99fbb;
  --grad: linear-gradient(100deg, var(--purple-light), var(--pink));
  --radius: 22px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-light);
  margin-bottom: 0.9rem;
}

.section__lead { color: var(--muted); margin-top: 0.6rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(231, 84, 123, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(231, 84, 123, 0.5); }
.btn--ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.btn--lg { padding: 0.85rem 1.7rem; font-size: 1.05rem; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav--scrolled {
  background: rgba(19, 16, 23, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav__links a { color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: 8.5rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 560px; height: 560px;
  background: rgba(134, 85, 169, 0.35);
  top: -160px; left: -120px;
}
.hero__glow--2 {
  width: 480px; height: 480px;
  background: rgba(231, 84, 123, 0.25);
  top: 120px; right: -140px;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4.5rem;
}
.hero__badges {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-light);
  background: rgba(134, 85, 169, 0.15);
  border: 1px solid rgba(134, 85, 169, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pink-light);
  background: rgba(231, 84, 123, 0.12);
  border: 1px solid rgba(231, 84, 123, 0.5);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.hero__badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 1.3rem 0 2rem;
}
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}
.hero__proof strong { color: var(--text); }
.hero__avatars { display: flex; }
.hero__avatars img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  margin-left: -12px;
}
.hero__avatars img:first-child { margin-left: 0; }

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ===== Phone mockup ===== */
.phone {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 44px;
  border: 3px solid #3a2f47;
  background: #0c0910;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 90px rgba(134, 85, 169, 0.22);
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
}
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #0c0910;
  border-radius: 999px;
  z-index: 2;
}
.phone--hero { transform: rotate(2deg); transition: transform 0.15s ease-out; will-change: transform; }
.phone--tilt-l { transform: rotate(-5deg) translateY(8px); }
.phone--tilt-r { transform: rotate(4deg); margin-left: -2.2rem; margin-top: 3rem; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(36, 27, 46, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: floaty 5s ease-in-out infinite;
}
.float-card img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.float-card strong { display: block; font-family: var(--font-display); }
.float-card span { color: var(--pink-light); font-size: 0.78rem; }
.float-card--1 { left: -6%; top: 16%; }
.float-card--2 { right: -4%; bottom: 14%; animation-delay: -2.5s; }
.float-card__heart {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Marquee ===== */
.marquee {
  border-block: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: scroll 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
}
.marquee__track span::after { content: "✦"; color: var(--pink); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section { padding: 6.5rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}
.section__head p { color: var(--muted); margin-top: 0.8rem; }

/* ===== Character grid ===== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.char-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.char-card:hover {
  transform: translateY(-6px);
  border-color: rgba(231, 84, 123, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.char-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
}
.char-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.char-card__body p { color: var(--muted); font-size: 0.92rem; margin: 0.25rem 0 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(134, 85, 169, 0.16);
  border: 1px solid rgba(134, 85, 169, 0.4);
  color: var(--purple-light);
}
.chip:nth-child(2n) {
  background: rgba(231, 84, 123, 0.13);
  border-color: rgba(231, 84, 123, 0.4);
  color: var(--pink-light);
}

/* ===== Split layouts ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split--rev .split__copy { order: 1; }
.split--rev .split__media { order: 2; }
.split__media { display: flex; justify-content: center; }
.split__media--duo { align-items: flex-start; }
.split__copy h2 { margin-bottom: 1rem; }

.feature-list { list-style: none; display: grid; gap: 1.6rem; margin-top: 1.8rem; }
.feature-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-list__icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.feature-list h3 { margin-bottom: 0.15rem; }
.feature-list p { color: var(--muted); font-size: 0.95rem; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; gap: 1.3rem; margin: 2rem 0; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__num {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}
.steps p { color: var(--muted); font-size: 0.95rem; }

.trait-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; max-width: 46ch; }
.trait {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(231, 84, 123, 0.1);
  border: 1px solid rgba(231, 84, 123, 0.35);
  color: var(--pink-light);
}
.trait:nth-child(3n) {
  background: rgba(134, 85, 169, 0.14);
  border-color: rgba(134, 85, 169, 0.4);
  color: var(--purple-light);
}

/* ===== Challenges ===== */
.challenge-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.challenge-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background-image: var(--img);
  background-size: cover;
  background-position: center 20%;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.challenge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 7, 14, 0.9));
}
.challenge-card span {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.challenge-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(231, 84, 123, 0.22), rgba(134, 85, 169, 0.18) 45%, transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__logo { height: 52px; margin: 0 auto 1.6rem; }
.cta h2 { margin-bottom: 0.9rem; }
.cta p { color: var(--muted); margin-bottom: 2.2rem; }
.cta__age { color: var(--pink-light); font-size: 0.85rem; font-weight: 700; }
.cta__stores {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: #14101a;
  border-radius: 14px;
  padding: 0.65rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  opacity: 0.65;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.footer__inner img { height: 30px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__note { color: var(--muted); font-size: 0.82rem; }

/* ===== Legal pages ===== */
.legal { padding: 9rem 0 6rem; }
.legal__inner { max-width: 720px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 0.4rem; }
.legal__updated {
  color: var(--pink-light);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 2.2rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.6rem;
  color: var(--purple-light);
}
.legal p { color: var(--muted); margin-bottom: 0.8rem; }
.legal ul {
  color: var(--muted);
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
}
.legal li::marker { color: var(--pink); }
.legal a {
  color: var(--pink-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--text); }
.nav__back { margin-left: auto; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__stage { order: 2; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__proof, .hero__badges { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split--rev .split__copy { order: 2; }
  .split--rev .split__media { order: 1; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .challenge-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: rgba(19, 16, 23, 0.97);
    backdrop-filter: blur(14px);
    padding: 1.2rem 4%;
    gap: 1.1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__burger { display: flex; }
  .nav .btn--sm { margin-left: auto; }
  .char-grid { grid-template-columns: 1fr; }
  .challenge-row { grid-template-columns: repeat(2, 1fr); }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }
  .phone--tilt-l { transform: rotate(-3deg); }
  .split__media--duo .phone { width: min(250px, 60vw); }
}
