@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

/* "Midnight aurora": deep navy with violet / cyan / coral glow (Prodima's purple kept as the glow) */
:root {
  --red: #e0303b; --purple: #6c3be6; --violet: #7c4dff; --pink: #e24aa5; --orange: #ff8a3d; --blue: #1e6fd9; --cyan: #00b8ff;
  --night: linear-gradient(160deg, #070a1a 0%, #0c1233 55%, #111a45 100%);
  --grad: linear-gradient(120deg, #7c4dff 0%, #3b6cff 55%, #00b8ff 100%);
  --grad-warm: linear-gradient(135deg, #ff8a3d, #e0303b);
  --bg: #f6f5fb; --card: #ffffff; --text: #1b1733; --muted: #6a6585; --line: #e7e3f3;
  --shadow: 0 10px 30px rgba(76, 45, 160, .10); --shadow-lg: 0 24px 60px rgba(76, 45, 160, .22);
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0c1d; --card: #17142b; --text: #efedf7; --muted: #a39dbd; --line: #2a2545;
          --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.95 Vazirmatn, Tahoma, sans-serif; overflow-x: hidden; }
a { color: var(--violet); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.45; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.title { display: inline-block; position: relative; }
.title::after { content: ""; position: absolute; right: 0; bottom: -6px; height: 5px; width: 48px; border-radius: 9px; background: var(--grad-warm); }

/* ---------- nav: white floating pill like prodima.ir ---------- */
.top { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 16px; transition: inset .3s; }
.nav { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border-radius: 999px; padding: 8px 10px 8px 22px;
  box-shadow: 0 8px 30px rgba(40, 20, 90, .12); transition: box-shadow .3s, background .3s; }
.top.scrolled .nav { box-shadow: 0 10px 40px rgba(40, 20, 90, .22); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { display: block; height: 31px; width: auto; }
.unit { font-size: 13px; font-weight: 700; color: #6c3be6; background: #f0eafe; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { color: #3b3556; font-weight: 600; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
nav a:hover { background: #f0eafe; color: var(--purple); }
.nav-cta { background: #1b1733; color: #fff !important; }
.nav-cta:hover { background: var(--purple) !important; }
.menu-btn { display: none; border: 0; background: #f0eafe; color: var(--purple); width: 42px; height: 42px; border-radius: 50%; font-size: 20px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { border-radius: 24px; flex-wrap: wrap; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 8px; }
  .top.open nav { display: flex; }
  .unit { display: none; }
}

/* ---------- buttons ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #1b1733; color: #fff; box-shadow: 0 10px 24px rgba(27, 23, 51, .3); }
.btn.primary:hover { box-shadow: 0 14px 30px rgba(27, 23, 51, .4); }
.btn.ghost { border-color: rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .15); }
.btn.light { background: #fff; color: #1b2a6b; }
.small-btn { padding: 9px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 130px 0 120px; isolation: isolate;
  background: radial-gradient(1200px 600px at 80% -10%, #1d2a6b 0%, transparent 60%), var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
  background-image: radial-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px); background-size: 26px 26px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: float 14s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: #7c4dff; opacity: .5; top: -120px; left: -80px; }
.b2 { width: 360px; height: 360px; background: #00d1ff; opacity: .35; bottom: -120px; left: 35%; animation-delay: -4s; }
.b3 { width: 300px; height: 300px; background: #ff5a5f; opacity: .35; top: 20%; right: -80px; animation-delay: -8s; }
.hero .btn.primary { background: var(--grad); box-shadow: 0 10px 30px rgba(0, 184, 255, .35); }
.hero .btn.primary:hover { box-shadow: 0 14px 36px rgba(0, 184, 255, .5); }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(.95); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 120px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: rgba(255, 255, 255, .16); padding: 6px 16px; border-radius: 999px; margin: 0 0 18px; }
.spark { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 138, 61, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(255, 138, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); } }
.lead { font-size: 18px; opacity: .92; max-width: 640px; margin: 0 0 28px; }
.rotator { display: inline-block; background: linear-gradient(90deg, #7cf3ff, #b69cff 50%, #ff9f7a); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 4px solid rgba(124, 243, 255, .5); transition: opacity .35s, transform .35s; }
.rotator.out { opacity: 0; transform: translateY(12px); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.float-chip { position: absolute; background: #fff; color: #1b1733; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 16px;
  box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; white-space: nowrap; }
.float-chip.c1 { top: 12%; left: -4%; }
.float-chip.c2 { bottom: 14%; right: -2%; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 480px) { .float-chip { font-size: 12px; } .float-chip.c1 { left: 0; } .float-chip.c2 { right: 0; } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: var(--bg); }

/* ---------- phone mockup (Hamkar-e Man home screen) ---------- */
.phone { position: relative; width: 250px; height: 500px; border-radius: 40px; background: #0f0d1c; padding: 12px;
  box-shadow: 0 30px 80px rgba(20, 5, 60, .45), inset 0 0 0 2px #2c2745; transform: rotate(-4deg); animation: phoneIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes phoneIn { from { transform: translateY(40px) rotate(-12deg); opacity: 0; } }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0f0d1c; border-radius: 0 0 14px 14px; z-index: 2; }
.screen { height: 100%; border-radius: 30px; background: #f4f6fb; color: #1b2433; padding: 34px 14px 14px; overflow: hidden; position: relative; font-size: 12px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
.pill-s { font-size: 10px; background: #e3eefc; color: var(--blue); padding: 1px 8px; border-radius: 99px; }
.hello { font-weight: 800; font-size: 15px; margin: 10px 0 0; }
.date { color: #6b7488; margin: 0 0 10px; }
.punch { position: relative; margin: 6px auto 12px; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a82f0, #1558b8); color: #fff; box-shadow: 0 12px 30px rgba(30, 111, 217, .45); transition: background .5s; }
.punch.on { background: linear-gradient(145deg, #27b36a, #178a4f); box-shadow: 0 12px 30px rgba(39, 179, 106, .45); }
.ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid rgba(42, 130, 240, .35); animation: pulse 2s infinite; }
.punch.on .ring { border-color: rgba(39, 179, 106, .35); }
@keyframes pulse { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.punch-in { text-align: center; line-height: 1.6; }
.punch-in b { font-size: 16px; display: block; }
.punch-in small { font-size: 10px; opacity: .85; }
.rows { background: #fff; border-radius: 14px; padding: 4px 10px; box-shadow: 0 4px 14px rgba(20, 30, 60, .06); }
.row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eef1f6; }
.row:last-child { border-bottom: 0; }
.row span { color: #6b7488; }
.toast { position: absolute; left: 12px; right: 12px; bottom: -60px; background: #1b2433; color: #fff; border-radius: 12px; padding: 9px 12px; font-weight: 700;
  transition: bottom .5s cubic-bezier(.2, .8, .2, 1); }
.toast.show { bottom: 14px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line); background: var(--card); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 38s linear infinite; }
.track span { padding: 6px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(50%); } }

/* ---------- sections & cards ---------- */
.block { padding: 70px 16px; }
.grid4, .grid3 { display: grid; gap: 18px; margin-top: 26px; }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card p { margin: 0; color: var(--muted); }
.lift { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.lift::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .4s; }
.lift:hover::before { transform: scaleX(1); }
.ico-g { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px;
  background: linear-gradient(135deg, #f0eafe, #ffe6f3); transition: transform .35s; }
.lift:hover .ico-g { transform: rotate(-8deg) scale(1.08); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: #e8f8ef; color: #178a4f; }
.pill.light { background: rgba(255, 255, 255, .2); color: #fff; }

.stats-band { background: var(--night); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 44px 16px; text-align: center; }
.stat b { display: block; font-size: 46px; line-height: 1.3; background: linear-gradient(90deg, #7cf3ff, #b69cff 50%, #ff9f7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { opacity: .8; }

.showcase { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; margin-top: 26px; padding: 34px; border-radius: 32px; color: #fff;
  background: radial-gradient(600px 300px at 15% 0%, rgba(124, 77, 255, .45), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(0, 184, 255, .35), transparent 70%), var(--night);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative; transition: transform .4s; border: 1px solid rgba(124, 243, 255, .15); }
.showcase:hover { transform: translateY(-6px); }
.showcase::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .04); left: -120px; top: -140px; }
.showcase-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.showcase-head img { border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.showcase-head h3 { font-size: 26px; margin: 0; }
.showcase p { opacity: .92; font-size: 17px; }
.showcase-visual { display: grid; place-items: center; }
.showcase .phone { transform: rotate(5deg) scale(.86); animation: none; }
.showcase .pill { background: rgba(255, 255, 255, .2); color: #fff; }
.ticks { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 6px; }
.ticks li { position: relative; }
.showcase .btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(0, 184, 255, .35); }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; padding: 24px; } .showcase-visual { display: none; } }
.soon-card { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 22px; border: 2px dashed var(--line); border-radius: 26px; }
.soon-card .ico-g { margin: 0; flex: none; animation: bob 4s ease-in-out infinite; }
.soon-card h3 { margin: 0; }
.soon-card p { margin: 2px 0 0; }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; position: relative; }
.t-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.t-step p { color: var(--muted); margin: 0; }
.t-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px;
  background: var(--grad); box-shadow: 0 8px 20px rgba(0, 150, 255, .35); }

/* ---------- plans ---------- */
.plans-band { background: linear-gradient(180deg, transparent, rgba(108, 59, 230, .07)); }
.plan { text-align: center; transition: transform .35s; }
.plan:hover { transform: translateY(-6px); }
.plan.featured { border: 0; color: #fff; background: var(--grad); box-shadow: 0 24px 60px rgba(0, 150, 255, .35); transform: scale(1.03); }
.plan.featured:hover { transform: scale(1.03) translateY(-6px); }
.plan.featured p, .plan.featured .muted { color: rgba(255, 255, 255, .88); }
.badge { position: absolute; top: 16px; left: 16px; background: var(--grad-warm); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.price { font-size: 22px; font-weight: 800; color: var(--text) !important; margin: 6px 0 0 !important; }
.plan.featured .price { color: #fff !important; }
.yearly { min-height: 26px; margin: 2px 0 8px !important; }
.plan .ticks { text-align: right; }
.plan .ticks li::before { content: "✓ "; color: #27b36a; font-weight: 800; }
.plan.featured .ticks li::before { color: #fff; }

/* ---------- faq ---------- */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; margin-top: 12px; max-width: 860px; transition: box-shadow .3s; }
.faq[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--violet); transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); animation: fadeDown .35s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
.prose { max-width: 860px; font-size: 17px; }
.page-top { padding-top: 130px; }
.prose-page { max-width: 860px; }
.prose-page li { margin-bottom: 8px; }
.app-title { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.app-title img { border-radius: 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.app-title h1 { margin: 0; }

/* ---------- footer ---------- */
.foot { background: #070a1a; color: #cfcae6; padding: 0 16px 24px; margin-top: 40px; }
.foot-cta { max-width: 1140px; margin: 0 auto; transform: translateY(-50px); background: radial-gradient(500px 250px at 20% 0%, rgba(124, 77, 255, .6), transparent 70%), radial-gradient(500px 250px at 85% 100%, rgba(0, 184, 255, .45), transparent 70%), #0c1233; border: 1px solid rgba(124, 243, 255, .18); color: #fff; border-radius: 32px; padding: 40px 32px; text-align: center; box-shadow: var(--shadow-lg); }
.foot-cta h2 { margin-bottom: 6px; }
.foot-cta p { opacity: .9; margin: 0 0 20px; }
.foot-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-grid b { display: block; color: #fff; margin-bottom: 8px; }
.foot-grid a { display: block; color: #cfcae6; }
.foot-grid a:hover { color: #fff; }
.foot-logo { background: #fff; border-radius: 12px; padding: 6px 12px; height: auto; width: 150px; }
.copy { max-width: 1140px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid #2a2545; font-size: 14px; opacity: .7; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

