:root {
  --bg: #07090E;
  --panel: #101521;
  --card: #131927;
  --border: #232C40;
  --border-soft: #1A2131;
  --text: #F1F5FB;
  --muted: #93A0B8;
  --accent: #FF7A18;
  --accent-2: #FFB347;
  --accent-soft: rgba(255, 122, 24, 0.14);
  --green: #34D399;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.bg-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}
.bg-glow-1 { top: -220px; left: -140px; background: var(--accent); }
.bg-glow-2 { top: 320px; right: -220px; background: #2563EB; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: #FFD1A3;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-icon { width: 34px; height: 34px; }
.version-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-block { width: 100%; padding: 13px 18px; font-size: 0.95rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #FF5E00);
  color: #160C04;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(255, 122, 24, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border); }

/* HERO */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 24, 0.3);
  color: #FFB67A;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #FFB347, #FF6A00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* EDITOR MOCKUP */
.editor-window {
  background: #0D111A;
  border: 1px solid #283247;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255,255,255,0.03);
}
.ew-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0A0D14;
  border-bottom: 1px solid #1E2638;
  font-size: 12px;
}
.ew-dots { display: flex; gap: 6px; }
.ew-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2D364B; }
.ew-dots span:first-child { background: #EF4444; }
.ew-dots span:nth-child(2) { background: #F59E0B; }
.ew-dots span:nth-child(3) { background: #10B981; }
.ew-title { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px; }
.ew-export-pill {
  background: var(--accent);
  color: #160C04;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 6px;
}
.ew-stage { padding: 12px; background: #07090D; }
.sim-video {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #222B3E;
}
.sim-road-svg, .sim-road-video { width: 100%; height: 100%; display: block; object-fit: cover; }
.tr-thumb { height: 18px; width: 28px; object-fit: cover; border-radius: 3px; margin-right: 6px; flex-shrink: 0; }
.road-dash { animation: dashMove 1.4s linear infinite; }
@keyframes dashMove {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -32; }
}
.sim-minimap {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 112px;
  background: #0B1018;
  border: 2px solid #F5C242;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.mm-head {
  display: flex;
  justify-content: space-between;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(0,0,0,0.75);
  color: #F5C242;
}
.mm-svg { width: 100%; display: block; }
.sim-km-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 14, 22, 0.88);
  border: 1.5px solid #F5C242;
  color: #F5C242;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}
.ew-timeline {
  position: relative;
  padding: 10px 12px 12px;
  background: #0B0F18;
  border-top: 1px solid #1E2638;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ew-track {
  position: relative;
  height: 24px;
  background: #121725;
  border-radius: 5px;
  display: flex;
  align-items: center;
}
.tr-tag {
  width: 28px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
}
.tr-tag.t { color: #F59E0B; }
.tr-tag.v { color: #60A5FA; }
.tr-tag.a { color: #34D399; }
.tr-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.tr-bar.km { background: #9C5218; color: #FFF; }
.tr-bar.map { background: #186B69; color: #FFF; }
.tr-bar.vid { background: #2D4F7C; color: #FFF; }
.tr-bar.aud { background: #236B52; color: #E6FFF5; justify-content: space-between; }
.wave-bars {
  width: 48%;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.45) 0 2px, transparent 2px 5px);
}
.ew-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  pointer-events: none;
}

/* STATS STRIP */
.stats-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(16, 21, 33, 0.55);
  padding: 34px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-lbl { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* SECTIONS */
.section { padding: 86px 0; }
.section-alt { background: rgba(16, 21, 33, 0.45); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1rem; }

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: #34415E; }
.card-accent {
  background: linear-gradient(155deg, rgba(255, 122, 24, 0.14), var(--card) 58%);
  border-color: rgba(255, 122, 24, 0.35);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 24, 0.3);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* INTERACTIVE WIPE DEMO */
.wipe-demo {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2B3650;
  cursor: ew-resize;
  user-select: none;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.wipe-layer { position: absolute; inset: 0; }
.wipe-layer svg, .wipe-media { width: 100%; height: 100%; display: block; object-fit: cover; }
.wipe-date-badge {
  position: absolute;
  top: 14px;
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(10, 14, 22, 0.82);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.wipe-date-badge.left { left: 14px; color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.5); }
.wipe-date-badge.right { right: 14px; color: #34D399; border: 1px solid rgba(52, 211, 153, 0.5); }
.wipe-play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10, 14, 22, 0.85);
  color: #FFFFFF;
  font-size: 12px;
  cursor: pointer;
  z-index: 4;
}
.wipe-play-btn:hover { background: var(--accent); color: #160C04; border-color: var(--accent); }
.wipe-before { clip-path: inset(0 50% 0 0); }
.wipe-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #FFFFFF;
  transform: translateX(-50%);
  pointer-events: none;
}
.wipe-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #160C04;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 8px 24px rgba(0,0,0,0.5);
}
.wipe-km-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 10px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.93rem; }

/* COMPARISON TABLE */
.table-wrap { overflow-x: auto; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmp-table th, .cmp-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.94rem;
}
.cmp-table th { background: #0D121D; font-weight: 700; }
.cmp-table .hl { background: rgba(255, 122, 24, 0.08); font-weight: 700; }
.cmp-table th.hl { color: var(--accent); }
.cmp-table .yes { color: var(--green); }
.cmp-table .no { color: #6B758A; }

/* PRICING */
.billing-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-top: 22px;
}
.bt-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.bt-btn.active { background: var(--accent); color: #160C04; font-weight: 700; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.popular {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.11), var(--card) 42%);
  box-shadow: 0 22px 60px rgba(255, 122, 24, 0.12);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #160C04;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pc-head h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pc-head p { color: var(--muted); font-size: 0.88rem; }
.pc-price { margin: 22px 0; display: flex; align-items: baseline; gap: 6px; }
.pc-price .amount { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.03em; }
.pc-price .period { color: var(--muted); font-size: 0.92rem; }
.pc-list { list-style: none; margin-bottom: 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.pc-list li.muted { color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin-top: 12px; font-size: 0.94rem; }

/* FOOTER */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-sm { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; }
.footer-note { color: var(--muted); font-size: 0.88rem; max-width: 420px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: #5E6A82; font-size: 0.82rem; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-soft); }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.modal h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal label { display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; color: var(--muted); }
.modal input {
  background: #171D2B;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.94rem;
  font-family: inherit;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.modal.modal-wide { max-width: 720px; max-height: 92vh; overflow-y: auto; }
.modal-err {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
  font-size: 0.85rem;
}
.paytr-modal-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FFFFFF;
}
#modalPaytrFrame { width: 100%; height: 580px; display: block; border: 0; }

.lang-select {
  background: #131927;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--accent); }

[dir="rtl"] .cmp-table th,
[dir="rtl"] .cmp-table td { text-align: right; }
[dir="rtl"] .modal-close { right: auto; left: 16px; }

@media (max-width: 960px) {
  .hero-grid, .bento-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
