:root {
  --bg: #070d18;
  --bg-2: #0b1424;
  --card: rgba(255, 255, 255, 0.04);
  --card-solid: #101c30;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eef8;
  --muted: #93a4bd;
  --brand: #23c08b;
  --brand-2: #0ea5e9;
  --gold: #f5c15b;
  --danger: #f26d6d;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(35, 192, 139, 0.18), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
main { min-height: 62vh; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.2px; }
h1 { font-size: clamp(30px, 4.4vw, 54px); }
h2 { font-size: clamp(23px, 2.8vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 64px 0; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px min(4vw, 40px);
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04121a; font-weight: 700; font-size: 17px;
}
.nav-links { display: flex; gap: 20px; font-size: 15px; color: var(--muted); flex-wrap: wrap; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.pill {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: rgba(35, 192, 139, 0.12); color: #8ef0c9; border: 1px solid rgba(35, 192, 139, 0.25);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #17a97a);
  color: #04121a; box-shadow: 0 12px 30px rgba(35, 192, 139, 0.28);
}
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-soft { background: rgba(35, 192, 139, 0.12); color: #8ef0c9; border-color: rgba(35, 192, 139, 0.28); }
.btn-danger { background: rgba(242, 109, 109, 0.14); color: #ffb2b2; border-color: rgba(242, 109, 109, 0.3); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(35, 192, 139, 0.3);
  background: rgba(35, 192, 139, 0.1); color: #9df3d1; margin-bottom: 18px;
}
.hero h1 span { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18.5px; color: #c3d2e6; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-proof { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof div strong { display: block; font-size: 24px; color: #fff; }
.hero-proof div span { font-size: 13px; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(8px);
}
.card-solid { background: var(--card-solid); }
.card h3 { margin-bottom: 8px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(35, 192, 139, 0.12); color: #8ef0c9; font-size: 20px; margin-bottom: 12px;
}

/* ---------------- Chat preview ---------------- */
.chat-demo { display: flex; flex-direction: column; height: 460px; padding: 0; overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(35, 192, 139, 0.18); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-bottom-right-radius: 5px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, rgba(35, 192, 139, 0.9), rgba(23, 169, 122, 0.9)); color: #04121a; border-bottom-left-radius: 5px; font-weight: 500; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: inherit; font-size: 14.5px;
}
.chat-input input:focus { outline: 2px solid rgba(35, 192, 139, 0.4); }
.chat-input button { padding: 10px 18px; border-radius: 11px; border: none; background: var(--brand); color: #04121a; font-weight: 700; cursor: pointer; font-family: inherit; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.chip {
  font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-family: inherit;
}
.chip:hover { color: #fff; border-color: rgba(35, 192, 139, 0.4); }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: #c9d6e8; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: inherit; font-size: 14.5px;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(35, 192, 139, 0.35); border-color: transparent; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------------- Flash ---------------- */
.flash {
  padding: 11px 16px; border-radius: 12px; margin: 14px 0; font-size: 14.5px;
  border: 1px solid rgba(35, 192, 139, 0.35); background: rgba(35, 192, 139, 0.12); color: #a8f5d6;
}
.flash-error { border-color: rgba(242, 109, 109, 0.35); background: rgba(242, 109, 109, 0.12); color: #ffc0c0; }

/* ---------------- Dashboard ---------------- */
.app { padding: 28px min(4vw, 40px) 60px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.app-head h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 13px 16px; border-radius: 13px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.list-item:hover { background: rgba(255, 255, 255, 0.055); }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.tag-ok { color: #8ef0c9; border-color: rgba(35, 192, 139, 0.35); background: rgba(35, 192, 139, 0.1); }
.tag-warn { color: #ffd68f; border-color: rgba(245, 193, 91, 0.35); background: rgba(245, 193, 91, 0.1); }
.tag-danger { color: #ffb2b2; border-color: rgba(242, 109, 109, 0.35); background: rgba(242, 109, 109, 0.1); }

.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.conv-list { max-height: 70vh; overflow-y: auto; }
.conv { padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; display: block; }
.conv:hover { background: rgba(255, 255, 255, 0.05); }
.conv.on { background: rgba(35, 192, 139, 0.1); border-color: rgba(35, 192, 139, 0.3); }
.conv-name { font-weight: 600; font-size: 14.5px; }
.conv-sub { font-size: 12px; color: var(--muted); }
.thread { display: flex; flex-direction: column; height: 70vh; padding: 0; overflow: hidden; }
.thread-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.thread-body .msg.agent { align-self: flex-start; background: rgba(14, 165, 233, 0.16); border: 1px solid rgba(14, 165, 233, 0.3); border-bottom-right-radius: 5px; }
.thread-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }

.code {
  background: #050a13; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; direction: ltr; text-align: left;
  overflow-x: auto; white-space: pre; color: #a9e9cf;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------------- Pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 6px; position: relative; }
.price.popular { border-color: rgba(35, 192, 139, 0.45); box-shadow: 0 18px 50px rgba(35, 192, 139, 0.15); }
.price .amount { font-size: 36px; font-weight: 700; }
.price .amount small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: #cbd8ea; }
.price ul li::before { content: '✓'; color: var(--brand); margin-inline-end: 8px; font-weight: 700; }
.ribbon {
  position: absolute; top: -11px; left: 18px; font-size: 11.5px; padding: 3px 10px;
  border-radius: 999px; background: var(--brand); color: #04121a; font-weight: 700;
}

/* ---------------- FAQ ---------------- */
details.faq { border: 1px solid var(--border); border-radius: 13px; padding: 14px 18px; background: var(--card); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 0 26px; background: rgba(0, 0, 0, 0.2); }
.footer-inner { width: min(1180px, 92vw); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-note { width: min(1180px, 92vw); margin: 22px auto 0; color: #6d7f99; font-size: 12.5px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 44px 0; }
  .thread { height: auto; }
  .thread-body { max-height: 55vh; }
}


