:root {
  --ink: #0c1a38;
  --muted: #5b5d68;
  --purple: #8d56cf;
  --purple-dark: #6f39b5;
  --lavender: #eee3f7;
  --lavender-2: #f8f1fb;
  --cream: #fffaf4;
  --line: #e8dfeb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(87, 49, 126, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 11%, rgba(179, 133, 225, .12), transparent 26%),
    radial-gradient(circle at 8% 34%, rgba(229, 195, 236, .18), transparent 24%),
    linear-gradient(180deg, #fffdfa 0%, #fffaf7 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
}

.brand img {
  width: 245px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 15px;
}

.main-nav a {
  position: relative;
  padding: 12px 2px;
}

.main-nav a.active,
.main-nav a:hover { color: var(--purple-dark); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--purple);
  border-radius: 999px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(37,23,56,.05);
}

.lang-select select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 10px auto 0;
  padding: 52px 0 78px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 370px;
  height: 170px;
  bottom: -80px;
  background: radial-gradient(ellipse at center, #ead8f2 0 58%, transparent 59%);
  opacity: .7;
}

.hero::before { left: -170px; }
.hero::after { right: -160px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero h1,
.section-heading h2,
.app-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0;
}

.hero h1 {
  font-size: clamp(46px, 5.3vw, 78px);
  line-height: .98;
  letter-spacing: -.035em;
}

.hero h1 span { color: var(--purple-dark); }

.hero-text {
  max-width: 560px;
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: #3e4048;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dark), #9e61dd);
  color: white;
  box-shadow: 0 12px 30px rgba(119,62,178,.24);
}

.btn-secondary {
  background: rgba(255,255,255,.72);
  border-color: #ddd5e4;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.hero-art img {
  width: min(610px, 100%);
  filter: drop-shadow(0 24px 32px rgba(40,26,52,.10));
}

.spark {
  position: absolute;
  color: #aa74df;
  font-size: 34px;
  animation: float 4s ease-in-out infinite;
}

.s1 { left: 8%; top: 17%; }
.s2 { right: 11%; top: 30%; animation-delay: .8s; }
.s3 { left: 18%; bottom: 14%; animation-delay: 1.4s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(8deg); }
}

.features {
  border-top: 1px solid rgba(228,220,231,.75);
  padding: 62px 20px 30px;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 38px;
}

.ornament {
  display: inline-block;
  margin-top: 10px;
  color: #ae7bdd;
  letter-spacing: .15em;
}

.feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  text-align: center;
  padding: 8px 28px 26px;
  border-right: 1px solid var(--line);
}

.feature-card:last-child { border-right: 0; }

