/* ============================================================
   MagGroup — premium dark studio site
   Aesthetic: deep purple, layered glow, glass, grain.
   No raster hero art — visuals are CSS/SVG.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #050307;
  --bg-soft: #0a0710;
  --bg-card: #0e0a16;

  --ink: #f5f3ff;
  --muted: #a6a0b8;       /* body */
  --muted-2: #6f6982;     /* faint */

  /* layered purples for real color grading */
  --brand: #510B8C;
  --v-900: #2e1065;
  --v-700: #6d28d9;
  --v-600: #7c3aed;
  --v-500: #8b5cf6;
  --v-400: #a855f7;
  --v-300: #c4b5fd;
  --v-200: #ddd6fe;
  --magenta: #c026d3;
  --indigo: #4f46e5;

  --line: rgba(196, 181, 253, 0.10);
  --line-2: rgba(196, 181, 253, 0.18);
  --glass: rgba(255, 255, 255, 0.024);
  --glass-2: rgba(255, 255, 255, 0.05);

  --grad-violet: linear-gradient(135deg, #7c3aed, #a855f7);
  --grad-brand: linear-gradient(135deg, #510B8C 0%, #7c3aed 55%, #a855f7 100%);
  --grad-text: linear-gradient(100deg, #ffffff 10%, #ddd6fe 45%, #a855f7 90%);

  --shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.8);
  --glow: 0 0 90px -10px rgba(124, 58, 237, 0.45);
  --glow-sm: 0 0 50px -16px rgba(124, 58, 237, 0.5);

  --r: 24px;
  --r-sm: 16px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input { font-family: inherit; }
::selection { background: rgba(168, 85, 247, 0.35); color: #fff; }

/* ============================================================
   BACKGROUND — animated mesh + grid + grain
   ============================================================ */
.bg { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg__mesh { position: absolute; inset: -20%; opacity: 0.9; }
/* blur lives on each blob (not the parent) so the blurred bitmap is cached
   per-layer and only the cheap transform drift animates — no full-screen
   re-rasterization of a parent filter every frame */
.bg__blob { position: absolute; border-radius: 50%; filter: blur(60px); mix-blend-mode: screen; will-change: transform; }
.bg__blob--a { width: 52vw; height: 52vw; top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(124,58,237,0.55), transparent 62%); animation: drift1 26s ease-in-out infinite; }
.bg__blob--b { width: 46vw; height: 46vw; top: 18%; right: -12%;
  background: radial-gradient(circle, rgba(192,38,211,0.32), transparent 64%); animation: drift2 32s ease-in-out infinite; }
.bg__blob--c { width: 60vw; height: 60vw; bottom: -28%; left: 18%;
  background: radial-gradient(circle, rgba(81,11,140,0.6), transparent 60%); animation: drift3 30s ease-in-out infinite; }
.bg__blob--d { width: 34vw; height: 34vw; top: 44%; left: 30%;
  background: radial-gradient(circle, rgba(79,70,229,0.28), transparent 66%); animation: drift1 38s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%, 6%) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%, -6%) scale(1.1); } }

.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196,181,253,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,181,253,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 72%);
}
.bg__grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.bg__vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, transparent 40%, rgba(5,3,7,0.6) 100%); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--sm { padding: 84px 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--v-300);
  padding: 7px 15px 7px 13px; border-radius: 100px;
  background: linear-gradient(180deg, rgba(168,85,247,0.10), rgba(168,85,247,0.02));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--v-400); box-shadow: 0 0 10px var(--v-400); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }

.head { max-width: 660px; margin-bottom: 60px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 22px 0 18px; }
.head p { color: var(--muted); font-size: 18px; }
.gt { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s; }
.btn:active { transform: scale(0.97); }
.btn .arw { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--brand); color: #fff; transition: transform .35s var(--ease), background .35s; }
.btn svg { width: 16px; height: 16px; }
/* Apple-style sheen sweep on hover (glass buttons) */
.btn--glass::after, .btn--outline::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: -1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease); }
.btn--glass:hover::after, .btn--outline:hover::after { left: 130%; }

.btn--light { background: #fff; color: #0b0712; padding-right: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(168,85,247,0.7); }
.btn--light:hover .arw { background: var(--v-500); transform: translateX(3px); }

/* thin glassy Apple-style */
.btn--glass { color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.25), 0 6px 20px -10px rgba(0,0,0,0.6);
  backdrop-filter: blur(16px) saturate(150%); }
