:root {
  --bg: #08111f;
  --bg-deep: #050a14;
  --surface: rgba(13, 24, 42, 0.72);
  --surface-strong: rgba(18, 32, 56, 0.92);
  --surface-soft: rgba(116, 97, 255, 0.12);
  --border: rgba(178, 197, 255, 0.16);
  --text: #f5f7ff;
  --muted: #aeb7d4;
  --accent: #6c3bff;
  --accent-2: #8b5cff;
  --cyan: #69d4ff;
  --success: #83f5c8;
  --shadow: 0 32px 80px rgba(2, 6, 23, 0.45);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Bahnschrift, "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(108, 59, 255, 0.3), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(105, 212, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #0d1529 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

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

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

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

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.7;
  pointer-events: none;
}

.bg-orb-1 {
  top: 90px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: rgba(108, 59, 255, 0.34);
}

.bg-orb-2 {
  top: 760px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: rgba(105, 212, 255, 0.18);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 88%);
  pointer-events: none;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(105, 212, 255, 0.18), rgba(108, 59, 255, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(108, 59, 255, 0.25);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 54px;
  align-items: center;
  padding-top: 44px;
  min-height: calc(100vh - 94px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe6ff;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.telegram-panel h2,
.trust-copy h2,
.cta-card h2 {
  margin: 18px 0 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6vw, 6.4rem);
}

.lead,
.section-heading p,
.trust-copy p,
.telegram-panel p,
.cta-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero .lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 38px rgba(108, 59, 255, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:focus-visible,
.btn-primary:focus-visible,
.header-cta:focus-visible,
.modal-close:focus-visible,
.field input:focus-visible {
  outline: 2px solid rgba(105, 212, 255, 0.9);
  outline-offset: 3px;
}

.hero-points,
.interface-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.hero-points li,
.interface-list li {
  position: relative;
  padding-left: 24px;
  color: #dfe8ff;
}

.hero-points li::before,
.interface-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--accent-2));
  box-shadow: 0 0 18px rgba(105, 212, 255, 0.65);
}

.hero-stats,
.benefit-band,
.workflow-grid,
.problem-grid,
.benefits-grid,
.features-grid,
.audience-list,
.trust-notes {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.hero-stats article,
.metric-card,
.floating-card,
.trust-notes article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 28, 0.65);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-stats article,
.metric-card {
  padding: 20px;
  border-radius: 22px;
}

.hero-stats strong,
.metric-card strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.hero-stats span,
.metric-card span,
.floating-card span,
.trust-notes span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

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

.phone-card,
.glass-card,
.showcase-card,
.telegram-panel,
.cta-card,
.trust-card {
  background: linear-gradient(180deg, rgba(18, 32, 56, 0.9), rgba(9, 18, 33, 0.75));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.phone-card {
  position: relative;
  width: min(100%, 450px);
  padding: 16px;
  border-radius: 40px;
  transform: perspective(1200px) rotateY(-10deg) rotateX(6deg);
}

.phone-topbar {
  display: flex;
  gap: 8px;
  padding: 0 0 14px 6px;
}

.phone-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.phone-card img {
  width: 100%;
  border-radius: 28px;
}

.floating-card {
  position: absolute;
  max-width: 240px;
  padding: 18px 20px;
  border-radius: 20px;
  animation: bob 5.5s ease-in-out infinite;
}

.floating-card strong,
.trust-notes strong {
  display: block;
  font-size: 1rem;
}

.floating-card-top {
  top: 70px;
  left: 10px;
}

.floating-card-bottom {
  right: 0;
  bottom: 105px;
  animation-delay: 1.1s;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.telegram-panel h2,
.trust-copy h2,
.cta-card h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.glass-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.problem-grid,
.benefits-grid,
.features-grid,
.audience-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-mark,
.step-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(108, 59, 255, 0.7), rgba(105, 212, 255, 0.22));
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.problem-card h3,
.step-card h3,
.feature-card h3,
.benefits-grid h3,
.audience-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.problem-card p,
.step-card p,
.feature-card p,
.benefits-grid p,
.audience-card p,
.trust-notes article {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 59, 255, 0.22), transparent 70%);
}

