/* Vesper — сайт. Тёмная тема в цветах логотипа: голубой и тёмно-синий (индиго). */
:root {
  --ink: #05060c;
  --ink-2: #0a0c18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --text: #eaedf7;
  --muted: #8a90a8;
  --faint: #5a6078;
  --blue: #4aa8ff;
  --blue-2: #cfe8ff;
  --indigo: #5b5cf0;
  --violet: #8f7dff;
  --on: #04142b;
  --err: #ff7f8a;
  --serif: "Instrument Serif", Cambria, Georgia, serif;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--ink); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(74, 168, 255, .3); }
.muted { color: var(--muted); }
em { font-style: italic; }
kbd { font: 600 12px/1 var(--sans); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--hair-2); background: var(--panel-2); }

/* фон: северное сияние и зерно */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 22s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; left: -15vw; top: -25vw; background: radial-gradient(circle, rgba(91, 92, 240, .55), transparent 65%); }
.aurora i:nth-child(2) { width: 55vw; height: 55vw; right: -20vw; top: -10vw; background: radial-gradient(circle, rgba(74, 168, 255, .45), transparent 65%); animation-delay: -7s; }
.aurora i:nth-child(3) { width: 50vw; height: 50vw; left: 25vw; top: 60vh; background: radial-gradient(circle, rgba(143, 125, 255, .25), transparent 65%); animation-delay: -14s; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--text);
  font: 500 14.5px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { border-color: rgba(74, 168, 255, .5); background: var(--panel-2); }
