:root {
    --brand: #da0000;
    --brand-2: #ff4d3d;
    --ink: #14151a;
    --ink-2: #4a4d57;
    --line: #e9e9ee;
    --bg: #fbfbfd;
    --card: #ffffff;
    --radius: 22px;
    --shadow: 0 10px 40px -12px rgba(20, 21, 26, .18);
}

html { scroll-behavior: smooth; }

.hm, .hm * { box-sizing: border-box; }

.hm {
    font-family: WebmehrazFont, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.9;
    color: var(--ink);
    background: var(--bg);
    direction: rtl;
    text-align: right;
    overflow: hidden;
}

.hm a { color: inherit; text-decoration: none; }
.hm ul { list-style: none; margin: 0; padding: 0; }
.hm h1, .hm h2, .hm h3, .hm p { margin: 0; }
.hm img { max-width: 100%; }
.hm-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- nav ---------- */
.hm-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.hm-nav.scrolled {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.hm-nav .hm-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.hm-brand { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 18px; }
.hm-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 14px rgba(218, 0, 0, .25); }
.hm-menu { display: flex; gap: 6px; }
.hm-menu a { padding: 8px 16px; border-radius: 999px; font-weight: 300; font-size: 15px; transition: background .2s, color .2s; }
.hm-menu a:hover { background: rgba(218, 0, 0, .08); color: var(--brand); }

.hm-btn {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 12px 26px; border-radius: 999px; border: 0;
    font: inherit; font-weight: 400; font-size: 15px; line-height: 1.4;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.hm-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 26px -8px rgba(218, 0, 0, .65);
}
.hm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(218, 0, 0, .75); }
.hm-btn-ghost { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.hm-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand) !important; }
.hm-btn img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ---------- hero ---------- */
.hm-hero { position: relative; padding: 170px 0 110px; isolation: isolate; }
.hm-hero::before, .hm-hero::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
    animation: hm-float 14s ease-in-out infinite;
}
.hm-hero::before { width: 520px; height: 520px; background: #ff8a7a; top: -140px; left: -120px; }
.hm-hero::after { width: 460px; height: 460px; background: #ffd0c8; bottom: -120px; right: -100px; animation-delay: -6s; }
@keyframes hm-float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.hm-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.hm-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
    background: rgba(218, 0, 0, .08); color: var(--brand); font-weight: 300; font-size: 14px; margin-bottom: 22px;
}
.hm-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(218, 0, 0, .6); animation: hm-pulse 2s infinite; }
@keyframes hm-pulse { 70% { box-shadow: 0 0 0 10px rgba(218, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(218, 0, 0, 0); } }

.hm-hero h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.35; font-weight: 500; letter-spacing: -1px; }
.hm-hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, #ff9a5c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-hero p.lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hm-visual { position: relative; display: grid; place-items: center; }
.hm-orb {
    width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, #fff, #ffe9e6 55%, #ffc9c1);
    box-shadow: var(--shadow), inset 0 0 0 10px rgba(255, 255, 255, .7);
    position: relative;
}
.hm-orb::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    border: 2px solid transparent; border-top-color: var(--brand); border-left-color: rgba(218, 0, 0, .25);
    animation: hm-spin 14s linear infinite;
}
@keyframes hm-spin { to { transform: rotate(360deg); } }
.hm-orb img { width: 58%; filter: drop-shadow(0 18px 24px rgba(218, 0, 0, .3)); }
.hm-chip {
    position: absolute; padding: 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px); box-shadow: var(--shadow); font-weight: 300; font-size: 14px; white-space: nowrap;
    animation: hm-bob 6s ease-in-out infinite;
}
.hm-chip b { color: var(--brand); font-weight: 400; }
.hm-chip.c1 { top: 8%; right: -4%; }
.hm-chip.c2 { bottom: 14%; left: -6%; animation-delay: -2s; }
.hm-chip.c3 { bottom: -2%; right: 8%; animation-delay: -4s; }
@keyframes hm-bob { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.hm-sec { padding: 96px 0; }
.hm-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.hm-head .tag { color: var(--brand); font-weight: 300; font-size: 14px; letter-spacing: .5px; }
.hm-head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; font-weight: 400; margin-top: 6px; }
.hm-head p { margin-top: 14px; color: var(--ink-2); }

