:root {
  --bg: #f7f3ff;
  --card: rgba(255, 255, 255, 0.86);
  --text: #171222;
  --muted: #6f6a78;
  --purple: #6f34d8;
  --deep: #371278;
  --soft: #ece2ff;
  --line: rgba(74, 37, 138, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(111, 52, 216, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(255, 86, 132, 0.12), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--deep);
}

.logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  position: relative;
  display: block;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  box-shadow: 0 14px 30px rgba(111, 52, 216, 0.24);
  overflow: visible;
}

.cat-logo::before,
.cat-logo::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 15px;
  height: 15px;
  background: #ffe6f0;
  border-radius: 4px 11px 4px 11px;
  transform: rotate(45deg);
}

.cat-logo::before {
  left: 11px;
}

.cat-logo::after {
  right: 11px;
}

.cat-face {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  height: 32px;
  border-radius: 18px 18px 16px 16px;
  background: #fff6fb;
}

.cat-eye {
  position: absolute;
  top: 11px;
  width: 5px;
  height: 7px;
  border-radius: 999px;
  background: var(--deep);
}

.cat-eye.left {
  left: 10px;
}

.cat-eye.right {
  right: 10px;
}

.cat-nose {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 6px;
  height: 4px;
  border-radius: 999px;
  background: #ff6a9d;
  transform: translateX(-50%);
}

.cat-whisker {
  position: absolute;
  top: 20px;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(55, 18, 120, 0.72);
}

.cat-whisker.left {
  left: -2px;
  transform: rotate(8deg);
}

.cat-whisker.right {
  right: -2px;
  transform: rotate(-8deg);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.language-switch button {
  border: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--deep));
}

[data-lang-block] {
  display: none;
}

body[data-lang="en"] [data-lang-block="en"],
body[data-lang="ru"] [data-lang-block="ru"] {
  display: revert;
}

.steps-panel[data-lang-block] {
  display: none;
}

body[data-lang="en"] .steps-panel[data-lang-block="en"],
body[data-lang="ru"] .steps-panel[data-lang-block="ru"] {
  display: grid;
}

.hero {
  padding: 72px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 12px;
  color: var(--deep);
  overflow-wrap: anywhere;
}

h3 {
  margin-top: 28px;
}

.lead {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 680px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  color: white;
  box-shadow: 0 14px 30px rgba(111, 52, 216, 0.22);
}

.button.secondary {
  color: var(--deep);
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(70, 32, 120, 0.12);
  backdrop-filter: blur(14px);
  min-width: 0;
}

.phone-card {
  min-height: 420px;
}

.app-preview-card {
  min-height: 520px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(111, 52, 216, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.78);
}

.preview-shell {
  width: min(320px, 100%);
  padding: 22px;
  border-radius: 38px;
  background: linear-gradient(180deg, #ffffff, rgba(247, 243, 255, 0.95));
  border: 1px solid rgba(111, 52, 216, 0.12);
  box-shadow: 0 26px 70px rgba(55, 18, 120, 0.16);
}

.preview-top {
  width: 84px;
  height: 6px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: rgba(55, 18, 120, 0.16);
}

.preview-kitten {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  margin: 0 auto 22px;
  border-radius: 44px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(111, 52, 216, 0.08);
}

.preview-kitten .logo {
  transform: scale(1.25);
}

.preview-button {
  height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  box-shadow: 0 18px 34px rgba(111, 52, 216, 0.22);
  margin-bottom: 18px;
}

.preview-row {
  height: 16px;
  border-radius: 999px;
  background: rgba(111, 52, 216, 0.14);
  margin: 12px 0;
}

.preview-row.short {
  width: 68%;
}

.status {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.status-item {
  padding: 14px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--deep);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2,
.modes-copy h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p,
.modes-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature-card {
  min-height: 240px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(70, 32, 120, 0.10);
  min-width: 0;
}

.feature-card > span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  margin-bottom: 22px;
}

.feature-card h3 {
  color: var(--deep);
  margin: 0 0 8px;
}

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

.modes-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 52, 216, 0.12), transparent 28rem),
    radial-gradient(circle at 0% 100%, rgba(255, 106, 157, 0.08), transparent 24rem),
    rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(70, 32, 120, 0.10);
  overflow: hidden;
}

.modes-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.modes-copy h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 0.96;
  margin: 6px 0 14px;
}

.modes-copy p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.mode-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 860px);
  margin: 0 auto;
  min-width: 0;
}

.mode-pill {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  padding: 14px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(236, 226, 255, 0.88));
  border: 1px solid rgba(111, 52, 216, 0.08);
  box-shadow: 0 14px 34px rgba(70, 32, 120, 0.08);
  min-width: 0;
}

.mode-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white !important;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  box-shadow: 0 12px 26px rgba(111, 52, 216, 0.22);
}

.mode-pill strong {
  color: var(--deep);
  font-size: 0.96rem;
}

.mode-pill span {
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
  font-size: 0.92rem;
}

