:root {
  color-scheme: dark;
  --bg: #0e1621;
  --panel: #17212b;
  --panel-raised: #202b36;
  --line: #2b3b49;
  --text: #f1f5f8;
  --muted: #91a3b3;
  --telegram: #2aabee;
  --telegram-hover: #46b8f4;
  --white: #ffffff;
  --radius-small: 9px;
  --radius-medium: 14px;
  --radius-large: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--pin-banner-offset, 0px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.045em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--telegram);
  color: var(--white);
  font-weight: 750;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.scroll-pin {
  position: fixed;
  z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 16px), 1180px);
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 2px solid var(--telegram);
  border-radius: 999px;
  background: #1c1c1e;
  box-shadow: 0 8px 28px #00000055;
}

.scroll-pin::before {
  content: "";
  flex: 0 0 3px;
  align-self: stretch;
  margin-block: 4px;
  border-radius: 999px;
  background: var(--white);
}

.scroll-pin[hidden] {
  display: none;
}

.scroll-pin-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--panel);
}

.scroll-pin-logo img {
  width: 28px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.scroll-pin-copy {
  flex: 1 1 0;
  min-width: 0;
}

.scroll-pin-label,
.scroll-pin-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scroll-pin-label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.scroll-pin-text {
  margin-top: 2px;
  font-size: 1rem;
  line-height: 1.35;
}

.scroll-pin-cta {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
  display: block;
  min-height: 44px;
  padding: 11px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: #2b70e0;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.scroll-pin-cta:hover {
  background: #2364c9;
}

.scroll-pin-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.8rem;
  cursor: pointer;
}

.scroll-pin-close:hover {
  background: var(--panel-raised);
  color: var(--text);
}

.header-inner {
  width: min(100% - 32px, 1180px);
  min-height: 72px;
  margin-inline: auto;
  padding: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.site-header .wordmark {
  gap: 6px;
  font-size: 18px;
}

.wordmark-name {
  line-height: 1;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  color: var(--telegram);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  border: 1px solid var(--telegram);
  border-radius: 6px;
}

.brand-badge {
  width: 56px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
}

.brand-mark {
  width: 56px;
  height: 50px;
  color: var(--white);
  filter: brightness(0) invert(1);
}

.site-nav {
  width: 100%;
  padding-top: 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--panel-raised);
  color: var(--text);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--telegram);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero {
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--line);
}

.hero-home {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 14vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-copy h1 span {
  color: var(--telegram);
}

.hero-text {
  max-width: 660px;
  margin-top: 24px;
  color: #b7c5cf;
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.button {
  min-height: 50px;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--telegram);
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.25;
}

.button-primary {
  background: var(--telegram);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--telegram-hover);
}

.screenshot-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-showcase-wrap {
  padding-inline: 28px;
}

.community-showcase {
  position: relative;
  width: min(72vw, 270px);
  aspect-ratio: 1170 / 2532;
  flex: 0 0 auto;
  isolation: isolate;
  border: 1px solid #405668;
  border-radius: 30px;
  background: #09111a;
  box-shadow: 0 22px 58px rgb(0 0 0 / 34%);
  transform: rotate(1.5deg);
}

.community-showcase::after {
  position: absolute;
  z-index: 4;
  inset: 8px;
  border: 1px solid rgb(241 245 248 / 14%);
  border-radius: 22px;
  content: "";
  pointer-events: none;
}

.community-carousel {
  position: absolute;
  z-index: 1;
  inset: 8px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
}

.community-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  filter: brightness(0.72) saturate(0.82);
  transition: opacity 700ms ease;
}

.community-shot.is-active {
  opacity: 1;
}

.pinned-ad-layer {
  position: absolute;
  z-index: 3;
  top: 17%;
  left: 50%;
  width: 129.5%;
  aspect-ratio: 1548 / 217;
  display: block;
  overflow: hidden;
  border: 2px solid var(--telegram);
  border-radius: 999px;
  background: #19191c;
  filter: drop-shadow(0 10px 16px rgb(0 0 0 / 52%));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pinned-ad-overlay {
  position: absolute;
  top: -8.4%;
  left: -1.75%;
  width: 103.5%;
  height: auto;
  max-width: none;
}

.screenshot-frame {
  width: min(72vw, 270px);
  aspect-ratio: 9 / 16;
  padding: 10px;
  border: 1px solid #405668;
  border-radius: 30px;
  background: #09111a;
  transform: rotate(1.5deg);
}

.screenshot-frame-tilt-left {
  transform: rotate(-1.5deg);
}

.screenshot-slot {
  width: 100%;
  height: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px dashed #4c6577;
  border-radius: 21px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.screenshot-slot .emoji-icon {
  margin-bottom: 3px;
}

.screenshot-slot b {
  color: var(--text);
  font-size: 14px;
}

.screenshot-slot small {
  max-width: 180px;
  font-size: 12px;
  line-height: 1.45;
}

.emoji-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--telegram);
  font-size: 22px;
  line-height: 1;
}

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

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 9vw, 3.5rem);
}

