/* Rayves — сайт для скачивания. Цвета взяты из приложения и логотипа. */

@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap;
  src: url(fonts/unbounded-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap;
  src: url(fonts/unbounded-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url(fonts/unbounded-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url(fonts/unbounded-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url(fonts/golos-text-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url(fonts/golos-text-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap;
  src: url(fonts/golos-text-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap;
  src: url(fonts/golos-text-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url(fonts/golos-text-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url(fonts/golos-text-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --night: #0b0a1c;      /* фон приложения */
  --ink: #17133d;        /* поверхности */
  --violet: #7c4dff;     /* основной */
  --violet-deep: #5b2eea;
  --lilac: #a866ff;      /* свечение */
  --mist: #b8b1e6;       /* второстепенный текст */
  --paper: #f3f0ff;      /* светлая полоса для продавцов */
  --text: #f4f2ff;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden; /* свечение за кнопкой не даёт горизонтальной прокрутки */
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font: 800 19px/1 var(--display); letter-spacing: .04em; }
.top nav { display: flex; gap: 22px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--mist); }
.top nav a:hover { color: var(--text); }

/* ---------- первый экран ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 40px;
  padding: 48px 0 88px;
}
.hero::before { /* свечение, как фон в приложении */
  content: ""; position: absolute; inset: -120px -20vw auto auto; width: 70vw; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 77, 255, .28), transparent 70%);
  pointer-events: none;
}
h1 {
  font: 800 clamp(40px, 6.2vw, 76px)/1.02 var(--display);
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 11ch;
}
.lead { font-size: 19px; color: var(--mist); max-width: 33em; margin: 0 0 34px; }

.get { display: flex; flex-wrap: wrap; gap: 14px; }
.dl {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px 15px 18px; border-radius: 16px;
  text-decoration: none; min-width: 0;
  border: 1.5px solid rgba(168, 102, 255, .45);
  color: var(--text);
  transition: transform .15s ease, background-color .15s ease;
}
.dl:hover { transform: translateY(-1px); background: rgba(124, 77, 255, .12); }
.dl.main { background: var(--violet); border-color: var(--violet); box-shadow: 0 10px 34px -12px rgba(124, 77, 255, .9); }
.dl.main:hover { background: #8a5fff; }
.dl svg { width: 30px; height: 30px; flex: none; }
.dl b { display: block; font-weight: 600; font-size: 17px; line-height: 1.25; }
.dl small { display: block; font-size: 13.5px; color: rgba(244, 242, 255, .72); line-height: 1.3; }
.alt { margin: 16px 0 0; font-size: 14.5px; color: var(--mist); }
.alt a { color: var(--text); }
.soon { margin: 30px 0 0; font-size: 14.5px; color: var(--mist); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soon span { border: 1px dashed rgba(184, 177, 230, .4); border-radius: 999px; padding: 4px 12px; }

/* Кнопка подключения — главное, что делает приложение */
.power { justify-self: center; position: relative; width: min(420px, 82vw); aspect-ratio: 1; }
.power svg { width: 100%; height: 100%; overflow: visible; }
.power .halo { transition: opacity 1.2s ease; opacity: 0; }
.power .orbit { stroke-dasharray: 760; stroke-dashoffset: 760; animation: orbit 1.6s cubic-bezier(.6, 0, .2, 1) .25s forwards; }
.power .state {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 500; font-size: 15px; color: var(--mist);
}
.power .dot { width: 9px; height: 9px; border-radius: 50%; background: #5d567f; transition: background-color .4s ease, box-shadow .4s ease; }
.power.on .halo { opacity: 1; }
.power.on .dot { background: #46e0a0; box-shadow: 0 0 12px #46e0a0; }
@keyframes orbit { to { stroke-dashoffset: 0; } }

/* ---------- как начать ---------- */
section { padding: 84px 0; }
h2 { font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 14px; }
.intro { color: var(--mist); max-width: 40em; margin: 0 0 44px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font: 800 18px/1 var(--display); color: var(--night); background: var(--lilac); margin-bottom: 18px;
}
.steps li:not(:last-child)::after { /* линия между шагами */
  content: ""; position: absolute; top: 23px; left: 58px; right: 12px; height: 2px;
  background: linear-gradient(90deg, rgba(168, 102, 255, .7), rgba(168, 102, 255, .1));
}
.steps h3 { font: 600 19px/1.3 var(--body); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--mist); font-size: 16px; }

/* ---------- что умеет ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 0; }
.features div { padding: 22px 0; border-top: 1px solid rgba(184, 177, 230, .16); }
.features dt { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--mist); font-size: 16px; }

/* ---------- для продавцов ---------- */
.partner { background: var(--paper); color: #1b1640; border-radius: 34px 34px 0 0; padding: 88px 0 96px; }
.partner .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.partner h2 { color: #1b1640; }
.partner .intro { color: #4a4377; margin-bottom: 30px; }
.partner ul { margin: 0; padding: 0; list-style: none; }
.partner li { padding: 11px 0 11px 32px; position: relative; border-bottom: 1px solid #dcd5ff; }
.partner li::before { /* галочка */
  content: ""; position: absolute; left: 2px; top: 17px; width: 13px; height: 7px;
  border-left: 2.5px solid var(--violet-deep); border-bottom: 2.5px solid var(--violet-deep); transform: rotate(-45deg);
}
.price { background: #fff; border-radius: 24px; padding: 30px; box-shadow: 0 24px 60px -30px rgba(43, 22, 140, .45); }
.price h3 { font: 600 20px/1.3 var(--display); margin: 0 0 6px; }
.price .free { font-size: 16px; color: #4a4377; margin: 0 0 18px; }
.price table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price th, .price td { text-align: left; padding: 10px 0; border-bottom: 1px solid #ebe6ff; }
.price th { font-weight: 500; color: #6a6396; font-size: 14px; }
.price td:last-child, .price th:last-child { text-align: right; }
.price .note { font-size: 14px; color: #6a6396; margin: 16px 0 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px; font-weight: 600; text-decoration: none;
  background: var(--violet-deep); color: #fff; transition: background-color .15s ease;
}
.btn:hover { background: var(--violet); }
.btn.ghost { background: transparent; color: var(--violet-deep); border: 1.5px solid #cfc6ff; }
.btn.ghost:hover { background: #ebe6ff; }
.partner .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- помощь ---------- */
.help { background: var(--paper); color: #1b1640; padding: 0 0 96px; }
.help h2 { color: #1b1640; }
.help details { border-top: 1px solid #dcd5ff; padding: 6px 0; max-width: 820px; }
.help details:last-of-type { border-bottom: 1px solid #dcd5ff; }
.help summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; font: 600 22px/1 var(--display); color: var(--violet-deep); transition: transform .2s ease; }
.help details[open] summary::after { transform: rotate(45deg); }
.help details p { margin: 0 0 16px; color: #4a4377; max-width: 40em; }

footer { background: var(--paper); color: #6a6396; padding: 0 0 40px; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #dcd5ff; padding-top: 24px; }
footer a { color: var(--violet-deep); font-weight: 500; }

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .top nav a.hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding: 16px 0 64px; gap: 8px; }
  .power { order: -1; width: min(290px, 72vw); }
  h1 { max-width: none; }
  .lead { font-size: 17px; }
  .dl { width: 100%; }
  section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 52px; bottom: -22px; left: 22px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(168, 102, 255, .7), rgba(168, 102, 255, .1)); }
  .features { grid-template-columns: 1fr; }
  .partner { padding: 64px 0 72px; border-radius: 26px 26px 0 0; }
  .partner .grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .power .orbit { animation: none; stroke-dashoffset: 0; }
  .power .halo, .power .dot, .dl, .btn { transition: none; }
}
