@import url("assets/variables-2.css");

* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --page-pad: clamp(22px, 4vw, 64px);
  --max: 1120px;
  --header-top: clamp(28px, 4.2vw, 56px);
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  min-width: 320px;
  margin: 0;
  background: #000;
  color: var(--color-frost-white);
  font-family: var(--font-roobert);
  overflow-x: hidden;
  overscroll-behavior: none;
}

body.menu-open {
  overflow: hidden;
}


a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
  animation: introLeave 3.65s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.intro p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(30px, 3.1vw, 48px);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  animation: hello 3s ease forwards;
}

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 50%;
  z-index: 50;
  width: min(75vw, 1200px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  transform: translateX(-50%);
  opacity: 0;
  filter: blur(4px);
  animation: interfaceIn 1.2s cubic-bezier(0.2, 0.7, 0.1, 1) 3.1s forwards;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, padding 180ms ease;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
}

.site-header.is-scrolled {
  background: rgba(4, 5, 5, 0.74);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  padding: 6px 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  line-height: 1;
  white-space: nowrap;
}

.brand-main {
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: var(--font-weight-semibold);
}

.brand-sub {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.language {
  display: flex;
  align-items: center;
  gap: 27px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1;
}

.language::before {
  content: "";
  width: 1px;
  height: 9px;
  background: rgba(255, 255, 255, 0.88);
}

.language button {
  opacity: 0.45;
  transition: opacity 180ms ease;
}

.language button:hover,
.language button[aria-pressed="true"] {
  opacity: 1;
}

.main-menu {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: right;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1;
}

.main-menu a {
  transition: color 180ms ease, opacity 180ms ease;
}

.main-menu a:hover {
  color: var(--color-frost-white);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 34px;
  height: 28px;
  position: relative;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--color-frost-white);
  transition: transform 180ms ease, top 180ms ease;
}

.menu-toggle span:first-child {
  top: 9px;
}

.menu-toggle span:nth-child(2) {
  top: 18px;
}

.menu-open .menu-toggle span:first-child {
  top: 14px;
  transform: rotate(35deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  top: 14px;
  transform: rotate(-35deg);
}

.section-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: grid;
  place-items: center;
  background: #000;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100svh;
  opacity: 0;
  animation: canvasIn 3s cubic-bezier(0.2, 0.7, 0.1, 1) 2.25s forwards;
}

.film-grain,
.hero-vignette {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.film-grain {
  opacity: 0.34;
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 5px);
}

.hero-vignette {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 51%, transparent 0 38%, rgba(0, 0, 0, 0.36) 72%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 28%, transparent 68%, rgba(0, 0, 0, 0.55));
}

.hero-copy {
  width: min(980px, calc(100% - 40px));
  text-align: center;
  transform: translateY(4.5vh);
  opacity: 0;
  filter: blur(6px);
  animation: titleIn 1.65s cubic-bezier(0.2, 0.7, 0.1, 1) 3.65s forwards;
}

.hero-copy > p {
  margin: 0 0 20px;
  color: rgba(218, 166, 84, 0.72);
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 940px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(52px, 6.2vw, 94px);
  font-weight: var(--font-weight-regular);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
}

.hero-support {
  max-width: 740px;
  margin: 28px auto 0;
}

.hero-support p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.hero-cta {
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1;
}

.hero-proof span:first-child {
  border-color: rgba(218, 166, 84, 0.28);
  background: rgba(218, 166, 84, 0.08);
  color: rgba(255, 235, 196, 0.86);
}

.ticker-section {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 22px 0;
  background: #050605;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  animation: ticker 32s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  gap: 34px;
  padding-right: 34px;
}

.ticker-group span {
  white-space: nowrap;
}

.ticker-group span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 14px 2px 0;
  border-radius: 50%;
  background: rgba(218, 166, 84, 0.72);
}

.telegram-button,
.big-telegram,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-full);
  background: rgba(55, 55, 55, 0.72);
  font-size: 13px;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.telegram-button:hover,
.big-telegram:hover,
.text-link:hover {
  background: rgba(85, 85, 85, 0.78);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.content-section {
  position: relative;
  z-index: 2;
  padding: clamp(92px, 12vw, 152px) var(--page-pad);
  background: transparent;
}

.content-section > * {
  width: min(var(--max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1;
}

.section-grid,
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: var(--font-weight-light);
  line-height: 1.1;
  letter-spacing: 0;
}

.copy-stack p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(18px, 2vw, 29px);
  line-height: 1.52;
}

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

.offer-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.5;
}

.offer-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(218, 166, 84, 0.95), rgba(72, 112, 92, 0.85));
}

.offer-page {
  background:
    radial-gradient(circle at 80% 12%, rgba(214, 161, 87, 0.13), transparent 25rem),
    radial-gradient(circle at 12% 82%, rgba(74, 116, 92, 0.17), transparent 27rem),
    #000;
}

.offer-header {
  position: sticky;
  top: 24px;
  z-index: 20;
  width: min(1180px, calc(100% - 44px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 24px auto 0;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(4, 5, 5, 0.76);
  backdrop-filter: blur(18px);
}

.offer-hero {
  width: min(1180px, calc(100% - 44px));
  min-height: calc(100svh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(80px, 9vw, 132px) 0;
}

.offer-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: var(--font-weight-light);
  line-height: 1.04;
}

.offer-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.48;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.offer-actions span {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.45;
}

.offer-demo {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(4, 5, 5, 0.82);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.offer-table {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.offer-table-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 15px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.offer-table-row.head {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  text-transform: uppercase;
}

.offer-table-row b {
  color: rgba(218, 166, 84, 0.9);
  font-weight: var(--font-weight-regular);
}

.offer-flow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offer-flow div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.offer-flow b,
.offer-flow span {
  display: block;
}

.offer-flow b {
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-regular);
}

.offer-flow span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.offer-flow i {
  color: rgba(218, 166, 84, 0.7);
  font-style: normal;
  padding-left: 18px;
}

.offer-chat {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offer-msg {
  width: fit-content;
  max-width: 82%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  line-height: 1.42;
}

.offer-msg.user {
  justify-self: end;
  border-color: rgba(218, 166, 84, 0.2);
  background: rgba(218, 166, 84, 0.08);
}

.offer-msg.hot {
  width: 100%;
  max-width: none;
  border-color: rgba(72, 112, 92, 0.34);
  background: rgba(72, 112, 92, 0.12);
  color: rgba(226, 255, 236, 0.86);
}

.offer-crm-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.offer-crm-board div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.offer-crm-board span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.offer-crm-board strong {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: var(--font-weight-light);
  line-height: 1;
}

.offer-crm-board p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.42;
}

.offer-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offer-stack div {
  position: relative;
  padding: 20px 20px 20px 74px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.offer-stack div::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 30px;
  height: 1px;
  background: rgba(218, 166, 84, 0.7);
}

.offer-stack b,
.offer-stack span {
  display: block;
}

.offer-stack b {
  color: rgba(255, 255, 255, 0.92);
  font-weight: var(--font-weight-regular);
}

.offer-stack span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.45;
}

.offer-demo-stats,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.offer-demo-stats > div,
.offer-grid article {
  padding: 22px;
  background: rgba(0, 0, 0, 0.7);
}

.offer-demo-stats strong,
.offer-grid strong {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
}

.offer-demo-stats span,
.offer-grid span,
.offer-grid p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.5;
}

.offer-grid strong {
  margin-top: 58px;
  font-size: clamp(23px, 2.1vw, 32px);
}

.offer-grid p {
  margin: 18px 0 0;
  font-size: 15px;
}

.offer-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-process ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.12);
}

.offer-process li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 26px;
  background: rgba(0, 0, 0, 0.78);
}

.offer-process li span {
  color: rgba(218, 166, 84, 0.72);
  font-size: 12px;
}

.offer-process li p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
}

.offer-final {
  min-height: 52svh;
  display: grid;
  align-content: center;
  text-align: center;
}

.offer-final h2 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: var(--font-weight-light);
  line-height: 1.1;
}

.services {
  background:
    linear-gradient(180deg, #000, #050604 58%, #000);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.service-list article {
  min-height: 330px;
  padding: 34px;
  background: rgba(0, 0, 0, 0.87);
}

.service-list span,
.process li span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.service-list h3 {
  margin: 72px 0 0;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: var(--font-weight-regular);
  line-height: 1.15;
}

.service-list p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.45;
}

.process {
  min-height: 78svh;
  display: grid;
  align-content: center;
}

.process ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.42;
}

.process li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.telegram {
  min-height: 86svh;
  display: grid;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(218, 166, 84, 0.18), transparent 28rem),
    radial-gradient(ellipse at 44% 65%, rgba(72, 112, 92, 0.2), transparent 31rem),
    #000;
}

.telegram h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.big-telegram {
  width: max-content;
  margin-top: 44px;
}

.showcase {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  padding: clamp(86px, 9vw, 132px) var(--page-pad);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 22%, rgba(218, 166, 84, 0.14), transparent 29rem),
    radial-gradient(ellipse at 14% 80%, rgba(72, 112, 92, 0.18), transparent 30rem),
    #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase > * {
  width: min(100%, 640px);
}

