:root {
  --ink: #0b2230; --muted: #4a6372; --line: #dce7eb; --bg: #f6fafb; --card: #fff;
  --brand: #0d9488; --brand-d: #0b6f66; --brand-soft: #e2f5f2; --navy: #0a2636; --navy-2: #0f3d52;
  --amber: #f5a524; --blue: #2f6fb5; --r: 18px;
  --shadow: 0 1px 2px rgba(10, 38, 54, .06), 0 14px 34px -14px rgba(10, 38, 54, .2);
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[dir='rtl'] { --sans: 'Vazirmatn', 'Inter Variable', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.ic { display: inline-grid; place-items: center; line-height: 0; }
.ic svg { width: 1em; height: 1em; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
html[dir='rtl'] .logo { letter-spacing: 0; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: .15s; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-d); }
.nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--brand-soft); color: var(--brand-d); }
.menu-btn { display: none; margin-inline-start: auto; border: 1px solid var(--line); background: #fff; border-radius: 12px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 68px; flex-direction: column; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* buttons / badges */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: .18s; border: 1px solid transparent; }
.btn.primary { background: linear-gradient(135deg, var(--brand), #0aa896); color: #fff; box-shadow: 0 10px 24px -10px rgba(13, 148, 136, .8); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(13, 148, 136, .9); }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-d); }
html[dir='rtl'] .btn .ic.arrow { transform: scaleX(-1); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-d); }
.badge.soon { background: #fff4de; color: #8a5a00; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background:
  radial-gradient(900px 460px at 85% -10%, rgba(13, 148, 136, .18), transparent 60%),
  radial-gradient(700px 400px at 0% 20%, rgba(47, 111, 181, .12), transparent 60%), var(--bg); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(10, 38, 54, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 38, 54, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--brand-d); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.12; letter-spacing: -.03em; margin: 18px 0 18px; font-weight: 800; }
html[dir='rtl'] h1, html[dir='rtl'] h2, html[dir='rtl'] h3 { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-weight: 600; font-size: 14px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0 56px; } }

.device { position: relative; background: #fff; border-radius: 24px; box-shadow: var(--shadow), 0 40px 80px -40px rgba(10, 38, 54, .4); border: 1px solid var(--line); overflow: hidden; }
.device .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; font-weight: 700; font-size: 14px; }
.device .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.device .bar b { margin-inline-start: 8px; }
.device .body { padding: 18px; }
.device img.chart { width: 100%; height: auto; display: block; }
.rows { margin-top: 12px; border-top: 1px solid var(--line); }
.rows div { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rows div:last-child { font-weight: 800; border-bottom: 0; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float .ic { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-d); font-size: 16px; }
.float.a { top: -18px; inset-inline-end: 18px; }
.float.b { bottom: -20px; inset-inline-start: 18px; animation-delay: -2.4s; }
.visual { position: relative; padding: 18px 0 24px; }
.float.b .ic { background: #e8f1fb; color: var(--blue); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 1.18rem; margin: 0 0 6px; letter-spacing: -.01em; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g3, .g4, .g2 { grid-template-columns: 1fr; } section { padding: 60px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: .2s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bfdcd8; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; background: linear-gradient(135deg, var(--brand-soft), #d4eefa); color: var(--brand-d); }
.card .badge { position: absolute; top: 18px; inset-inline-end: 18px; }

/* before/after slider */
.compare { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 20px 20px 26px; }
.cmp { position: relative; direction: ltr; user-select: none; touch-action: pan-y; }
.cmp img { display: block; width: 100%; height: auto; }
.cmp .top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.cmp .top img { position: absolute; inset: 0; }
.cmp .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9); }
.cmp .handle::after { content: '↔'; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 18px rgba(13, 148, 136, .5); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp .tag { position: absolute; top: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(10, 38, 54, .82); color: #fff; }
.cmp .tag.l { left: 8px; } .cmp .tag.r { right: 8px; background: var(--brand-d); }
.hint { text-align: center; margin: 14px 0 0; color: var(--muted); font-size: 14px; display: flex; justify-content: center; gap: 8px; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* flow / steps */
.flow { counter-reset: s; }
.step { position: relative; padding-top: 6px; }
.step .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ink); color: #fff; margin-bottom: 14px; }
.flow.line .step:not(:last-child)::after { content: ''; position: absolute; top: 29px; inset-inline-start: 58px; inset-inline-end: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
@media (max-width: 960px) { .flow.line .step::after { display: none; } }
.timeline { display: grid; gap: 18px; max-width: 860px; }
.tl { display: grid; grid-template-columns: 64px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tl .n { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.tl h3 { display: flex; gap: 10px; align-items: baseline; }
.tl h3 small { color: var(--brand-d); font-weight: 800; font-size: 13px; }
.tl p { margin: 0; color: var(--muted); }

/* dark band */
.dark { background: radial-gradient(800px 380px at 80% 0%, rgba(13, 148, 136, .35), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.dark .sec-head p, .dark .card p { color: #bcd2db; }
.dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.dark .ico { background: rgba(255, 255, 255, .1); color: #7de3d6; }
.dark .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 15px; margin-top: 1px; }

/* feature page */
.page-hero { padding: 64px 0 40px; background: radial-gradient(800px 320px at 90% -20%, rgba(13, 148, 136, .16), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 0; }
.legend { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.anchors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.anchors a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.anchors a:hover { border-color: var(--brand); color: var(--brand-d); }
.group { padding: 38px 0 6px; scroll-margin-top: 90px; }
.group > h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.group > h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gallery { margin-top: 28px; }

/* phone */
.phone { width: 300px; margin-inline: auto; border-radius: 38px; background: #0b1b25; padding: 11px; box-shadow: 0 40px 70px -30px rgba(10, 38, 54, .55); position: relative; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; border-radius: 14px; background: #0b1b25; transform: translateX(-50%); z-index: 2; }
.screen { border-radius: 28px; overflow: hidden; background: #f4f8f9; }
.screen .hd { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 36px 18px 18px; }
.screen .hd b { display: block; font-size: 19px; line-height: 1.25; }
.screen .hd small { opacity: .75; }
.screen .blk { background: #fff; margin: 10px; border-radius: 16px; padding: 12px; font-size: 12.5px; }
.screen .blk h4 { margin: 0 0 6px; font-size: 13px; color: var(--brand-d); }
.screen .blk img { width: 100%; height: auto; display: block; }
.screen .pr { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.screen .pr:last-of-type { border: 0; font-weight: 800; }
.screen .acts { display: flex; gap: 8px; padding: 6px 10px 14px; }
.screen .acts span { flex: 1; text-align: center; padding: 10px 6px; border-radius: 999px; font-weight: 700; font-size: 12.5px; background: var(--brand); color: #fff; }
.screen .acts span + span { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* security visual */
.shield { aspect-ratio: 1; border-radius: 32px; background: radial-gradient(circle at 30% 20%, #19c7b4, var(--brand-d) 60%, var(--navy)); display: grid; place-items: center; color: #fff; font-size: 120px; box-shadow: 0 40px 70px -30px rgba(10, 38, 54, .6); position: relative; overflow: hidden; }
.shield::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 28px 28px; }
.shield .ic { position: relative; z-index: 1; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }

/* cta + footer */
.cta { text-align: center; }
.cta .box { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 32px; padding: 64px 28px; position: relative; overflow: hidden; }
.cta .box::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(13, 148, 136, .55), transparent 65%); }
.cta .box > * { position: relative; }
.cta p { color: #bcd2db; max-width: 56ch; margin: 0 auto 28px; }
.ftr { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 15px; }
.ftr .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr nav a { text-decoration: none; font-weight: 600; }
.ftr nav a:hover { color: var(--brand-d); }
.ftr small { display: block; margin-top: 18px; grid-column: 1 / -1; }
@media (max-width: 700px) { .ftr .wrap { grid-template-columns: 1fr; } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
