/* TradeRoom AI website — dark theme, RTL/LTR via logical properties */
:root {
  --bg: #0b0f17; --bg2: #0f1522; --card: #121a29; --card2: #172034; --line: #223049; --line2: #2c3c5a;
  --tx: #e8edf7; --mut: #9aa7bf; --dim: #6f7c95;
  --a1: #7c6cff; --a2: #4f8cff; --a3: #22d3a6; --warn: #f5b942;
  --grad: linear-gradient(120deg, #8b7bff 0%, #4f8cff 55%, #22d3a6 100%);
  --r: 16px; --sh: 0 20px 60px -20px rgba(0, 0, 0, .65);
  --f-ar: "Segoe UI", "Tahoma", "Noto Sans Arabic", "Arial", sans-serif;
  --f-en: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.7 var(--f-en); overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--f-ar); line-height: 1.85; }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--a1); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 14px 26px; border-radius: 12px; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-buy { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 108, 255, .7); }
.btn-buy:hover { box-shadow: 0 14px 40px -10px rgba(79, 140, 255, .8); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--tx); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 23, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(11, 15, 23, .9); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; flex-shrink: 0; direction: ltr; }
.brand-txt i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.mark { display: grid; place-items: center; border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(124, 108, 255, .7); overflow: hidden; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--mut); padding: 8px 12px; border-radius: 8px; font-size: 15px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.top-act { display: flex; align-items: center; gap: 10px; }
.lang { background: transparent; border: 1px solid var(--line2); color: var(--tx); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-width: 52px; }
.lang:hover { border-color: var(--a2); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--tx); border-radius: 2px; }

/* hero */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.glow { position: absolute; inset: -30% -10% auto; height: 760px; background: radial-gradient(600px 340px at 70% 30%, rgba(124, 108, 255, .22), transparent 70%), radial-gradient(520px 300px at 20% 10%, rgba(34, 211, 166, .12), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--a3); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; text-transform: none; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; margin-bottom: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--mut); font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13px; color: var(--tx); background: rgba(34, 211, 166, .08); border: 1px solid rgba(34, 211, 166, .25); padding: 5px 12px; border-radius: 999px; }

/* screenshot frame */
.shot { margin: 0; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: var(--sh), 0 0 0 1px rgba(124, 108, 255, .08); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0d1320; border-bottom: 1px solid var(--line); direction: ltr; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; }
.shot-bar i:nth-child(1) { background: #ff6b6b; } .shot-bar i:nth-child(2) { background: #f5b942; } .shot-bar i:nth-child(3) { background: #22d3a6; }
.shot-bar span { margin-inline-start: 10px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-shot { transform: perspective(1600px) rotateY(-4deg); }
html[dir="ltr"] .hero-shot { transform: perspective(1600px) rotateY(4deg); }

/* notice */
.notice-band { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(245, 185, 66, .06), rgba(245, 185, 66, .02)); }
.notice { display: flex; gap: 14px; align-items: center; padding: 18px 0; }
.notice-ico { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 185, 66, .15); color: var(--warn); font-weight: 800; }
.notice p { color: #d8dbe3; font-size: 15px; }
.notice b { color: var(--warn); }

/* sections */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.sub { color: var(--mut); font-size: 17px; }
.grid { display: grid; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: var(--line2); background: var(--card2); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--mut); font-size: 15px; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(124, 108, 255, .18), rgba(79, 140, 255, .1)); border: 1px solid rgba(124, 108, 255, .3); color: #b3a9ff; }
.ico svg { width: 22px; height: 22px; }
.feat-grid { grid-template-columns: repeat(3, 1fr); }