.icon {
  font-size: 39px;
  line-height: 1;
  margin-bottom: 18px;
  filter: grayscale(1) sepia(.15) hue-rotate(230deg) saturate(4);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.app-section {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 22px;
  padding: 42px 50px;
  border: 1px solid #ebdff0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 10%, rgba(203,167,233,.28), transparent 30%),
    radial-gradient(circle at 90% 84%, rgba(241,207,236,.26), transparent 24%),
    linear-gradient(135deg, #fffafd, #fbf5ff);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.device-wrap {
  position: relative;
  min-height: 360px;
}

.tablet {
  position: absolute;
  left: 30px;
  bottom: 6px;
  width: 310px;
  height: 350px;
  padding: 12px;
  border-radius: 28px;
  background: #22222a;
  transform: rotate(-5deg);
  box-shadow: 0 20px 40px rgba(36,24,46,.22);
}

.tablet-screen,
.phone-screen {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: white;
}

.mini-toolbar {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 10px;
  display: grid;
  gap: 8px;
  color: #7656a0;
  font-size: 12px;
}

.tablet svg {
  width: 100%;
  height: calc(100% - 34px);
  margin-top: 2px;
}

.color-row {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.color-row span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
}

.color-row span:nth-child(1) { background: #b483df; }
.color-row span:nth-child(2) { background: #ef8baa; }
.color-row span:nth-child(3) { background: #f4bd5e; }
.color-row span:nth-child(4) { background: #82c98f; }
.color-row span:nth-child(5) { background: #6cb8d8; }
.color-row span:nth-child(6) { background: #7751b6; }

.phone {
  position: absolute;
  right: 38px;
  bottom: 15px;
  width: 145px;
  height: 270px;
  padding: 9px;
  border-radius: 28px;
  background: #26262d;
  transform: rotate(8deg);
  box-shadow: 0 18px 36px rgba(36,24,46,.22);
}

.phone-screen {
  background: linear-gradient(#bfe4ef 0 58%, #d6c88e 58%);
}

.phone-sky {
  position: absolute;
  inset: 0 0 42%;
  background:
    radial-gradient(circle at 30% 32%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 72% 18%, #fff 0 4px, transparent 5px);
}

.phone-ground {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 42px;
  height: 84px;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(#7eba6b, #6ba556);
}

.phone-character {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  font-size: 55px;
}

.phone-colors { bottom: 10px; }

.app-copy .eyebrow { margin-bottom: 12px; }

.app-copy h2 {
  font-size: 42px;
  line-height: 1.05;
}

.app-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 20px 0 24px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  min-width: 175px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd4e5;
  border-radius: 11px;
  padding: 10px 14px;
  background: rgba(255,255,255,.85);
}

.store-icon,
.play-icon { font-size: 27px; }

.store-badge small,
.store-badge strong { display: block; }

.store-badge small {
  font-size: 12px;
  color: #3c3c42;
}

.store-badge strong {
  font-size: 13px;
  margin-top: 2px;
}

.language-strip {
  padding: 26px 20px 38px;
  text-align: center;
}

.language-strip p {
  margin: 0 0 16px;
  color: #77727d;
}

.language-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.language-buttons button {
  min-width: 180px;
  padding: 12px 20px;
  border: 1px solid #e2dae6;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.language-buttons button.selected {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #a46dde, #7d45c2);
  box-shadow: 0 10px 26px rgba(128,69,192,.18);
}

footer {
  border-top: 1px solid var(--line);
  width: 100%;
  padding: 28px max(30px, calc((100vw - 1120px)/2));
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 30px;
  background: rgba(255,255,255,.55);
}

.footer-brand img {
  width: 240px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

.footer-center {
  text-align: center;
  color: #5f5e66;
  font-size: 13px;
}

.legal-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2eafa;
  color: #673b9e;
  font-size: 18px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: center;
    order: 3;
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 30px;
  }

  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .hero-art { min-height: 360px; }
  .hero-art img { max-width: 520px; }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .feature-card:nth-child(2) { border-right: 0; }

  .app-section {
    grid-template-columns: 1fr;
  }

  .device-wrap {
    min-height: 390px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .app-copy { text-align: center; }
  .store-badges { justify-content: center; }

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

  .footer-brand img { margin: 0 auto; object-position: center; }
  .socials { justify-content: center; }
}

@media (max-width: 600px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .brand img { width: 185px; height: 58px; }
  .lang-select { padding: 8px 10px; }

  .main-nav {
    font-size: 13px;
    gap: 12px;
  }

  .hero {
    width: min(100% - 28px, 1180px);
    min-height: auto;
    padding-bottom: 45px;
  }

  .hero h1 { font-size: 45px; }
  .hero-text { font-size: 16px; }

  .hero-art { min-height: 300px; }

  .features { padding-top: 44px; }
  .section-heading h2 { font-size: 31px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-card:last-child { border-bottom: 0; }

  .app-section {
    width: min(100% - 24px, 1120px);
    padding: 30px 20px;
    border-radius: 18px;
  }

  .device-wrap { min-height: 310px; }

  .tablet {
    left: 8px;
    width: 235px;
    height: 280px;
  }

  .phone {
    right: 4px;
    width: 110px;
    height: 220px;
  }

  .phone-character {
    top: 80px;
    font-size: 43px;
  }

  .app-copy h2 { font-size: 34px; }

  .language-buttons {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .language-buttons button { width: 100%; }
}
