:root { --bg: #07070c; --bg2: #0e0e17; --card: #12121d; --line: #22223a; --text: #eeeef6; --muted: #9a9ab3; --violet: #8b5cf6; --cyan: #22d3ee; --pink: #f472b6; --kit-bg: #12121d; --kit-fg: #eeeef6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 "Alexandria", system-ui, sans-serif; font-weight: 300; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.err { color: #fb7185; margin: 0; }
input, select, textarea { font: inherit; width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); }
select option { background: var(--bg2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 10px 20px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--violet), #6d28d9); box-shadow: 0 10px 30px rgba(139, 92, 246, .3); transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139, 92, 246, .45); }
.btn.big { padding: 15px 30px; font-size: 17px; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.btn.small { padding: 8px 14px; font-size: 14px; box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3); color: #c4b5fd; border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.glow { position: fixed; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: .22; z-index: -1; pointer-events: none; }
.g1 { background: var(--violet); top: -200px; right: -150px; }
.g2 { background: var(--cyan); bottom: -260px; left: -200px; opacity: .14; }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 5vw, 64px); background: rgba(7, 7, 12, .75); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(34, 34, 58, .6); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; direction: ltr; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo b { font-weight: 300; color: var(--muted); margin-inline-start: 4px; }
.top nav { display: flex; gap: 28px; color: var(--muted); }
.top nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: clamp(40px, 7vw, 100px) clamp(16px, 5vw, 64px); max-width: 1400px; margin: 0 auto; }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); margin: 22px 0 16px; font-weight: 800; }
.hero p { color: var(--muted); font-size: 18px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.kpis { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; color: var(--muted); font-size: 14px; }
.kpis b { display: block; font-size: 30px; color: var(--text); font-weight: 700; }
.stack { position: relative; height: 520px; }
.frame { position: absolute; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop { inset: 20px 0 auto 40px; height: 380px; transform: perspective(1200px) rotateY(10deg) rotateX(4deg); animation: hover1 7s ease-in-out infinite; }
.phone { width: 180px; height: 380px; border-radius: 28px; border: 6px solid #1a1a28; }
.p1 { bottom: 0; right: 0; animation: hover2 6s ease-in-out infinite; }
.p2 { bottom: 40px; left: 0; animation: hover2 6s ease-in-out -3s infinite; }
@keyframes hover1 { 50% { transform: perspective(1200px) rotateY(6deg) rotateX(2deg) translateY(-10px); } }
@keyframes hover2 { 50% { transform: translateY(-14px); } }

.logos { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; white-space: nowrap; color: var(--muted); }
.logos div { display: inline-block; animation: slide 30s linear infinite; }
@keyframes slide { to { transform: translateX(50%); } }

section { padding: clamp(60px, 9vw, 120px) clamp(16px, 5vw, 64px); }
.head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.head h2 { font-size: clamp(32px, 5vw, 56px); margin: 14px 0 10px; }
.head p { color: var(--muted); }
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.filters button { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 7px 18px; color: var(--muted); }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto; }
.demo { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 14px; display: grid; gap: 14px; transition: transform .3s, border-color .3s; animation: kitpop .5s both; }
.demo:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .5); }
.shots { position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: #000; }
.shots .d { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease; }
.demo:hover .shots .d { transform: translateY(-8%); }
.shots .m { position: absolute; bottom: 12px; left: 12px; width: 22%; aspect-ratio: 9/19; object-fit: cover; object-position: top; border-radius: 14px; border: 4px solid #1a1a28; box-shadow: 0 16px 30px rgba(0,0,0,.6); }
.demo .niche { position: absolute; top: 26px; right: 26px; background: rgba(7,7,12,.75); backdrop-filter: blur(8px); border-radius: 999px; padding: 3px 12px; font-size: 13px; z-index: 1; }
.demo .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 6px; }
.demo h3 { font-size: 22px; }
.demo p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.feats { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 6px; }
.feats span { font-size: 12.5px; color: #c4b5fd; background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .2); border-radius: 999px; padding: 2px 10px; }
.demo .acts { display: flex; gap: 8px; padding: 0 6px 6px; }
.demo .acts .btn { flex: 1; }
.swatch { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px; }

.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.svc div { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; transition: border-color .3s; }
.svc div:hover { border-color: rgba(34, 211, 238, .4); }
.svc span { font-size: 30px; }
.svc h3 { font-size: 21px; margin: 10px 0 6px; }
.svc p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1250px; counter-reset: s; }
.steps li { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; position: relative; }
.steps b { font-size: 34px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--violet); }
.steps h3 { font-size: 20px; margin: 6px 0; }
.steps p { color: var(--muted); margin: 0; font-size: 14.5px; }