.hm-grid { display: grid; gap: 22px; }
.hm-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.hm-grid.g2 { grid-template-columns: repeat(2, 1fr); }

.hm-card {
    position: relative; background: var(--card); border-radius: var(--radius); padding: 34px 30px;
    box-shadow: 0 0 0 1px var(--line); overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.hm-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: right; transition: transform .4s;
}
.hm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 1px transparent; }
.hm-card:hover::before { transform: scaleX(1); }
.hm-ico {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(218, 0, 0, .12), rgba(255, 77, 61, .06)); color: var(--brand);
}
.hm-ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-card h3 { font-size: 19px; font-weight: 400; line-height: 1.6; margin-bottom: 8px; }
.hm-card p { color: var(--ink-2); font-size: 15px; }
.hm-card .more { display: inline-block; margin-top: 16px; color: var(--brand); font-weight: 300; font-size: 14px; }

/* ---------- dark band ---------- */
.hm-dark { background: #101116; color: #fff; position: relative; isolation: isolate; }
.hm-dark::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(600px 300px at 15% 0%, rgba(218, 0, 0, .35), transparent), radial-gradient(500px 300px at 90% 100%, rgba(255, 77, 61, .22), transparent);
}
.hm-dark .hm-head p { color: #b4b7c2; }
.hm-dark .hm-head .tag { color: #ff7a6b; }
.hm-steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-step { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.hm-step::before {
    counter-increment: s; content: counter(s, persian);
    display: block; font-size: 42px; font-weight: 500; line-height: 1.2; margin-bottom: 10px;
    background: linear-gradient(135deg, #ff5a4a, #ff9a5c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-step h3 { font-size: 18px; font-weight: 400; margin-bottom: 6px; }
.hm-step p { color: #b4b7c2; font-size: 14.5px; }

/* ---------- products ---------- */
.hm-prod { display: flex; gap: 18px; align-items: flex-start; }
.hm-prod .hm-ico { flex: none; margin: 0; }

/* ---------- FAQ ---------- */
.hm-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.hm-faq details { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 0 24px; transition: box-shadow .3s; }
.hm-faq details[open] { box-shadow: var(--shadow), 0 0 0 1px rgba(218, 0, 0, .25); }
.hm-faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 300; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--brand); transition: transform .3s; }
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ---------- final CTA ---------- */
.hm-final {
    border-radius: 34px; padding: 70px 30px; text-align: center; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--brand), #ff5a3d 70%, #ff8a4d);
    box-shadow: 0 30px 60px -20px rgba(218, 0, 0, .6);
}
.hm-final::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -160px; left: -100px; }
.hm-final h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; line-height: 1.5; position: relative; }
.hm-final p { margin: 12px auto 30px; max-width: 560px; opacity: .92; position: relative; }
.hm-final .hm-btn { background: #fff; color: var(--brand) !important; position: relative; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4); }
.hm-final .hm-btn:hover { transform: translateY(-2px); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv:nth-child(2) { transition-delay: .08s; }
.js .rv:nth-child(3) { transition-delay: .16s; }
.js .rv:nth-child(4) { transition-delay: .24s; }

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

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hm-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hm-hero p.lead { margin-inline: auto; }
    .hm-cta { justify-content: center; }
    .hm-orb { width: min(300px, 60vw); }
    .hm-grid.g3 { grid-template-columns: repeat(2, 1fr); }
    .hm-steps { grid-template-columns: repeat(2, 1fr); }
    .hm-menu { display: none; }
}
@media (max-width: 620px) {
    .hm-hero { padding: 130px 0 70px; }
    .hm-sec { padding: 64px 0; }
    .hm-grid.g3, .hm-grid.g2, .hm-steps { grid-template-columns: 1fr; }
    .hm-chip { display: none; }
    .hm-orb { width: min(200px, 52vw); }
    .hm-hero-grid { gap: 36px; }
    .hm-brand span { display: none; }
    .hm-btn { padding: 11px 20px; }
}

/* footer sits on white; give it breathing room from the CTA */
.hm footer { margin-top: 0; }
