/* Landing page only (site.css holds the shared look). Minimal: black, one blue, Inter; the 3D hero, one tilted screen,
   the 12 symbols, eight features, the video, the plans and the FAQ. One idea per screen, lots of room. */
.lp { overflow-x: clip; }   /* clip, not hidden: hidden makes body a scroll box and the sticky header stops sticking */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--h-blue); color: #fff; padding: 10px 16px;
  border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.lp .sec-h.center { margin: 0 auto; text-align: center; }
.lp .sec-h.center p { margin-left: auto; margin-right: auto; }
.grad { background: linear-gradient(100deg, #8fbcff 0%, #3d8bff 45%, #6aa8ff 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; }
.btn.glass { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .09); }

/* ---- hero */
.hx { position: relative; padding: 96px 0 56px; overflow: clip; }
.hx-glow { position: absolute; inset: -120px 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(55% 45% at 70% 40%, rgba(61, 139, 255, .14), transparent 70%); }
.hx-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; min-height: 600px; }
.hx h1 { font-size: clamp(46px, 5.8vw, 84px); line-height: 1; letter-spacing: -.05em; margin: 0; max-width: 9ch; }
.hx h1 .grad { display: inline-block; padding-bottom: .06em; }
.lp .hx-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--h-muted); max-width: 26ch; margin-top: 28px; line-height: 1.6; }
.hx .cta { margin-top: 40px; }