.flow-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dfe7ff;
}

.flow-line i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(105, 212, 255, 0.2), rgba(108, 59, 255, 0.72));
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  padding: 14px;
  border-radius: 26px;
}

.showcase-card img {
  width: 100%;
  border-radius: 20px;
}

.showcase-card figcaption {
  margin-top: 14px;
  color: #dfe7ff;
}

.showcase-large {
  grid-column: span 2;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 24px 64px 24px 24px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cyan);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.65;
}

.benefit-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 212, 255, 0.18), transparent 70%);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.telegram-panel {
  border-radius: 30px;
  padding: 28px;
}

.telegram-panel img {
  margin-top: 28px;
  border-radius: 24px;
}

.trust-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  padding: 32px;
  border-radius: 34px;
}

.trust-notes {
  align-content: start;
  grid-template-columns: 1fr;
}

.trust-notes article {
  padding: 24px;
  border-radius: 22px;
}

.cta-section {
  padding-bottom: 80px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: 34px;
  text-align: center;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 59, 255, 0.26), transparent 70%);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card .eyebrow,
.cta-card h2,
.cta-card p,
.cta-card .hero-actions {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.cta-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.76);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 28px;
}

.modal-dialog h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.modal-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.demo-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #dfe7ff;
  font-weight: 600;
}

.field input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.field input::placeholder {
  color: #8090b8;
}

.field input:focus {
  border-color: rgba(105, 212, 255, 0.45);
}

.demo-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: #ff9eb8;
}

body.modal-open {
  overflow: hidden;
}

.form-consent {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.form-consent a,
.legal-page a {
  color: var(--accent-2);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 44px;
  color: var(--muted);
}

.footer-meta {
  display: grid;
  gap: 10px;
}

.footer-meta p,
.footer-legal p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
  width: fit-content;
  color: #dfe7ff;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-header {
  padding-bottom: 0;
}

.legal-page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  padding: 56px 0 96px;
  color: var(--text);
  line-height: 1.7;
}

.legal-page h1 {
  margin: 0 0 32px;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.legal-page h2 {
  margin: 40px 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.cookie-notice {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 48px), 720px);
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-notice button {
  min-width: 110px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-2);
  color: white;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

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

@media (max-width: 1100px) {
  .hero,
  .features-layout,
  .split-section,
  .trust-card {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 560px;
  }

  .site-header {
    flex-wrap: wrap;
  }
}

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

  .hero-points,
  .interface-list,
  .problem-grid,
  .benefits-grid,
  .features-grid,
  .audience-list,
  .faq-grid,
  .benefit-band,
  .hero-stats,
  .showcase-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .showcase-large {
    grid-column: span 1;
  }

  .flow-line {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .flow-line i {
    width: 1px;
    min-height: 18px;
  }

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

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

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    gap: 16px;
    padding-top: 16px;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    gap: 28px;
  }

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

  .phone-card {
    width: 100%;
    padding: 12px;
    border-radius: 28px;
    transform: none;
  }

  .phone-card img {
    border-radius: 22px;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 160px;
  }

  .floating-card {
    max-width: 220px;
    padding: 16px;
  }

  .floating-card-top {
    top: auto;
    left: 0;
    bottom: 72px;
  }

  .floating-card-bottom {
    right: 0;
    bottom: 0;
  }

  .glass-card,
  .telegram-panel,
  .cta-card,
  .trust-card,
  .modal-dialog {
    padding: 20px;
    border-radius: 24px;
  }

  .section {
    padding: 30px 0;
  }

  .cta-section {
    padding-bottom: 52px;
  }

  .legal-page {
    width: min(calc(100% - 20px), 860px);
    padding: 36px 0 72px;
  }

  .cookie-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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