:root {
  color-scheme: light;
  --ink: #1d1b30;
  --muted: #57556c;
  --purple: #5425b5;
  --line: #e7e3f0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fcfbff;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1080px, calc(100% - 2.5rem)); margin-inline: auto; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.nav, .footer, .brand, nav { display: flex; align-items: center; }
.nav, .footer { justify-content: space-between; gap: 1rem; }
.nav { min-height: 72px; }
.brand { gap: .55rem; color: var(--ink); font-size: 1.15rem; font-weight: 760; letter-spacing: -.045em; text-decoration: none; }
nav { gap: .3rem; }
nav a { text-decoration: none; font-weight: 620; font-size: .9rem; padding: .45rem .85rem; border-radius: 2rem; }
nav a:hover, nav a[aria-current] { background: #eee7ff; color: #4a1a9e; }
.hero, .interior { background: radial-gradient(ellipse at 49% 12%, #fff 8%, transparent 60%), radial-gradient(ellipse at 90% 80%, #bed7ff, transparent 63%), radial-gradient(ellipse at 4% 85%, #d4c6ff, transparent 70%), #f5f1ff; }
.hero { padding: clamp(3.5rem, 9vw, 6.25rem) 0 0; text-align: center; overflow: hidden; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 8.6vw, 7rem); font-weight: 780; line-height: .98; letter-spacing: -.085em; margin-bottom: 1.5rem; }
h1 em { color: var(--purple); font-style: normal; }
h2 { font-size: clamp(1.85rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -.055em; }
h3 { font-size: 1.2rem; margin-bottom: .35rem; }
p { color: var(--muted); }
.intro { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 35rem; margin: 0 auto 1.65rem; }
.translation-example {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  margin: -0.5rem auto 1.25rem;
  padding: .3rem .8rem;
  border: 1px solid #dcd1f5;
  border-radius: 2rem;
  background: #ffffffab;
  color: var(--purple);
  font-size: .9rem;
  font-weight: 650;
}
.translation-words { display: grid; min-width: 4.5rem; }
.translation-words span { grid-area: 1 / 1; visibility: hidden; }
.translation-words span:last-child { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .translation-words span:nth-child(1) { animation: translation-word 1.35s both; }
  .translation-words span:nth-child(2) { animation: translation-word 1.35s 1.35s both; }
  .translation-words span:nth-child(3) { animation: translation-word 1.35s 2.7s both; }
  .translation-words span:last-child { animation: translation-result .36s 4.05s both; }
}
@keyframes translation-word {
  0% { visibility: hidden; opacity: 0; transform: translateY(.3em); }
  15%, 85% { visibility: visible; opacity: 1; transform: translateY(0); }
  100% { visibility: hidden; opacity: 0; transform: translateY(-.3em); }
}
@keyframes translation-result {
  from { opacity: 0; transform: translateY(.3em); }
  to { opacity: 1; transform: translateY(0); }
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border: 0; border-radius: 2rem; background: var(--purple); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #411991; }
:focus-visible { outline: 3px solid #7c4ee3; outline-offset: 4px; }
.product { width: min(860px, 100%); margin: 3.25rem auto 0; border: 8px solid #ffffff9e; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 24px 65px #38277038; background: #fff; }
.window { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: .55rem .8rem; font-size: .8rem; font-weight: 650; background: #fff; color: var(--muted); }
.window span:first-child { text-align: left; font-size: .62rem; color: #9184ad; align-self: center; }
.product img { display: block; width: 100%; height: auto; }
.features { padding-block: clamp(3.5rem, 8vw, 6rem); }
.features h2 { max-width: 17ch; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-grid article { border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; background: #fff; }
.feature-grid p { margin-bottom: 0; }
.symbol { display: inline-grid; place-items: center; width: 40px; height: 40px; background: #eee7ff; color: var(--purple); border-radius: 12px; font-size: 1.4rem; margin-bottom: 1rem; }
.download { background: linear-gradient(135deg, #eee4ff, #e0eeff); text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.2rem; border-radius: 24px; }
.download h2 { margin: .8rem 0 1.2rem; }
.download p { margin: 1rem auto 0; max-width: 31rem; }
.footer { min-height: 96px; font-size: .9rem; }
.interior { padding-block: clamp(3rem, 8vw, 6.5rem); text-align: center; min-height: calc(100svh - 169px); }
.interior h1 { font-size: clamp(3.3rem, 8vw, 6rem); }
.story > img { margin-bottom: 1.35rem; }
.story-copy, form { width: min(100%, 36rem); margin: 2.4rem auto 0; border: 1px solid var(--line); border-radius: 24px; background: #fff; padding: clamp(1.3rem, 5vw, 2.5rem); text-align: left; }
.story-copy h2 { font-size: 2rem; }
form { display: grid; gap: .55rem; }
label { font-weight: 650; }
input, textarea { font: inherit; color: var(--ink); width: 100%; border: 1px solid #bdb6cd; border-radius: 10px; padding: .65rem .8rem; margin-bottom: .65rem; background: #fff; }
textarea { resize: vertical; }
form .button { justify-self: start; }
@media (max-width: 610px) {
  .wrap { width: calc(100% - 1.5rem); }
  .nav { flex-wrap: wrap; justify-content: center; gap: .3rem 1.25rem; padding-block: .55rem; }
  nav a { padding-inline: .55rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .product { border-width: 4px; border-radius: 14px 14px 0 0; margin-top: 2.5rem; }
}
.feedback-result { max-width: 36rem; margin: 2rem auto -1.4rem; border-radius: 12px; background: white; padding: 1rem; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      height: 4px;
      z-index: 10;
      pointer-events: none;
      background: linear-gradient(90deg, var(--purple), #6284ed);
      transform: scaleX(0);
      transform-origin: left;
      animation: scroll-progress linear both;
      animation-timeline: scroll();
    }
  }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 85%) {
    .features h2, .feature-grid article {
      animation: feature-reveal ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    @media (min-width: 611px) {
      .feature-grid article:nth-child(2) { animation-range: entry 10% entry 92%; }
      .feature-grid article:nth-child(3) { animation-range: entry 20% entry 100%; }
    }
  }
}

@keyframes scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes feature-reveal {
  from { opacity: .75; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
