:root {
  --bg: #0e1220;
  --bg-2: #141a2b;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #aeb8cc;
  --primary: #6680ff;
  --primary-2: #8ba0ff;
  --green: #6ee7b7;
  --yellow: #ffd166;
  --red: #ff7d9c;
  font-family: "Rubik", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(102, 128, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 12% 28%, rgba(110, 231, 183, 0.1), transparent 24rem),
    linear-gradient(180deg, #0e1220 0%, #111827 52%, #0e1220 100%);
}

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

button {
  font: inherit;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(11, 15, 27, 0.72);
  backdrop-filter: blur(20px);
}

.brand,
.header-actions,
.nav,
.channel-link,
.primary-action,
.secondary-action,
.telegram-button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  width: max-content;
}

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 0.75rem 1.6rem rgba(102, 128, 255, 0.28));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav {
  gap: 0.2rem;
  justify-self: center;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.nav a {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.header-actions {
  justify-self: end;
  gap: 0.6rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem;
  background: rgba(255, 255, 255, 0.055);
}

.language-switch button {
  min-width: 2.45rem;
  height: 2.05rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-switch button.is-active {
  color: white;
  background: rgba(102, 128, 255, 0.42);
}

.channel-link {
  gap: 0.45rem;
  min-height: 2.65rem;
  border: 1px solid rgba(102, 128, 255, 0.25);
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  color: #dfe5ff;
  background: rgba(102, 128, 255, 0.11);
  font-size: 0.88rem;
  font-weight: 800;
}

.header-download,
.primary-action,
.secondary-action,
.telegram-button {
  min-height: 3rem;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.7rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.header-download,
.primary-action,
.telegram-button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--primary), #4864f4);
  box-shadow: 0 1rem 2.3rem rgba(102, 128, 255, 0.28);
}

.header-download:hover,
.primary-action:hover,
.telegram-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 1.2rem 2.8rem rgba(102, 128, 255, 0.36);
}

.primary-action:disabled,
.gated-download.is-locked {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2rem;
  align-items: center;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.1rem, 5vw, 5.5rem) 3rem;
  text-align: center;
}

.hero-content {
  max-width: 58rem;
  animation: fade-up 0.8s ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.85rem, 6.1vw, 5.65rem);
  line-height: 0.91;
  letter-spacing: 0;
}

.lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 46rem;
  color: #dbe3f5;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero-actions {
  margin-top: 1.85rem;
}

.trust-row {
  margin-top: 1.5rem;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  min-height: 100%;
  opacity: 0.34;
  animation: fade-up 0.8s 0.12s ease both;
  pointer-events: none;
}

.logo-orbit {
  position: relative;
  display: grid;
  width: min(36rem, 78vw);
  aspect-ratio: 1;
  place-items: center;
}

.logo-orbit::before,
.logo-orbit::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.logo-orbit::before {
  inset: 2%;
  animation: spin 22s linear infinite;
  background:
    conic-gradient(from 90deg, transparent, rgba(102, 128, 255, 0.55), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.logo-orbit::after {
  inset: 15%;
  animation: pulse 3.2s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.035);
}

.logo-orbit img {
  position: relative;
  z-index: 1;
  width: 54%;
  filter: drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.45));
  animation: float 5s ease-in-out infinite;
}

.product-preview,
.section,
.download-section {
  padding: clamp(4rem, 7vw, 6.2rem) clamp(1.1rem, 5vw, 5.5rem);
}

.product-preview {
  padding-top: 1.2rem;
}

.app-window {
  max-width: 74rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(12, 17, 30, 0.92);
  box-shadow: 0 2.2rem 7rem rgba(0, 0, 0, 0.38);
  animation: fade-up 0.8s 0.2s ease both;
}

.window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--yellow);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.app-layout {
  display: grid;
  grid-template-columns: 15.5rem 1fr;
  min-height: 27rem;
}

.app-layout aside {
  border-right: 1px solid var(--line);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.035);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.mini-brand img {
  width: 2rem;
  height: 2rem;
}

.app-layout aside p {
  margin: 0 0 0.45rem;
  border-radius: 0.58rem;
  padding: 0.72rem 0.8rem;
  color: var(--muted);
  font-weight: 800;
}

