:root {
  --bg:        #060a14;
  --surface:   rgba(255, 255, 255, 0.04);
  --stroke:    rgba(255, 255, 255, 0.08);
  --stroke-hi: rgba(255, 255, 255, 0.16);
  --text:      #eef2ff;
  --muted:     #7c8db0;
  --teal:      #00d4b4;
  --blue:      #38bdf8;
  --violet:    #a78bfa;
  --warn-bg:   rgba(251, 191, 36, 0.09);
  --warn-str:  rgba(251, 191, 36, 0.32);
  --r:         20px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg);
  overflow-x: hidden;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.bg-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.62;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.bg-aurora__blob--1 {
  width: min(130vw, 780px);
  height: min(130vw, 780px);
  background: radial-gradient(circle at 35% 35%, rgba(0, 212, 180, 0.75) 0%, rgba(0, 212, 180, 0.12) 48%, transparent 72%);
  top: -20%;
  left: -28%;
  animation: aurora-drift 21s ease-in-out infinite;
  animation-delay: -2s;
}

.bg-aurora__blob--2 {
  width: min(120vw, 700px);
  height: min(120vw, 700px);
  background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, 0.6) 0%, rgba(167, 139, 250, 0.22) 52%, transparent 72%);
  top: 28%;
  right: -30%;
  animation: aurora-drift-alt 26s ease-in-out infinite;
  animation-delay: -9s;
}

.bg-aurora__blob--3 {
  width: min(115vw, 620px);
  height: min(115vw, 620px);
  background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.5) 0%, rgba(0, 212, 180, 0.18) 58%, transparent 72%);
  bottom: -25%;
  left: 0;
  animation: aurora-drift-slow 18s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes aurora-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.58; }
  33%      { transform: translate3d(14vw, 6vh, 0) scale(1.12); opacity: 0.72; }
  66%      { transform: translate3d(-8vw, 12vh, 0) scale(0.92); opacity: 0.62; }
}

@keyframes aurora-drift-alt {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  35%      { transform: translate3d(-16vw, -10vh, 0) scale(1.1); opacity: 0.7; }
  70%      { transform: translate3d(10vw, -6vh, 0) scale(0.94); opacity: 0.58; }
}

@keyframes aurora-drift-slow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  50%      { transform: translate3d(12vw, -14vh, 0) scale(1.08); opacity: 0.68; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora__blob {
    animation: none;
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
  }
}

/* Шум сверху — ослаблен, чтобы не «глушил» движение цвета */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--teal); }

/* ---- HEADER ---- */
header { margin-bottom: 2.75rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,212,180,.3);
  background: rgba(0,212,180,.07);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

