:root, [data-theme="dark"] {
  --bg: #0c0c17;
  --bg-alt: rgba(255,255,255,.02);
  --card: #13131f;
  --border: rgba(255,255,255,.08);
  --text: #f4f4f5;
  --muted: rgba(255,255,255,.55);
  --dim: rgba(255,255,255,.32);
  --nav-bg: rgba(12,12,23,.88);
  --violet: #a78bfa;
  --violet-d: #7c3aed;
  --green: #3ecf8e;
  --amber: #ffaa3b;
  --red: #ff6b6b;
  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,.15);
  --hero-glow: rgba(124,58,237,.22);
  --preview-shadow: 0 24px 64px rgba(0,0,0,.45);
  --cta-bg: linear-gradient(135deg, rgba(124,58,237,.25), rgba(99,102,241,.12));
  --margin-bg: rgba(255,170,59,.12);
  --margin-border: rgba(255,170,59,.25);
  --margin-text: #fcd34d;
  --badge-green-bg: rgba(62,207,142,.15);
  --badge-green-text: #3ecf8e;
  --badge-blue-bg: rgba(99,102,241,.18);
  --badge-blue-text: #a5b4fc;
  --badge-orange-bg: rgba(255,170,59,.15);
  --badge-orange-text: #ffaa3b;
  --pill-bg: rgba(255,255,255,.06);
  --pill-active-bg: rgba(99,102,241,.25);
  --pill-active-text: #c7d2fe;
  --teal: #14b8a6;
  --teal-soft: rgba(20,184,166,.12);
  --teal-border: rgba(20,184,166,.35);
}
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --border: rgba(15,23,42,.1);
  --text: #0f172a;
  --muted: #64748b;
  --dim: #94a3b8;
  --nav-bg: rgba(244,246,251,.92);
  --violet: #6366f1;
  --violet-d: #4f46e5;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,.08);
  --hero-glow: rgba(99,102,241,.1);
  --preview-shadow: 0 20px 48px rgba(15,23,42,.08);
  --cta-bg: linear-gradient(135deg, rgba(99,102,241,.12), rgba(99,102,241,.06));
  --margin-bg: #fef9c3;
  --margin-border: #fde047;
  --margin-text: #854d0e;
  --badge-green-bg: #dcfce7;
  --badge-green-text: #15803d;
  --badge-blue-bg: #dbeafe;
  --badge-blue-text: #1d4ed8;
  --badge-orange-bg: #ffedd5;
  --badge-orange-text: #c2410c;
  --pill-bg: #f1f5f9;
  --pill-active-bg: #dbeafe;
  --pill-active-text: #1d4ed8;
  --teal: #0d9488;
  --teal-soft: rgba(13,148,136,.1);
  --teal-border: rgba(13,148,136,.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--violet-d), var(--violet));
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 12px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-d), #9333ea);
  color: #fff; box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 6px 20px rgba(37,99,235,.25);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: var(--pill-bg); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.theme-btn, .lang-btn {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--pill-bg); color: var(--muted); font-size: 14px;
  cursor: pointer; font-family: inherit; line-height: 1;
  transition: background .2s, color .2s;
}
.theme-btn:hover, .lang-btn:hover { color: var(--text); }
.lang-toggle { display: flex; gap: 4px; }
.lang-btn { font-size: 11px; padding: 5px 10px; }
.lang-btn.active { background: var(--pill-active-bg); color: var(--pill-active-text); border-color: transparent; }
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -40% -20% auto -20%; height: 70%;
  background: radial-gradient(ellipse at 50% 0%, var(--hero-glow), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--violet);
  margin-bottom: 20px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 18px; }