.app-layout aside .active {
  background: rgba(102, 128, 255, 0.18);
  color: var(--text);
}

.app-main {
  padding: 1.4rem;
}

.app-head,
.terminal-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-head small,
.metric-grid small {
  display: block;
  color: var(--muted);
}

.app-head strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.65rem;
}

.app-head span {
  border: 1px solid rgba(110, 231, 183, 0.26);
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  color: var(--green);
  background: rgba(110, 231, 183, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.metric-grid article,
.terminal-card,
.feature-grid article,
.audience-list article,
.steps article,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
}

.metric-grid article {
  padding: 1rem;
}

.metric-grid b {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.45rem;
}

.terminal-card {
  margin-top: 1rem;
  overflow: hidden;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.terminal-card div {
  min-height: 3.4rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: #dbe3f5;
}

.terminal-card div:first-child {
  border-top: 0;
}

.terminal-card i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 1rem rgba(110, 231, 183, 0.55);
}

.terminal-card em {
  color: var(--primary-2);
  font-style: normal;
}

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

.section-heading h2,
.download-section h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.download-section p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.audience-list,
.steps {
  display: grid;
  gap: 1rem;
}

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

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

.feature-grid article,
.steps article {
  min-height: 15rem;
  padding: 1.2rem;
  animation: fade-up 0.7s ease both;
}

.feature-grid article:nth-child(2),
.steps article:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-grid article:nth-child(3),
.steps article:nth-child(3) {
  animation-delay: 0.16s;
}

.feature-grid article:nth-child(4),
.steps article:nth-child(4) {
  animation-delay: 0.24s;
}

.feature-grid article:hover,
.steps article:hover,
.audience-list article:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
}

.feature-grid article,
.steps article,
.audience-list article {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.feature-grid svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-2);
}

.feature-grid h3,
.steps h3 {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.18rem;
}

.feature-grid p,
.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.compact-section {
  background: rgba(255, 255, 255, 0.025);
}

.audience-list article {
  display: grid;
  min-height: 8rem;
  align-content: center;
  gap: 0.55rem;
  padding: 1.2rem;
}

.audience-list b {
  font-size: 1.4rem;
}

.audience-list span {
  color: var(--muted);
  line-height: 1.55;
}

.steps span {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(102, 128, 255, 0.16);
  color: var(--primary-2);
  font-weight: 900;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(102, 128, 255, 0.12), transparent 42%),
    var(--bg-2);
}

.download-panel {
  display: grid;
  justify-items: center;
  padding: 1.35rem;
  text-align: center;
}

.download-panel img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgba(102, 128, 255, 0.26));
}

.download-panel strong {
  margin-top: 0.9rem;
  font-size: 1.2rem;
}

.download-panel span {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.telegram-button {
  width: 100%;
  margin-bottom: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #27a7e7, #168bd0);
}

.telegram-button svg {
  flex: 0 0 auto;
}

.telegram-button span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #fff;
  line-height: 1.1;
}

.download-panel .telegram-button span {
  margin: 0;
  color: #fff;
}

.gated-download {
  width: 100%;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.1rem, 5vw, 5.5rem);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--text);
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #171d2f;
  padding: 1.35rem;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.48);
  animation: modal-in 0.24s ease both;
}

.modal-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.85rem;
  line-height: 1.08;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
}

.full {
  width: 100%;
}

.modal-note {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

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

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 100%;
  }

  .logo-orbit {
    width: min(20rem, 74vw);
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .brand img {
    width: 2.55rem;
    height: 2.55rem;
  }

  .brand small,
  .channel-link {
    display: none;
  }

  .language-switch {
    min-height: 2.45rem;
  }

  .language-switch button {
    min-width: 2.1rem;
    height: 1.9rem;
  }

  .header-download {
    min-height: 2.6rem;
    padding: 0.7rem 0.9rem;
  }

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

  .hero-actions {
    display: grid;
  }

  .feature-grid,
  .audience-list,
  .steps,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-layout aside {
    display: none;
  }

  .app-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-preview,
  .section,
  .download-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