.development-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.development-card,
.development-mini-grid {
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(70, 32, 120, 0.10);
}

.development-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 88% 12%, rgba(111, 52, 216, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(236, 226, 255, 0.76));
}

.development-orb {
  position: absolute;
  right: 28px;
  top: 26px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  box-shadow: 0 18px 38px rgba(111, 52, 216, 0.24);
}

.development-card h2 {
  max-width: 640px;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.development-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.development-mini-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.development-mini-grid div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(236, 226, 255, 0.78);
  border: 1px solid rgba(111, 52, 216, 0.08);
}

.development-mini-grid strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 0.86rem;
  background: linear-gradient(135deg, var(--purple), var(--deep));
}

.development-mini-grid span {
  color: var(--deep);
  font-weight: 850;
}

.experience-section {
  display: grid;
  gap: 22px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.glass-tile {
  position: relative;
  min-width: 0;
  min-height: 260px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 52, 216, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(70, 32, 120, 0.10);
}

.tile-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  box-shadow: 0 14px 28px rgba(111, 52, 216, 0.22);
}

.glass-tile h3 {
  color: var(--deep);
  margin: 22px 0 8px;
}

.glass-tile p {
  margin: 0;
  color: var(--muted);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.trust-card,
.trust-points {
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 80px rgba(70, 32, 120, 0.11);
  min-width: 0;
}

.trust-card {
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 106, 157, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 226, 255, 0.72));
}

.trust-card h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.trust-card p {
  color: var(--muted);
  max-width: 760px;
}

.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-points {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-points div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(236, 226, 255, 0.74);
  border: 1px solid rgba(111, 52, 216, 0.08);
}

.trust-points strong {
  color: var(--deep);
}

.trust-points span {
  color: var(--muted);
}

.tutorial-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(242, 233, 255, 0.84)),
    radial-gradient(circle at 10% 15%, rgba(111, 52, 216, 0.12), transparent 22rem);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(70, 32, 120, 0.13);
  overflow: hidden;
}

.testflight-visual,
.testflight-steps {
  position: relative;
  z-index: 1;
  border-radius: 28px;
}

.testflight-visual {
  min-height: 500px;
  padding: 34px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.70));
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.testflight-visual p {
  max-width: 320px;
  color: var(--muted);
  margin: 0 auto 20px;
}

.testflight-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(31, 143, 255, 0.15);
  filter: blur(10px);
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
}

.testflight-badge {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 30px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f8fff, #5b39e6);
  box-shadow: 0 20px 50px rgba(31, 143, 255, 0.26);
}

.mini-phone {
  width: min(220px, 80%);
  margin: 0 auto 28px;
  padding: 16px;
  border-radius: 30px;
  background: rgba(55, 18, 120, 0.07);
  border: 1px solid var(--line);
}

.mini-phone-bar {
  width: 48px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(55, 18, 120, 0.24);
}

.mini-phone-row {
  height: 13px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(111, 52, 216, 0.18);
}

.mini-phone-row.active {
  height: 34px;
  background: linear-gradient(135deg, var(--purple), var(--deep));
}

.mini-phone-row.short {
  width: 62%;
}

.testflight-steps {
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.steps-panel {
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(236, 226, 255, 0.86);
  border: 1px solid rgba(111, 52, 216, 0.08);
}

.step span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.86rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--deep));
  box-shadow: 0 10px 20px rgba(111, 52, 216, 0.22);
}

.step strong {
  display: block;
  color: var(--deep);
  line-height: 1.2;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section {
  padding: 34px 0;
}

.doc {
  max-width: 820px;
  padding: 34px;
  margin: 24px auto 72px;
  overflow: hidden;
}

.doc h1 {
  font-size: clamp(2.3rem, 6vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}

.doc p,
.doc li {
  color: var(--muted);
}

.footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  min-width: 104px;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--deep);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(70, 32, 120, 0.08);
}

.footer-links a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .mode-list,
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-list {
    width: min(100%, 620px);
  }

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

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

@media (max-width: 820px) {
  .hero,
  .grid,
  .feature-grid,
  .experience-grid,
  .modes-section,
  .tutorial-card {
    grid-template-columns: 1fr;
  }

  .testflight-visual {
    min-height: 360px;
  }

  .doc {
    padding: 24px;
  }

  .doc h1 {
    font-size: clamp(2rem, 11vw, 3.35rem);
    letter-spacing: -0.05em;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 1080px);
  }

  .hero {
    padding-top: 42px;
  }

  .card,
  .feature-card,
  .glass-tile,
  .doc {
    border-radius: 22px;
    padding: 20px;
  }

  .modes-section,
  .tutorial-card,
  .development-card,
  .development-mini-grid,
  .trust-card,
  .trust-points {
    border-radius: 24px;
  }

  .modes-copy h2,
  .trust-card h2,
  .section-heading h2 {
    letter-spacing: -0.045em;
  }

  .mode-list {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 320px);
  }

  .mode-pill {
    min-height: 104px;
  }

  .development-orb {
    position: static;
    margin-bottom: 18px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
