:root {
  --purple-950: #250642;
  --purple-900: #3b0b6f;
  --purple-700: #6f4bd8;
  --purple-500: #8b6cf2;
  --coral: #ff765d;
  --yellow: #ffc43d;
  --cream: #fffaf0;
  --ink: #21182c;
  --muted: #6f6877;
  --line: #eae3ef;
  --surface: #ffffff;
  --shadow: 0 24px 70px rgba(54, 20, 82, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--purple-950);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(89, 54, 113, 0.08);
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-950);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(59, 11, 111, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #4f4658;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--purple-700);
}

.main-nav .nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: white;
  background: var(--purple-900);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: white;
  background: var(--purple-700);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: var(--purple-950);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100vh - 76px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 30px 90px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--purple-950);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--purple-700);
}

.hero-text {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  box-shadow: 0 14px 34px rgba(83, 34, 139, 0.25);
}

.button-secondary {
  border-color: var(--line);
  color: var(--purple-900);
  background: rgba(255, 255, 255, 0.7);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 25px;
  color: #756b7c;
  font-size: 0.84rem;
  font-weight: 650;
}

.trust-line span::before {
  content: "✓";
  margin-right: 6px;
  color: #2ba879;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.glow-one {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 108, 242, 0.24), transparent 68%);
}

.glow-two {
  right: 5%;
  bottom: 8%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 118, 93, 0.2), transparent 68%);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(350px, 75vw);
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 46px;
  background: #22152d;
  box-shadow:
    0 50px 100px rgba(48, 11, 78, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(2deg);
}

.phone-top {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 23px;
  border-radius: 999px;
  background: #21152b;
  transform: translateX(-50%);
}

.phone-top span {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53445f;
}

.phone-screen {
  min-height: 610px;
  padding: 45px 19px 22px;
  border-radius: 37px;
  background: linear-gradient(180deg, #f9f5ff, #fffaf4);
}

.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-header small,
.mini-header strong {
  display: block;
}

.mini-header small {
  color: #887d90;
}

.mini-header strong {
  font-size: 1.05rem;
}

.mini-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1e9ff;
  font-size: 1.5rem;
  place-items: center;
}

