@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --navy:#0f2a4a; --gold:#e8b04b; --bg:#f4f6f9; --surface:#fff; --text:#13202f; --muted:#5b6676; --line:#e1e6ee; --link:#0f2a4a; --on-accent:#fff; --accent:#0f2a4a; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#08121f; --surface:#0f1d31; --text:#e7ecf3; --muted:#97a4b8; --line:#1f3350; --link:#e8b04b; --accent:#e8b04b; --on-accent:#0f2a4a; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:"Vazirmatn",system-ui,sans-serif; line-height:1.9; }
a { color:var(--link); }
header, footer, main { max-width:760px; margin:0 auto; padding:0 16px; }
header { display:flex; align-items:center; justify-content:space-between; padding-top:20px; padding-bottom:20px; }
header img { height:44px; width:auto; }
.btn { display:inline-block; background:var(--accent); color:var(--on-accent); padding:10px 22px; border-radius:10px; text-decoration:none; font-weight:600; }
h1 { font-size:1.9rem; line-height:1.5; margin:.6em 0 .3em; }
h2 { font-size:1.2rem; margin:1.8em 0 .3em; }
.lead { color:var(--muted); font-size:1.1rem; }
.cards { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); margin:28px 0; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 18px; }
.card h3 { margin:.2em 0; font-size:1rem; }
.card p { margin:.2em 0; color:var(--muted); font-size:.95rem; }
footer { border-top:1px solid var(--line); margin-top:48px; padding-top:18px; padding-bottom:32px; color:var(--muted); font-size:.9rem; }