.price-card { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: radial-gradient(circle at 80% 0%, rgba(139, 92, 246, .25), transparent 60%), var(--card); border: 1px solid var(--line); border-radius: 32px; padding: clamp(26px, 5vw, 56px); }
.price-card h2 { font-size: clamp(34px, 5vw, 58px); margin: 14px 0; }
.price-card p { color: var(--muted); margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: center; }
.price-card li::before { content: "✓"; width: 26px; height: 26px; border-radius: 8px; background: rgba(52, 211, 153, .12); color: #34d399; display: grid; place-items: center; font-weight: 700; flex: 0 0 26px; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--violet); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

.contact-card { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 5vw, 50px); display: grid; gap: 14px; text-align: center; }
.contact-card h2 { font-size: clamp(32px, 5vw, 50px); }
.contact-card p { color: var(--muted); margin: 0 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-card .btn { justify-self: center; }
.sent { display: grid; gap: 10px; justify-items: center; padding: 20px; }
.sent .ok { width: 74px; height: 74px; border-radius: 50%; background: rgba(52, 211, 153, .12); color: #34d399; font-size: 34px; display: grid; place-items: center; }

.foot { text-align: center; padding: 40px 16px; border-top: 1px solid var(--line); color: var(--muted); display: grid; gap: 4px; justify-items: center; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .stack { height: 380px; }
  .laptop { inset: 0 0 auto 20px; height: 260px; }
  .phone { width: 130px; height: 270px; }
  .demos, .svc, .price-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .kpis { gap: 22px; }
}
.top-end { display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.lang:hover { border-color: var(--violet); }
@media (max-width: 520px) {
  .top { gap: 10px; }
  .top .logo { font-size: 19px; flex-shrink: 0; }
  .top-end { gap: 8px; }
  .top-end .btn { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  .lang { padding: 7px 10px; font-size: 13px; }
}

/* live preview popup */
.pv-shade { position: fixed; inset: 0; background: rgba(3, 3, 8, .78); backdrop-filter: blur(6px); z-index: 90; animation: pvfade .2s; }
.pv { position: fixed; inset: 3vh 3vw; z-index: 91; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pvin .25s ease; transition: inset .25s, border-radius .25s; }
.pv.full { inset: 0; border-radius: 0; border: 0; }
.pv-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pv-title { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; min-width: 0; }
.pv-title .swatch { width: 14px; height: 14px; border-radius: 5px; flex: 0 0 14px; }
.pv-title b { font-weight: 700; white-space: nowrap; }
.pv-title small { color: var(--muted); font-size: 13px; }
.pv-seg { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.pv-seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; font-size: 14px; }
.pv-seg button.on { background: var(--violet); color: #fff; }
.pv-acts { display: flex; align-items: center; gap: 8px; }
.pv-x { width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: none; color: var(--text); font-size: 16px; }
.pv-x:hover { border-color: var(--violet); }
.pv-stage { position: relative; background: #0b0b14; display: grid; place-items: stretch; overflow: hidden; }
.pv-device { position: relative; width: 100%; height: 100%; justify-self: center; transition: width .3s, height .3s, margin .3s; }
.pv-stage.mobile { place-items: center; }
.pv-stage.mobile .pv-device { width: 390px; height: min(820px, calc(100% - 32px)); margin: 16px auto; border-radius: 34px; border: 8px solid #1d1d2c; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.pv iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.pv-load { position: absolute; inset: 0; display: grid; place-items: center; background: #0b0b14; }
.pv-load i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--violet); animation: pvspin .8s linear infinite; }
@keyframes pvspin { to { transform: rotate(360deg); } }
@keyframes pvfade { from { opacity: 0; } }
@keyframes pvin { from { opacity: 0; transform: scale(.97); } }
@media (max-width: 760px) {
  .pv, .pv.full { inset: 0; border-radius: 0; border: 0; }
  .pv-bar { gap: 8px; padding: 8px 10px; }
  .pv-title small, .pv-dev, .pv-acts .btn:not(.ghost) { display: none; }
  .pv-title { flex: 1 1 100%; order: -1; }
  .pv-acts { margin-inline-start: auto; }
  .pv-stage.mobile .pv-device { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; }
}
@media (max-width: 370px) {
  .top { padding-inline: 12px; }
  .top .logo { font-size: 17px; gap: 7px; }
  .top .logo img { width: 30px; height: 30px; }
  .top-end .btn { padding: 8px 11px; font-size: 13px; }
  .lang { padding: 6px 8px; }
}
