:root {
  color-scheme: light dark;
  --ink: #17151f;
  --muted: #686270;
  --paper: #fbf8f2;
  --paper-soft: #f1e9dc;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(35, 29, 47, 0.14);
  --violet: #7c3aed;
  --violet-deep: #4c1d95;
  --cyan: #20d9d2;
  --gold: #f2b84b;
  --coral: #f97373;
  --shadow: 0 22px 70px rgba(55, 32, 87, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(124, 58, 237, 0.14), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(32, 217, 210, 0.16), transparent 26rem),
    linear-gradient(135deg, #fffaf1 0%, #f8f1ff 46%, #eefdfb 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.language-switch select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 52px;
  padding: 56px 0 42px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--violet-deep);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  line-height: 1.72;
}

.lead {
  max-width: 680px;
  color: #3b3546;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(35, 29, 47, 0.08);
}

.button.primary {
  background: #111827;
  color: white;
}

.store-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.app-preview {
  position: relative;
  min-height: 520px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: linear-gradient(160deg, #20172f 0%, #362157 45%, #0a6b70 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone {
  width: min(100%, 310px);
  margin: 0 auto;
  padding: 16px;
  border: 10px solid #16131d;
  border-radius: 34px;
  background: #f8f3ea;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.phone-bar {
  width: 82px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #1c1824;
}

.challenge-card,
.canvas-card,
.mini-card {
  border-radius: 12px;
  border: 1px solid rgba(31, 22, 48, 0.1);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

.challenge-card strong {
  display: block;
  margin-bottom: 8px;
}

.canvas-card {
  position: relative;
  height: 250px;
  margin: 14px 0;
  background: #fffaf2;
}

.stroke {
  position: absolute;
  height: 7px;
  border-radius: 999px;
  background: var(--violet);
  transform-origin: left center;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.25);
}

.stroke.one {
  width: 140px;
  left: 46px;
  top: 80px;
  transform: rotate(22deg);
}

.stroke.two {
  width: 118px;
  left: 84px;
  top: 138px;
  background: var(--cyan);
  transform: rotate(-16deg);
}

.stroke.three {
  width: 92px;
  left: 132px;
  top: 190px;
  background: var(--coral);
  transform: rotate(35deg);
}

.ghost-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  left: 222px;
  top: 174px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(242, 184, 75, 0.9);
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
}

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

.feature {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(35, 29, 47, 0.08);
}

.feature p,
.plain-list p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: start;
  gap: 28px;
}

.download-panel {
  padding: 24px;
  border-radius: 16px;
  background: #17151f;
  color: white;
  box-shadow: var(--shadow);
}

.download-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.download-panel .button {
  width: 100%;
}

.plain-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 52px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  margin-left: 14px;
}

@media (max-width: 820px) {
  .topbar,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    padding-top: 28px;
  }

  .app-preview {
    min-height: auto;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.28), transparent 28rem),
      radial-gradient(circle at 84% 20%, rgba(32, 217, 210, 0.2), transparent 25rem),
      #111018;
    color: #f8f4ef;
  }

  .lead,
  .section-intro {
    color: #d9d1e5;
  }

  .feature,
  .button,
  .challenge-card,
  .mini-card {
    background: rgba(35, 29, 47, 0.82);
  }

  .canvas-card {
    background: #211a2d;
  }

  .language-switch select {
    background: rgba(35, 29, 47, 0.9);
    color: #f8f4ef;
  }
}
