/* Shared MIRA brand shell: brand home, Web App and Telegram. */

.mira-global-header {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1280px);
  min-height: 78px;
  margin: 10px auto 0;
  padding: 10px 14px;
  position: sticky;
  top: 8px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(70, 48, 111, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 50px rgba(69, 46, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #241a38;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.brand-hub .mira-global-header,
.web-landing .mira-global-header,
.legal-center .mira-global-header {
  position: sticky;
  top: 8px;
}

.mira-global-brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #241a38;
  text-decoration: none;
}

.mira-global-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(64, 43, 98, 0.1);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(66, 43, 112, 0.13);
}

.mira-global-brand > span {
  display: grid;
  line-height: 1.08;
}

.mira-global-brand b {
  color: #241a38;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.mira-global-brand small {
  margin-top: 4px;
  color: #746b7f;
  font-size: 0.64rem;
  white-space: nowrap;
}

.mira-product-switch {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(94, 62, 159, 0.1);
  border-radius: 14px;
  background: #f3effb;
}

.mira-product-switch a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  color: #756d81;
  font-size: 0.75rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.mira-product-switch a:hover {
  color: #5632ba;
}

.mira-product-switch a.is-active,
.mira-product-switch a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 6px 16px rgba(66, 42, 106, 0.1);
  color: #6338d1;
}