.btn--glass:hover { transform: translateY(-2px); border-color: rgba(196,181,253,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 12px 30px -12px rgba(124,58,237,0.55); }

.btn--grad { background: var(--grad-brand); color: #fff; padding-right: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 14px 40px -12px rgba(124,58,237,0.8); }
.btn--grad .arw { background: rgba(255,255,255,0.18); }
.btn--grad:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 20px 56px -12px rgba(168,85,247,0.85); }
.btn--grad:hover .arw { transform: translateX(3px); }

.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--lg.btn--light, .btn--lg.btn--grad { padding-right: 8px; }
.btn--lg .arw { width: 36px; height: 36px; }

/* ============================================================
   HEADER — floating glass pill, subtle top glow only
   ============================================================ */
.topglow { position: fixed; top: 0; left: 0; right: 0; height: 220px; z-index: 90; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% -40%, rgba(124,58,237,0.45), transparent 70%);
  opacity: 1; transition: opacity .5s var(--ease); }
.topglow.dim { opacity: 0.25; }

.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; transition: top .4s var(--ease); }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 60px; padding: 0 24px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,14,30,0.55), rgba(10,7,16,0.4));
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 40px -16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.header.scrolled .header__bar {
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(16,11,24,0.8), rgba(8,5,13,0.72));
  box-shadow: 0 16px 50px -18px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.07);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-brand);
  box-shadow: 0 4px 14px -3px rgba(124,58,237,0.8), inset 0 1px 0 rgba(255,255,255,0.3); position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 60%); }
.brand b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font-size: 14.5px; color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: 100px; transition: color .25s, background .25s; }
.nav a:hover { color: #fff; background: var(--glass-2); }

.header__right { display: flex; align-items: center; gap: 12px; }
.header__phone { font-size: 14px; color: var(--muted); font-weight: 600; transition: color .25s; }
.header__phone:hover { color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2); }
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 168px 0 90px; text-align: center; }
.hero__badge { margin-bottom: 30px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 88px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 800; margin: 0 auto 26px; max-width: 15ch; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 auto 38px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero__note { font-size: 13.5px; color: var(--muted-2); }
.hero__note b { color: var(--v-300); font-weight: 600; }

/* hero visual — CSS/SVG 3D ecosystem core */
.stage { position: relative; margin: 70px auto 0; max-width: 920px; height: 360px; perspective: 1400px; }
/* smooth flowing aurora shimmer (Yandex Music style) instead of rings */
.stage__aurora { position: absolute; left: 50%; top: 50%; width: 480px; height: 480px; transform: translate(-50%, -50%);
  border-radius: 50%; filter: blur(72px); opacity: 0.85; z-index: 0;
  background: conic-gradient(from 0deg at 50% 50%, #7c3aed, #c026d3, #4f46e5, #a855f7, #6d28d9, #c026d3, #7c3aed);
  animation: aurora 20s linear infinite; }
.stage__aurora2 { position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; transform: translate(-50%, -50%);
  border-radius: 50%; filter: blur(54px); opacity: 0.55; z-index: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 38% 40%, #c4b5fd, transparent 58%), radial-gradient(circle at 66% 62%, #4f46e5, transparent 60%);
  animation: aurora 28s linear infinite reverse; }
@keyframes aurora { to { transform: translate(-50%, -50%) rotate(360deg); } }
.core { position: absolute; inset: 0; margin: auto; width: 156px; height: 156px; border-radius: 38px; z-index: 2;
  box-shadow: 0 34px 80px -16px rgba(124,58,237,0.95); animation: bob 6s ease-in-out infinite; }
.core img { width: 100%; height: 100%; border-radius: 38px; box-shadow: inset 0 2px 0 rgba(255,255,255,0.3); }
.core::after { content: ""; position: absolute; inset: -22%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(168,85,247,0.6), transparent 64%); filter: blur(18px); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
/* GPU promotion so the blurred bitmaps are cached and only the cheap
   transform animates each frame (no per-frame re-rasterization of blur) */
.stage__aurora, .stage__aurora2, .core { will-change: transform; }
/* Pause continuous compositing when the work isn't visible */
.stage.paused .stage__aurora, .stage.paused .stage__aurora2,
.stage.paused .core, .stage.paused .chip { animation-play-state: paused; }
.bg__mesh.paused .bg__blob { animation-play-state: paused; }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 16px; font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, rgba(28,20,40,0.85), rgba(14,10,22,0.7));
  border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255,255,255,0.08); will-change: transform; }
