/* Wasla landing page. Dark navy brand, teal + amber accents. RTL first, LTR for English. */
:root {
  --bg: #0a1120;
  --bg-2: #0d1628;
  --surface: #111c31;
  --surface-2: #16233c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e8eef7;
  --muted: #9fb1c8;
  --teal: #2dd4bf;
  --teal-2: #7debdb;
  --teal-deep: #0f766e;
  --amber: #f5b544;
  --radius: 18px;
  --head: "W Alex", "W Plex", "Segoe UI", Tahoma, sans-serif;
  --body: "W Plex", "Segoe UI", Tahoma, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.3; margin: 0; }
p { margin: 0; }
.sprite { display: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="ltr"] .ic.flip { transform: scaleX(-1); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--body); cursor: pointer; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; }
.btn:focus-visible, .lang-btn:focus-visible, .card-ask:focus-visible, summary:focus-visible, .nav a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--teal), #14b8a6); color: #06231f; box-shadow: 0 10px 30px rgba(45, 212, 191, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(45, 212, 191, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(10, 17, 32, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--teal), var(--teal-deep)); color: #04201c; }
.brand-mark .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.brand-name { font: 800 24px/1 var(--head); letter-spacing: 0; }
.nav { display: flex; gap: 6px; margin-inline-start: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-btn { min-width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 15px/1 var(--body); cursor: pointer; }
.lang-btn:hover { border-color: var(--teal); color: var(--teal-2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
  radial-gradient(700px 380px at 85% -10%, rgba(45, 212, 191, 0.16), transparent 70%),
  radial-gradient(600px 360px at 0% 110%, rgba(245, 181, 68, 0.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(245, 181, 68, 0.12); color: var(--amber); border: 1px solid rgba(245, 181, 68, 0.3); font-weight: 600; font-size: 14.5px; }
.badge .ic { width: 16px; height: 16px; }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hl { color: var(--teal); }
.lead { margin-top: 18px; font-size: 19px; color: #c3d0e0; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ic { width: 18px; height: 18px; color: var(--teal); }

.hero-visual { position: relative; padding-bottom: 70px; }
.mock { background: #f6faf8; color: #102a2e; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 212, 191, 0.15); overflow: hidden; max-width: 420px; margin-inline-start: auto; }
.mock-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--teal-deep), var(--bg)); color: #fff; }
.mock-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.mock-title { font-weight: 700; font-size: 15.5px; }
.mock-status { font-size: 12.5px; opacity: 0.8; }
.mock-log { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 22px; font-size: 15px; line-height: 1.6; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; }
.bubble.user { align-self: flex-end; background: var(--teal-deep); color: #fff; border-end-end-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid #dde8e4; border-end-start-radius: 6px; }
.bubble b { color: var(--teal-deep); }
.toast { position: absolute; inset-inline-end: 18px; bottom: 30px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); animation: float 5s ease-in-out infinite; }
.toast b { display: block; font-size: 14.5px; }
.toast span:not(.toast-icon) { font-size: 13.5px; color: var(--muted); }
.toast-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(245, 181, 68, 0.15); color: var(--amber); }
.mock-note { margin-top: 14px; text-align: start; font-size: 13px; color: var(--muted); max-width: 420px; margin-inline-start: auto; padding-inline-end: 190px; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Why */
.why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.why-item { display: flex; gap: 14px; padding: 26px 22px; border-inline-start: 1px solid var(--line); }
.why-item:first-child { border-inline-start: 0; }
.why-item .ic { width: 26px; height: 26px; color: var(--teal); margin-top: 3px; }
.why-item h3 { font-size: 16.5px; font-weight: 700; }
.why-item p { margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.sec-head p { margin-top: 10px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: rgba(45, 212, 191, 0.45); transform: translateY(-2px); }
.card-alt { background: linear-gradient(160deg, rgba(45, 212, 191, 0.1), var(--surface) 60%); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(45, 212, 191, 0.12); color: var(--teal); }
.card-icon .ic { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14.5px; }
.price { color: var(--text); }
.price b { color: var(--amber); font-size: 19px; font-family: "Segoe UI", var(--body); }
.time { color: var(--muted); font-size: 13.5px; }
.card-ask { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--teal-2); font: 600 14.5px/1.4 var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(125, 235, 219, 0.35); }
.card-ask:hover { color: var(--teal); }
.note { margin-top: 22px; color: var(--muted); font-size: 15px; }

.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.demo { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.demo img { aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.demo-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.demo-body h3 { font-size: 18px; }
.demo-body p { color: var(--muted); font-size: 15px; flex: 1; }
.demo-body .btn { align-self: flex-start; }
.demo-body .btn .ic { width: 16px; height: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #06231f; font: 800 18px/1 "Segoe UI", sans-serif; margin-bottom: 14px; }
.steps h3 { font-size: 17px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 "Segoe UI", sans-serif; color: var(--teal); flex: none; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 18px; color: var(--muted); }

.cta-final { padding: 72px 0 84px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 24px; background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(245, 181, 68, 0.08)), var(--surface); border: 1px solid rgba(45, 212, 191, 0.3); }
.cta-box h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-box p { margin-top: 8px; color: #c3d0e0; max-width: 36em; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 96px; font-size: 14.5px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand.small { gap: 10px; color: var(--muted); }
.brand.small .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.brand.small .brand-mark .ic { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-inline-start: 0; }
  .why-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .hero { padding: 44px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { margin-inline: auto; }
  .toast { inset-inline-end: 8px; }
  .mock-note { margin-inline: auto; padding-inline-end: 0; }
  .demos { grid-template-columns: 1fr; max-width: 560px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-row { gap: 10px; min-height: 62px; }
  .brand-name { font-size: 21px; }
  .top-actions .btn-sm { padding: 0 12px; font-size: 14px; }
  .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cards, .steps, .why-grid { grid-template-columns: 1fr; }
  .why-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .why-item:first-child { border-top: 0; }
  .section { padding: 60px 0; }
  .toast { position: relative; inset: auto; margin: -18px auto 0; width: fit-content; }
  .mock-note { text-align: center; }
  .cta-box .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { animation: none; }
  .btn, .card { transition: none; }
}