.showcase-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: var(--font-weight-light);
  line-height: 1.08;
}

.showcase-copy p:not(.eyebrow) {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.integration-line {
  margin-top: 14px;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.puzzle-showcase {
  display: block;
  min-height: 300vh;
  padding: 0;
  background: #000;
}

.landing-pin {
  position: sticky;
  top: calc(var(--header-top) - 86px);
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  padding: 112px var(--page-pad) 36px;
  background:
    radial-gradient(ellipse at 80% 22%, rgba(218, 166, 84, 0.14), transparent 29rem),
    radial-gradient(ellipse at 14% 80%, rgba(72, 112, 92, 0.18), transparent 30rem),
    #000;
}

.puzzle-showcase .showcase-copy {
  position: relative;
  top: auto;
  align-self: center;
  display: grid;
  align-content: center;
  min-height: 100%;
}

.landing-demo {
  position: relative;
  top: auto;
  align-self: center;
  width: 100%;
}

.demo-steps {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.demo-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  color: rgba(255, 255, 255, 0.76);
}

.demo-step span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1;
}

.demo-step-copy {
  display: grid;
  gap: 6px;
}

.demo-step strong {
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
}

.demo-step small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.45;
}

.demo-step.is-active {
  color: rgba(255, 255, 255, 0.84);
}

.demo-step.is-active span {
  border-color: rgba(218, 166, 84, 0.42);
  background: rgba(218, 166, 84, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.demo-progress {
  width: min(320px, 100%);
  height: 2px;
  margin-top: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.demo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(218, 166, 84, 0.95), rgba(241, 231, 205, 0.95));
  transition: width 300ms ease;
}

.browser-shell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(8, 9, 9, 0.84);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-bar i:nth-child(2) {
  background: #febc2e;
}

.browser-bar i:nth-child(3) {
  background: #28c840;
}

.browser-bar span {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.landing-browser {
  position: relative;
  z-index: 1;
  width: 100%;
}

.mock-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background:
    radial-gradient(circle at 72% 15%, rgba(218, 166, 84, 0.08), transparent 22%),
    rgba(5, 6, 6, 0.96);
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
  transition: aspect-ratio 400ms ease;
}

.site-mock {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 0;
  color: #101413;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}

.site-mock.is-current {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mock-svg,
.mock-img {
  display: block;
  width: 100%;
  height: 100%;
}

.mock-img {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 100%;
}

.mock-dental {
  background: #fbf6ed;
}

.mock-saas {
  background: #07100f;
  color: #f4f1e8;
}

.mock-stay {
  background: #efe7dc;
  color: #4b3d34;
}

.mock-nav {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto) auto;
  gap: clamp(12px, 1.7vw, 22px);
  align-items: center;
  min-height: 48px;
}

.mock-nav strong {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1;
  letter-spacing: 0;
}

.mock-nav span {
  color: currentColor;
  opacity: 0.58;
  font-size: 12px;
  font-weight: 700;
}

.mock-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-chip-row span,
.mock-story-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(16, 20, 19, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mock-nav button,
.mock-hero button {
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: currentColor;
  color: #fffaf3;
  font-size: 12px;
  font-weight: 800;
}

.mock-saas .mock-nav button,
.mock-saas .mock-hero button {
  background: #f4f1e8;
  color: #0d1413;
}

.mock-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.78fr);
  gap: clamp(24px, 4vw, 58px);
  min-height: clamp(340px, 35vw, 470px);
  align-items: center;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 246, 220, 0.18), transparent 19%),
    linear-gradient(135deg, #0d3733 0%, #226b63 55%, #ef936d 100%);
  color: #fffdf7;
  box-shadow: 0 26px 80px rgba(21, 63, 57, 0.18);
}

.mock-saas .mock-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 88% 34%, rgba(242, 164, 102, 0.24), transparent 24%),
    linear-gradient(135deg, #102626 0%, #143e47 54%, #df7a62 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.mock-stay .mock-hero {
  background:
    radial-gradient(circle at 84% 34%, rgba(250, 238, 214, 0.22), transparent 22%),
    linear-gradient(135deg, #45372f 0%, #7a6858 54%, #d7bea0 100%);
}

.mock-hero small {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.mock-hero h2 {
  max-width: 600px;
  margin: 0;
  color: inherit;
  font-size: clamp(36px, 5.1vw, 72px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.mock-hero p {
  max-width: 520px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.5;
}

.mock-hero button {
  background: #fffdf7;
  color: #123b37;
}

.mock-appointment,
.mock-saas-panel,
.mock-stay-card {
  position: relative;
  min-height: 280px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.mock-appointment {
  display: grid;
  align-content: space-between;
  color: #163630;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.94), transparent 24%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.92), rgba(223, 242, 234, 0.86));
}

.mock-appointment-top,
.mock-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-appointment-top span,
.mock-rating span,
.mock-doctor span,
.mock-pipeline span {
  color: currentColor;
  opacity: 0.62;
  font-size: 12px;
  font-weight: 800;
}

.mock-appointment-top b,
.mock-rating b {
  font-size: 22px;
}

.mock-doctor {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.mock-doctor i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 28%, #fff4e8 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 82%, #164139 0 35%, transparent 36%),
    linear-gradient(135deg, #9ccdc0, #f0b18f);
}

.mock-doctor strong {
  display: block;
  margin-bottom: 4px;
}

.mock-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-slots span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 16px;
  background: rgba(22, 54, 48, 0.1);
  font-weight: 900;
}

.mock-proof-row,
.mock-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-proof-row div,
.mock-product-grid div {
  min-height: 116px;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.mock-saas-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  background: rgba(6, 12, 12, 0.72);
}

.mock-kpi {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.mock-kpi span,
.mock-kpi em {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mock-kpi b {
  display: block;
  margin: 10px 0;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.9;
}

.mock-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 86px;
}

.mock-chart i {
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(218, 166, 84, 0.95), rgba(93, 151, 135, 0.72));
}

.mock-chart i:nth-child(1) { height: 42%; }
.mock-chart i:nth-child(2) { height: 58%; }
.mock-chart i:nth-child(3) { height: 46%; }
.mock-chart i:nth-child(4) { height: 74%; }
.mock-chart i:nth-child(5) { height: 64%; }
.mock-chart i:nth-child(6) { height: 92%; }

.mock-pipeline {
  display: grid;
  gap: 8px;
}

.mock-pipeline span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.mock-pipeline b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #daa654;
}

.mock-product-grid div {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
}

.mock-proof-row b,
.mock-product-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.05;
}

.mock-product-grid span {
  display: block;
  margin-bottom: 28px;
  color: rgba(218, 166, 84, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.mock-proof-row span,
.mock-product-grid p {
  margin: 0;
  color: currentColor;
  opacity: 0.62;
  font-size: 13px;
  line-height: 1.38;
}

.mock-stay-card {
  display: grid;
  align-content: space-between;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.2);
}

.mock-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 230px;
  padding: 12px;
}

.mock-photo-grid i {
  border-radius: 24px;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 244, 222, 0.62), transparent 22%),
    linear-gradient(135deg, #3f342d, #8a745f 55%, #e0c39c);
}

.mock-photo-grid i:first-child {
  grid-row: span 2;
  background:
    radial-gradient(circle at 54% 35%, rgba(255, 241, 217, 0.62), transparent 24%),
    linear-gradient(135deg, #2f3731, #806d5a 52%, #d4af82);
}

.mock-photo-grid i:nth-child(3) {
  background:
    radial-gradient(circle at 46% 40%, rgba(255, 241, 218, 0.48), transparent 20%),
    linear-gradient(135deg, #766454, #d8c0a0);
}

.mock-booking-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0 12px 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.86);
  color: #4b3d34;
  font-size: 12px;
  font-weight: 900;
}

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

.mock-story-strip span {
  justify-content: center;
  min-height: 58px;
  padding: 12px;
  text-align: center;
  background: rgba(255, 248, 239, 0.7);
}

.mock-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 54%, rgba(255, 255, 255, 0.08) 62%, transparent 72%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.12), transparent 16%);
  mix-blend-mode: screen;
  opacity: 0.58;
}

.app-showcase,
.product-showcase {
  grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.9fr);
}

.app-showcase {
  min-height: 100svh;
  align-items: center;
  padding-top: clamp(86px, 9vw, 132px);
  padding-bottom: clamp(86px, 9vw, 132px);
}

.terminal,
.data-table,
.chat-phone,
.node-map,
.product-carousel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 5, 5, 0.78);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.app-window {
  min-height: 520px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(4, 5, 5, 0.84);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }

.win-title {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
}

.app-screens {
  position: relative;
  height: 440px;
}

.app-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  z-index: 0;
  animation: none !important;
  transition: opacity 420ms cubic-bezier(0.4, 0, 0.2, 1), transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.app-screen.is-current {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

/* semantic hooks retained; styles applied via .is-current */

/* Exclude AI screen from rotation visually for now */
.screen-ai { display: none; }

/* keyframes no longer used for app-screens */

.dash-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.58);
}

.dash-header em {
  color: #4a7a5c;
  font-style: normal;
}

.dash-metric strong {
  display: block;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: var(--font-weight-light);
  line-height: 1;
}

.dash-metric small {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin: 18px 0 16px;
}

