:root{
  --primary:#6d28d9; --primary-strong:#5b21b6; --ink:#0f172a; --muted:#475569;
  --bg:#ffffff; --surface:#f8fafc; --border:#e2e8f0; --radius:10px;
  --chart-1:#6d28d9; --chart-2:#2563eb; --chart-3:#059669; --chart-4:#d97706; --chart-5:#db2777;
  --ok:#047857; --err:#b91c1c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.55}
.container{max-width:80rem;margin:0 auto;padding:0 1.5rem}
h1{font-size:2.75rem;line-height:1.12;font-weight:800;letter-spacing:-.02em;margin:.75rem 0 1rem}
h2{font-size:2rem;font-weight:700;letter-spacing:-.01em;margin:0 0 .5rem}
h3{font-size:1.125rem;font-weight:600;margin:0 0 .5rem}
p{margin:0}
a{color:var(--primary);text-decoration:none}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px}

.site-header{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);z-index:20}
.header-in{display:flex;align-items:center;gap:2rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.625rem;color:var(--ink)}
.brand-mark{width:2.25rem;height:2.25rem;border-radius:var(--radius);background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.25rem}
.brand-text{font-weight:700;font-size:1.125rem;line-height:1.1;display:flex;flex-direction:column}
.brand-text small{font-weight:500;font-size:.72rem;color:var(--muted)}
.main-nav{display:flex;gap:1.5rem;margin-inline-start:auto}
.main-nav a{color:var(--ink);font-weight:500}
.main-nav a:hover{color:var(--primary)}
.lang-switch{display:flex;align-items:center;gap:.375rem;border:1px solid var(--border);border-radius:var(--radius);padding:.375rem .5rem;background:var(--surface)}
.lang-switch select{border:0;background:transparent;font:inherit;font-weight:600;max-width:9.5rem}

.hero{padding:4.5rem 0 3.5rem;background:linear-gradient(180deg,#f5f3ff 0%,#fff 90%)}
.badge{display:inline-block;background:#ede9fe;color:var(--primary-strong);font-weight:600;font-size:.875rem;padding:.375rem .75rem;border-radius:999px}
.hero-sub{font-size:1.25rem;color:var(--muted);max-width:46rem}
.builder-card{margin-top:2rem;background:#fff;border:1px solid var(--border);border-radius:1rem;box-shadow:0 12px 32px rgba(15,23,42,.08);padding:1.5rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.chip{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:.5rem 1rem;font-weight:500;min-height:2.75rem}
.chip.active{background:var(--primary);border-color:var(--primary);color:#fff}
.builder-row{display:flex;gap:.75rem}
.builder-row input{flex:1;border:1px solid var(--border);border-radius:var(--radius);padding:.875rem 1rem;font:inherit;min-height:3.25rem}
.btn-primary{background:var(--primary);color:#fff;border:0;border-radius:var(--radius);padding:.875rem 1.75rem;font-weight:600;min-height:3.25rem}
.btn-primary:hover{background:var(--primary-strong)}
.btn-ghost{background:transparent;border:1px solid var(--primary);color:var(--primary);border-radius:var(--radius);padding:.625rem 1.25rem;font-weight:600;min-height:2.75rem}
.btn-ghost:hover{background:#ede9fe}
.builder-hint{color:var(--muted);font-size:.9rem;margin-top:.75rem}
.build-status{margin-top:1rem;font-weight:600;color:var(--primary-strong)}

.demo{margin-top:1.25rem;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.demo-bar{display:flex;align-items:center;gap:.75rem;background:var(--surface);border-bottom:1px solid var(--border);padding:.625rem 1rem;font-size:.875rem}
.demo-dot{width:.625rem;height:.625rem;border-radius:50%;background:var(--ok)}
.demo-url{color:var(--muted);font-family:ui-monospace,monospace}
.demo-badge{margin-inline-start:auto;font-weight:600;color:var(--ok)}
.demo-body{padding:1.25rem}
.demo-body h4{margin:0 0 1rem;font-size:1.25rem}
.slot-grid,.svc-grid,.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.625rem;margin:.5rem 0 1rem}
.slot,.svc,.prod{border:1px solid var(--border);border-radius:var(--radius);padding:.75rem;background:#fff;text-align:start;min-height:2.75rem}
.slot[disabled]{background:var(--surface);color:var(--muted);cursor:not-allowed}
.slot.sel,.svc.sel{border-color:var(--primary);background:#ede9fe;font-weight:600}
.prod .price{font-weight:700;color:var(--primary-strong)}
.demo label{display:block;font-weight:500;margin:.75rem 0 .25rem}
.demo input,.demo select,.demo textarea{width:100%;border:1px solid var(--border);border-radius:var(--radius);padding:.625rem .75rem;font:inherit;min-height:2.75rem}
.field-err{color:var(--err);font-size:.875rem;margin-top:.25rem}
.demo .ok-box{margin-top:1rem;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:var(--radius);padding:.875rem 1rem;font-weight:600}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.75rem;margin-bottom:1rem}
.kpi{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;background:var(--surface)}
.kpi .v{font-size:1.5rem;font-weight:700}
.kpi .d{color:var(--ok);font-size:.85rem;font-weight:600}
.bars{display:flex;align-items:flex-end;gap:.5rem;height:8rem;border-bottom:1px solid var(--border);padding-top:.5rem}
.bar{flex:1;border-radius:.375rem .375rem 0 0;min-height:.5rem}
.cart-box{border-top:1px solid var(--border);margin-top:1rem;padding-top:1rem}
.cart-row{display:flex;justify-content:space-between;padding:.25rem 0}
.cart-row.total{font-weight:700;border-top:1px solid var(--border);margin-top:.5rem;padding-top:.5rem}

.section{padding:4rem 0}
.section.alt{background:var(--surface)}
.section-sub{color:var(--muted);max-width:44rem;margin-bottom:2rem}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1rem}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem}
.grid-5{display:grid;grid-template-columns:repeat(auto-fit,minmax(12.5rem,1fr));gap:1rem}
.card{background:#fff;border:1px solid var(--border);border-radius:1rem;padding:1.5rem}
.card p{color:var(--muted)}
.tpl-icon{color:var(--primary);margin-bottom:.75rem;line-height:0}
.tpl .btn-ghost{margin-top:1rem}
.plan{display:flex;flex-direction:column;gap:.5rem}
.plan.popular{border:2px solid var(--primary);position:relative}
.pop-tag{position:absolute;top:-.8rem;inset-inline-start:1rem;background:var(--primary);color:#fff;font-size:.75rem;font-weight:700;padding:.25rem .625rem;border-radius:999px}
.plan .price{font-size:2rem;font-weight:800}
.plan .price small{font-size:.9rem;font-weight:500;color:var(--muted)}
.plan ul{list-style:none;margin:.5rem 0 1rem;padding:0;display:grid;gap:.375rem;color:var(--muted)}
.plan ul li::before{content:"✓ ";color:var(--ok);font-weight:700}
.plan .btn-ghost,.plan .btn-primary{margin-top:auto;text-align:center}

.site-footer{border-top:1px solid var(--border);padding:1.5rem 0;color:var(--muted)}
.footer-in{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:space-between}
[dir="rtl"] .main-nav{margin-inline-start:0;margin-inline-end:auto}
@media (max-width:48rem){
  h1{font-size:2rem}.hero{padding:3rem 0 2.5rem}
  .builder-row{flex-direction:column}.main-nav{display:none}
  .header-in{gap:1rem}.lang-switch{margin-inline-start:auto}
}