.chip img { width: 22px; height: 22px; border-radius: 6px; }
.chip i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--grad-violet); }
.chip i svg { width: 14px; height: 14px; color: #fff; }
.chip small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.chip { z-index: 3; }
.chip--1 { top: 8%; left: 6%; animation: floaty 7s ease-in-out infinite; }
.chip--2 { top: 14%; right: 5%; animation: floaty 8s ease-in-out infinite .5s; }
.chip--3 { bottom: 14%; left: 10%; animation: floaty 9s ease-in-out infinite 1s; }
.chip--4 { bottom: 10%; right: 8%; animation: floaty 7.5s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* trust marquee */
.trust { padding-top: 56px; }
.trust__label { text-align: center; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.trust__row { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; align-items: center; }
.trust__row b { font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: 0.02em; transition: color .3s; }
.trust__row b span { color: var(--v-300); }
.trust__row b:hover { color: #fff; }

/* ============================================================
   GLASS CARD primitives + gradient border + spotlight
   ============================================================ */
.glass { position: relative; border-radius: var(--r); background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line); backdrop-filter: blur(12px); overflow: hidden; }
.gborder::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(168,85,247,0.5), rgba(196,181,253,0.05) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(168,85,247,0.16), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.about__text h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; margin: 22px 0 20px; }
.about__text p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about__text p.lead { color: #d9d4e6; font-size: 19px; }
.about__text strong { color: #fff; font-weight: 600; }
.about__cards { display: grid; gap: 16px; }
.minicard { padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.minicard__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line-2); color: var(--v-300); }
.minicard__ic svg { width: 22px; height: 22px; }
.minicard h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.minicard p { color: var(--muted); font-size: 14.5px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { padding: 26px 24px; text-align: center; }
.stat b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product { padding: 40px 36px; transition: transform .45s var(--ease); }
.product:hover { transform: translateY(-6px); }
.product__top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.product__logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 16px 36px -12px rgba(124,58,237,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.product__logo img { width: 64px; height: 64px; border-radius: 18px; }
.product__logo--ak { background: linear-gradient(135deg, #3b1d6e, #7c3aed); }
.product__logo svg { width: 32px; height: 32px; color: #fff; }
.product__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--v-300); }
.product__top h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.product > p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.product__feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.product__feats span { font-size: 13px; color: #d9d4e6; padding: 7px 13px; border-radius: 100px;
  background: var(--glass-2); border: 1px solid var(--line); }
.product__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #fff; transition: gap .3s, color .3s; }
.product__link:hover { gap: 13px; color: var(--v-300); }
.product__link svg { width: 17px; height: 17px; }

/* ============================================================
   WHY (feature grid + impact)
   ============================================================ */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { padding: 32px 30px; transition: transform .15s ease-out; will-change: transform; }
.why-card__ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(124,58,237,0.25), rgba(124,58,237,0.04)); border: 1px solid var(--line-2); color: var(--v-200); }
.why-card__ic svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.why-card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }
.why-card__impact { display: flex; align-items: baseline; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.why-card__impact b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.why-card__impact span { font-size: 13px; color: var(--muted); }

/* ============================================================
   COLLAB — light contrast block
   ============================================================ */
.collab__box { position: relative; border-radius: 32px; overflow: hidden; padding: 64px 56px;
  background: linear-gradient(135deg, #ece9f5, #f6f4fb); color: #14101f; }
.collab__box::before { content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124,58,237,0.18), transparent 65%); }
.collab__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.collab__box .kicker { background: #fff; border-color: rgba(124,58,237,0.18); color: var(--brand); }
.collab__box .kicker::before { background: var(--v-600); box-shadow: 0 0 8px var(--v-600); }
.collab h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 20px 0 16px; }
.collab p { color: #5b5470; font-size: 17px; margin-bottom: 14px; }
.collab__list { display: flex; flex-direction: column; gap: 14px; }
.collab__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid #e7e3f0; box-shadow: 0 10px 30px -18px rgba(46,16,101,0.4); transition: transform .3s var(--ease); }
.collab__item:hover { transform: translateY(-3px); }
.collab__item .ci { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; }
.collab__item .ci svg { width: 22px; height: 22px; }
.collab__item h4 { font-size: 16px; font-weight: 600; color: #14101f; margin-bottom: 3px; }
.collab__item p { font-size: 14px; color: #6b6480; margin: 0; }
.collab__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.collab__cta .btn--dark { background: #14101f; color: #fff; padding-right: 6px; }
.collab__cta .btn--dark .arw { background: var(--v-600); }
.collab__cta .btn--dark:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(46,16,101,0.5); }
.collab__cta .btn--outline { background: transparent; color: #14101f; border: 1px solid rgba(20,16,31,0.2); }
.collab__cta .btn--outline:hover { border-color: var(--v-600); transform: translateY(-2px); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-top: 16px; }
.tier { position: relative; display: flex; flex-direction: column; padding: 34px 32px; overflow: visible; transition: transform .4s var(--ease); }
.tier:hover { transform: translateY(-6px); }
.tier--feat { background: linear-gradient(180deg, rgba(124,58,237,0.16), var(--glass)); transform: scale(1.035); }
.tier--feat::before { background: linear-gradient(140deg, rgba(168,85,247,0.8), rgba(196,181,253,0.1) 45%, transparent 72%); }
.tier--feat:hover { transform: scale(1.035) translateY(-6px); }
.tier__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; padding: 6px 16px; border-radius: 100px; background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 26px -8px rgba(124,58,237,0.9); white-space: nowrap; }
.tier__name { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v-300); }
.tier__price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; }
.tier__price b { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; }
.tier__price span { color: var(--muted); font-size: 15px; }
.tier__desc { color: var(--muted); font-size: 14.5px; min-height: 60px; margin-bottom: 24px; }
.tier__feats { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex-grow: 1; }
.tier__feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: #d9d4e6; }
.tier__feats li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--v-400); }
.pricing__note { text-align: center; color: var(--muted-2); font-size: 13.5px; margin-top: 28px; }
.pricing__note a { color: var(--v-300); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 26px; transition: transform .3s var(--ease); }
.step:hover { transform: translateY(-5px); }
.step__n { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; font-weight: 800;
  margin-bottom: 18px; background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px -8px rgba(124,58,237,0.8); }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--r-sm); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { box-shadow: var(--glow-sm); }
.faq-item.open::before { background: linear-gradient(140deg, rgba(168,85,247,0.7), transparent 70%); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px;
  text-align: left; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.faq-q__i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line-2); transition: background .3s, transform .3s; font-size: 18px; line-height: 1; }
.faq-item.open .faq-q__i { background: var(--grad-brand); transform: rotate(45deg); border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a__in { padding: 0 26px 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.news__box { padding: 56px 48px; text-align: center; }
.news__box::after { content: ""; position: absolute; bottom: -60%; left: 50%; transform: translateX(-50%); width: 720px; height: 520px;
  background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 68%); pointer-events: none; }
.news__box > * { position: relative; }
.news h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin: 18px 0 12px; }
.news p { color: var(--muted); font-size: 17px; max-width: 480px; margin: 0 auto 26px; }
.news__form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.news__form input { flex: 1; padding: 15px 20px; border-radius: 100px; font-size: 15px; background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-2); color: #fff; transition: border-color .3s; }
.news__form input:focus { outline: none; border-color: var(--v-500); }
.news__form input::placeholder { color: var(--muted-2); }
.consent { display: flex; gap: 9px; align-items: flex-start; justify-content: center; max-width: 460px; margin: 16px auto 0;
  font-size: 13px; color: var(--muted); }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--v-500); flex-shrink: 0; }