.dbar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: var(--c);
  opacity: 0.72;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

.dash-row b {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.crm-table {
  display: grid;
  gap: 0;
}

.crm-head {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Prevent strike-through on headers using <s> elements */
.crm-head s { text-decoration: none; }

.crm-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  animation: rowIn 0.45s ease forwards;
}

.r1 { animation-delay: 0s; }
.r2 { animation-delay: 0.08s; }
.r3 { animation-delay: 0.16s; }
.r4 { animation-delay: 0.24s; }
.r5 { animation-delay: 0.32s; }

@keyframes rowIn {
  0%    { opacity: 0; transform: translateX(-6px); }
  4%    { opacity: 1; transform: translateX(0); }
  14%   { opacity: 1; }
  17%   { opacity: 0; }
  100%  { opacity: 0; }
}

mark.tag-hot, mark.tag-new, mark.tag-done {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
}

mark.tag-hot  { color: #c9a55a; border: 1px solid rgba(201,165,90,0.4); }
mark.tag-new  { color: #4a7a5c; border: 1px solid rgba(74,122,92,0.4); }
mark.tag-done { color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.15); }

.book-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.bday {
  display: grid;
  gap: 6px;
  text-align: center;
}

.bday s {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.bslot {
  padding: 5px 4px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.bslot.busy {
  background: rgba(201,165,90,0.18);
  color: rgba(201,165,90,0.9);
}

.ai-editor {
  display: grid;
  gap: 12px;
}

.ai-text {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

.ai-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #c9a55a;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.ai-suggestion {
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 2px solid rgba(74,122,92,0.7);
  background: rgba(74,122,92,0.08);
}

.ai-suggestion small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a7a5c;
}

.ai-suggestion p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.ai-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chips span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.pay-total strong {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: var(--font-weight-light);
  line-height: 1;
}

.pay-total small {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
}

.pay-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.pay-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.pay-row b {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.pay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pay-dot.green  { background: #4a7a5c; }
.pay-dot.yellow { background: #c9a55a; }

.ana-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.ana-stat b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.ana-stat small {
  color: rgba(255,255,255,0.42);
  font-size: 11px;
}

.ana-chart {
  position: relative;
  height: 70px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 14px;
}

.ana-area {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,122,92,0.28) 0%, transparent 100%);
  clip-path: polygon(0% 80%, 8% 65%, 16% 72%, 25% 45%, 35% 52%, 45% 30%, 55% 38%, 65% 18%, 75% 25%, 85% 12%, 95% 20%, 100% 15%, 100% 100%, 0% 100%);
}

.ana-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(74,122,92,0.9) 50%, rgba(201,165,90,0.9));
  clip-path: polygon(0% 80%, 8% 65%, 16% 72%, 25% 45%, 35% 52%, 45% 30%, 55% 38%, 65% 18%, 75% 25%, 85% 12%, 95% 20%, 100% 15%, 100% 17%, 95% 22%, 85% 14%, 75% 27%, 65% 20%, 55% 40%, 45% 32%, 35% 54%, 25% 47%, 16% 74%, 8% 67%, 0% 82%);
}

.chat-phone {
  width: min(440px, 100%);
  min-height: 520px;
  justify-self: center;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(4, 5, 5, 0.84);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
}

.chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.4), transparent 18%),
    linear-gradient(135deg, rgba(218,166,84,0.9), rgba(72,112,92,0.8));
  flex-shrink: 0;
}

.chat-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.chat-online {
  font-size: 11px;
  color: #4a7a5c;
}

.chat-scenario {
  position: absolute;
  inset: 72px 0 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: chatCycle 18s ease infinite;
}

.s1 { animation-delay: 0s; }
.s2 { animation-delay: 6s; }
.s3 { animation-delay: 12s; }

@keyframes chatCycle {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  30%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.chat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}

.cmsg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  animation: msgIn 18s ease infinite;
}

.cmsg.user {
  align-self: flex-end;
  background: rgba(218, 166, 84, 0.22);
  color: rgba(255,255,255,0.9);
  border-bottom-right-radius: 4px;
}

.cmsg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255,255,255,0.82);
  border-bottom-left-radius: 4px;
}

.cmsg.hot {
  background: rgba(72, 112, 92, 0.28);
  color: rgba(255,255,255,0.9);
}

.s1 .d1 { animation-delay: 0.3s; }
.s1 .d2 { animation-delay: 0.9s; }
.s1 .d3 { animation-delay: 1.8s; }
.s1 .d4 { animation-delay: 2.8s; }
.s1 .d5 { animation-delay: 3.6s; }

.s2 .d1 { animation-delay: 6.3s; }
.s2 .d2 { animation-delay: 6.9s; }
.s2 .d3 { animation-delay: 7.8s; }
.s2 .d4 { animation-delay: 8.8s; }
.s2 .d5 { animation-delay: 9.6s; }

.s3 .d1 { animation-delay: 12.3s; }
.s3 .d2 { animation-delay: 12.9s; }
.s3 .d3 { animation-delay: 13.8s; }
.s3 .d4 { animation-delay: 14.8s; }
.s3 .d5 { animation-delay: 15.6s; }

@keyframes msgIn {
  0%   { opacity: 0; transform: translateY(6px); }
  2%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.2s; }
.typing-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chip {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(218,166,84,0.35);
  color: rgba(218,166,84,0.9);
  font-size: 12px;
}

.tg-carousel-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.tg-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  padding-bottom: 36px;
}

.tg-intro-cover {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.tg-intro-cover.is-gone {
  opacity: 0;
}

.tg-carousel {
  display: flex;
  gap: 16px;
  align-items: center;
  touch-action: pan-y;
  cursor: grab;
  overscroll-behavior-x: none;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.tg-carousel:active { cursor: grabbing; }

.tg-slide { pointer-events: auto; cursor: pointer; }
.tg-slide.is-active { cursor: default; }

.tg-slide {
  flex-shrink: 0;
  width: 300px;
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
  transform: scale(0.82);
  opacity: 0.38;
  filter: blur(1px);
  position: relative;
}

.tg-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.26);
  opacity: 1;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.tg-slide::after {
  content: attr(data-label);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  transition: color 420ms ease;
}

.tg-slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
}

.tg-slide.is-active::before {
  opacity: 0;
}

.tg-slide.is-active::after {
  color: rgba(255,255,255,0.7);
}

.tg-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Counter: "01 / 03" */
.tg-counter {
  display: none;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}

.tg-counter em {
  font-style: normal;
  color: rgba(255,255,255,0.75);
}

.tg-nav-arrows {
  display: flex;
  gap: 6px;
}

.tg-nav-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: border-color 200ms, color 200ms, background 200ms, transform 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-nav-btn:hover {
  border-color: rgba(218,166,84,0.45);
  color: rgba(218,166,84,0.95);
  background: rgba(218,166,84,0.06);
}

.tg-nav-btn:active {
  transform: scale(0.92);
}

/* Keep old dots hidden — JS still updates them for state tracking */
.tg-dots {
  display: none;
}

.ai-agent-window {
  width: min(300px, 100%);
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: rgba(4, 5, 5, 0.84);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.agent-multi {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.agent-scenario {
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: panelIn 350ms ease;
}

.agent-scenario.is-active {
  display: flex;
}

.ai-title-wrap {
  position: relative;
  min-height: 20px;
}

.ai-title {
  display: none;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.ai-title.is-active {
  display: inline;
}

.agent-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px 0;
}

.agent-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}

@keyframes agentStepIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.agent-scenario.is-active .ag1 { animation: agentStepIn 500ms ease forwards; animation-delay: 0.1s; opacity: 0; }
.agent-scenario.is-active .ag2 { animation: agentStepIn 500ms ease forwards; animation-delay: 0.35s; opacity: 0; }
.agent-scenario.is-active .ag3 { animation: agentStepIn 500ms ease forwards; animation-delay: 0.6s; opacity: 0; }
.agent-scenario.is-active .ag4 { animation: agentStepIn 500ms ease forwards; animation-delay: 0.85s; opacity: 0; }

.agent-step b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.agent-step small {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.agent-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.agent-dot.gold   { background: rgba(201,165,90,0.25); border: 1px solid rgba(201,165,90,0.4); }
.agent-dot.blue   { background: rgba(91,157,217,0.2); border: 1px solid rgba(91,157,217,0.35); }
.agent-dot.green  { background: rgba(74,122,92,0.25); border: 1px solid rgba(74,122,92,0.4); }
.agent-dot.purple { background: rgba(123,94,167,0.2); border: 1px solid rgba(123,94,167,0.35); }

.agent-ok {
  margin-left: auto;
  font-size: 12px;
  color: #4a7a5c;
  font-weight: 700;
}

.agent-spin {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(201,165,90,0.3);
  border-top-color: #c9a55a;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.agent-connector {
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.1);
  margin-left: 21px;
}

.tg-phone {
  width: min(300px, 100%);
  height: 440px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1c2733;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #17212b;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tg-back {
  font-size: 22px;
  color: #5b9dd9;
  line-height: 1;
}

.tg-bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.tg-bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), transparent 18%),
    linear-gradient(135deg, #5b9dd9, #2d6a9e);
  flex-shrink: 0;
}