h1 span { background: linear-gradient(90deg, var(--violet), #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 16px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.stat-num { font-family: 'Space Mono', monospace; font-size: 22px; font-weight: 700; color: var(--violet); }
.stat-lbl { font-size: 11px; color: var(--dim); margin-top: 2px; }
.preview {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px; box-shadow: var(--preview-shadow);
}
.preview-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-bar span:nth-child(1) { background: var(--red); opacity: .7; }
.preview-bar span:nth-child(2) { background: var(--amber); opacity: .7; }
.preview-bar span:nth-child(3) { background: var(--green); opacity: .7; }
.preview-label { font-size: 10px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.risk-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px; background: var(--pill-bg);
  border: 1px solid var(--border); margin-bottom: 8px; font-size: 12px;
}
.risk-pill { padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.risk-high { background: rgba(255,107,107,.15); color: var(--red); }
.risk-mod { background: rgba(255,170,59,.15); color: var(--amber); }
.risk-low { background: rgba(62,207,142,.15); color: var(--green); }
.preview-eta {
  margin-top: 16px; padding: 12px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--border);
  font-size: 11px; color: var(--violet);
}
.preview-eta strong { font-family: 'Space Mono', monospace; }
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 10px;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.section-desc { color: var(--muted); max-width: 560px; margin-bottom: 40px; font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .features { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover { border-color: var(--violet); box-shadow: var(--preview-shadow); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); display: grid; place-items: center;
  margin-bottom: 16px; font-size: 18px;
}
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 48px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-family: 'Space Mono', monospace;
  font-size: 13px; font-weight: 700; color: var(--violet);
}
.step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }
.pricing-segment { margin-bottom: 56px; }
.pricing-segment:last-child { margin-bottom: 0; }
.segment-head { margin-bottom: 24px; }
.segment-head h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.segment-head p { font-size: 13px; color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pricing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 900px) {
  .pricing-grid, .pricing-grid.cols-2 { grid-template-columns: 1fr; max-width: none; }
}
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px 22px 20px; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.plan.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--preview-shadow);
}
.plan-tier {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; width: fit-content;
}
.plan-tier.green { background: var(--badge-green-bg); color: var(--badge-green-text); }
.plan-tier.blue { background: var(--badge-blue-bg); color: var(--badge-blue-text); }
.plan-tier.orange { background: var(--badge-orange-bg); color: var(--badge-orange-text); }
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.plan-tagline { font-size: 12px; color: var(--muted); margin-bottom: 14px; min-height: 18px; }
.plan-price-row { margin-bottom: 6px; }
.plan-price { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan-period { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-alt { font-size: 12px; color: var(--dim); margin-bottom: 10px; min-height: 18px; }
.plan-margin {
  font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  background: var(--margin-bg); border: 1px solid var(--margin-border);
  color: var(--margin-text); margin-bottom: 16px; width: fit-content;
}
.plan ul { list-style: none; flex: 1; margin-bottom: 16px; }
.plan li {
  font-size: 13px; color: var(--muted); padding: 6px 0 6px 22px;
  position: relative;
}
.plan li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: 12px;
}
.billing-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.billing-pill {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--pill-bg); color: var(--muted); font-size: 10px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.billing-pill.active {
  background: var(--pill-active-bg); color: var(--pill-active-text); border-color: transparent;
}
.plan-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.plan .btn { width: 100%; }
.cta-band {
  margin: 0 24px 72px; max-width: 1072px; margin-inline: auto;
  padding: 48px 40px; border-radius: 24px; text-align: center;
  background: var(--cta-bg); border: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 24px; max-width: 480px; margin-inline: auto; }
footer {
  padding: 32px 0 40px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--dim);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
html[dir="rtl"] .step { padding-left: 0; padding-right: 48px; }
html[dir="rtl"] .step::before { left: auto; right: 0; }
html[dir="rtl"] .plan li { padding: 6px 22px 6px 0; }
html[dir="rtl"] .plan li::before { left: auto; right: 0; }

/* Workflow */
.workflow-intro { max-width: 720px; margin-bottom: 40px; }
.workflow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px;
}
@media (max-width: 900px) { .workflow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .workflow-grid { grid-template-columns: 1fr; } }
.wf-step {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 18px; position: relative; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.wf-step:hover { border-color: var(--teal-border); box-shadow: var(--preview-shadow); }
.wf-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--teal-soft); border: 1px solid var(--teal-border);
  display: grid; place-items: center; font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; color: var(--teal);
}
.wf-icon { font-size: 22px; line-height: 1; }
.wf-step h3 { font-size: 14px; font-weight: 700; line-height: 1.3; }
.wf-step p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.wf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.wf-tag {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--pill-bg); border: 1px solid var(--border); color: var(--dim);
}
.workflow-visual {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--preview-shadow);
}
.workflow-visual img { width: 100%; height: auto; display: block; }
.workflow-visual figcaption {
  padding: 12px 16px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border); text-align: center;
}
.erp-preview { margin-top: 40px; }
.erp-preview h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.erp-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.erp-table th, .erp-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.erp-table th {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); background: var(--pill-bg); font-weight: 700;
}
.erp-table tr:last-child td { border-bottom: none; }
.status-pill { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-risk { background: rgba(255,170,59,.15); color: var(--amber); }
.status-out { background: rgba(255,107,107,.15); color: var(--red); }
.status-ok { background: rgba(62,207,142,.15); color: var(--green); }
.action-buy { color: var(--red); font-weight: 700; }
.action-soon { color: var(--amber); font-weight: 600; }
.action-later { color: var(--green); font-weight: 600; }
html[dir="rtl"] .erp-table th, html[dir="rtl"] .erp-table td { text-align: right; }