.section-heading p {
  max-width: 600px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.stats-section {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.stat {
  padding: 24px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.stat:last-child {
  border-bottom: 0;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat b {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 8vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.steps-grid,
.result-grid,
.value-grid {
  display: grid;
  gap: 10px;
}

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

.step-card,
.result-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-raised);
}

.step-card {
  display: flex;
  flex-direction: column;
}

.step-number {
  margin-top: 16px;
  color: #6f8798;
  font-size: 10px;
  font-weight: 700;
}

.step-card h3,
.result-card h3 {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.step-card p,
.result-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.pin-notice {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  border-radius: var(--radius-medium);
  background: var(--telegram);
  color: var(--white);
}

.pin-notice h2 {
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  line-height: 1.08;
}

.pin-notice p {
  margin-top: 10px;
  color: #e2f5ff;
  font-size: 14px;
}

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

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

.metric-note {
  max-width: 750px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.placement-section {
  overflow: hidden;
}

.placement-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.placement-heading .section-heading {
  min-width: 0;
  margin-bottom: 0;
  flex: 1 1 270px;
}

.placement-controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.placement-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-raised);
  color: var(--text);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.placement-track {
  padding-bottom: 4px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 1px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.placement-track::-webkit-scrollbar {
  display: none;
}

.placement-card {
  min-width: 0;
  scroll-snap-align: start;
}

.placement-format {
  min-height: 18px;
  margin-bottom: 10px;
  display: block;
  color: var(--telegram-hover);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.placement-preview {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgb(0 0 0 / 22%);
}

.placement-preview img {
  width: 100%;
  height: auto;
}

.placement-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.placement-actions .button {
  width: 100%;
  justify-content: center;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 19px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--telegram);
  font-size: 24px;
  font-weight: 450;
  line-height: 0.8;
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 760px;
  padding: 0 36px 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.page-cta {
  padding: 64px 0;
  background: var(--panel);
}

.page-cta-inner {
  display: grid;
  gap: 24px;
}

.page-cta h2 {
  max-width: 830px;
  font-size: clamp(2.45rem, 10vw, 5.2rem);
}

.page-cta .button {
  width: fit-content;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #0a121c;
}

.footer-inner {
  display: grid;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-inner nav a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--telegram-hover);
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .container,
  .header-inner {
    width: min(100% - 64px, 1180px);
  }

  .header-inner {
    padding: 0;
    flex-wrap: nowrap;
  }

  .site-nav {
    width: auto;
    padding-top: 0;
    border-top: 0;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

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

  .stat {
    min-width: 0;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: left;
  }

  .stat:last-child {
    border-right: 0;
  }

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

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

  .scroll-pin {
    display: none;
  }

  .placement-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .placement-actions {
    flex-direction: row;
  }

  .placement-actions .button {
    width: auto;
  }

  .page-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 72px 0 78px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(4.8rem, 7vw, 6.4rem);
  }

  .hero-text {
    font-size: 19px;
  }

  .screenshot-frame {
    width: min(100%, 276px);
  }

  .community-showcase {
    width: min(100%, 276px);
  }

  .placement-track {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

  .section {
    padding: 86px 0;
  }

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

  .step-card,
  .result-card {
    padding: 19px;
  }

  .step-card h3,
  .result-card h3 {
    font-size: 18px;
  }

  .pin-notice {
    padding: 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-pin:not([hidden]) {
    animation: pin-arrive 220ms ease-out both;
  }

  @keyframes pin-arrive {
    from {
      opacity: 0;
      transform: translate(-50%, -12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
  }

  .button,
  .step-card,
  .result-card,
  .placement-controls button,
  .site-nav a {
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
  }

  .button:hover,
  .button:focus-visible {
    transform: translateY(-2px);
  }

  .step-card:hover,
  .result-card:hover {
    border-color: #466174;
    transform: translateY(-2px);
  }

  .placement-controls button:hover {
    border-color: var(--telegram);
    background: #253645;
  }
}

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

  .community-shot {
    transition: none;
  }
}