.btn:active { transform: scale(.98); }
.btn.primary {
  border: 0; color: var(--on); font-weight: 600;
  background: linear-gradient(135deg, #e6f3ff 0%, var(--blue) 55%, #3a8de8 100%);
  box-shadow: 0 10px 30px -10px rgba(74, 168, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.primary:hover { box-shadow: 0 14px 40px -10px rgba(74, 168, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .02); }
.btn.big { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn.disabled { opacity: .5; pointer-events: none; }

/* навигация */
.nav {
  position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; gap: 28px; padding: 10px 12px 10px 18px;
  border-radius: 18px; border: 1px solid transparent; transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled { background: rgba(8, 10, 20, .72); border-color: var(--hair); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--sans); letter-spacing: -.02em; }
.brand img { width: 34px; filter: drop-shadow(0 4px 14px rgba(91, 92, 240, .55)); }
.brand span { background: linear-gradient(100deg, #fff 20%, var(--blue-2) 50%, var(--blue) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small img { width: 26px; } .brand.small { font-size: 17px; }
.links { display: flex; gap: 26px; margin-left: 12px; }
.links a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }

/* первый экран */
.hero {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: calc(100vh - 90px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding: 64px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: var(--panel); color: var(--blue-2); font-size: 13.5px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: pulse 2s ease-in-out infinite; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(46px, 6.2vw, 84px); line-height: .98; margin: 26px 0 22px; }
h1 em, h2 em {
  background: linear-gradient(100deg, var(--blue-2) 0%, var(--blue) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.lead { font-size: 18.5px; line-height: 1.6; color: #b9bfd4; max-width: 560px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-note { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; }

/* макет окна приложения */
.hero-visual { position: relative; }
.orb { position: absolute; width: 420px; height: 420px; right: -60px; top: -70px; z-index: -1; filter: blur(8px); }
.orb i { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen; filter: blur(40px); animation: drift 14s ease-in-out infinite; }
.orb i:nth-child(1) { background: radial-gradient(circle at 35% 35%, rgba(207, 232, 255, .55), transparent 60%); }
.orb i:nth-child(2) { background: radial-gradient(circle at 65% 40%, rgba(91, 92, 240, .7), transparent 62%); animation-direction: reverse; }
.orb i:nth-child(3) { background: radial-gradient(circle at 50% 75%, rgba(74, 168, 255, .5), transparent 60%); animation-duration: 18s; }
.window {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--hair-2);
  background: linear-gradient(180deg, rgba(16, 19, 36, .92), rgba(8, 10, 20, .94));
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px -40px rgba(74, 168, 255, .45);
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transition: transform .8s var(--ease);
}
.hero-visual:hover .window { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--muted); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.window-bar b { margin-left: 10px; font-weight: 500; }
.window-body { display: grid; grid-template-columns: 150px 1fr; min-height: 400px; }
.window-side { padding: 14px 10px; border-right: 1px solid var(--hair); background: rgba(255, 255, 255, .015); font-size: 12px; }
.ws-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; margin: 0 4px 14px; }
.ws-brand img { width: 20px; }
.ws-item { padding: 7px 9px; border-radius: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-item.on { background: rgba(74, 168, 255, .13); color: var(--blue-2); }
.ws-label { margin: 16px 6px 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ws-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 4px; }
.ws-icons b { display: grid; place-items: center; height: 26px; border-radius: 7px; font-size: 10.5px; color: var(--blue-2); background: rgba(74, 168, 255, .12); border: 1px solid rgba(74, 168, 255, .2); }
.window-chat { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; font-size: 13.5px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; animation: rise .8s var(--ease) both; }
.bubble.user { align-self: flex-end; border-bottom-right-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid var(--hair); }
.bubble.bot { align-self: flex-start; color: #d7dcee; animation-delay: .9s; }
.bubble.bot p { margin: 0 0 6px; } .bubble.bot p:last-child { margin: 0; }
.bubble.bot b { color: #fff; font-weight: 600; }
.bubble .soft { color: var(--muted); }
.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid var(--hair); background: var(--panel); animation: rise .8s var(--ease) .45s both; }
.tool .spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--blue); border-right-color: transparent; animation: spin .9s linear infinite; }
.composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .04); color: var(--faint); font-size: 12.5px; }
.composer i { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--blue-2), var(--blue)); }

/* платформы */
.platforms { width: min(1180px, calc(100% - 32px)); margin: 0 auto 30px; display: flex; align-items: center; gap: 22px; justify-content: center; flex-wrap: wrap; }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.platforms li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hair); background: var(--panel); color: #c4cadf; font-size: 14px; }

/* секции */
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0 0; }
.section.narrow { width: min(820px, calc(100% - 32px)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.kicker { display: inline-block; margin-bottom: 16px; color: var(--blue); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; margin-bottom: 16px; }
.section-head p { font-size: 17px; margin: 0; }

/* карточки возможностей */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(74, 168, 255, .5), transparent 40%, transparent 60%, rgba(91, 92, 240, .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card.wide { grid-column: span 2; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 20px; color: var(--blue-2); background: linear-gradient(140deg, rgba(74, 168, 255, .22), rgba(91, 92, 240, .18)); border: 1px solid rgba(74, 168, 255, .25); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chips span { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--blue-2); background: rgba(74, 168, 255, .1); border: 1px solid rgba(74, 168, 255, .22); }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--panel); }
.step-n { display: block; font: 400 52px/1 var(--serif); margin-bottom: 18px; background: linear-gradient(140deg, var(--blue-2), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--panel); }
.plan.featured { border-color: rgba(74, 168, 255, .45); background: linear-gradient(180deg, rgba(74, 168, 255, .11), rgba(91, 92, 240, .05)); box-shadow: 0 30px 80px -40px rgba(74, 168, 255, .6); }
.plan-tag { position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--on); background: linear-gradient(135deg, var(--blue-2), var(--blue)); }
.plan h3 { margin: 0; font: 400 30px/1 var(--serif); }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font: 700 40px/1 var(--sans); letter-spacing: -.03em; }
.plan ul { flex: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #c4cadf; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: radial-gradient(circle, var(--blue) 35%, rgba(74, 168, 255, .2) 40%); }

/* вопросы */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--hair); background: var(--panel); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(74, 168, 255, .35); background: var(--panel-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-size: 16.5px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* финальный призыв */
.cta { width: min(1000px, calc(100% - 32px)); margin: 120px auto 0; padding: 70px 30px 64px; text-align: center; border-radius: 30px; border: 1px solid var(--hair); background: radial-gradient(600px 300px at 50% 0%, rgba(91, 92, 240, .3), transparent 70%), radial-gradient(500px 260px at 50% 100%, rgba(74, 168, 255, .18), transparent 70%), var(--ink-2); }
.cta-mark { width: 84px; margin: 0 auto 22px; filter: drop-shadow(0 14px 40px rgba(91, 92, 240, .7)); }
.cta p { font-size: 17px; margin: 0 0 30px; }

.footer { width: min(1180px, calc(100% - 32px)); margin: 90px auto 0; padding: 30px 0 40px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--muted); } .footer nav a:hover { color: var(--text); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 50% { transform: translate(4vw, 3vh) scale(1.08); } }
@keyframes drift { 33% { transform: translate(6%, -5%) scale(1.06); } 66% { transform: translate(-5%, 4%) scale(.96); } }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 960px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 40px; }
  .window { transform: none; }
  .bento, .steps { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .section { padding-top: 80px; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; padding: 8px 8px 8px 12px; }
  .nav-cta .btn.ghost { display: none; }
  .window-body { grid-template-columns: 1fr; }
  .window-side { display: none; }
  .btn.big { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.cta .hero-note { margin-top: 24px; }
/* Декор не должен расширять страницу на телефонах */
html { overflow-x: hidden; }
.hero-visual { overflow-x: clip; overflow-y: visible; }
@media (max-width: 560px) { .orb { width: 280px; height: 280px; right: -10px; top: -40px; } }
.note-link { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