.consent a { color: var(--v-300); text-decoration: underline; text-underline-offset: 2px; }
.formmsg { font-size: 14px; margin-top: 14px; min-height: 18px; }
.formmsg.ok { color: #4ade80; }
.formmsg.err { color: #fb7185; }

/* ============================================================
   FINAL CTA — purple horizon
   ============================================================ */
.cta { padding: 130px 0 200px; text-align: center; overflow: hidden; }
.cta::after { content: ""; position: absolute; bottom: -360px; left: 50%; transform: translateX(-50%); width: 1200px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.6), rgba(81,11,140,0.4) 35%, transparent 66%);
  filter: blur(10px); pointer-events: none; }
.cta__in { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(34px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 22px auto 18px; max-width: 16ch; }
.cta p { color: var(--muted); font-size: 19px; max-width: 540px; margin: 0 auto 34px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04)); padding: 72px 0 36px; position: relative; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 52px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 280px; margin-bottom: 18px; }
.footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer__contacts a, .footer__contacts span { color: var(--muted); font-size: 15px; transition: color .25s; }
.footer__contacts a:hover { color: #fff; }
.footer__col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color .25s, padding-left .25s; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__legal { padding: 22px 24px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.footer__legal b { color: #fff; }
.footer__legal .todo { color: #fbbf24; font-style: italic; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 28px;
  border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom p { color: var(--muted-2); font-size: 14px; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .25s; }
.footer__links a:hover { color: #fff; }

/* ============================================================
   MODAL
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3,2,6,0.72); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s var(--ease); }
.overlay.show { display: flex; opacity: 1; }
.modal { width: 100%; max-width: 460px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #16101f, #0a0710); box-shadow: var(--shadow), var(--glow); padding: 34px 32px;
  transform: translateY(20px) scale(0.97); transition: transform .35s var(--ease); max-height: 92vh; overflow-y: auto; }
.overlay.show .modal { transform: translateY(0) scale(1); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.modal__tier { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v-300); }
.modal h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.modal__price { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.modal__price b { color: #fff; font-size: 20px; }
.modal__x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2);
  border: 1px solid var(--line-2); color: var(--muted); transition: all .25s; }
.modal__x:hover { color: #fff; background: rgba(255,255,255,0.09); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 15px; background: rgba(0,0,0,0.5);
  border: 1px solid var(--line-2); color: #fff; transition: border-color .3s; }
.field input:focus { outline: none; border-color: var(--v-500); }
.field input::placeholder { color: var(--muted-2); }
.req { color: var(--v-300); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--v-500); flex-shrink: 0; cursor: pointer; }
.check a { color: var(--v-300); text-decoration: underline; text-underline-offset: 2px; }
.modal .formmsg { text-align: center; }

/* ============================================================
   LEGAL
   ============================================================ */
.legal-hero { padding: 150px 0 50px; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; margin: 18px 0 12px; }
.legal-hero p { color: var(--muted); font-size: 17px; max-width: 640px; }
.legal-body { padding-bottom: 110px; }
.legal-content { max-width: 820px; padding: 48px 52px; }
.legal-content h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin: 38px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; color: #fff; }
.legal-content p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px; padding-left: 4px; display: flex; flex-direction: column; gap: 9px; }
.legal-content ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.legal-content ul li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; margin-top: 9px;
  background: var(--v-500); box-shadow: 0 0 8px var(--v-500); }
.legal-content strong { color: #fff; font-weight: 600; }
.legal-content a { color: var(--v-300); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .todo { color: #fbbf24; font-style: italic; }
.legal-content .meta { font-size: 14px; color: var(--muted-2); margin-bottom: 30px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 13px 16px; border: 1px solid var(--line-2); }
.legal-table th { background: var(--glass-2); color: #fff; font-weight: 600; }
.legal-table td { color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-bottom: 24px; transition: gap .3s, color .3s; }
.back:hover { color: #fff; gap: 12px; }
.back svg { width: 18px; height: 18px; }

/* contacts */
.cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.ccard { padding: 30px 28px; transition: transform .35s var(--ease); }
.ccard:hover { transform: translateY(-5px); }
.ccard__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-brand); box-shadow: 0 10px 26px -8px rgba(124,58,237,0.8); }
.ccard__ic svg { width: 26px; height: 26px; color: #fff; }
.ccard h3 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v-300); margin-bottom: 8px; }
.ccard a, .ccard p { font-size: 19px; font-weight: 600; color: #fff; }
.ccard span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.ccard .todo { color: #fbbf24; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .core, .chip, .stage__aurora, .stage__aurora2, .bg__blob { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about__grid, .collab__grid { grid-template-columns: 1fr; gap: 40px; }
  .why { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tier--feat { transform: scale(1); }
  .tier--feat:hover { transform: translateY(-6px); }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .nav, .header__phone { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: 70px;
    left: 0; right: 0; background: rgba(12,8,18,0.97); backdrop-filter: blur(20px); border: 1px solid var(--line-2);
    border-radius: var(--r-sm); padding: 14px; }
  .nav.open a { padding: 13px 16px; font-size: 16px; }
  .burger { display: flex; }
  .header__right .btn { display: none; }
  .stage { height: 320px; }
  .stage__aurora2, .chip small { display: none; }
  .steps, .cgrid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .news__form { flex-direction: column; }
  .news__form .btn { justify-content: center; }
  .collab__box, .legal-content { padding: 36px 26px; }
  .legal-content { padding: 32px 24px; }
}
