:root {
  --text: #17151f;
  --muted: #777287;
  --purple: #6c5cff;
  --blue: #2f80ed;
  --gold: #d18420;
  --green: #35b24a;
  --pink: #d94e97;
  --bg: #fbfaff;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(23, 21, 31, 0.07);
  --shadow: 0 22px 60px rgba(23, 21, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(108, 92, 255, 0.2), transparent 34%),
    radial-gradient(circle at top right, rgba(217, 78, 151, 0.12), transparent 30%),
    linear-gradient(135deg, #fcfbff 0%, #f8f6ff 48%, #fffdf8 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.3px;
}

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover {
  color: var(--purple);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 24px auto 0;
  min-height: auto;
  padding: 120px 0 92px;
  display: block;
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -3.2px;
}

.brand-line {
  margin-top: 18px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -2.6px;
  background: linear-gradient(90deg, #6c5cff, #d94e97, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
}

.hero-actions,
.download-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.store-badge {
  min-width: 178px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border-radius: 16px;
  color: #fff;
  background: #111018;
  box-shadow: 0 14px 30px rgba(23, 21, 31, 0.18);
}

.store-badge:first-child {
  background: linear-gradient(135deg, #6c5cff, #8b5cf6, #3b82f6);
  box-shadow: 0 16px 30px rgba(108, 92, 255, 0.2);
}

.store-badge small {
  display: block;
  font-size: 10px;
  line-height: 1;
  opacity: 0.82;
  font-weight: 750;
}

.store-badge strong {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.35px;
}

.store-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.apple-icon {
  font-size: 27px;
  line-height: 1;
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  display: block;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 21px solid #fff;
  margin-left: 4px;
}

.features-section,
.how-section,
.download-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-heading p {
  margin: 0 0 9px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -1.7px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.step,
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon.blue {
  color: var(--blue);
  background: #eaf3ff;
}

.feature-icon.gold {
  color: var(--gold);
  background: #fff4dd;
}

.feature-icon.green {
  color: var(--green);
  background: #effbef;
}

.feature-icon.pink {
  color: var(--pink);
  background: #ffedf6;
}

.feature-icon.purple {
  color: var(--purple);
  background: #f0ecff;
}

.feature-icon.dark {
  color: #fff;
  background: #17151f;
}

.feature-card h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.45px;
}

.feature-card p,
.step p,
.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 24px;
}

.step span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 18px;
  font-weight: 850;
}

.download-section {
  padding-top: 42px;
}

.download-card {
  text-align: center;
  padding: 38px 24px;
  background: rgba(255, 255, 255, 0.92);
}

.download-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
}

.download-icon img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.download-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 34px;
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.download-card p {
  color: var(--muted);
}

.download-actions {
  justify-content: center;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 36px 0 42px;
  border-top: 1px solid rgba(23, 21, 31, 0.08);
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  color: var(--muted);
}

.footer-left p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--purple);
}

.copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }
}

@media (max-width: 540px) {
  .site-header,
  .hero,
  .features-section,
  .how-section,
  .download-section,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 78px 0 56px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .brand-line {
    font-size: 34px;
    letter-spacing: -1.6px;
  }

  .hero-text {
    font-size: 16.5px;
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
  }

  .download-card h2 {
    font-size: 28px;
  }
}

/* Hero chat bubbles */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 56px;
  padding: 112px 0 92px;
}

.hero-bubbles {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.chat-bubble {
  width: fit-content;
  max-width: 360px;
  padding: 13px 15px 10px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(23, 21, 31, 0.08);
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
  animation: bubbleDrop 0.58s ease forwards;
}

.chat-bubble p {
  margin: 0;
  color: var(--text);
  font-size: 15.2px;
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: -0.15px;
}

.chat-bubble span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(23, 21, 31, 0.055);
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, #f4f0ff, #ffffff);
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(108, 92, 255, 0.11);
}

.bubble-one {
  animation-delay: 0.25s;
}

.bubble-two {
  animation-delay: 0.9s;
}

.bubble-three {
  animation-delay: 1.55s;
}

.bubble-four {
  animation-delay: 2.2s;
}

.hero-bubbles::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 18px;
  top: 18px;
  border-radius: 50%;
  background: rgba(108, 92, 255, 0.10);
  filter: blur(24px);
  z-index: -1;
}

.hero-bubbles::after {
  content: "✦";
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #6c5cff, #8b5cf6);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 20px 42px rgba(108, 92, 255, 0.22);
}

@keyframes bubbleDrop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-bubbles {
    min-height: 300px;
    max-width: 520px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 78px 0 56px;
  }

  .hero-bubbles {
    min-height: 285px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-bubble p {
    font-size: 14px;
  }
}

/* Hero chat bubble polish */
.hero-bubbles {
  overflow: visible;
  padding-bottom: 76px;
}

.chat-bubble {
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.hero-bubbles::after {
  right: -28px;
  bottom: -72px;
  z-index: 1;
}

.bubble-four {
  margin-right: 34px;
}

/* Legal pages */
.legal-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.legal-hero {
  margin-bottom: 26px;
}

.legal-hero p {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -2.4px;
}

.legal-hero span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.legal-card {
  padding: 24px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 21, 31, 0.07);
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(23, 21, 31, 0.055);
}

.legal-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.45px;
}

.legal-card h3 {
  margin: 18px 0 7px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 780;
  letter-spacing: -0.2px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 14.4px;
  font-weight: 600;
  line-height: 1.58;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--purple);
  font-weight: 800;
}

.legal-card.danger {
  border-color: rgba(225, 29, 72, 0.12);
  background: rgba(255, 243, 245, 0.86);
}