/* Home page */
.wide { max-width:1040px; margin:0 auto; padding:0 16px; }
.hero { background:radial-gradient(1200px 500px at 80% -10%, rgba(232,176,75,.22), transparent 60%), linear-gradient(180deg,#0f2a4a,#0a1d34); color:#fff; padding:56px 0 72px; }
.hero .wide { display:grid; gap:40px; grid-template-columns:1.1fr .9fr; align-items:center; }
.hero h1 { font-size:2.5rem; line-height:1.45; margin:0 0 14px; }
.hero h1 em { font-style:normal; color:var(--gold); }
.hero .lead { color:rgba(255,255,255,.78); font-size:1.15rem; margin:0 0 26px; }
.hero .btn { background:var(--gold); color:#0f2a4a; padding:13px 30px; font-size:1.05rem; }
.btn.ghost { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.35); margin-inline-start:10px; }
.hero small { display:block; margin-top:14px; color:rgba(255,255,255,.6); }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.topbar .brand { color:#fff; font-weight:800; font-size:1.3rem; text-decoration:none; display:flex; align-items:center; gap:10px; direction:ltr; }
.topbar .brand b { color:var(--gold); }
.topbar .brand img { width:36px; height:36px; }
.topbar a.login { color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.3); padding:7px 18px; border-radius:10px; }
.mock { background:#0f1d31; border:1px solid #1f3350; border-radius:18px; padding:18px; box-shadow:0 30px 60px rgba(0,0,0,.35); direction:rtl; }
.mock .tag { font-size:.78rem; color:#97a4b8; }
.mock .big { font-size:1.9rem; font-weight:800; margin:2px 0 0; }
.mock .row { display:flex; justify-content:space-between; gap:8px; padding:9px 0; border-top:1px solid #1f3350; font-size:.95rem; }
.mock .up { color:#34d399; } .mock .down { color:#f87171; }
.mock .bars { display:flex; align-items:flex-end; gap:5px; height:70px; margin:12px 0 4px; direction:ltr; }
.mock .bars i { flex:1; background:linear-gradient(180deg,var(--gold),#b07a1c); border-radius:4px 4px 0 0; }
.mock .alert { margin-top:12px; background:rgba(232,176,75,.12); border:1px solid rgba(232,176,75,.4); border-radius:10px; padding:8px 12px; font-size:.88rem; color:#f6dba5; }
section.block { padding:56px 0 8px; }
section.block h2 { font-size:1.7rem; margin:0 0 8px; text-align:center; }
section.block p.sub { text-align:center; color:var(--muted); margin:0 auto 28px; max-width:640px; }
.grid3 { display:grid; gap:16px; grid-template-columns:repeat(3,1fr); }
@media (max-width:900px) { .grid3 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px) { .grid3 { grid-template-columns:1fr; } }
@media (min-width:901px) { .grid3 > :last-child:nth-child(3n+1) { grid-column:2; } }
.feat { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:22px; }
.feat .ic { width:44px; height:44px; border-radius:12px; background:rgba(232,176,75,.18); display:grid; place-items:center; font-size:1.4rem; margin-bottom:10px; }
.feat h3 { margin:.2em 0 .3em; font-size:1.1rem; }
.feat p { margin:0; color:var(--muted); }
.pain { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.pain div { border-inline-start:3px solid var(--gold); background:var(--surface); padding:12px 16px; border-radius:8px; }
.steps { counter-reset:s; display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.step { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:22px; }
.step::before { counter-increment:s; content:counter(s); display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--navy); color:var(--gold); font-weight:800; margin-bottom:8px; }
.trust { background:var(--navy); color:#fff; border-radius:20px; padding:32px; margin-top:56px; }
.trust h2 { text-align:start; margin:0 0 8px; }
.trust p { color:rgba(255,255,255,.8); margin:.4em 0; }
.trust ul { margin:12px 0 0; padding-inline-start:20px; color:rgba(255,255,255,.9); }
.final { text-align:center; padding:64px 0 8px; }
.final h2 { font-size:1.8rem; margin:0 0 8px; }
.final .btn { padding:13px 34px; font-size:1.05rem; }
@media (max-width:760px) { .hero .wide { grid-template-columns:1fr; } .hero h1 { font-size:1.8rem; } }
.feat.soon { position:relative; border-style:dashed; }
.badge { position:absolute; top:14px; inset-inline-end:14px; background:var(--gold); color:#0f2a4a; font-size:.75rem; font-weight:700; padding:2px 10px; border-radius:99px; }

.slider { position:relative; height:370px; background:#0f1d31; border:1px solid #1f3350; border-radius:18px; box-shadow:0 30px 60px rgba(0,0,0,.35); overflow:hidden; direction:rtl; }
.slide { position:absolute; inset:0; padding:20px 20px 40px; opacity:0; animation:slide 20s infinite; }
.slide.s2 { animation-delay:5s; } .slide.s3 { animation-delay:10s; } .slide.s4 { animation-delay:15s; }
@keyframes slide { 0% { opacity:0; transform:translateX(-24px); } 4%,22% { opacity:1; transform:none; } 27%,100% { opacity:0; transform:translateX(24px); } }
.slide .tag { font-size:.78rem; color:#97a4b8; }
.slide .big { font-size:1.5rem; font-weight:800; margin:4px 0 10px; line-height:1.5; }
.slide .row { display:flex; justify-content:space-between; gap:8px; padding:9px 0; border-top:1px solid #1f3350; font-size:.95rem; }
.slide .up { color:#34d399; } .slide .down { color:#f87171; }
.slide .bars { display:flex; align-items:flex-end; gap:5px; height:70px; margin:12px 0 4px; direction:ltr; }
.slide .bars i { flex:1; background:linear-gradient(180deg,var(--gold),#b07a1c); border-radius:4px 4px 0 0; }
.slide .alert { margin-top:10px; background:rgba(232,176,75,.12); border:1px solid rgba(232,176,75,.4); border-radius:10px; padding:9px 12px; font-size:.92rem; color:#f6dba5; }
.lights { display:flex; gap:10px; margin:6px 0 14px; direction:ltr; }
.lights b { width:34px; height:34px; border-radius:50%; } .lights .g { background:#34d399; box-shadow:0 0 14px #34d39977; } .lights .y { background:#fbbf24; } .lights .r { background:#f87171; }
.dots { position:absolute; bottom:12px; inset-inline:0; display:flex; justify-content:center; gap:8px; }
.dots i { width:8px; height:8px; border-radius:50%; background:#97a4b8; opacity:.4; animation:dot 20s infinite; }
.dots i:nth-child(2) { animation-delay:5s; } .dots i:nth-child(3) { animation-delay:10s; } .dots i:nth-child(4) { animation-delay:15s; }
@keyframes dot { 0%,24% { opacity:1; background:var(--gold); } 25%,100% { opacity:.4; background:#97a4b8; } }
.slider:hover .slide, .slider:hover .dots i { animation-play-state:paused; }
@media (prefers-reduced-motion: reduce) { .slide { animation:none; } .slide.s1 { opacity:1; } .dots { display:none; } }
footer.wide { max-width:1040px; }
.topbar .brand img { width:auto; height:60px; display:block; }
footer nav { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 24px; }
footer a { margin:0; color:var(--muted); font-size:.9rem; text-decoration:none; }
footer a:hover { color:var(--link); text-decoration:underline; }
footer p { margin:14px 0 0; font-size:.85rem; text-align:center; }
.legalbar { background:linear-gradient(180deg,#0f2a4a,#0a1d34); margin-bottom:24px; }
.legalbar header { padding-top:6px; padding-bottom:6px; }
.legalbar img { height:60px; width:auto; display:block; }
.legalbar .btn { background:var(--gold); color:#0f2a4a; padding:8px 18px; font-size:.95rem; }
.topbar { grid-column:1/-1; }
.slide .pct { font-size:1rem; }
.slide .mt { margin-top:12px; }
.slide .mid { color:#fbbf24; }
.bars i:nth-child(1){height:35%} .bars i:nth-child(2){height:48%} .bars i:nth-child(3){height:42%} .bars i:nth-child(4){height:60%}
.bars i:nth-child(5){height:55%} .bars i:nth-child(6){height:72%} .bars i:nth-child(7){height:68%} .bars i:nth-child(8){height:90%}
.sub.gap { margin-top:18px; }
.lead.muted { color:var(--muted); }

/* Motion: centre-mode carousel (carousel.js sets .js and the position classes; without it the cards are a plain list) */
.rotator { max-width:900px; margin:8px auto 0; }
.pcard { background:var(--surface); border:1px solid var(--line); border-inline-start:3px solid var(--gold); border-radius:16px; padding:22px 24px; margin-bottom:12px; }
.pcard b { display:block; font-size:1.15rem; margin-bottom:6px; }
.pcard br { display:none; }
.rotator.js { display:grid; justify-items:center; align-content:start; overflow:hidden; direction:ltr; padding:14px 0 6px; touch-action:pan-y; -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
.rotator.js .pcard { grid-area:1 / 1; width:min(420px,82%); margin:0; direction:rtl; cursor:pointer; user-select:none;
  transition:transform .7s cubic-bezier(.4,0,.2,1), opacity .7s ease, box-shadow .7s ease; opacity:0; transform:scale(.7); z-index:1; }
.rotator.js .pcard.p0 { opacity:1; transform:scale(1.03); z-index:3; box-shadow:0 18px 40px rgba(15,42,74,.2); cursor:default; border-color:var(--gold); }
.rotator.js .pcard.p1 { opacity:.45; transform:translateX(-92%) scale(.85); z-index:2; }
.rotator.js .pcard.p3 { opacity:.45; transform:translateX(92%) scale(.85); z-index:2; }
.rdots { display:none; }
.rotator.js .rdots { display:flex; grid-area:2 / 1; justify-content:center; gap:8px; margin-top:14px; z-index:4; }
.rdots i { width:8px; height:8px; border-radius:50%; background:var(--muted); opacity:.4; transition:all .4s; }
.rdots i.on { background:var(--gold); opacity:1; width:22px; border-radius:4px; }

.feat, .step { transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .6s ease; }
.feat:hover, .step:hover { transform:translateY(-6px); box-shadow:0 16px 34px rgba(15,42,74,.16); border-color:var(--gold); }
.feat .ic { transition:transform .3s ease; }
.feat:hover .ic { transform:scale(1.18) rotate(-6deg); }
.step::before { transition:transform .3s ease, background .3s ease; }
.step:hover::before { transform:scale(1.2); background:var(--gold); color:var(--navy); }
.hero .btn { transition:transform .2s, box-shadow .2s; }
.hero .btn:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(232,176,75,.4); }
.btn.ghost:hover { background:rgba(255,255,255,.1); }
.slider { transition:transform .3s ease; }
.slider:hover { transform:translateY(-4px); }

/* Scroll reveal: reveal.js adds .rv to the blocks and .in when they enter the screen */
.rv { opacity:0; transform:translateY(32px); transition:opacity .7s ease, transform .7s ease; }
.rv.in { opacity:1; transform:none; transition:transform .25s ease, opacity .7s ease, box-shadow .25s ease, border-color .25s ease; transition-delay:0ms !important; }
.rv.in.feat:hover, .rv.in.step:hover { transform:translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity:1; transform:none; transition:none; }
  .feat:hover, .step:hover, .slider:hover, .hero .btn:hover { transform:none; }
}
