:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --navy: #12203a;
  --navy-2: #182844;
  --gold: #d4b14a;
  --gold-2: #f3d98a;
  --gold-d: #9a7420;
  --cream: #f6f1e6;
  --text: #e9edf5;
  --muted: #9aa6b8;
  --line: rgba(212, 177, 74, 0.28);
  --glass: rgba(14, 22, 40, 0.72);
  --danger: #e07a6a;
  --ok: #7dcea0;
  --shadow: 0 30px 80px rgba(0,0,0,.45);
  --radius: 22px;
  --font: "Plus Jakarta Sans", "Tajawal", system-ui, sans-serif;
  --display: "Cormorant Garamond", "Noto Naskh Arabic", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100%; overflow-x: hidden; }
body::before {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(212,177,74,.16), transparent 55%),
    radial-gradient(700px 400px at -10% 20%, rgba(40,80,160,.18), transparent 50%),
    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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  z-index: 0;
}
img { max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7,11,20,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 700; letter-spacing: .04em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold-d));
  color: #1a1204; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  box-shadow: 0 0 24px rgba(212,177,74,.35);
}
.logo small { display: block; font-weight: 500; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; gap: 18px; margin-left: auto; font-size: 13.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--cream); }
.lang { display: flex; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  background: transparent; border: 0; color: var(--muted); padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 12px;
}
.lang button.on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1204; font-weight: 700; }
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 14px; cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1204;
  box-shadow: 0 8px 24px rgba(212,177,74,.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212,177,74,.35); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.nav .btn { padding: 9px 16px; font-size: 13px; }

/* hero */
.hero { padding: 72px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); color: var(--gold-2);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); display: inline-block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 74px); line-height: .95; letter-spacing: -0.02em; margin: 18px 0 16px; color: var(--cream); }
h1 em { font-style: italic; color: var(--gold-2); }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hero-meta strong { display: block; color: var(--cream); font-size: 20px; font-family: var(--display); }

.orb-card {
  position: relative;
  background: linear-gradient(180deg, rgba(24,36,64,.9), rgba(10,16,30,.92));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
}
.orb {
  position: absolute; filter: blur(2px); opacity: .7; pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.orb.a { width: 180px; height: 180px; right: -30px; top: -40px; background: radial-gradient(circle, rgba(212,177,74,.55), transparent 65%); }
.orb.b { width: 160px; height: 160px; left: -40px; bottom: 40px; background: radial-gradient(circle, rgba(70,110,200,.45), transparent 65%); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(16px) scale(1.05); } }
.demo-live { position: relative; z-index: 1; }
.demo-live h3 { font-size: 26px; margin-bottom: 8px; }
.chat-script { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; min-height: 240px; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: pop .4s ease; }
.bubble.bot { background: rgba(212,177,74,.12); border: 1px solid var(--line); align-self: flex-start; }
.bubble.user { background: #1c2a48; align-self: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pills button, .chip {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--cream);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; font-size: 12px;
}
.pills button:hover, .pills button.on { border-color: var(--gold); color: var(--gold-2); }

/* sections */
section { padding: 80px 0; position: relative; z-index: 1; }
.sec-title { text-align: center; margin-bottom: 40px; }
.sec-title h2 { font-size: clamp(32px, 4vw, 52px); color: var(--cream); }
.sec-title p { color: var(--muted); margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: -10px; }
.stat { background: var(--glass); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 20px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 32px; color: var(--gold-2); }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, rgba(20,30,52,.9), rgba(10,16,30,.92));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.card h3 { font-size: 28px; margin: 8px 0; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step { padding: 22px; border-radius: 18px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.step em { color: var(--gold); font-style: normal; font-weight: 700; letter-spacing: .12em; font-size: 12px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; align-items: stretch; }
.price {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,18,32,.9);
  display: flex; flex-direction: column;
}
.price.popular { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,177,74,.3), 0 20px 50px rgba(212,177,74,.12); }
.badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1204; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.amt { font-family: var(--display); font-size: 40px; color: var(--cream); margin: 10px 0 0; }
.amt span { font-size: 16px; color: var(--muted); }
.price ul { padding: 0; list-style: none; margin: 16px 0 20px; color: var(--muted); font-size: 13.5px; flex: 1; }
.price li { margin: 8px 0; padding-left: 18px; position: relative; }
.price li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 2px; }

/* ROI + customize */
.panel {
  background: linear-gradient(180deg, rgba(16,26,46,.95), rgba(9,14,26,.95));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; letter-spacing: .04em; text-transform: uppercase; }
input, select, textarea {
  width: 100%; background: #0a1120; border: 1px solid rgba(255,255,255,.1);
  color: var(--cream); border-radius: 12px; padding: 11px 12px; font-size: 14px;
}
textarea { min-height: 90px; resize: vertical; }
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkgrid label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); display: flex; gap: 8px; align-items: center; margin: 0; }
.checkgrid input { width: auto; }
.quote-box { text-align: left; }
.quote-box .amt { font-size: 48px; }
.fine { color: var(--muted); font-size: 13px; }
.offer-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.counter { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(212,177,74,.08); border: 1px solid var(--line); color: var(--cream); font-size: 14px; }
.err { color: var(--danger); font-size: 13px; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }

footer { border-top: 1px solid rgba(255,255,255,.06); padding: 36px 0 80px; color: var(--muted); font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* chat widget */
#chat-fab, #wa-fab {
  position: fixed; z-index: 60; right: 20px; bottom: 20px;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
#chat-fab { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1204; font-size: 22px; }
#wa-fab { right: 88px; background: #1f6b46; color: white; font-size: 22px; }
#chat-panel {
  position: fixed; z-index: 70; right: 20px; bottom: 90px; width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 120px));
  background: #0c1424; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
#chat-panel.open { display: flex; animation: pop .3s ease; }
.chat-head { padding: 14px 16px; background: linear-gradient(90deg, #16233d, #1a2a20); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.chat-head b { display: block; }
.chat-head span { color: var(--muted); font-size: 12px; }
.chat-head button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.chat-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.chat-in input { flex: 1; }
.chat-in button { border: 0; border-radius: 12px; background: var(--gold); color: #1a1204; font-weight: 700; padding: 0 14px; cursor: pointer; }
.chat-wa { display: none; padding: 0 12px 12px; }
.chat-wa a { display: block; text-align: center; }

/* rtl */
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] #chat-fab { right: auto; left: 20px; }
html[dir="rtl"] #wa-fab { right: auto; left: 88px; }
html[dir="rtl"] #chat-panel { right: auto; left: 20px; }
html[dir="rtl"] .bubble.user { align-self: flex-start; }
html[dir="rtl"] .bubble.bot { align-self: flex-end; }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .8s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .hero-grid, .split, .price-grid, .cards, .stats, .steps { grid-template-columns: 1fr; }
  .price-grid, .cards { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  h1 { font-size: 44px; }
}
@media (max-width: 640px) {
  .price-grid, .cards, .form-grid, .checkgrid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
