:root {
  color-scheme: light;
  --bg: #f7f1e4;
  --bg-soft: rgba(255, 255, 255, 0.56);
  --surface: rgba(255, 251, 244, 0.82);
  --surface-strong: #fffdf7;
  --surface-muted: rgba(255, 250, 243, 0.78);
  --line: rgba(122, 90, 50, 0.12);
  --text: #2a241d;
  --text-soft: rgba(42, 36, 29, 0.7);
  --heading: #1f1a14;
  --accent: #ef7da6;
  --accent-strong: #d85f8b;
  --accent-soft: rgba(239, 125, 166, 0.16);
  --mint: #c7e8d0;
  --sky: #d7d4f7;
  --shadow: 0 20px 50px rgba(107, 78, 37, 0.12);
  --shadow-soft: 0 12px 30px rgba(107, 78, 37, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1180px;
  --transition: 240ms ease;
  --display-font: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  --body-font: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111313;
  --bg-soft: rgba(20, 24, 24, 0.72);
  --surface: rgba(28, 32, 32, 0.82);
  --surface-strong: #1d2222;
  --surface-muted: rgba(28, 32, 32, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f0ece3;
  --text-soft: rgba(240, 236, 227, 0.7);
  --heading: #faf7ef;
  --accent: #ff92ba;
  --accent-strong: #ffb7d2;
  --accent-soft: rgba(255, 146, 186, 0.16);
  --mint: #2f5a47;
  --sky: #4e4779;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 10% 10%, rgba(239, 125, 166, 0.15), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(215, 212, 247, 0.5), transparent 32%),
    linear-gradient(180deg, #faf5eb 0%, var(--bg) 38%, #f3efe7 100%);
  color: var(--text);
  transition:
    background var(--transition),
    color var(--transition);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 146, 186, 0.15), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(78, 71, 121, 0.44), transparent 32%),
    linear-gradient(180deg, #151718 0%, var(--bg) 34%, #0d0f10 100%);
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite;
}

.page-shell::before {
  top: -10rem;
  left: -8rem;
  background: rgba(239, 125, 166, 0.18);
}

.page-shell::after {
  right: -10rem;
  top: 18rem;
  background: rgba(215, 212, 247, 0.3);
  animation-delay: -6s;
}

.site-header,
.section {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(17, 19, 19, 0.06);
  box-shadow: 0 8px 18px rgba(107, 78, 37, 0.12);
  position: relative;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 0.08rem;
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: var(--display-font);
  color: var(--heading);
  letter-spacing: -0.04em;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--text-soft);
}

.site-nav a {
  position: relative;
  font-size: 0.96rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 4.2rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.theme-toggle-thumb {
  position: absolute;
  left: 0.22rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff8ec, #f6c7a7);
  box-shadow: 0 8px 18px rgba(111, 72, 49, 0.2);
  transition:
    transform var(--transition),
    background var(--transition);
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(1.9rem);
  background: linear-gradient(180deg, #f5c4a9, #ff916f);
}

.theme-icon {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

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

.button-primary {
  color: #fff8f4;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgba(219, 111, 79, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow-soft);
}

.button-large {
  min-height: 3.5rem;
  padding-inline: 1.45rem;
  font-weight: 600;
}

.section {
  padding: 5.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.6rem;
  align-items: center;
  min-height: calc(100vh - 7rem);
  padding-top: 3rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.93;
}

h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
}

h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.32rem;
  line-height: 1.04;
}

p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

code {
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.hero-text {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.entry-points,
.pricing-list {
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.8rem;
}

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

.entry-point,
.pricing-list li {
  color: var(--text-soft);
}

.entry-point {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.entry-point h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.04rem;
}

.entry-kicker {
  display: inline-flex;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-list {
  list-style: none;
  padding: 0;
}

.pricing-list li {
  position: relative;
  padding-left: 1.3rem;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 38rem;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  animation: pulse 8s ease-in-out infinite;
}

.orb-one {
  width: 16rem;
  height: 16rem;
  top: 2rem;
  right: 0;
  background: rgba(239, 125, 166, 0.18);
}

.orb-two {
  width: 13rem;
  height: 13rem;
  left: 2rem;
  bottom: 4rem;
  background: rgba(215, 212, 247, 0.42);
  animation-delay: -4s;
}

.device-card {
  position: relative;
  width: min(100%, 31rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.device-topbar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.device-topbar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(145, 109, 73, 0.22);
}

.telegram-preview {
  display: grid;
  gap: 0.8rem;
}

.telegram-bubble {
  max-width: 80%;
  padding: 1rem 1.1rem;
  border-radius: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.telegram-bubble p {
  color: var(--heading);
  line-height: 1.55;
}

.telegram-bubble-bot {
  justify-self: start;
  background: var(--surface-strong);
  border-top-left-radius: 0.45rem;
}

.telegram-bubble-user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(239, 125, 166, 0.24), rgba(215, 212, 247, 0.52));
  border-top-right-radius: 0.45rem;
}

.bubble-tag {
  display: inline-flex;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  color: var(--accent-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.worm-stage {
  position: relative;
  margin-top: 2rem;
  padding: 1.8rem 0 1.4rem;
  display: grid;
  place-items: center;
}

.worm-shadow {
  position: absolute;
  inset: auto auto 1.25rem 50%;
  width: 10rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(51, 29, 19, 0.12);
  filter: blur(10px);
  transform: translateX(-50%);
  animation: shadow-pulse 3.4s ease-in-out infinite;
}

.worm {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transform-origin: center;
  animation: worm-bob 3.4s ease-in-out infinite;
}

.worm-head,
.worm-segment,
.worm-tail {
  position: relative;
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbfd3, #f57ca5 75%);
  box-shadow: inset 0 -9px 14px rgba(131, 64, 45, 0.14);
}

.worm-head {
  width: 4.2rem;
  height: 3.4rem;
}

.worm-segment-a {
  width: 3.4rem;
  height: 2.8rem;
  animation: worm-wave 2.7s ease-in-out infinite;
}

.worm-segment-b {
  width: 2.9rem;
  height: 2.4rem;
  animation: worm-wave 2.7s ease-in-out infinite -0.22s;
}

.worm-segment-c {
  width: 2.4rem;
  height: 2rem;
  animation: worm-wave 2.7s ease-in-out infinite -0.44s;
}

.worm-tail {
  width: 1.6rem;
  height: 1.35rem;
  transform: rotate(-18deg);
  animation: worm-tail 2.7s ease-in-out infinite -0.58s;
}

.worm-eye {
  position: absolute;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #3c2417;
  animation: blink 5.8s ease-in-out infinite;
}

.worm-eye-left {
  left: 1.18rem;
}

.worm-eye-right {
  right: 1.18rem;
}

.worm-smile {
  position: absolute;
  left: 50%;
  bottom: 0.82rem;
  width: 1.08rem;
  height: 0.56rem;
  border-bottom: 2px solid rgba(60, 36, 23, 0.82);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.hero-stat {
  position: absolute;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  animation: float-card 4s ease-in-out infinite;
}

.hero-stat strong {
  display: block;
  font-size: 1.25rem;
  font-family: var(--display-font);
  color: var(--heading);
}

.hero-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-stat-left {
  left: 0;
  top: 6rem;
}

.hero-stat-right {
  right: 0;
  bottom: 5rem;
  animation-delay: -2s;
}

.section-grid,
.pricing-panel,
.final-cta {
  display: grid;
  gap: 2rem;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.feature-grid,
.steps-grid,
.faq-list {
  display: grid;
  gap: 1.15rem;
}

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

.feature-card,
.step-card,
.quote-card,
.faq-item,
.price-card,
.pricing-copy,
.final-cta,
.steps-intro {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.feature-card,
.step-card,
.quote-card,
.pricing-copy,
.price-card,
.steps-intro {
  padding: 1.45rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.2rem;
}

.steps-section {
  display: grid;
  gap: 1.2rem;
}

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

.step-index {
  display: inline-flex;
  font-size: 0.86rem;
  color: var(--accent-strong);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pricing-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.pricing-copy {
  padding: 2rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(239, 125, 166, 0.14);
  filter: blur(10px);
}

.price-badge {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
}

.price-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.price-row strong {
  font-family: var(--display-font);
  font-size: clamp(3rem, 8vw, 4.3rem);
  line-height: 0.9;
  color: var(--heading);
}

.price-row span,
.price-caption,
.price-note {
  color: var(--text-soft);
}

.quote-card {
  display: grid;
  gap: 1.15rem;
  place-items: center;
  padding: 2.2rem;
  text-align: center;
}

.quote-worm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.quote-worm span {
  display: block;
  width: 1.8rem;
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbfd3, #f57ca5 75%);
}

.quote-worm span:nth-child(1) {
  width: 2.3rem;
  height: 1.65rem;
}

.quote-worm span:nth-child(3) {
  width: 1.2rem;
  height: 1rem;
}

blockquote {
  margin: 0;
  max-width: 48rem;
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--heading);
}

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

.faq-item {
  padding: 1.2rem 1.3rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display-font);
  font-size: 1.1rem;
  color: var(--heading);
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-strong);
  transition: transform var(--transition);
}

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

.faq-item p {
  margin-top: 0.9rem;
}

.final-cta-section {
  padding-bottom: 6rem;
}

.final-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 2rem;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(1.4rem, 1rem, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes worm-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-0.55rem) rotate(1deg);
  }
}

@keyframes worm-wave {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(0.2rem) rotate(5deg);
  }
}

@keyframes worm-tail {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes blink {
  0%,
  46%,
  100% {
    transform: scaleY(1);
  }
  48%,
  52% {
    transform: scaleY(0.08);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes shadow-pulse {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.22;
  }
  50% {
    transform: translateX(-50%) scaleX(0.88);
    opacity: 0.14;
  }
}

@media (max-width: 1080px) {
  .hero,
  .pricing-panel,
  .feature-grid,
  .steps-grid,
  .faq-list,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 32rem;
  }

  .hero-stat-left {
    left: 1rem;
  }

  .hero-stat-right {
    right: 1rem;
  }

  .entry-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    border-radius: 1.35rem;
    padding: 1rem;
  }

  .hero {
    gap: 1.6rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .section {
    padding: 4rem 0;
  }

  .hero-stat {
    position: static;
    animation: none;
  }

  .hero-visual {
    gap: 1rem;
    min-height: auto;
  }

  .device-card {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero-actions,
  .final-cta-actions,
  .button,
  .button-large {
    width: 100%;
  }

  .button {
    min-height: 3.2rem;
  }

  .telegram-bubble {
    max-width: 92%;
  }

  .feature-card,
  .step-card,
  .pricing-copy,
  .price-card,
  .quote-card,
  .final-cta,
  .steps-intro,
  .faq-item {
    padding: 1.2rem;
  }

  .final-cta {
    gap: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