.mira-page-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.mira-page-nav a {
  padding: 9px 10px;
  border-radius: 11px;
  color: #716a7d;
  font-size: 0.78rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.mira-page-nav a:hover {
  background: #f3effb;
  color: #5632ba;
}

.mira-shell-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mira-global-header .lang-toggle {
  width: 42px;
  height: 40px;
  border: 1px solid rgba(71, 47, 113, 0.14);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(63, 43, 98, 0.06);
  color: #463a58;
}

.mira-global-header .button {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 13px;
  white-space: nowrap;
}

/* Brand home */

.brand-hub {
  min-height: 100vh;
}

.brand-home {
  width: 100%;
}

.brand-stage {
  width: min(calc(100% - 32px), 1280px);
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(64px, 7vh, 90px) 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.brand-message {
  position: relative;
  z-index: 2;
}

.brand-message h1 {
  max-width: 650px;
  margin: 0;
  color: #241a38;
  font-size: clamp(3.45rem, 5.15vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.brand-message h1 em {
  color: #7953e8;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.brand-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #625b6f;
  font-size: clamp(1.02rem, 1.42vw, 1.17rem);
  line-height: 1.7;
}

.brand-pill-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-pill-row > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(82, 56, 130, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(75, 50, 119, 0.05);
  color: #574f64;
  font-size: 0.75rem;
  font-weight: 760;
}

.brand-choice-label {
  margin: 35px 0 0;
  color: #756d81;
  font-size: 0.83rem;
  font-weight: 760;
}

.brand-channel-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.brand-channel-card {
  min-width: 0;
  min-height: 548px;
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(75, 50, 118, 0.12);
  border-radius: 32px;
  text-decoration: none;
  box-shadow: 0 30px 76px rgba(68, 44, 108, 0.13);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.brand-channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 38px 88px rgba(68, 44, 108, 0.18);
}

.brand-web-channel {
  background:
    radial-gradient(circle at 85% 80%, rgba(177, 147, 255, 0.34), transparent 48%),
    linear-gradient(160deg, #ffffff, #f2ebff);
  color: #281d3b;
}

.brand-telegram-channel {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 78% 72%, rgba(57, 207, 136, 0.17), transparent 42%),
    linear-gradient(155deg, #12171d, #080c10);
  color: #fff;
}

.brand-channel-copy {
  position: relative;
  z-index: 3;
  padding: 30px 28px 0;
}

.brand-channel-kicker {
  color: #7654ce;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.brand-telegram-channel .brand-channel-kicker {
  color: #48d79b;
}

.brand-channel-copy h2 {
  max-width: 290px;
  margin: 17px 0 10px;
  font-size: clamp(1.65rem, 2.25vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.brand-channel-copy p {
  max-width: 290px;
  margin: 0;
  color: #71697d;
  font-size: 0.82rem;
  line-height: 1.55;
}

.brand-telegram-channel .brand-channel-copy p {
  color: rgba(255, 255, 255, 0.57);
}

.brand-channel-copy b {
  margin-top: 20px;
  display: inline-block;
  color: #6338d1;
  font-size: 0.78rem;
}

.brand-telegram-channel .brand-channel-copy b {
  color: #48d79b;
}

.brand-web-preview {
  width: 176px;
  height: 330px;
  position: absolute;
  right: 24px;
  bottom: -34px;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #f4f0fb;
  box-shadow: 0 24px 44px rgba(70, 46, 113, 0.2);
  transform: rotate(2deg);
}

.brand-web-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.brand-telegram-preview {
  width: calc(100% - 48px);
  min-height: 258px;
  position: absolute;
  right: 24px;
  bottom: -20px;
  padding: 18px 14px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  background: rgba(16, 22, 28, 0.95);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.38);
}

.brand-chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-chat-head img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand-chat-head span {
  display: grid;
  line-height: 1.05;
}

.brand-chat-head strong {
  font-size: 0.72rem;
}

.brand-chat-head small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.56rem;
}

.brand-chat-head i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
  background: #48d79b;
}

.brand-chat-bubble {
  width: fit-content;
  max-width: 88%;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 13px;
  font-size: 0.62rem;
  line-height: 1.45;
}

.brand-chat-user {
  margin-left: auto;
  border-radius: 13px 13px 4px 13px;
  background: #35c985;
  color: #07120d;
}

.brand-chat-mira {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px 13px 13px 4px;
  background: #202832;
  color: rgba(255, 255, 255, 0.78);
}

.brand-footer {
  padding-top: 30px;
}

.web-landing .final-cta h2,
.web-landing .final-cta p {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Calm product motion. Content remains visible when JavaScript is unavailable. */

html.mira-motion-ready .mira-reveal {
  opacity: 0.82;
  translate: 0 24px;
  filter: blur(1px);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.mira-motion-ready .mira-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

html.mira-motion-ready .brand-web-preview,
html.mira-motion-ready .brand-product-preview,
html.mira-motion-ready .brand-telegram-preview,
html.mira-motion-ready .web-proof-main,
html.mira-motion-ready .web-proof-photo {
  animation: mira-product-float 6.4s ease-in-out infinite;
}

html.mira-motion-ready .brand-telegram-preview,
html.mira-motion-ready .brand-telegram-shot-info,
html.mira-motion-ready .web-proof-photo {
  animation-delay: -3.1s;
}

html.mira-motion-ready .web-proof-glow {
  animation: mira-glow-breathe 7.5s ease-in-out infinite;
}

@keyframes mira-product-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes mira-glow-breathe {
  0%,
  100% {
    opacity: 0.72;
    scale: 0.98;
  }

  50% {
    opacity: 1;
    scale: 1.025;
  }
}

/* Telegram uses the same shell but keeps its long-form dark body. */

.telegram-global-shell .mira-shell-actions .lang-switcher {
  min-width: max-content;
}

.telegram-global-shell .lang-switcher-buttons {
  min-height: 40px;
  padding: 3px;
  border: 1px solid rgba(71, 47, 113, 0.14);
  border-radius: 13px;
  background: #f3effb;
  box-shadow: none;
}

.telegram-global-shell .lang-switcher-btn {
  min-width: 34px;
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #776f83;
  font-size: 0.63rem;
  font-weight: 800;
}

.telegram-global-shell .lang-switcher-btn.is-active {
  background: #fff;
  box-shadow: 0 5px 14px rgba(67, 44, 105, 0.1);
  color: #6338d1;
}

.telegram-global-shell .nav-burger {
  border-color: rgba(71, 47, 113, 0.14) !important;
  background: #fff !important;
  color: #463a58 !important;
}

.telegram-global-shell .mira-shell-telegram-cta {
  min-height: 40px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #8765ed, #6639d5);
  box-shadow: 0 12px 25px rgba(105, 61, 213, 0.22);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .mira-page-nav {
    display: none;
  }

  .brand-stage {
    grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
    gap: 36px;
  }
}

@media (max-width: 960px) {
  header.mira-global-header {
    width: auto;
    min-height: 64px;
    margin: 0;
    padding: 8px 12px;
    top: 0;
    right: 8px;
    left: 8px;
    border-radius: 0 0 19px 19px;
  }

  .brand-hub header.mira-global-header,
  .web-landing header.mira-global-header,
  .legal-center header.mira-global-header {
    width: min(calc(100% - 16px), 1280px);
    margin-right: auto;
    margin-left: auto;
    right: auto;
    left: auto;
  }

  .brand-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 76px;
  }

  .brand-message {
    text-align: center;
  }

  .brand-message h1,
  .brand-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .brand-pill-row {
    justify-content: center;
  }

  .brand-channel-grid {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .brand-choice-label {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .mira-global-header .button,
  .telegram-global-shell .mira-shell-telegram-cta {
    display: none;
  }

  .mira-shell-actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .mira-global-brand > span {
    display: none;
  }

  .mira-global-brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .mira-product-switch a {
    min-height: 40px;
    padding: 6px 9px;
    font-size: 0.67rem;
  }

  .mira-global-header .lang-toggle {
    width: 40px;
    height: 40px;
  }

  .brand-stage {
    width: min(calc(100% - 24px), 1280px);
    padding-top: 58px;
  }

  .brand-message h1 {
    font-size: clamp(2.55rem, 12vw, 3.65rem);
    line-height: 1;
  }

  .brand-channel-grid {
    grid-template-columns: 1fr;
  }

  .brand-channel-card {
    min-height: 510px;
  }

  .brand-web-preview {
    width: 190px;
  }

  .web-landing .price-grid article {
    min-height: 215px;
    padding: 26px;
  }

  .telegram-global-shell .lang-switcher {
    display: none;
  }

  .telegram-global-shell .nav-burger {
    display: inline-flex !important;
  }
}

@media (max-width: 390px) {
  header.mira-global-header {
    gap: 7px;
    padding-inline: 8px;
  }

  .mira-product-switch {
    padding: 3px;
  }

  .mira-product-switch a {
    padding-inline: 7px;
    font-size: 0.62rem;
  }

  .mira-global-header .lang-toggle {
    width: 40px;
    height: 40px;
  }

  .brand-pill-row {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .brand-pill-row > span {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mira-motion-ready .mira-reveal,
  html.mira-motion-ready .mira-reveal.is-visible {
    opacity: 1;
    translate: none;
    filter: none;
    transition: none;
  }

  html.mira-motion-ready .brand-web-preview,
  html.mira-motion-ready .brand-product-preview,
  html.mira-motion-ready .brand-telegram-preview,
  html.mira-motion-ready .brand-telegram-shot-info,
  html.mira-motion-ready .web-proof-main,
  html.mira-motion-ready .web-proof-photo,
  html.mira-motion-ready .web-proof-glow {
    animation: none;
  }

  .brand-channel-card {
    transition: none;
  }
}

/* Telegram keeps its original dark landing. Only the shared navigation adapts. */

header.telegram-global-shell.mira-global-header {
  box-sizing: border-box;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 8px max(22px, calc((100% - 1376px) / 2));
  position: sticky;
  top: 0;
  right: auto;
  left: auto;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(11, 15, 19, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  color: #fff;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

html.telegram-page {
  scroll-padding-top: 84px;
}

.telegram-global-shell .mira-global-brand {
  color: #fff;
}

.telegram-global-shell .mira-global-brand img {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 24px rgba(61, 206, 137, 0.16);
}

.telegram-global-shell .mira-global-brand b {
  color: #fff;
}

.telegram-global-shell .mira-global-brand small {
  color: rgba(255, 255, 255, 0.55);
}

.telegram-global-shell .mira-product-switch {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
}

.telegram-global-shell .mira-product-switch a {
  color: rgba(255, 255, 255, 0.62);
}

.telegram-global-shell .mira-product-switch a:hover {
  color: #fff;
}

.telegram-global-shell .mira-product-switch a.is-active,
.telegram-global-shell .mira-product-switch a[aria-current="page"] {
  background: rgba(58, 205, 137, 0.14);
  box-shadow: inset 0 0 0 1px rgba(67, 217, 151, 0.2);
  color: #51dea1;
}

.telegram-global-shell .mira-page-nav a {
  color: rgba(255, 255, 255, 0.63);
}

.telegram-global-shell .mira-page-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.telegram-global-shell .lang-switcher-buttons {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.telegram-global-shell .lang-switcher-btn {
  color: rgba(255, 255, 255, 0.55);
}

.telegram-global-shell .lang-switcher-btn.is-active {
  background: #42d392;
  box-shadow: 0 7px 18px rgba(45, 190, 126, 0.22);
  color: #06110c;
}

.telegram-global-shell .nav-burger {
  display: none !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
}

.telegram-global-shell .mira-shell-telegram-cta {
  background: linear-gradient(135deg, #50d99d, #2fbd7d);
  box-shadow: 0 12px 28px rgba(45, 190, 126, 0.24);
  color: #06110c;
}

@media (max-width: 1120px) {
  .telegram-global-shell .nav-burger {
    display: inline-flex !important;
  }
}

@media (max-width: 960px) {
  html.telegram-page body {
    padding-top: 75px;
  }

  header.telegram-global-shell.mira-global-header {
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 8px 12px;
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  header.telegram-global-shell.mira-global-header {
    gap: 7px;
    padding-inline: 9px;
  }

  .telegram-global-shell .mira-product-switch {
    padding: 3px;
  }

  .telegram-global-shell .mira-product-switch a {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 0.63rem;
  }
}

@media (max-width: 359px) {
  .telegram-global-shell .mira-product-switch a {
    padding-inline: 6px;
    font-size: 0.58rem;
  }
}
