:root {
  --bg-900: #060b18;
  --bg-800: #0b1428;
  --bg-700: #12213c;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.18);
  --text: #e9f0ff;
  --muted: #acbadc;
  --cyan: #1ee2ff;
  --blue: #5e7bff;
  --mint: #38dca5;
  --amber: #ffb14b;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background: radial-gradient(1300px 700px at 12% -10%, #18366e, transparent 52%),
    radial-gradient(900px 520px at 88% 0%, #174062, transparent 46%),
    linear-gradient(180deg, var(--bg-800), var(--bg-900));
}

html {
  scroll-behavior: smooth;
}

main {
  padding-bottom: 56px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 8%, black 38%, transparent 85%);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(92px);
  opacity: 0.3;
  animation: pulse 8s ease-in-out infinite;
}

.ambient-a {
  width: 440px;
  height: 440px;
  background: var(--cyan);
  top: -140px;
  right: -120px;
}

.ambient-b {
  width: 360px;
  height: 360px;
  background: var(--amber);
  bottom: -110px;
  left: -100px;
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.top-emblem {
  position: absolute;
  top: 0;
  left: auto;
  right: -2vw;
  width: min(62vw, 1200px);
  z-index: 0;
  pointer-events: none;
  height: min(92vh, 920px);
  background-image:
    radial-gradient(980px 560px at 72% 10%, rgba(94, 123, 255, 0.2), rgba(6, 11, 24, 0.84) 66%, rgba(6, 11, 24, 0.99) 100%),
    url("./background.png"),
    url("./ikonka.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, 74% -40px, 74% -40px;
  background-size: cover, cover, cover;
  filter: saturate(1.04) contrast(1.02);
  opacity: 0.45;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.98) 72%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.45s ease-out;
}

.header,
main {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.nav { display: flex; gap: 18px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--text); }

h1, h2, h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
}

.hero {
  padding: 64px 0 18px;
}

.pill {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 226, 255, 0.5);
  background: rgba(30, 226, 255, 0.1);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.82rem;
  animation: floatY 3.2s ease-in-out infinite;
}

.pill-ai {
  margin-left: 8px;
  border-color: rgba(94, 123, 255, 0.6);
  background: rgba(94, 123, 255, 0.16);
  color: #c9d4ff;
}

.hero-ai-hint {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7d5ea;
  font-size: 0.96rem;
}

.hero-ai-hint .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #79f8ff, #1ee2ff);
  box-shadow: 0 0 14px rgba(30, 226, 255, 0.65);
}

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

h1 {
  margin-top: 14px;
  max-width: 960px;
  line-height: 1.08;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
}

.subtitle {
  margin-top: 16px;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.21rem);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  color: #03121f;
  background: linear-gradient(120deg, var(--cyan), var(--mint));
  box-shadow: 0 14px 32px rgba(56, 220, 165, 0.28);
}

.btn-outline {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.btn-soft {
  color: var(--text);
  border: 1px solid rgba(94, 123, 255, 0.5);
  background: rgba(94, 123, 255, 0.14);
}

.site-footer {
  margin: 38px auto 26px;
  padding: 14px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.footer-links a {
  color: #bcd0ff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.kpis {
  margin-top: 36px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpis article {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(11px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpis article:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 226, 255, 0.45);
}

.kpis strong { display: block; font-size: 1.18rem; }
.kpis span { color: var(--muted); font-size: 0.92rem; }

main > section {
  margin-top: 88px;
}

main > section:first-child {
  margin-top: 0;
}

#product,
#download,
#security,
#workflow,
#pricing {
  margin-top: 30px;
}

#faq {
  margin-top: 30px;
}

.trust-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.trust-row p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.container h2 {
  margin-bottom: 18px;
}

.cards {
  margin-top: 26px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

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

#audience {
  margin-top: 46px;
  margin-bottom: 14px;
}

#about {
  margin-top: 42px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.about-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.highlight-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.highlight-list li {
  margin-bottom: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.stat-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.stat-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 1.12rem;
}

.stat-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  margin: 0 0 6px 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card .price {
  margin-top: -2px;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 800;
}

.pricing-card-main {
  border-color: rgba(30, 226, 255, 0.58);
  box-shadow: 0 14px 30px rgba(30, 226, 255, 0.14);
}

.pricing-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.pricing-list strong {
  color: var(--text);
  font-weight: 800;
}

.roadmap-card h3 {
  color: var(--cyan);
}

.inline-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

.hover-rise {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hover-rise:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 226, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  margin-top: 28px;
}

.panel,
.quote {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(9px);
  padding: 28px;
}

.panel h2 {
  margin-bottom: 14px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel li { margin-bottom: 8px; }

.quote p {
  margin: 8px 0 0;
  color: #d6e5ff;
  font-size: 1.03rem;
  line-height: 1.5;
}

.steps {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.steps div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.steps div:hover {
  transform: translateX(4px);
  border-color: rgba(30, 226, 255, 0.45);
}

.steps span {
  display: inline-block;
  min-width: 34px;
  color: var(--cyan);
  font-weight: 800;
}

.contact {
  margin-top: 80px;
  margin-bottom: 0;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 226, 255, 0.12), rgba(94, 123, 255, 0.09));
}

.contact p { color: var(--muted); }

.download-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn-download {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  position: relative;
}

.btn-download.os-recommended {
  color: #052015;
  border-color: rgba(56, 220, 165, 0.95);
  background: linear-gradient(120deg, #43e6b3, #7af3cf);
  box-shadow: 0 14px 30px rgba(56, 220, 165, 0.32);
}

.btn-download.os-recommended::after {
  content: "Рекомендуется";
  position: absolute;
  top: -11px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #052015;
  background: #a6f7db;
  border: 1px solid #43e6b3;
  border-radius: 999px;
  padding: 2px 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

.cards .card,
.kpis article,
.steps div,
.panel ul li,
.highlight-list li,
.pricing-list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--stagger, 0ms);
}

.reveal.visible .card,
.reveal.visible .kpis article,
.reveal.visible .steps div,
.reveal.visible .panel ul li,
.reveal.visible .highlight-list li,
.reveal.visible .pricing-list li {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

.site-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: min(92vw, 680px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(30, 226, 255, 0.5);
  background: rgba(10, 23, 48, 0.94);
  color: #eaf3ff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 930px) {
  .nav { display: none; }
  .kpis { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .top-emblem {
    left: 0;
    width: 100%;
    height: 58vh;
    background-position: center top, 70% -62px, 64% -62px;
    background-size: cover, 122vw auto, 122vw auto;
    opacity: 0.32;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 58%, transparent 100%);
  }
}

@media (max-width: 480px) {
  .top-emblem {
    height: 50vh;
    background-position: center top, 68% -36px, 62% -36px;
    background-size: cover, 136vw auto, 136vw auto;
    opacity: 0.3;
  }
}