.level-card {
  margin-top: 20px;
  padding: 15px;
  border-radius: 19px;
  color: white;
  background: linear-gradient(135deg, #6d43d5, #9b78ed);
}

.level-card span,
.level-card strong {
  display: block;
}

.level-card span {
  font-size: 0.76rem;
  font-weight: 800;
}

.level-card strong {
  margin: 3px 0 8px;
  font-size: 1rem;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
}

.progress i {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.routine-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 13px;
  border: 1px solid #eee5f2;
  border-radius: 21px;
  background: white;
  box-shadow: 0 12px 25px rgba(56, 22, 83, 0.07);
}

.routine-icon {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff1c8;
  font-size: 1.4rem;
  place-items: center;
}

.routine-card small,
.routine-card strong {
  display: block;
}

.routine-card small {
  color: #a06f00;
  font-size: 0.64rem;
  font-weight: 900;
}

.routine-card strong {
  font-size: 0.88rem;
}

.routine-card p {
  margin: 1px 0 0;
  color: #8a8090;
  font-size: 0.72rem;
}

.arrow {
  color: var(--purple-700);
  font-size: 1.6rem;
}

.mission-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mission-row div {
  padding: 12px 4px;
  border-radius: 15px;
  text-align: center;
  background: #f3eef7;
}

.mission-row span,
.mission-row small {
  display: block;
}

.mission-row span {
  font-size: 1.5rem;
}

.mission-row small {
  margin-top: 4px;
  color: #766b7d;
  font-size: 0.66rem;
  font-weight: 700;
}

.phone-screen > button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: var(--purple-700);
  font: inherit;
  font-weight: 900;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(52, 19, 76, 0.15);
  font-size: 0.84rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.floating-xp {
  top: 25%;
  right: 0;
  animation: float 4.5s ease-in-out infinite;
}

.floating-done {
  bottom: 20%;
  left: 0;
  animation: float 5s 600ms ease-in-out infinite;
}

.floating-done span {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: #2ba879;
  place-items: center;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 105px 30px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

h2 {
  margin-bottom: 18px;
  color: var(--purple-950);
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.family-copy > p,
.privacy-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

.steps-grid,
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card,
.reward-info {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 35px rgba(60, 30, 80, 0.05);
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #e4dbe9;
  font-size: 2rem;
  font-weight: 950;
}

.feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  font-size: 1.7rem;
  place-items: center;
}

.feature-icon.purple {
  background: #eee6ff;
}

.feature-icon.coral {
  background: #ffe4df;
}

.feature-icon.yellow {
  background: #fff0bf;
}

.step-card h3,
.reward-info h3,
.role-card h3 {
  margin-bottom: 8px;
  color: var(--purple-950);
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.step-card p,
.reward-info p,
.role-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.family-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: #2ba879;
  font-size: 0.75rem;
  place-items: center;
}

.family-cards {
  position: relative;
  display: grid;
  gap: 18px;
}

.role-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.parent-role {
  margin-right: 45px;
  background: white;
}

.child-role {
  margin-left: 45px;
  color: white;
  background: linear-gradient(135deg, var(--purple-900), #7654d7);
}

.child-role h3,
.child-role p {
  color: white;
}

.child-role p {
  opacity: 0.78;
}

.role-icon {
  display: grid;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  place-items: center;
}

.parent-role .role-icon {
  background: #f1e9ff;
}

.role-card small {
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.rewards-section {
  max-width: 1240px;
}

.reward-info {
  text-align: center;
}

.reward-info > span {
  display: block;
  margin-bottom: 12px;
  font-size: 2.7rem;
}

.privacy-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px;
  background: #f0e9ff;
}

.shield {
  display: grid;
  width: 105px;
  height: 105px;
  border-radius: 30px;
  background: white;
  box-shadow: 0 15px 40px rgba(63, 24, 96, 0.1);
  font-size: 3rem;
  place-items: center;
}

.privacy-card h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.privacy-card a {
  color: var(--purple-700);
  font-weight: 850;
}

.final-cta {
  margin: 45px 20px 0;
  padding: 95px 25px;
  border-radius: 42px 42px 0 0;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 118, 93, 0.35), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(255, 196, 61, 0.25), transparent 30%),
    var(--purple-900);
}

.final-cta h2 {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  color: white;
}

.button-light {
  color: var(--purple-900);
  background: white;
}

footer {
  padding: 50px 25px 35px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  background: var(--purple-950);
}

.footer-brand {
  justify-content: center;
  color: white;
}

footer p {
  margin: 14px 0 20px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

footer nav a {
  color: white;
  font-size: 0.88rem;
}

.back-link {
  color: var(--purple-700);
  font-weight: 800;
  text-decoration: none;
}

.legal-page main {
  min-height: 70vh;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 25px 110px;
}

.legal-content h1 {
  margin-bottom: 10px;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
}

.legal-content h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: #554d5c;
}

.legal-content a {
  color: var(--purple-700);
  font-weight: 750;
}

.legal-date {
  margin-bottom: 30px;
}

.legal-warning {
  margin: 28px 0 38px;
  padding: 18px 20px;
  border: 1px solid #f4c77b;
  border-radius: 16px;
  color: #6e4905;
  background: #fff2d8;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    gap: 8px;
  }

  .main-nav a {
    padding: 10px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }

  .hero-actions,
  .trust-line {
    justify-content: center;
  }

  .hero-visual {
    min-height: 690px;
    margin-top: 30px;
  }

  .steps-grid,
  .rewards-grid {
    grid-template-columns: 1fr;
  }

  .family-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
    padding: 10px 18px;
  }

  .hero {
    padding: 48px 20px 65px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .button {
    width: 100%;
  }

  .trust-line {
    display: grid;
    justify-content: start;
    max-width: 270px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .hero-visual {
    min-height: 610px;
  }

  .phone {
    width: min(320px, 88vw);
  }

  .phone-screen {
    min-height: 560px;
  }

  .floating-xp {
    top: 20%;
    right: -5px;
  }

  .floating-done {
    bottom: 14%;
    left: -4px;
  }

  .section {
    padding: 75px 20px;
  }

  .step-card,
  .reward-info {
    padding: 24px;
  }

  .parent-role,
  .child-role {
    margin: 0;
  }

  .role-card {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    grid-template-columns: 1fr;
  }

  .final-cta {
    margin-right: 8px;
    margin-left: 8px;
    padding: 70px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
