:root {
  color-scheme: light;
  --ink: #18142d;
  --ink-soft: #4f4a67;
  --line: rgba(82, 66, 120, 0.2);
  --card: rgba(252, 253, 255, 0.84);
  --shadow: 0 26px 56px rgba(28, 20, 49, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --accent: #ff7f45;
  --accent-strong: #ec5b24;
  --accent-soft: rgba(255, 146, 88, 0.18);
  --surface: linear-gradient(130deg, #fff2e5 0%, #ecf1ff 44%, #e4f7f1 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 153, 105, 0.3), transparent 34%),
    radial-gradient(circle at 84% 9%, rgba(89, 133, 255, 0.23), transparent 34%),
    radial-gradient(circle at 70% 87%, rgba(51, 178, 154, 0.22), transparent 40%),
    var(--surface);
}

body.theme-focus {
  --accent: #6a63f9;
  --accent-strong: #3f37d9;
  --accent-soft: rgba(106, 99, 249, 0.18);
  --surface: linear-gradient(128deg, #efeaff 0%, #e5ecff 48%, #e9f8ff 100%);
}

body.theme-habit {
  --accent: #22b693;
  --accent-strong: #139172;
  --accent-soft: rgba(34, 182, 147, 0.2);
  --surface: linear-gradient(128deg, #e7fbf4 0%, #ebf6ff 48%, #f4fff7 100%);
}

body.theme-notes {
  --accent: #ff8f43;
  --accent-strong: #db6823;
  --accent-soft: rgba(255, 143, 67, 0.2);
  --surface: linear-gradient(128deg, #fff3e5 0%, #fff9ef 48%, #f3f5ff 100%);
}

body.theme-telegram {
  --accent: #2f9eff;
  --accent-strong: #147ad2;
  --accent-soft: rgba(47, 158, 255, 0.19);
  --surface: linear-gradient(128deg, #e6f4ff 0%, #eef6ff 48%, #edfcff 100%);
}

body.theme-goals {
  --accent: #f36a84;
  --accent-strong: #d7435f;
  --accent-soft: rgba(243, 106, 132, 0.18);
  --surface: linear-gradient(128deg, #ffeaf0 0%, #f7efff 48%, #ebf6ff 100%);
}

body.theme-diary {
  --accent: #9a74ff;
  --accent-strong: #7447dd;
  --accent-soft: rgba(154, 116, 255, 0.18);
  --surface: linear-gradient(128deg, #f1ebff 0%, #ece9ff 48%, #edf6ff 100%);
}

body.theme-analytics {
  --accent: #3b8fef;
  --accent-strong: #1f66c1;
  --accent-soft: rgba(59, 143, 239, 0.18);
  --surface: linear-gradient(128deg, #eaf3ff 0%, #eaf9ff 48%, #e8fff5 100%);
}

body.theme-mobile {
  --accent: #14a878;
  --accent-strong: #0f805d;
  --accent-soft: rgba(20, 168, 120, 0.18);
  --surface: linear-gradient(128deg, #e7fff5 0%, #eaf7ff 48%, #f2fffa 100%);
}

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 22px 50px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(118deg, rgba(88, 82, 116, 0.76) 0%, rgba(67, 92, 142, 0.74) 54%, rgba(56, 127, 126, 0.72) 100%),
    rgba(26, 31, 48, 0.66);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(19, 13, 33, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 245, 236, 0.85);
}

.brand span {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__links a {
  text-decoration: none;
  color: rgba(250, 243, 236, 0.92);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.topbar__links a:hover,
.topbar__links a.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.86);
}

.topbar__login {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 250, 246, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.topbar__login:hover {
  transform: translateY(-1px);
}

.hero {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(252, 254, 255, 0.74);
  box-shadow: var(--shadow);
}

.hero__copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.kicker {
  margin: 0;
  color: color-mix(in srgb, var(--accent-strong) 75%, #302843 25%);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.1vw, 2.46rem);
  line-height: 1.18;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, #ffffff 62%);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  padding: 13px 18px;
  box-shadow: 0 14px 24px color-mix(in srgb, var(--accent-strong) 28%, transparent 72%);
}

.btn.ghost {
  padding: 11px 16px;
  color: #2b2342;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, #2b2342 24%);
  background: rgba(255, 255, 255, 0.72);
}

.hero-media {
  position: relative;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-content: start;
}

.hero-media:not(.hero-media--mobile)::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, #ffffff 60%) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-media > * {
  position: relative;
  z-index: 1;
}

.photo {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 243, 255, 0.96) 100%);
  box-shadow: 0 18px 34px rgba(29, 21, 46, 0.22);
  aspect-ratio: 3416 / 1960;
}

.photo img,
.photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: inherit;
  background: #fdfdfd;
  transition: transform 0.35s ease;
}

.photo img:hover,
.photo video:hover {
  transform: scale(1.02);
}

.photo--main {
  aspect-ratio: 3416 / 1960;
}

.hero-media--mobile {
  grid-template-columns: minmax(220px, 288px);
  justify-content: center;
  align-items: center;
}

.photo--device {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 288px;
  aspect-ratio: 9 / 19.5;
  padding: 12px 11px 16px;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle at 52% 8%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(148deg, #0f152a 0%, #1a2440 48%, #0f2b23 100%);
  box-shadow:
    inset 0 0 0 1.6px rgba(255, 255, 255, 0.16),
    inset 0 0 22px rgba(255, 255, 255, 0.08),
    0 26px 46px rgba(20, 14, 33, 0.4);
}

.photo--device::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #0b0f1f 0%, #121a31 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.photo--device::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 4px;
  border-radius: 999px;
  background: rgba(233, 239, 255, 0.46);
  z-index: 2;
}

.photo--device img,
.photo--device video {
  object-fit: cover;
  object-position: top center;
  border-radius: 31px;
  background: #06090f;
  box-shadow: 0 12px 24px rgba(6, 8, 14, 0.45);
}

.photo--device img:hover,
.photo--device video:hover {
  transform: none;
}

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

.photo--small {
  aspect-ratio: 3416 / 1960;
}

.photo--stack .photo--small:first-child {
  transform: rotate(-0.8deg) translateY(-3px);
}

.photo--stack .photo--small:last-child {
  transform: rotate(0.8deg) translateY(5px);
}

.photo--stack .photo--small:hover {
  transform: translateY(0) rotate(0);
}

.section {
  margin-top: 20px;
  padding: clamp(20px, 3.2vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 15px 32px rgba(31, 23, 50, 0.1);
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.62rem);
  line-height: 1.24;
}

.section p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

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

.value-card {
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff 75%);
  background: rgba(255, 255, 255, 0.87);
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.value-card p {
  font-size: 0.95rem;
}

.icon-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 8px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff 70%);
}

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.list li {
  color: var(--ink-soft);
  line-height: 1.55;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

.list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff 65%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent-strong) 70%, #1f1730 30%);
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 11px 13px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #2c2443;
}

details p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.cta {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, #fff 66%);
  background:
    radial-gradient(circle at 13% 12%, color-mix(in srgb, var(--accent) 28%, #fff 72%), transparent 34%),
    rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: 0 18px 34px rgba(31, 22, 52, 0.13);
}

.cta h2 {
  margin: 0 0 10px;
}

.cta p {
  margin: 0;
}

.cta .hint {
  margin-top: 8px;
  color: #65597a;
  font-size: 12px;
}

.cta-actions {
  display: grid;
  gap: 8px;
}

.store-links {
  margin-top: 8px;
  color: #6b607f;
  font-size: 13px;
  line-height: 1.5;
}

.store-links a {
  color: color-mix(in srgb, var(--accent-strong) 58%, #2a2140 42%);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 46%, #fff 54%);
}

.store-links a:hover {
  color: color-mix(in srgb, var(--accent-strong) 80%, #201731 20%);
}

.related {
  margin-top: 18px;
}

.related-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.related-grid a {
  text-decoration: none;
  color: #2f2547;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.related-grid a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, #fff 55%);
  transform: translateY(-1px);
}

.footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.footer__links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__links a {
  color: #3a3055;
  text-decoration: none;
}

.footer__links a:hover {
  color: #201731;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.46s ease, transform 0.46s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar__links {
    justify-content: center;
  }

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

  .hero-media {
    grid-template-columns: 1fr;
  }

  .photo--stack .photo--small:first-child,
  .photo--stack .photo--small:last-child,
  .photo--stack .photo--small:hover {
    transform: none;
  }

  .photo--stack {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 14px 14px 34px;
  }

  .topbar {
    padding: 12px;
    border-radius: 16px;
  }

  .topbar__links {
    gap: 10px;
  }

  .topbar__login {
    width: 100%;
  }

  .hero {
    border-radius: 20px;
  }

  .section,
  .cta {
    border-radius: 16px;
    padding: 16px;
  }

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

  .photo--stack {
    grid-template-columns: 1fr;
  }

  .photo--device {
    max-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .photo img,
  .photo video,
  .related-grid a {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }
}