.tg-bot-avatar--app {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), transparent 18%),
    linear-gradient(135deg, rgba(218,166,84,0.9), rgba(72,112,92,0.8));
}

.tg-bot-avatar--ai {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), transparent 18%),
    linear-gradient(135deg, #7b5ea7, #4a7a5c);
}

.tg-bot-info strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.tg-bot-info span {
  font-size: 11px;
  color: #5b9dd9;
}

.tg-menu {
  color: rgba(255,255,255,0.4);
  font-size: 18px;
}

.tg-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: #1c2733;
  overflow: hidden;
}

.tg-messages.tg-multi {
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.tg-multi {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.tg-scenario {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: #1c2733;
  animation: panelIn 350ms ease;
}

.tg-scenario.is-active {
  display: flex;
}

.ts1 { animation-delay: 0s; }
.ts2 { animation-delay: 6s; }
.ts3 { animation-delay: 12s; }

.tg-bot-names {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  height: 32px;
  overflow: visible;
}

.tg-bname {
  display: none !important;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.tg-bname.is-active {
  display: block !important;
}

@keyframes nameCycle {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  30%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.tg-bot-names span {
  font-size: 11px;
  color: #5b9dd9;
  position: absolute;
  bottom: -14px;
  left: 0;
}

.tg-msg {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  animation: msgIn 8s ease infinite;
}

.tg-msg.user {
  align-self: flex-end;
  background: #2b5278;
  color: #fff;
  border-bottom-right-radius: 3px;
}

.tg-msg.bot {
  align-self: flex-start;
  background: #182533;
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(255,255,255,0.07);
}

.tg-msg.tg-hot {
  background: rgba(72,112,92,0.35);
  border-color: rgba(72,112,92,0.4);
}

.m1, .a1 { animation-delay: 0.2s; }
.m2, .a2 { animation-delay: 0.8s; }
.m3, .a3 { animation-delay: 1.8s; }
.m4, .a4 { animation-delay: 2.8s; }
.m5, .a5 { animation-delay: 3.7s; }

.ts1 .tm1 { animation-delay: 0.3s; }
.ts1 .tm2 { animation-delay: 1.0s; }
.ts1 .tm3 { animation-delay: 1.9s; }
.ts1 .tm4 { animation-delay: 2.8s; }

.ts2 .tm1 { animation-delay: 6.3s; }
.ts2 .tm2 { animation-delay: 6.9s; }
.ts2 .tm3 { animation-delay: 7.6s; }
.ts2 .tm4 { animation-delay: 8.2s; }
.ts2 .tm5 { animation-delay: 8.9s; }
.ts2 .tm6 { animation-delay: 9.6s; }

.ts3 .tm1 { animation-delay: 12.3s; }
.ts3 .tm2 { animation-delay: 12.9s; }
.ts3 .tm3 { animation-delay: 13.8s; }
.ts3 .tm4 { animation-delay: 14.6s; }
.ts3 .tm5 { animation-delay: 15.4s; }

.tg-msg.tm1, .tg-msg.tm2, .tg-msg.tm3,
.tg-msg.tm4, .tg-msg.tm5, .tg-msg.tm6 {
  animation: msgInLong 18s ease infinite;
}

/* Make Telegram carousel examples static: no bubble animations */
.tg-carousel .tg-msg {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@keyframes msgInLong {
  0%   { opacity: 0; transform: translateY(6px); }
  2%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.tg-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #17212b;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tg-inputbar span {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.tg-inputbar button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5b9dd9;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tg-miniapp {
  flex: 1;
  padding: 16px;
  background: #1c2733;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tg-miniapp .tg-scenario {
  flex: 1;
  justify-content: space-between;
  background: #1c2733;
  padding: 0;
}

.ma-header {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.ma-header em { color: #5b9dd9; font-style: normal; }

.ma-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ma-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.ma-day s {
  text-decoration: none;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.ma-day span {
  padding: 5px 4px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  width: 100%;
  text-align: center;
}

.ma-busy { background: rgba(255,255,255,0.03) !important; color: rgba(255,255,255,0.2) !important; text-decoration: line-through; }
.ma-sel  { background: #5b9dd9 !important; color: #fff !important; font-weight: 600; }
.ma-today s { color: #5b9dd9; }

.ma-selected {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(91,157,217,0.15);
  border: 1px solid rgba(91,157,217,0.3);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.ma-confirm {
  padding: 12px;
  border-radius: 12px;
  background: #5b9dd9;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
}

.ma-bn1 { animation-delay: 0s; }
.ma-bn2 { animation-delay: 6s; }
.ma-bn3 { animation-delay: 12s; }

.ma-s1 { animation-delay: 0s; }
.ma-s2 { animation-delay: 6s; }
.ma-s3 { animation-delay: 12s; }

.ma-cart {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ma-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.ma-item b { color: #fff; font-weight: 600; }

.ma-item-promo b { color: #4a7a5c; }

.ma-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.ma-total strong { font-size: 18px; color: #fff; }

.ma-demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.ma-dstat {
  padding: 10px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.ma-dstat b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.ma-dstat small {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

.ma-demo-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 8px 0;
}

/* Dark phone variant for admin/agent panels */
.tg-phone.is-dark {
  background: linear-gradient(180deg, #0d1117 0%, #0a0c10 100%);
  border-color: rgba(255,255,255,0.06);
}

/* Text avatar */
.tg-avatar-text {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2b5278, #1a3a5c);
  flex-shrink: 0;
}

.tg-phone.is-dark .tg-avatar-text {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Interactive buttons inside chat */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  background: #2b5278;
  color: #fff;
  border: none;
  margin-top: 6px;
  align-self: flex-start;
}

.tg-phone.is-dark .tg-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Time slots */
.tg-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.tg-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.06);
}

.tg-slot.is-active {
  background: #2b5278;
  color: #fff;
  border-color: rgba(43,82,120,0.5);
}

/* Status tags */
.tg-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 2px 4px 2px 0;
}

.tg-tag.green {
  background: rgba(72,112,92,0.25);
  color: #7fb594;
  border: 1px solid rgba(72,112,92,0.3);
}

.tg-tag.orange {
  background: rgba(180,120,60,0.2);
  color: #d4a76a;
  border: 1px solid rgba(180,120,60,0.25);
}

.tg-tag.blue {
  background: rgba(60,100,180,0.2);
  color: #8ab4f8;
  border: 1px solid rgba(60,100,180,0.25);
}

/* Checklist items */
.tg-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tg-check:last-child { border-bottom: none; }

.tg-check::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.tg-check.is-done::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #4a7a5c;
  border-color: #4a7a5c;
  color: #fff;
}

/* Info rows */
.tg-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tg-info:last-child { border-bottom: none; }

.tg-info b {
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.tg-info span {
  color: rgba(255,255,255,0.5);
}

.parser-showcase {
  grid-template-columns: minmax(440px, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.parser-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.parser-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.ptab:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}

.ptab.is-active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.parser-window {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 18px 28px;
  height: 280px;
  overflow: hidden;
}

.parser-code {
  margin: 0;
  color: #cde9d6;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.parser-result {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.pr-head {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.38);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pr-rows > div {
  display: grid;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  animation: rowIn 0.3s ease forwards;
}

.pr-ok  { color: #4ade80; }
.pr-warn { color: #facc15; }
.pr-info { color: #60a5fa; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.node-map {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 44px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  min-height: 260px;
  justify-content: center;
  align-items: center;
}

.node-flow {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nf-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-height: 86px;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  background: #070807;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nf-node strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.nf-node span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
}

.nf-node.is-lit {
  border-color: rgba(218,166,84,0.7);
  box-shadow: 0 0 14px rgba(218,166,84,0.22);
}

.nf-arrow {
  color: rgba(255,255,255,0.22);
  font-size: 14px;
  flex-shrink: 0;
  align-self: center;
  transition: color 0.3s;
}

.nf-arrow.is-lit {
  color: rgba(218,166,84,0.8);
}

@keyframes nodePulse {
  0%,100% { box-shadow: 0 0 8px rgba(218,166,84,0.15); }
  50%      { box-shadow: 0 0 20px rgba(218,166,84,0.45); }
}

@keyframes nodeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


.nf-node {
  animation: nodeIn 0.3s ease both;
}

.nf-generate {
  margin-top: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(218,166,84,0.4);
  background: transparent;
  color: rgba(218,166,84,0.85);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.nf-generate:hover {
  background: rgba(218,166,84,0.08);
  border-color: rgba(218,166,84,0.7);
  color: #daa654;
}

.product-carousel {
  min-height: 450px;
  display: grid;
  grid-template-columns: repeat(4, 190px);
  gap: 18px;
  align-content: center;
  justify-content: center;
  perspective: 1100px;
}

.product-carousel article {
  min-height: 250px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 60% 25%, rgba(218, 166, 84, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.055);
  transform: rotateY(-18deg);
}

.product-carousel strong {
  font-size: 28px;
  font-weight: var(--font-weight-regular);
}

.product-carousel span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

/* ── 06 / CTA CONTACT ────────────────────────────────── */
.cta-contact {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-sub {
  margin-top: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  margin-top: 44px;
  align-items: start;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
  text-align: left;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 16px 20px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: rgba(218,166,84,0.5);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255,255,255,0.28);
  transition: color 0.18s;
}

.cta-form input.ph-fade::placeholder {
  color: transparent;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn-submit {
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  background: rgba(218,166,84,0.9);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-btn-submit:hover {
  background: #daa654;
}

.cta-btn-tg {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cta-btn-tg:hover {
  color: rgba(255,255,255,0.85);
}

.cta-note {
  font-size: 13px;
  color: rgba(218,166,84,0.8);
  min-height: 18px;
}

.cta-grid {
  display: block;
}

.cta-messenger {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-messenger-label {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}

.cta-messenger-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cm-opt {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.cm-opt input[type="radio"] {
  display: none;
}

.cm-opt span {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  cursor: pointer;
}

.cm-opt input[type="radio"]:checked + span {
  border-color: rgba(218,166,84,0.7);
  color: rgba(218,166,84,0.9);
  background: rgba(218,166,84,0.07);
}

/* ────────────────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.15);
}

.case-grid article {
  min-height: 280px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.88);
}

.case-grid span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.case-grid strong {
  display: block;
  margin-top: 70px;
  font-size: 26px;
  font-weight: var(--font-weight-regular);
  line-height: 1.15;
}

.case-grid p {
  color: rgba(255, 255, 255, 0.55);
}

/* ── reviews grid ── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

@media (max-width: 1024px) and (min-width: 901px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  transition: border-color 260ms ease, transform 260ms ease, background 260ms ease;
}

.review-grid article:hover {
  border-color: rgba(218, 166, 84, 0.28);
  background:
    linear-gradient(180deg, rgba(218, 166, 84, 0.06), rgba(255, 255, 255, 0.012));
  transform: translateY(-3px);
}

/* ── cases carousel ── */
.cases-showcase {
  padding-right: 0 !important;
  overflow: clip; /* clip horizontally, let vertical scroll */
  position: relative;
  min-height: 300vh; /* space for sticky scroll */
}

.cases-showcase .showcase-copy {
  padding: 0;
  max-width: 500px;
  position: absolute; /* Place title above the sticky container or inside it */
  top: 10vh; /* so it stays at the top of the section */
  z-index: 2;
}

.cases-carousel-outer {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.cases-carousel-clip {
  width: 100%;
  padding: 24px 0;
  /* overflow visible — body overflow-x:hidden clips the right peek */
}

.cases-carousel-wrap {
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  /* Soft peek — shows ~15% of next slide, fades gently */
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 86%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 86%, transparent 100%);
}

.cases-carousel {
  display: flex;
  gap: 20px;
  align-items: center;
  touch-action: pan-y;
  cursor: grab;
  overscroll-behavior-x: none;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.cases-carousel:active { cursor: grabbing; }

.cs-slide {
  flex-shrink: 0;
  width: min(640px, 78vw);
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
  transform: scale(0.97);
  opacity: 0.45;
  filter: blur(0.5px);
  cursor: pointer;
}

.cs-slide::after {
  content: attr(data-label);
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color 420ms ease;
}

.cs-slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
  cursor: default;
}

.cs-slide.is-active::after {
  color: rgba(255,255,255,0.6);
}

.cs-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(4,5,5,0.7);
  backdrop-filter: blur(12px);
  min-height: 360px;
}

.cs-copy {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.cs-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.cs-link {
  font-size: 12px;
  color: rgba(218,166,84,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  margin-top: 4px;
  display: inline-block;
}

.cs-link:hover { color: rgba(218,166,84,1); }

.cs-metric {
  font-size: 42px;
  font-weight: var(--font-weight-regular);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.cs-metric small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.cs-copy strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}

.cs-copy p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

/* preview right side */
.cs-preview {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.3);
}

.cs-win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cs-win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-style: normal;
}

.cs-win-bar i.dot-r { background: rgba(255, 95, 86, 0.75); }
.cs-win-bar i.dot-y { background: rgba(255, 189, 46, 0.75); }
.cs-win-bar i.dot-g { background: rgba(39, 201, 63, 0.75); }

.cs-win-bar span {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-left: 4px;
  letter-spacing: 0.02em;
}

/* terminal */
.cs-terminal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
}

.cs-t-line { color: rgba(255,255,255,0.7); line-height: 1.5; }
.ct-dim    { color: rgba(255,255,255,0.28); }
.ct-out    { color: rgba(255,255,255,0.5); }
.ct-gold   { color: rgba(218,166,84,0.9); }

/* dash table */
.cs-dash {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 11px;
  flex: 1;
}

.cs-dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 48px;
  padding: 4px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  gap: 4px;
  font-size: 10.5px;
}

.cs-dash-row.head {
  color: rgba(255,255,255,0.28);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cs-dash-row.g { background: rgba(72,200,120,0.04); }
.cs-dash-row.r { background: rgba(220,80,80,0.04); }

.cs-dash-row .up { color: rgba(72,200,120,0.85); }
.cs-dash-row .dn { color: rgba(220,80,80,0.8); }

.cs-dash-stats {
  display: flex;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 10px;
}

.cs-dash-stats > div {
  flex: 1;
  text-align: center;
}

.cs-dash-stats b {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.cs-dash-stats small {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

/* flow nodes */
.cs-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cs-fnode {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.cs-fnode b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.cs-fnode small {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

.cs-fnode--gold {
  border-color: rgba(218,166,84,0.3);
  background: rgba(218,166,84,0.05);
}

.cs-fnode--gold b { color: rgba(218,166,84,0.9); }

.cs-farrow {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  padding-left: 16px;
}

.cs-flow-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 10px;
  margin-top: 4px;
}

.cs-flow-stats > div {
  flex: 1;
  text-align: center;
}

.cs-flow-stats b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.cs-flow-stats small {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

/* nav */
.cases-carousel-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(640px, 78vw);
  margin-top: 20px;
  padding: 0 2px;
}

/* Counter: "01 / 10" */
.cases-counter {
  justify-self: end;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}

.cases-counter em {
  font-style: normal;
  color: rgba(255,255,255,0.75);
}

/* Arrow buttons */
.cases-nav-arrows {
  display: flex;
  justify-self: center;
  gap: 6px;
}

.cases-nav-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: border-color 200ms, color 200ms, background 200ms, transform 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cases-nav-btn:hover {
  border-color: rgba(218,166,84,0.45);
  color: rgba(218,166,84,0.95);
  background: rgba(218,166,84,0.06);
}

.cases-nav-btn:active {
  transform: scale(0.92);
}

/* Keep old dots hidden — JS still updates them for state tracking */
.cases-dots {
  display: none;
}

/* ── case-card new style ── */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s, transform 0.25s;
}

.case-card:hover {
  border-color: rgba(218,166,84,0.25);
  transform: translateY(-3px);
}

.cc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cc-tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(218,166,84,0.3);
  color: rgba(218,166,84,0.7);
  background: rgba(218,166,84,0.05);
}

.cc-metric {
  font-size: 48px;
  font-weight: var(--font-weight-regular);
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cc-metric small {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  margin-top: 4px;
  font-weight: 400;
}

.case-card strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 10px;
  color: #fff;
}

.case-card p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.48);
  margin-top: auto;
}

.review-stars {
  color: #c9a55a;
  font-size: 14px;
  letter-spacing: 3px;
}

.review-grid p {
  flex: 1;
  margin: 16px 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.review-author {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto; /* Pushes the author to the bottom if the quote is short */
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.review-meta em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-list details {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.faq-list details:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.faq-list summary {
  cursor: pointer;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.faq-list p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.5;
}

@keyframes introLeave {
  0%,
  72% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes hello {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  24%,
  68% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes interfaceIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes canvasIn {
  to {
    opacity: 1;
  }
}

@keyframes titleIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes bubblePulse {
  50% {
    transform: translateY(-4px);
  }
}


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

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 38px);
    grid-template-columns: 1fr auto auto;
    gap: 22px;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: grid;
    position: fixed;
    top: -30px;
    right: -19px;
    width: min(320px, calc(100vw - 38px));
    min-height: 100svh;
    padding: 110px 28px 36px;
    gap: 24px;
    justify-content: start;
    align-content: start;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px);
    text-align: right;
    transform: translateX(112%);
    transition: transform 240ms ease;
  }

  .menu-open .main-menu {
    transform: translateX(0);
  }

  .language {
    gap: 15px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 66px);
  }

  .hero-copy {
    transform: translateY(1vh);
  }

  .hero-support {
    max-width: 100%;
  }

  .hero-proof,
  .case-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: grid;
  }

  .section-grid,
  .process-grid,
  .offer-hero,
  .showcase,
  .parser-showcase {
    grid-template-columns: 1fr;
  }

  .offer-header {
    width: calc(100% - 38px);
  }

  .offer-header .telegram-button {
    min-height: 42px;
    padding: 0 16px;
  }

  .offer-demo-stats,
  .offer-grid,
  .offer-crm-board,
  .offer-table-row {
    grid-template-columns: 1fr;
  }

  .offer-process li {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .showcase {
    min-height: auto;
  }

  .puzzle-showcase {
    padding: 0;
  }

  .landing-pin {
    grid-template-columns: 1fr;
    gap: 34px;
    width: 100%;
    padding: 100px var(--page-pad) 38px;
    height: 100vh; /* Make it fit viewport */
  }

  .landing-demo {
    max-height: 40vh; /* Ensure mockup fits on mobile screen */
    display: flex;
    justify-content: center;
  }

  .mock-stage {
    aspect-ratio: auto;
    height: 100%;
  }


  .site-mock {
    padding: 20px;
  }

  .mock-nav {
    grid-template-columns: 1fr auto;
  }

  .mock-nav span {
    display: none;
  }

  .mock-hero,
  .mock-story-strip,
  .mock-proof-row,
  .mock-product-grid {
    grid-template-columns: 1fr;
  }

  .mock-hero {
    min-height: auto;
  }

  .mock-appointment,
  .mock-saas-panel,
  .mock-stay-card {
    min-height: 220px;
  }

  .mock-photo-grid {
    min-height: 180px;
  }

  .service-list article {
    min-height: 260px;
  }

  .node-map,
  .product-carousel {
    grid-template-columns: 1fr;
  }

  .node-map::before {
    top: 9%;
    bottom: 9%;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 26px;
    gap: 14px;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding: 126px 0 64px;
  }

  .brand-sub {
    display: none;
  }

  .language::before {
    display: none;
  }

  .hero-copy p {
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.6vw, 54px);
    line-height: 1.08;
  }

  .hero-support p {
    font-size: 16px;
  }

  .hero-proof {
    gap: 10px;
  }

  .hero-proof span {
    width: 100%;
    justify-content: center;
  }
}

/* Premium responsive refresh */
html,
body {
  max-width: 100%;
}

body {
  background:
    linear-gradient(180deg, #020303 0%, #000 36%, #050706 100%);
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.showcase > *,
.landing-pin > *,
.content-section > *,
.section-grid > *,
.process-grid > *,
.cs-card > *,
.app-window,
.parser-demo,
.node-map,
.tg-carousel-outer,
.cases-carousel-outer {
  min-width: 0;
}

.site-header {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(4, 5, 5, 0.5);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand {
  position: relative;
  z-index: 1;
}

.brand-main {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.language,
.main-menu {
  position: relative;
  z-index: 1;
}

.main-menu a {
  position: relative;
  padding: 8px 0;
}

.main-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 166, 84, 0.82), transparent);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.telegram-button,
.big-telegram,
.text-link,
.cta-btn-submit,
.cases-nav-btn,
.tg-nav-btn,
.nf-generate {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 46px rgba(0, 0, 0, 0.22);
}

.telegram-button,
.big-telegram,
.text-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(41, 43, 41, 0.78);
}

.telegram-button:hover,
.big-telegram:hover,
.text-link:hover {
  border-color: rgba(218, 166, 84, 0.48);
  background:
    linear-gradient(180deg, rgba(218, 166, 84, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(58, 58, 54, 0.86);
}

.hero-copy {
  will-change: transform, opacity, filter;
}

.hero-support {
  padding: 0 12px;
}

.ticker-section {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.showcase,
.content-section,
.landing-pin {
  opacity: 0.64;
  transform: translateY(22px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 760ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.showcase.is-visible,
.content-section.is-visible,
.puzzle-showcase.is-visible .landing-pin {
  opacity: 1;
  transform: translateY(0);
}

.puzzle-showcase {
  opacity: 1;
  transform: none;
}

.browser-shell,
.app-window,
.parser-window,
.parser-result,
.node-map,
.tg-phone,
.ai-agent-window,
.cs-card,
.review-grid article,
.cta-form input,
.cta-form textarea {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 38px 110px rgba(0, 0, 0, 0.35);
}

.app-window,
.parser-window,
.parser-result,
.node-map,
.cs-card,
.review-grid article,
.cta-form input,
.cta-form textarea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
    rgba(4, 5, 5, 0.82);
}

.app-window,
.parser-window,
.parser-result,
.node-map,
.tg-phone,
.ai-agent-window,
.cs-card {
  transform: translateZ(0);
}

.tg-slide.is-active .tg-phone,
.tg-slide.is-active .ai-agent-window,
.cs-slide.is-active .cs-card {
  border-color: rgba(218, 166, 84, 0.23);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 42px 120px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(218, 166, 84, 0.06);
}

.tg-slide,
.cs-slide {
  will-change: transform, opacity, filter;
}

.tg-carousel-wrap,
.cases-carousel-wrap {
  position: relative;
}

.tg-carousel-nav,
.cases-carousel-nav {
  position: relative;
  z-index: 2;
}

.tg-counter {
  display: inline-flex;
  min-width: 54px;
}

.tg-dots,
.cases-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tg-dot,
.cases-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease, opacity 220ms ease;
}

.tg-dot.is-active,
.cases-dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, rgba(218, 166, 84, 0.95), rgba(124, 162, 136, 0.92));
}

.cases-carousel-nav {
  grid-template-columns: auto auto minmax(0, 1fr);
  justify-content: start;
}

.cases-counter {
  justify-self: start;
}

.cases-dots {
  justify-self: start;
  flex-wrap: wrap;
  max-width: 260px;
}

.review-grid article {
  overflow: hidden;
}

.review-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 166, 84, 0.4), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}

.review-grid article:hover::before {
  opacity: 1;
}

.faq-list details {
  transition: border-color 220ms ease;
}

.faq-list details:hover {
  border-top-color: rgba(218, 166, 84, 0.3);
}

.faq-list summary {
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: rgba(218, 166, 84, 0.8);
  font-size: 0.72em;
  line-height: 1.4;
}

.faq-list details[open] summary::after {
  content: "-";
}

@media (max-width: 1100px) {
  .site-header {
    width: calc(100% - 44px);
  }

  .main-menu {
    gap: 18px;
  }

  .showcase,
  .landing-pin {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-pad: 22px;
    --header-top: 18px;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    top: var(--header-top);
    width: calc(100% - 24px);
    padding: 8px 12px;
    gap: 12px;
    background: rgba(4, 5, 5, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .brand-main {
    font-size: 20px;
  }

  .language {
    gap: 12px;
    padding: 0 4px;
  }

  .main-menu {
    position: fixed;
    right: -12px;
    top: calc(-1 * var(--header-top));
    width: min(360px, calc(100vw - 24px));
    padding: 104px 28px 36px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
      rgba(3, 4, 4, 0.92);
    box-shadow: -30px 0 90px rgba(0, 0, 0, 0.44);
  }

  .main-menu a {
    width: 100%;
    padding: 11px 0;
    font-size: 14px;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 18px 64px;
  }

  .hero-copy {
    width: min(100%, 620px);
    transform: none;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.07;
  }

  .hero-support {
    margin-top: 24px;
    padding: 0;
  }

  .hero-support p {
    font-size: 17px;
    line-height: 1.48;
  }

  .ticker-section {
    padding: 15px 0;
  }

  .ticker-track {
    font-size: 12px;
  }

  .content-section,
  .showcase,
  .landing-pin {
    padding: 78px var(--page-pad);
  }

  .showcase,
  .app-showcase,
  .product-showcase,
  .parser-showcase {
    grid-template-columns: 1fr;
  }

  .showcase {
    gap: 34px;
    overflow: hidden;
  }

  .showcase > *,
  .landing-pin > * {
    width: calc(100vw - var(--page-pad) - var(--page-pad)) !important;
    max-width: 100% !important;
    justify-self: stretch;
  }

  .showcase .showcase-copy,
  .landing-pin .showcase-copy,
  .parser-demo,
  .cases-carousel-outer,
  .tg-carousel-outer,
  .node-map,
  .app-window {
    width: calc(100vw - var(--page-pad) - var(--page-pad)) !important;
    max-width: 100% !important;
  }

  .showcase-copy h2,
  .content-section h2 {
    font-size: 42px;
    line-height: 1.1;
    max-width: 100%;
    overflow-wrap: break-word;
    text-align: center;
  }



  .showcase-copy p:not(.eyebrow),
  .copy-stack p {
    font-size: 17px;
    max-width: 100%;
    overflow-wrap: break-word;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .puzzle-showcase {
    min-height: 250vh;
  }

  .landing-pin {
    padding-top: 80px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 0;
  }

  .demo-steps {
    gap: 12px;
    margin-top: 16px;
  }

  .demo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .demo-step span {
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 0 auto;
  }

  .browser-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-showcase .showcase-copy {
    order: 1;
  }

  .app-window {
    order: 2;
    min-height: 440px;
    padding: 16px;
    border-radius: 16px;
  }

  .app-screens {
    height: 360px;
  }

  .dash-header,
  .dash-row,
  .pay-row {
    gap: 10px;
  }

  .chat-showcase .showcase-copy,
  .flow-showcase .showcase-copy,
  .parser-showcase .showcase-copy,
  .cases-showcase .showcase-copy {
    max-width: 620px;
  }

  .tg-carousel-wrap {
    width: 100%;
    padding: 6px 0 34px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  }

  .tg-carousel {
    gap: 12px;
  }

  .tg-slide {
    width: min(300px, calc(100vw - 72px));
    transform: scale(0.88);
  }

  .tg-phone,
  .ai-agent-window {
    height: 410px;
    border-radius: 22px;
  }

  .tg-carousel-nav {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .tg-dots {
    width: 100%;
    flex-wrap: wrap;
    max-width: 260px;
    margin: 0 auto;
  }

  .node-map {
    min-height: 420px;
    padding: 18px;
    overflow: hidden;
  }

  .nf-generate {
    width: 100%;
    white-space: normal;
  }

  .parser-demo {
    order: 2;
    width: 100%;
    overflow: hidden;
  }

  .parser-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .parser-tabs::-webkit-scrollbar {
    display: none;
  }

  .ptab {
    flex: 0 0 auto;
  }

  .parser-window {
    min-height: 270px;
  }

  .parser-code {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 10px;
  }

  .parser-result {
    overflow-x: auto;
  }

  .pr-head,
  .pr-rows > div {
    min-width: 620px;
  }

  .cases-showcase {
    padding-right: var(--page-pad) !important;
  }

  .cases-carousel-outer,
  .cases-carousel-clip,
  .cases-carousel-wrap {
    width: 100%;
    max-width: 100%;
  }

  .cases-carousel-clip {
    padding: 10px 0;
  }

  .cases-carousel-wrap {
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cases-carousel {
    gap: 14px;
  }

  .cs-slide {
    width: calc(100vw - var(--page-pad) - var(--page-pad));
    max-width: 560px;
    transform: scale(0.96);
  }

  .cs-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 16px;
  }

  .cs-copy {
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .cs-metric {
    font-size: 38px;
    letter-spacing: 0;
  }

  .cs-preview {
    min-height: 240px;
    padding: 16px;
    overflow: hidden;
  }

  .cs-terminal {
    font-size: 10px;
  }

  .cs-flow-stats,
  .cs-dash-stats {
    gap: 8px;
  }

  .cases-carousel-nav {
    width: 100%;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 12px;
  }

  .cases-counter {
    justify-self: center;
  }

  .cases-dots {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 280px;
  }

  .process-grid,
  .section-grid {
    gap: 30px;
  }

  .process li {
    font-size: 15px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-contact {
    max-width: none;
  }

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

  .cta-actions {
    align-items: stretch;
  }

  .cta-btn-submit,
  .cta-btn-tg {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .faq-list summary {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 20px;
  }

  .site-header {
    width: calc(100% - 20px);
    top: 14px;
  }

  .menu-toggle {
    width: 30px;
  }

  .menu-toggle span:not(.sr-only) {
    width: 30px;
  }

  .hero {
    padding: 112px 20px 58px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-support p {
    font-size: 15px;
  }

  .hero-cta {
    width: 100%;
    max-width: 300px;
  }

  .content-section,
  .showcase,
  .landing-pin {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .showcase-copy h2,
  .content-section h2 {
    font-size: 34px;
  }

  .showcase-copy p:not(.eyebrow),
  .copy-stack p,
  .offer-list li {
    font-size: 16px;
  }

  .browser-shell {
    border-radius: 14px;
  }

  .browser-bar {
    padding: 12px 14px;
  }

  .landing-pin {
    padding-top: 86px;
  }

  .app-window {
    min-height: 410px;
    padding: 14px;
  }

  .app-screens {
    height: 330px;
  }

  .dash-metric strong,
  .pay-total strong {
    font-size: 42px;
  }

  .tg-slide {
    width: calc(100vw - 64px);
  }

  .tg-phone,
  .ai-agent-window {
    height: 390px;
  }

  .tg-msg {
    font-size: 12px;
  }

  .node-map {
    min-height: 380px;
  }

  .parser-window {
    min-height: 245px;
  }

  .cs-slide {
    width: calc(100vw - 40px);
  }

  .cs-copy {
    padding: 22px 20px;
  }

  .cs-preview {
    min-height: 220px;
  }

  .cs-dash-row {
    font-size: 9.5px;
  }

  .review-grid article {
    padding: 24px 22px 22px;
  }

  .faq-list summary {
    font-size: 23px;
  }

  .big-telegram {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 36px;
  }

  .showcase-copy h2,
  .content-section h2 {
    font-size: 31px;
  }

  .tg-slide {
    width: calc(100vw - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase,
  .content-section,
  .landing-pin,
  .tg-slide,
  .cs-slide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile window mode: turn desktop mockups into touch-first product cards */
@media (max-width: 900px) {
  .window-bar,
  .cs-win-bar,
  .browser-bar {
    min-height: 34px;
    padding-bottom: 12px;
  }

  .window-bar i,
  .cs-win-bar i,
  .browser-bar i {
    width: 9px;
    height: 9px;
  }

  .win-title,
  .cs-win-bar span,
  .browser-bar span {
    max-width: 78%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-window,
  .parser-window,
  .parser-result,
  .node-map,
  .cs-card {
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
      rgba(3, 5, 5, 0.9);
  }

  .app-window {
    min-height: auto;
    padding: 16px;
  }

  .app-screens {
    height: clamp(320px, 86vw, 390px);
  }

  .crm-table {
    gap: 8px;
  }

  .screen-crm .crm-table::after {
    content: "+44 заявки у черзі";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px dashed rgba(218, 166, 84, 0.25);
    border-radius: 12px;
    color: rgba(218, 166, 84, 0.82);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(218, 166, 84, 0.045);
  }

  .crm-head {
    display: none;
  }

  .crm-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
      rgba(255, 255, 255, 0.02);
  }

  .crm-row span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
  }

  .crm-row span::before,
  .crm-row mark::before {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.34);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .crm-row span:nth-child(1)::before { content: "Клієнт"; }
  .crm-row span:nth-child(2)::before { content: "Джерело"; }

  .crm-row mark {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .crm-row mark::before {
    content: "Статус";
  }

  .screen-crm .crm-row.r4,
  .screen-crm .crm-row.r5 {
    display: none;
  }

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

  .pay-row {
    grid-template-columns: 12px 1fr;
  }

  .pay-row b {
    grid-column: 2;
    justify-self: start;
    color: rgba(218, 166, 84, 0.9);
  }

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

  .node-map {
    min-height: auto;
    align-items: stretch;
    padding: 18px;
  }

  .node-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nf-node {
    width: 100%;
    min-height: 74px;
    align-items: flex-start;
    padding: 15px 16px;
    text-align: left;
    border-radius: 14px;
  }

  .nf-node strong,
  .nf-node span {
    white-space: normal;
  }

  .nf-node strong {
    font-size: 14px;
  }

  .nf-node span {
    margin-top: 3px;
    font-size: 11px;
  }

  .nf-arrow {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    align-self: center;
    transform: rotate(90deg);
  }

  .parser-window {
    position: relative;
    height: clamp(230px, 62vw, 280px);
    min-height: 0;
    padding: 14px 16px 24px;
  }

  .parser-window::after,
  .cs-preview::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(3, 5, 5, 0.94));
  }

  .parser-code {
    font-size: 10.5px;
    line-height: 1.65;
  }

  .parser-result {
    border: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .pr-head {
    display: none;
  }

  .pr-rows {
    display: grid;
    gap: 10px;
  }

  .pr-rows > div {
    min-width: 0 !important;
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
      rgba(3, 5, 5, 0.84);
  }

  .pr-rows > div > span {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }

  .pr-rows > div > span:first-child {
    border-top: 0;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
  }

  .pr-rows > div > span::before {
    content: attr(data-label);
    max-width: 42%;
    color: rgba(255, 255, 255, 0.34);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .cases-carousel {
    align-items: flex-start;
  }

  .cs-slide {
    padding-top: 4px;
  }

  .cs-card {
    overflow: hidden;
  }

  .cs-copy {
    gap: 12px;
  }

  .cs-copy p {
    font-size: 13px;
    line-height: 1.55;
  }

  .cs-preview {
    position: relative;
    max-height: 330px;
    min-height: 0;
    overflow: hidden;
  }

  .cs-terminal {
    max-height: 260px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.55;
  }

  .cs-flow {
    gap: 6px;
  }

  .cs-fnode {
    border-radius: 12px;
    padding: 10px 12px;
  }

  .cs-farrow {
    width: 24px;
    height: 18px;
    display: grid;
    place-items: center;
    padding-left: 0;
    transform: rotate(90deg);
  }

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

  .cs-flow-stats small,
  .cs-dash-stats small {
    display: block;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .app-window,
  .parser-window,
  .node-map,
  .cs-card,
  .tg-phone,
  .ai-agent-window {
    border-radius: 16px;
  }

  .app-window {
    padding: 14px;
  }

  .app-screens {
    height: clamp(300px, 88vw, 360px);
  }

  .dash-header {
    font-size: 11px;
  }

  .dash-row {
    font-size: 12px;
  }

  .crm-row {
    padding: 11px;
    font-size: 12px;
  }

  .parser-tabs {
    margin-right: -20px;
    padding-right: 20px;
  }

  .ptab {
    padding: 7px 13px;
    font-size: 11px;
  }

  .parser-window {
    height: 236px;
  }

  .parser-code {
    font-size: 10px;
  }

  .pr-rows > div {
    padding: 11px 12px;
  }

  .pr-rows > div > span {
    align-items: flex-start;
    font-size: 12px;
  }

  .node-map {
    padding: 16px;
  }

  .nf-node {
    min-height: 68px;
    padding: 13px 14px;
  }

  .nf-generate {
    min-height: 42px;
  }

  .cs-preview {
    max-height: 300px;
    padding: 14px;
  }

  .cs-terminal {
    max-height: 238px;
    font-size: 9.5px;
  }

  .cs-flow-stats,
  .cs-dash-stats {
    grid-template-columns: 1fr;
    gap: 7px;
    text-align: left;
  }

  .cs-flow-stats > div,
  .cs-dash-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }
}

.global-glass-wrapper {
  position: relative;
  z-index: 2;
  background: rgba(4, 5, 5, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  /* Ensure border between sections is handled inside */
}

/* Touch-first layout: desktop scenes stay intact above 900px. */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 88px;
    overscroll-behavior-y: auto;
  }

  body {
    overscroll-behavior-y: auto;
  }

  #services,
  #cases,
  #reviews,
  #faq,
  #contact,
  #telegram {
    scroll-margin-top: 88px;
  }

  .intro {
    animation-duration: 1.25s;
  }

  .intro p {
    animation-duration: 1s;
  }

  .site-header {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    animation-delay: 0.75s;
    animation-duration: 0.65s;
  }

  .hero-copy {
    animation-delay: 1.05s;
    animation-duration: 0.9s;
  }

  .hero-canvas {
    animation-delay: 0.4s;
    animation-duration: 1.1s;
  }

  .menu-toggle,
  .cta-btn-submit,
  .cases-nav-btn,
  .tg-nav-btn,
  .nf-generate,
  .ptab,
  .cm-opt span {
    min-width: 44px;
    min-height: 44px;
  }

  .main-menu {
    z-index: -1;
    padding-top: calc(96px + env(safe-area-inset-top));
  }

  .main-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .puzzle-showcase {
    min-height: 0;
  }

  .landing-pin {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 78px var(--page-pad);
  }

  .puzzle-showcase .showcase-copy {
    min-height: 0;
  }

  .landing-demo {
    width: 100%;
    max-height: none;
  }

  .mock-stage {
    height: auto;
    aspect-ratio: 16 / 10 !important;
  }

  .demo-steps {
    display: flex;
    gap: 12px;
    margin: 24px calc(-1 * var(--page-pad)) 0;
    padding: 0 var(--page-pad) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .demo-steps::-webkit-scrollbar,
  .review-grid::-webkit-scrollbar {
    display: none;
  }

  .demo-step {
    flex: 0 0 min(310px, calc(100vw - 64px));
    min-height: 132px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    scroll-snap-align: center;
    cursor: pointer;
  }

  .demo-step.is-active {
    border-color: rgba(218, 166, 84, 0.32);
    background: rgba(218, 166, 84, 0.055);
  }

  .demo-step span {
    margin: 0;
  }

  .demo-step small {
    font-size: 12px;
  }

  .demo-progress {
    display: none;
  }

  .cases-showcase {
    min-height: 0;
    display: grid;
    gap: 34px;
    padding: 78px var(--page-pad) !important;
    overflow: hidden;
  }

  .cases-showcase .showcase-copy {
    position: static;
    max-width: 620px;
    padding: 0;
  }

  .cases-carousel-outer {
    position: static;
    top: auto;
    height: auto;
    display: block;
  }

  .cases-carousel-clip {
    padding: 4px 0;
  }

  .cases-carousel-wrap {
    overflow: visible;
  }

  .cases-carousel {
    transition: transform 420ms cubic-bezier(0.2, 0.7, 0.1, 1);
    touch-action: pan-y;
  }

  .cs-slide {
    opacity: 0.32;
    filter: none;
  }

  .cs-slide.is-active {
    opacity: 1;
  }

  .cases-carousel-nav {
    margin-top: 16px;
  }

  .review-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 340px);
    grid-template-columns: none;
    gap: 12px;
    margin: 32px calc(-1 * var(--page-pad)) 0;
    padding: 4px var(--page-pad) 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .review-grid article {
    min-height: 230px;
    scroll-snap-align: center;
  }

  .reviews {
    overflow: hidden;
  }

  .cta-form input,
  .cta-form textarea {
    font-size: 16px;
  }

  .cta-messenger {
    align-items: flex-start;
  }

  .cta-messenger-opts {
    width: 100%;
  }

  .cm-opt {
    flex: 1 1 0;
  }

  .cm-opt span {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 7px 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(34px, 10.2vw, 42px);
  }

  .hero-support p {
    font-size: 15px;
    line-height: 1.45;
  }

  .content-section,
  .showcase,
  .landing-pin,
  .cases-showcase {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .showcase-copy h2,
  .content-section h2 {
    font-size: clamp(30px, 9vw, 36px);
  }

  .faq-list details {
    padding: 22px 0;
  }

  .faq-list summary {
    padding-right: 12px;
    font-size: 22px;
  }

  .telegram {
    min-height: 70svh;
    padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .telegram-button:hover,
  .big-telegram:hover,
  .text-link:hover,
  .review-grid article:hover,
  .case-card:hover {
    transform: none;
  }
}

/* Mobile polish: stable scrolling, centered media, and predictable carousels. */
@media (max-width: 900px) {
  .global-glass-wrapper {
    background: rgba(3, 4, 4, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .showcase,
  .content-section,
  .landing-pin,
  .showcase.is-visible,
  .content-section.is-visible,
  .puzzle-showcase.is-visible .landing-pin {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header.is-scrolled {
    padding: 8px 12px;
  }

  .mock-stage,
  .mock-stage:has(.mock-dental.is-current) {
    aspect-ratio: 3 / 2 !important;
  }

  .mock-stage:has(.mock-saas.is-current) {
    aspect-ratio: 3 / 2 !important;
  }

  .mock-stage:has(.mock-stay.is-current) {
    aspect-ratio: 3 / 2 !important;
  }

  .mock-img {
    object-fit: cover;
  }

  .site-mock {
    padding: 0;
  }

  .landing-browser,
  .app-window,
  .tg-carousel-outer,
  .cases-carousel-outer {
    margin-right: auto;
    margin-left: auto;
  }

  .app-showcase,
  .chat-showcase,
  .cases-showcase,
  .reviews {
    justify-items: center;
  }

  .app-window {
    contain: paint;
  }

  .app-screen {
    will-change: auto;
  }

  .tg-intro-cover {
    display: none;
  }

  .app-showcase .showcase-copy,
  .chat-showcase .showcase-copy,
  .cases-showcase .showcase-copy,
  .reviews > h2 {
    width: 100% !important;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .tg-carousel-wrap,
  .cases-carousel-wrap {
    overflow: hidden;
  }

  .tg-slide {
    width: min(320px, calc(100vw - 56px));
  }

  .tg-carousel-nav,
  .cases-carousel-nav {
    margin-right: auto;
    margin-left: auto;
  }

  .cases-carousel-clip {
    overflow: hidden;
  }

  .cs-slide {
    width: calc(100vw - 56px);
    max-width: 520px;
  }

  .review-grid {
    padding-right: calc((100vw - min(82vw, 340px)) / 2);
    padding-left: calc((100vw - min(82vw, 340px)) / 2);
  }

  .telegram {
    background: #020303 !important;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .brand {
    gap: 7px;
  }

  .brand-sub {
    display: inline;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .menu-toggle span:not(.sr-only) {
    left: 50%;
    width: 28px;
    transform: translateX(-50%);
    transform-origin: center;
  }

  .menu-toggle span:first-child {
    top: 16px;
  }

  .menu-toggle span:nth-child(2) {
    top: 27px;
  }

  .menu-open .menu-toggle span:first-child,
  .menu-open .menu-toggle span:nth-child(2) {
    top: 50%;
  }

  .menu-open .menu-toggle span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .main-menu {
    right: -10px;
    width: min(320px, calc(100vw - 48px));
    padding: calc(92px + env(safe-area-inset-top)) 24px 28px;
    gap: 6px;
    border-bottom-left-radius: 24px;
  }

  .main-menu a {
    justify-content: center;
  }

  .tg-carousel-wrap,
  .cases-carousel-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tg-slide.is-active .tg-phone,
  .tg-slide.is-active .ai-agent-window,
  .cs-slide.is-active .cs-card {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 18px 44px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(218, 166, 84, 0.055);
  }

  .tg-nav-arrows,
  .cases-nav-arrows {
    display: none;
  }

  .tg-carousel-nav,
  .cases-carousel-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .tg-counter,
  .cases-counter {
    min-width: 64px;
    justify-content: center;
    justify-self: center;
    text-align: center;
  }

  .tg-carousel,
  .cases-carousel {
    transition: transform 380ms cubic-bezier(0.22, 0.72, 0.28, 1);
    backface-visibility: hidden;
  }

  .tg-slide,
  .cs-slide {
    transition:
      transform 340ms cubic-bezier(0.22, 0.72, 0.28, 1),
      opacity 260ms ease;
    filter: none;
    will-change: auto;
    backface-visibility: hidden;
  }

  .tg-carousel:active .tg-slide,
  .cases-carousel:active .cs-slide {
    transition: none;
  }

  .parser-demo,
  .parser-result {
    contain: layout paint;
  }
}

.cta-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cta-btn-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.cta-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
