:root {
  --navy-0: #070D24;
  --navy-1: #0A1230;
  --navy-2: #13204A;
  --navy-3: #1A2A55;
  --ice: #9ED1FF;
  --ice-2: #8CCBFF;
  --blue: #3F84F2;
  --text: #EEF4FF;
  --muted: rgba(226, 236, 255, 0.68);
  --dim: rgba(226, 236, 255, 0.45);
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.09);
  --snow: #F2F7FF;
  --radius: 18px;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--navy-0) 0%, var(--navy-1) 30%, var(--navy-2) 70%, var(--navy-3) 100%);
  background-color: var(--navy-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

#sky-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--ice {
  color: #0A1A3D;
  background: linear-gradient(180deg, #B8E0FF 0%, var(--ice-2) 35%, var(--blue) 100%);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 10px 30px -8px rgba(79, 150, 255, .65), inset 0 1px 0 rgba(255,255,255,.7);
}
.btn--ice:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 36px -8px rgba(79, 150, 255, .8), inset 0 1px 0 rgba(255,255,255,.7); }
.btn--ice:active { transform: translateY(0); filter: brightness(.95); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--ghost { color: var(--muted); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.btn--soon { cursor: default; user-select: none; }
/* картинки и видео нельзя перетащить, выделить или сохранить через меню */
img, video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

.badge, .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ice);
}
.badge { padding: 7px 14px; border: 1px solid rgba(158, 209, 255, .35); border-radius: 999px; background: rgba(158, 209, 255, .08); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); background: rgba(7, 13, 36, .55); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; }
.hero__text { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(42px, 8vw, 88px); font-weight: 800; margin: 22px 0 18px; text-shadow: 0 6px 40px rgba(120, 170, 255, .25); }
.lead { max-width: 680px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cta { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.price-note { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.price-note strong { font-size: 18px; font-weight: 700; }
.price-note > span { font-size: 14px; color: var(--muted); }

/* ---------- Mac mockup ---------- */
.mac { position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1080px; }
.mac::before { content: ""; position: absolute; inset: 10% 5% -5%; background: radial-gradient(closest-side, rgba(90, 150, 255, .35), transparent); filter: blur(30px); z-index: -1; }
.mac__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 18px 18px 0 0; border: 10px solid #0B0F1C; border-bottom-width: 14px; background: #000;
  container-type: inline-size;
}
.mac__wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mac__chin { height: clamp(14px, 2.2vw, 26px); margin: 0 -1.5%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #C9CFDB, #8E96A8); }
.mac__stand { width: 20%; height: clamp(26px, 5vw, 60px); margin: 0 auto; background: linear-gradient(180deg, #A5ADBD, #6F788A); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }

.mac__menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 3.4%; min-height: 12px;
  display: flex; align-items: center; gap: 2.2%; padding: 0 1.6%;
  font-size: clamp(6px, 1.25cqw, 13px); color: #fff; background: rgba(10, 16, 40, .45); backdrop-filter: blur(8px);
}
.mac__apple { width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; opacity: .9; }
.mac__spacer { flex: 1; }
.mac__tray { height: 1.5em; width: auto; border-radius: 3px; }

.mac__window {
  position: absolute; left: 10%; top: 22%; width: 46%; height: 46%;
  background: #F4F7FC; border-radius: 1.2cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .45);
}
.mac__titlebar { display: flex; align-items: center; gap: .7cqw; height: 9%; padding: 0 1.6cqw; border-bottom: 1px solid #E3E7EF; color: #4A5468; font-size: clamp(6px, 1.15cqw, 13px); font-weight: 600; }
.mac__titlebar i { width: 1cqw; height: 1cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #FF5F57; }
.mac__titlebar i:nth-child(2) { background: #FEBC2E; }
.mac__titlebar i:nth-child(3) { background: #28C840; }
.mac__titlebar span { margin-left: auto; margin-right: auto; padding-right: 5cqw; }
.mac__doc { padding: 3cqw 3cqw; color: #1B2333; }
.mac__doc h3 { font-size: clamp(9px, 2.3cqw, 26px); margin-bottom: 2.4cqw; }
.mac__doc p { height: 1cqw; min-height: 4px; margin-bottom: 1.6cqw; border-radius: 99px; background: #DCE2EC; }
.mac__doc p.s { width: 70%; }
.mac__doc p.xs { width: 45%; }

/* snow caps: drawn by main.js to the exact size of each element — the snow sits on the top edge
   and drapes down over the rounded corners, following their curve */
.snowcap { position: absolute; left: 0; overflow: visible; fill: var(--snow); pointer-events: none; z-index: 2;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.9)) drop-shadow(0 2px 3px rgba(20, 40, 90, .28)); }
.mac__panel {
  position: absolute; right: 2.5%; top: 4.6%; width: 25%; height: auto; z-index: 3;
  filter: drop-shadow(0 2cqw 3cqw rgba(0, 0, 0, .5));
}
.mac__panel img { display: block; width: 100%; height: auto; border-radius: 1.4cqw; }
/* the four action tiles of the panel are real buttons */
.mac__act { position: absolute; padding: 0; border: 0; border-radius: 1cqw; background: transparent; cursor: pointer; transition: background .15s, box-shadow .15s; }
.mac__act:hover, .mac__act:focus-visible { background: rgba(158, 209, 255, .16); box-shadow: inset 0 0 0 1px rgba(158, 209, 255, .55); outline: none; }
.mac__act.is-hit { background: rgba(158, 209, 255, .38); }
.mac__screen:not(.is-snow) .mac__act[data-act="gnomes"], .mac__screen:not(.is-snow) .mac__act[data-act="plough"] { cursor: default; background: transparent; box-shadow: none; }
.mac__screen { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mac__window { cursor: grab; }

/* hint and shortcuts under the live desktop */
.play { max-width: 860px; margin: 26px auto 0; text-align: center; }
.play__hint { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.play__hint b { color: var(--text); }
.play__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(158, 209, 255, .32); transition: background .15s, border-color .15s, transform .12s; }
.chip:hover { background: rgba(158, 209, 255, .18); border-color: rgba(158, 209, 255, .7); }
.chip:active { transform: scale(.97); }
.mac__dock {
  position: absolute; left: 50%; bottom: 2.4%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1cqw; padding: .9cqw 1.4cqw;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255,255,255,.35); border-radius: 1.6cqw; backdrop-filter: blur(10px);
}
.mac__dock i, .mac__dock img { width: 4.2cqw; height: 4.2cqw; border-radius: 1cqw; background: var(--c); box-shadow: inset 0 -.4cqw 0 rgba(0,0,0,.12); }
.mac__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { margin: 12px 0 16px; }
.section__head p { font-size: 18px; color: var(--muted); }

.drift-divider { position: relative; z-index: 1; height: 70px; margin-top: -1px; background:
  radial-gradient(120px 40px at 8% 100%, rgba(242,247,255,.10), transparent 70%),
  radial-gradient(160px 46px at 32% 100%, rgba(242,247,255,.08), transparent 70%),
  radial-gradient(140px 40px at 58% 100%, rgba(242,247,255,.10), transparent 70%),
  radial-gradient(180px 50px at 86% 100%, rgba(242,247,255,.08), transparent 70%); }

/* video */
.video { position: relative; max-width: 1060px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); background: #050914; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 10; background: #050914; }
.video__poster { display: block; width: 100%; aspect-ratio: 16 / 9; }
.video__poster { position: relative; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.video__tag { position: absolute; left: 20px; top: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; border-radius: 999px; background: rgba(7, 13, 36, .7); border: 1px solid rgba(158, 209, 255, .3); color: var(--ice); }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 9vw, 96px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); }
.video__play svg { width: 42%; fill: #fff; margin-left: 6%; }

/* features */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); transition: border-color .2s, background .2s; }
.card:hover { border-color: rgba(158, 209, 255, .3); background: rgba(255,255,255,.07); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: rgba(158, 209, 255, .12); border: 1px solid rgba(158, 209, 255, .25); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ice); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

.effects { margin-top: clamp(56px, 8vw, 96px); }
.effects__title { text-align: center; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 28px; }
.effects__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.effect { margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--card-border); }
.effect img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.effect:hover img { transform: scale(1.05); }
.effect figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.effect b { font-size: 15px; }
.effect span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* panel screenshots — shown whole, at their real proportions */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.panel { margin: 0; display: flex; flex-direction: column; }
.panel__stage { flex: 1; }
.panel__stage { padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(110, 160, 255, .22), rgba(255,255,255,.03) 60%); border: 1px solid var(--card-border); display: grid; place-items: center; }
.panel__stage img { width: 100%; max-width: 330px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.panel figcaption { display: flex; flex-direction: column; gap: 6px; padding: 18px 6px 0; }
.panel figcaption b { font-size: 20px; }
.panel figcaption span:last-child { color: var(--muted); font-size: 15px; }
.chip { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ice); background: rgba(158, 209, 255, .1); border: 1px solid rgba(158, 209, 255, .25); }

/* pricing */
.pricing { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 940px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.pricing__main { display: flex; flex-direction: column; gap: 16px; }
.pricing__price { display: flex; align-items: baseline; gap: 12px; }
.pricing__price .price { font-size: clamp(56px, 7vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pricing__price small { font-size: 18px; color: var(--muted); }
.pricing__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.pricing__list li { position: relative; padding-left: 32px; color: var(--muted); }
.pricing__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(158, 209, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ED1FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* install & faq */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
.two-col h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 28px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #0A1A3D; background: linear-gradient(180deg, #B8E0FF, var(--blue)); }
.steps span { color: var(--muted); font-size: 15px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ice); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* final */
.final { position: relative; padding: clamp(80px, 10vw, 130px) 0 clamp(150px, 16vw, 210px); text-align: center; overflow: hidden; }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; }
.final__inner img { border-radius: 22px; filter: drop-shadow(0 16px 40px rgba(90, 150, 255, .45)); }
.cta--center { margin-top: 6px; }
.final__ground { position: absolute; left: -5%; right: -5%; bottom: -2px; height: clamp(90px, 12vw, 150px); background: var(--snow); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 -10px 40px rgba(200, 225, 255, .25); }

/* footer */
.footer { background: var(--snow); color: #1B2B4F; padding: 0 0 32px; margin-top: -1px; }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.logo--dark { font-size: 17px; }
.logo--dark img { width: 24px; height: 24px; border-radius: 6px; }
.footer nav { display: flex; gap: 22px; font-size: 14px; color: #3A4D78; }
.footer small { margin-left: auto; color: #5A6B90; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .panel figcaption b { font-size: 17px; }
}

@media (max-width: 860px) {
  .nav__links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 18px; background: #070D24; box-shadow: 0 20px 40px rgba(0,0,0,.5); border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-120%); opacity: 0; transition: transform .25s ease, opacity .2s ease; pointer-events: none; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: grid; gap: 6px; place-content: center; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0; }
  .nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .panels { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 36px; }
  .pricing, .two-col { grid-template-columns: 1fr; }
  .pricing__list { align-self: start; }
  .br-wide { display: none; }
}

@media (max-width: 600px) {
  .grid--3 { grid-template-columns: 1fr; }
  .effects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .effect img { aspect-ratio: 1 / 1; }
  .cta { flex-direction: column; gap: 14px; }
  .cta .btn { width: 100%; }
  .price-note { text-align: center; align-items: center; }
  .mac__screen { border-width: 5px; border-bottom-width: 8px; border-radius: 10px 10px 0 0; }
  .mac__panel { width: 32%; }
  .mac__window { width: 52%; left: 5%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer small { margin-left: 0; }
  .card { padding: 22px; }
}

@media (max-width: 400px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .effect img { transition: none; }
}