/* 3D stage: canvas + tags placed by hero3d.js */
/* default (no JS, script failed, no WebGL, slow device) = the screenshot; hero3d.js adds .ready when the 3D scene runs */
.h3 { position: relative; perspective: 1400px; }
.h3.ready { height: 600px; perspective: none; background: #131722; border: 1px solid #2a2e39; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.h3 canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; visibility: hidden; opacity: 0; transition: opacity .9s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 94%, transparent 100%); }
.h3.ready canvas { visibility: visible; opacity: 1; }
.h3:not(.ready) .h3-hud, .h3:not(.ready) .h3-price, .h3:not(.ready) .h3-trade { display: none; }
.h3.fade canvas { opacity: 0; transition-duration: 2.2s; }
/* TradingView dark: #131722 chart, #d1d4dc text, #787b86 secondary, up #089981, down #f23645 */
.h3-hud { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #787b86; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h3-hud b { color: #d1d4dc; font-weight: 600; }
.h3-hud .h3-clock { color: #d1d4dc; margin-left: 6px; }
.h3-price, .h3-trade { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.h3-price { display: flex; flex-direction: column; align-items: stretch; margin: -14px 0 0 6px; border-radius: 3px; overflow: hidden;
  background: #f23645; color: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.h3-price.up { background: #089981; }
.h3-price b { padding: 4px 9px 1px; font-weight: 600; }
.h3-price span { padding: 0 9px 4px; font-size: 11.5px; opacity: .85; }
.h3-price span:empty { display: none; }
.h3-trade { margin: -34px 0 0 -40px; padding: 4px 10px; border-radius: 4px; background: #f23645; color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5); white-space: nowrap; }
.h3-trade.win { background: #089981; }
.h3-cap { margin-top: 48px; font-size: 12px; color: var(--h-dim); }
.h3.ready .h3-cap { position: absolute; right: 16px; bottom: 10px; margin: 0; color: #8d919d; }   /* 5.7:1 on #131722 */
.h3-fallback { display: block; transform: rotateY(-14deg) rotateX(6deg); transform-origin: left center;
  box-shadow: 0 40px 120px -30px rgba(61, 139, 255, .35); }
.h3.ready .h3-fallback { display: none; }

/* ---- sections: big calm headings, short lines, room around them */
.lp .sec { padding-top: 160px; }
.lp .sec-h h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.04em; margin: 0; }
.lp .sec-h p { font-size: 18px; line-height: 1.7; max-width: 52ch; margin-top: 18px; }

/* ---- markets: the 12 symbols in one quiet grid */
.syms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 64px auto 0; max-width: 1060px;
  border-top: 1px solid var(--h-line); }
.sym { padding: 26px 8px 24px; text-align: center; border-bottom: 1px solid var(--h-line); min-width: 0; }
.sym b { display: block; color: var(--h-ink); font-size: 16px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sym span { display: block; color: var(--h-dim); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- features: four, an icon and a few words */
.feats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; margin: 72px auto 0; max-width: 1060px; }
.f4 svg { width: 28px; height: 28px; fill: none; stroke: var(--h-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.f4 svg circle { fill: var(--h-blue); stroke: none; }
.f4 h3 { font-size: 18px; letter-spacing: -.02em; margin-top: 20px; }
.f4 p { color: var(--h-muted); font-size: 15.5px; margin-top: 6px; line-height: 1.6; }

/* ---- video: one minute of the real app (poster first, nothing loads until play: preload none) */
.lp .vid { position: relative; max-width: 1100px; margin: 56px auto 0; border: 1px solid var(--h-line2); border-radius: 14px; overflow: hidden;
  background: #131722; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px #000, 0 50px 140px -50px rgba(61, 139, 255, .35); }
.lp .vid video { display: block; width: 100%; height: 100%; object-fit: contain; background: #131722; }
.lp .hx .cta-note { margin-top: 18px; font-size: 14px; color: var(--h-muted); }

/* ---- showcase: one tilted screen that flattens as it scrolls in (--p 0..1 from landing.js), three samples */
.tabs { display: flex; justify-content: center; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--h-line);
  border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; color: var(--h-muted); font: 500 14px/1 var(--h-font); padding: 10px 18px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--h-ink); }
.tabs button[aria-selected="true"] { background: var(--h-panel3); color: var(--h-ink); }
.tabs button:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }
.tilt-stage { --p: 0; position: relative; perspective: 1800px; max-width: 1100px; margin: 40px auto 0; }
.tilt { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--p)) * 18deg)) scale(calc(.94 + var(--p) * .06)); will-change: transform; }
.panels:not(.js) .panel + .panel { margin-top: 32px; }
.panel { margin: 0; }
.panel .shot { box-shadow: 0 0 0 1px #000, 0 50px 140px -50px rgba(61, 139, 255, .35); }
.panels.js .panel:not([hidden]) .shot { animation: fadein .45s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.panel figcaption { text-align: center; color: var(--h-dim); font-size: 14px; margin-top: 18px; }

/* ---- pricing + FAQ */
.lp .plans { max-width: 1060px; margin-left: auto; margin-right: auto; margin-top: 64px; }
.lp .soon { max-width: 1060px; margin-left: auto; margin-right: auto; margin-top: 48px; }
.lp .more-link { text-align: center; margin-top: 32px; }
.more-link a { color: var(--h-blue); text-decoration: none; font-weight: 600; font-size: 15px; }
.more-link a:hover { text-decoration: underline; }
.lp .faq { margin: 56px auto 0; max-width: 760px; }
.lp .faq a { color: var(--h-blue); }
.lp .faq p { line-height: 1.7; max-width: 62ch; }
.lp main { padding-bottom: 160px; }
.lp .foot { border-top: 1px solid var(--h-line); }

/* ---- tablet */
@media (max-width: 1100px) {
  .hx-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hx-copy { text-align: center; }
  .hx h1, .lp .hx-lead { margin-left: auto; margin-right: auto; }
  .hx .cta { justify-content: center; }
  .h3 { margin: 40px 0 0; }
  .h3.ready { height: 480px; }
  .syms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; max-width: 640px; }
}
/* ---- phone */
@media (max-width: 700px) {
  .hx { padding-top: 56px; padding-bottom: 24px; }
  .hx h1 { font-size: clamp(42px, 13vw, 60px); }
  .h3.ready { height: 380px; margin-top: 8px; border-radius: 12px; }
  .lp .hx-lead { margin-top: 20px; }
  .h3-hud { left: 12px; top: 10px; font-size: 11.5px; gap: 6px; }
  .h3-hud .h3-name { display: none; }
  .h3.ready .h3-cap { right: 16px; left: 16px; text-align: center; }
  .lp .sec { padding-top: 112px; }
  .lp .sec-h p { font-size: 16.5px; }
  .syms { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; }
  .sym { padding: 20px 4px 18px; } .sym b { font-size: 14.5px; } .sym span { font-size: 12px; }
  .feats4 { grid-template-columns: 1fr 1fr; gap: 40px 20px; margin-top: 52px; }
  .tilt { transform: rotateX(calc((1 - var(--p)) * 12deg)) scale(calc(.96 + var(--p) * .04)); }
  .tilt-stage { margin-top: 28px; }
  .tabs button { padding: 10px 13px; font-size: 13.5px; }
  .lp .plans { margin-top: 44px; }
  .lp main { padding-bottom: 112px; }
  .lp .vid { margin-top: 36px; border-radius: 10px; }
}
@media (pointer: coarse) { .tabs button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .panels.js .panel:not([hidden]) .shot { animation: none; }
  .h3 canvas { transition: none; }
}

/* ---- language (landing page only): English, Arabic, Persian. Arabic and Persian read right to left */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/site/fonts/vazirmatn-arabic.woff2") format("woff2-variations"), url("/site/fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
.lang-pick { position: relative; flex: none; margin-inline-start: 8px; }
.lang-pick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px;
  border: 1px solid var(--h-line2); border-radius: 999px; color: var(--h-ink2); font-size: 13px; font-weight: 600; user-select: none; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang-pick summary:hover, .lang-pick[open] summary { border-color: var(--h-muted); color: var(--h-ink); }
.lang-pick ul { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 150px;
  background: var(--h-panel2); border: 1px solid var(--h-line2); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.lang-pick li a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 8px; color: var(--h-ink2); text-decoration: none; font-size: 14px; }
.lang-pick li a:hover, .lang-pick li a:focus-visible { background: var(--h-panel3); color: var(--h-ink); }
.lang-pick li a[aria-current="true"] { color: var(--h-blue); }
.lang-pick li a small { color: var(--h-dim); font-size: 12px; }
html[dir="rtl"] body.site { font-family: "Vazirmatn", var(--h-font); }
html[dir="rtl"] .site * { letter-spacing: 0 !important; }   /* spacing breaks joined Arabic letters */
html[dir="rtl"] .hx h1 { line-height: 1.25; max-width: 12ch; }
html[dir="rtl"] .sec-h h2 { line-height: 1.35; }
/* the chart pictures, the 3D replay and the app mock-ups stay left to right like the app; their words follow the page */
html[dir="rtl"] .h3, html[dir="rtl"] .shot, html[dir="rtl"] .sym b { direction: ltr; }
html[dir="rtl"] .h3-cap { direction: rtl; }
html[dir="rtl"] .foot .row > span:not(.grow) { direction: ltr; unicode-bidi: isolate; }
/* 320px phones: the logo mark alone (its label still names the site) so the buttons and the language fit */
@media (max-width: 359px) { .lp .nav .brand .wm { display: none; } }
@media (max-width: 420px) { .lang-pick { margin-inline-start: 4px; } .lang-pick summary { padding: 0 8px; height: 36px; } .lang-pick summary b { display: none; } }