h1 {
  font-family: Syne, Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #eef2ff 30%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0;
}
.lead strong { color: #c7d2fe; -webkit-text-fill-color: #c7d2fe; }

/* ---- QUICK LINKS ---- */
.quick {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0;
}
@media (min-width: 540px) { .quick { grid-template-columns: 1fr 1fr; } }

.quick a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.quick a:hover {
  border-color: var(--stroke-hi);
  box-shadow: 0 0 28px rgba(0,212,180,.12), 0 8px 32px rgba(0,0,0,.35);
  transform: translateY(-2px);
  color: var(--text);
}
.quick a .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick a:first-child .icon { background: rgba(0,212,180,.15); color: var(--teal); }
.quick a:last-child  .icon { background: rgba(56,189,248,.15); color: var(--blue); }
.quick a .info { display: flex; flex-direction: column; gap: 0.1rem; }
.quick a .info span { font-size: 0.78rem; font-weight: 400; color: var(--muted); }

/* ---- CALLOUT ---- */
.callout {
  display: flex;
  gap: 0.85rem;
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r);
  border: 1px solid var(--warn-str);
  background: var(--warn-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.callout-icon {
  flex-shrink: 0;
  margin-top: .15rem;
  color: #fbbf24;
}
.callout p { margin: 0; font-size: 0.93rem; color: #d4c68e; }
.callout strong { color: #fcd34d; }

/* ---- SECTION HEADING ---- */
h2 {
  font-family: Syne, Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---- STEPS ---- */
.steps-wrap { position: relative; }

.steps-wrap::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 2.8rem;
  bottom: 2rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(0,212,180,.4), rgba(167,139,250,.15), transparent);
  pointer-events: none;
}

ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 3.5rem;
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
  opacity: 0;
  transform: translateY(20px);
}
ol.steps > li.visible {
  animation: fadeUp .45s cubic-bezier(.22,.68,0,1.2) forwards;
}
ol.steps > li.visible:nth-child(1) { animation-delay: 0s; }
ol.steps > li.visible:nth-child(2) { animation-delay: 0.08s; }
ol.steps > li.visible:nth-child(3) { animation-delay: 0.16s; }
ol.steps > li.visible:nth-child(4) { animation-delay: 0.24s; }
ol.steps > li:hover {
  border-color: var(--stroke-hi);
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: Syne, sans-serif;
  color: #060a14;
  background: linear-gradient(135deg, var(--teal) 0%, #5eead4 100%);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,212,180,.4);
}

ol.steps p { margin: 0 0 0.6rem; }
ol.steps p:last-child { margin-bottom: 0; }

.step-hint { margin-top: .4rem; font-size: .91rem; color: var(--muted); }

/* ---- FIGURE (screenshots) ---- */
.figure {
  margin: 1.15rem auto 0;
  max-width: 65%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 0 0 7px rgba(255,255,255,.04),
    0 24px 60px rgba(0,0,0,.7),
    0 0 40px rgba(0,212,180,.06);
  background: #000;
  transition: box-shadow .25s, transform .2s;
}
.figure:hover {
  transform: scale(1.015);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.15),
    0 0 0 7px rgba(255,255,255,.06),
    0 32px 80px rgba(0,0,0,.75),
    0 0 60px rgba(0,212,180,.12);
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
@media (max-width: 480px) { .figure { max-width: 82%; } }

.caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.65rem;
  text-align: center;
}

/* ---- URL ROW ---- */
.url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

code.url {
  font-family: "Cascadia Code", "Fira Code", ui-monospace, monospace;
  font-size: 0.86rem;
  padding: 0.35rem 0.6rem;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--teal);
  word-break: break-all;
}
code.url.url-sm { padding: 0.12rem 0.4rem; font-size: .82rem; }

button.copy {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0,212,180,.3);
  background: rgba(0,212,180,.08);
  color: var(--teal);
  transition: background .15s, border-color .15s;
}
button.copy:hover { background: rgba(0,212,180,.15); border-color: rgba(0,212,180,.5); }
button.copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- FAQ ---- */
.faq { margin-top: 2.5rem; }

.faq details {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  margin-bottom: 0.5rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color .2s;
}
.faq details:hover { border-color: var(--stroke-hi); }
.faq details[open] { border-color: rgba(0,212,180,.22); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  /* data URI: допустимо в CSS при style-src 'self' */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237c8db0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] summary { color: var(--teal); }

.faq details > p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  font-size: 0.91rem;
  color: var(--muted);
}

/* ---- FOOTER ---- */
footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-hero > * {
  opacity: 0;
  animation: fadeUp .5s cubic-bezier(.22,.68,0,1.2) forwards;
}
.anim-hero > *:nth-child(1) { animation-delay: .05s; }
.anim-hero > *:nth-child(2) { animation-delay: .15s; }
.anim-hero > *:nth-child(3) { animation-delay: .25s; }
.anim-hero > *:nth-child(4) { animation-delay: .35s; }

.anim-in {
  opacity: 0;
  animation: fadeUp .45s cubic-bezier(.22,.68,0,1.2) forwards;
}
.anim-in.d1 { animation-delay: .1s; }
.anim-in.d2 { animation-delay: .2s; }
.anim-in.d3 { animation-delay: .3s; }

/* ---- BRAND ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.9;
}
.brand-name {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ---- CONTACT CARD ---- */
.contact-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(0,212,180,.08), rgba(56,189,248,.06));
  border: 1px solid rgba(0,212,180,.25);
  border-radius: var(--r);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 180, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-info { flex: 1; min-width: 120px; }
.contact-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.contact-sub  { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: rgba(0,136,204,.2);
  border: 1px solid rgba(0,136,204,.35);
  border-radius: 10px;
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.contact-btn:hover {
  background: rgba(0,136,204,.32);
  border-color: rgba(0,136,204,.55);
  color: #bae6fd;
  transform: translateY(-1px);
}