/* screenshots */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tab { background: transparent; border: 1px solid var(--line2); color: var(--mut); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; transition: all .15s; }
.tab:hover { color: var(--tx); border-color: var(--a2); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.shot-lg { max-width: 1100px; margin-inline: auto; }
.shot-zoom { display: block; width: 100%; padding: 0; border: 0; background: #0b0f17; cursor: zoom-in; }
.shot-zoom img { width: 100%; aspect-ratio: 1833 / 942; object-fit: contain; object-position: top; }
.shot-lg figcaption { padding: 14px 18px; color: var(--mut); font-size: 15px; border-top: 1px solid var(--line); }

/* video */
.video-box { max-width: 960px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 18px; border: 1px dashed var(--line2); background: radial-gradient(circle at 50% 40%, rgba(124, 108, 255, .16), transparent 60%), var(--card); display: grid; place-items: center; overflow: hidden; }
.video-box.has-video { border-style: solid; background: #000; box-shadow: var(--sh), 0 0 80px -30px rgba(124, 108, 255, .5); }
.video-box video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-ph { text-align: center; color: var(--mut); padding: 20px; }
.play { display: inline-block; width: 78px; height: 78px; border-radius: 50%; background: var(--grad); position: relative; margin-bottom: 16px; box-shadow: 0 14px 40px -10px rgba(124, 108, 255, .8); opacity: .9; }
.play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }

/* steps & team */
.steps { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--mut); font-size: 15px; }
.team { text-align: center; }
.team h3 { font-size: 26px; margin-bottom: 10px; }
.team > .sub { max-width: 700px; margin: 0 auto 28px; }
.team-grid { grid-template-columns: repeat(5, 1fr); text-align: start; }
.member { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.av { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: rgba(79, 140, 255, .14); color: #9cc0ff; border: 1px solid rgba(79, 140, 255, .3); }
.member b { display: block; }
.member small { display: block; color: var(--a3); font-size: 12.5px; margin-bottom: 4px; }
.member p { color: var(--mut); font-size: 14px; line-height: 1.6; }
.ai-note { grid-column: 1 / -1; text-align: center; color: var(--dim); font-size: 14px; margin-top: 6px; }

/* pricing */
.price-card { max-width: 520px; margin-inline: auto; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; border-radius: 22px; padding: 36px; box-shadow: var(--sh), 0 0 80px -30px rgba(124, 108, 255, .6); text-align: center; }
.price-name { display: inline-block; font-size: 14px; color: var(--mut); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; direction: ltr; }
.price-num { font-size: 72px; font-weight: 800; line-height: 1.1; margin: 14px 0 6px; direction: ltr; }
.price-num .cur { font-size: 34px; vertical-align: super; color: var(--mut); margin-inline-end: 4px; }
.price-note { color: var(--a3); font-weight: 700; }
.price-list { list-style: none; padding: 0; margin: 26px 0; text-align: start; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; color: #d6dcea; }
.price-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--a3); margin-top: 3px; }
.price-foot { color: var(--dim); font-size: 13.5px; margin-top: 14px; }

/* pricing & subscriptions: two separate options */
.sec-head .sub + .sub { margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; max-width: none; margin: 0; display: flex; flex-direction: column; }
.plan .price-list { flex: 1; }
.plan-badge { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(124, 108, 255, .8); }
html[dir="rtl"] .plan-badge { transform: translateX(50%); }
.plan-kind { color: var(--mut); font-size: 15px; margin-top: 8px; }
.price-num .per { font-size: 22px; font-weight: 600; color: var(--mut); margin-inline-start: 6px; }
.plan-tg { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, #2aabee 0%, #4f8cff 50%, #22d3a6 100%) border-box; box-shadow: var(--sh), 0 0 80px -34px rgba(42, 171, 238, .55); }
.plan-tg .price-note { color: #6fc8f5; }
.plan-badge-soon { background: rgba(42, 171, 238, .15); color: #8fd6fa; border: 1px solid rgba(42, 171, 238, .5); box-shadow: none; }
.btn-tg { background: rgba(42, 171, 238, .1); color: #bfe8fd; border: 1px solid rgba(42, 171, 238, .45); cursor: not-allowed; }
.btn-tg:hover { transform: none; background: rgba(42, 171, 238, .14); }
.soon-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(42, 171, 238, .22); color: #e3f5ff; }
.compare { max-width: 1040px; margin: 48px auto 0; }
.compare h3 { text-align: center; font-size: 24px; margin-bottom: 18px; }
.cmp-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { background: #0e1524; font-size: 14px; color: var(--mut); font-weight: 700; }
.cmp thead th.c1 { color: #c5bcff; } .cmp thead th.c2 { color: #8fd6fa; }
.cmp tbody th { color: var(--tx); font-weight: 700; width: 24%; }
.cmp td { color: #cfd6e4; width: 38%; }
.cmp-note { color: var(--dim); font-size: 14px; text-align: center; max-width: 820px; margin: 16px auto 0; }

/* faq */
.faq { display: grid; gap: 10px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s; }
.qa[open] { border-color: var(--line2); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--a2); font-size: 22px; line-height: 1; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--mut); padding-bottom: 18px; }

/* support */
.sup-grid { grid-template-columns: repeat(3, 1fr); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; background: #090d14; }
.foot-in { display: grid; gap: 16px; text-align: center; justify-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; direction: ltr; }
.foot-disc { color: var(--dim); font-size: 13.5px; max-width: 820px; }
.foot-copy { color: var(--dim); font-size: 13px; }

/* modal & lightbox */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(4, 7, 12, .75); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(440px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 32px 28px 26px; text-align: center; box-shadow: var(--sh); animation: pop .2s ease-out; }
.modal-box h3 { font-size: 22px; margin: 14px 0 10px; }
.modal-box p { color: var(--mut); margin-bottom: 22px; }
.modal-ico { display: inline-block; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); position: relative; }
.modal-ico::after { content: "⏳"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--tx); font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(4, 7, 12, .92); display: grid; place-items: center; padding: 56px 16px 16px; cursor: zoom-out; }
.lightbox img { max-height: 100%; width: auto; border-radius: 10px; box-shadow: var(--sh); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* responsive */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav { position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--bg); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .top-act { margin-inline-start: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot, html[dir="ltr"] .hero-shot { transform: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sup-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .top-in { gap: 10px; }
  .top-act .btn-sm { display: none; }
  .hero { padding: 44px 0 48px; }
  .lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .feat-grid, .steps, .sup-grid, .team-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .tab { flex-shrink: 0; }
  .price-card { padding: 28px 20px; }
  .price-num { font-size: 60px; }
  .notice { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* pricing & subscriptions — responsive */
@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; gap: 34px; }
}
@media (max-width: 640px) {
  .compare { margin-top: 36px; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { border: 0; padding: 4px 0; }
  .cmp tbody th { width: 100%; margin-bottom: 4px; }
  .cmp td { display: flex; gap: 10px; justify-content: space-between; }
  .cmp td::before { content: attr(data-h); color: var(--dim); font-size: 13px; flex-shrink: 0; }
  .price-num .per { font-size: 18px; }
}
