/* ===========================================================================
   negareno.com — warm yellow/orange design system (RTL, dark-mode aware)
   =========================================================================== */

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

:root {
    /* accent = warm yellow→orange (matches tools.negareno.com) */
    --primary:        #fec007;   /* yellow */
    --primary-dark:   #e8af00;
    --primary-darker: #c99700;
    --primary-tint:   #fff5d6;   /* pale yellow wash */
    --accent:         #ff9f1c;   /* orange — gradient partner */
    --accent-soft:    #ffb627;
    --on-accent:      #132737;   /* brand navy (the ن glyph) — text/icon ON yellow, never light */

    /* structural neutral = slate-gray */
    --bg:             #ffffff;
    --bg-alt:         #f1f4f6;   /* cool slate tint */
    --surface:        #ffffff;
    --text:           #1f2a32;   /* slate */
    --text-secondary: #5a6873;
    --border:         #e2e8ec;
    --slate:          #1a232b;   /* deep slate — heroes, dark bands */
    --slate-2:        #232f39;

    --card-shadow:    0 4px 18px rgba(26, 35, 43, 0.08);
    --card-shadow-hover: 0 16px 40px rgba(26, 35, 43, 0.16);
    --glow:           0 0 0 rgba(254,192,7,0);
    --radius:         18px;
    --radius-sm:      11px;
    --maxw:           1200px;
    --ease:           cubic-bezier(.22,.61,.36,1);
}

:root.dark {
    --bg:             #0a0e12;   /* premium near-black */
    --bg-alt:         #070b0f;
    --surface:        #132737;
    --text:           #eaf1f6;
    --text-secondary: #9aa9b5;
    --border:         #1e3448;
    --slate:          #0a0e12;
    --slate-2:        #132737;
    --primary-tint:   #2c2810;   /* dim yellow wash */
    --card-shadow:    0 8px 26px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.66);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 74px; overflow-x: clip; }

body {
    margin: 0;
    font-family: 'Estedad', Tahoma, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    direction: rtl;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background .25s, color .25s;
    overflow-x: clip;   /* clip (not hidden) so it doesn't break position:sticky descendants */
}
::selection { background: var(--primary); color: var(--on-accent); }

/* keyboard focus — accessible, on-brand */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* skip-to-content — invisible until keyboard focus */
.skip-link {
    position: absolute; top: -60px; right: 16px; z-index: 300;
    background: var(--primary); color: var(--on-accent); font-weight: 700; font-size: .95rem;
    padding: 10px 20px; border-radius: 0 0 11px 11px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

a { color: var(--primary-darker); text-decoration: none; transition: color .15s; }
:root.dark a { color: var(--primary); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.38; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.4px; text-wrap: balance; }
p { text-wrap: pretty; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 200;
    background: linear-gradient(90deg, var(--accent), var(--primary)); transform: scaleX(0);
    transform-origin: right; transition: transform .1s linear; pointer-events: none;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg); }

/* hairline divider between sections — faint gradient, fades at edges */
main > section + section {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255,255,255,.09) 28%, rgba(255,255,255,.09) 72%, transparent) 1;
}

.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(40px, 6vw, 60px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
    font-size: .82rem; font-weight: 700; letter-spacing: .5px; color: var(--primary-darker);
    text-transform: none;
}
:root.dark .eyebrow { color: var(--primary); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--primary); }
.section-head :is(h1, h2) {
    font-size: clamp(1.75rem, 4vw, 2.55rem); margin-bottom: .45em; letter-spacing: -.8px; line-height: 1.25;
}
/* title ornament (t-tri) — gradient shows through the SVG mask. REVERT: restore the 52px gradient bar below.
   .section-head :is(h1,h2)::after { content:''; display:block; width:52px; height:3px; border-radius:99px; margin:16px auto 4px; background:linear-gradient(90deg,var(--primary),var(--accent)); } */
.section-head :is(h1, h2)::after {
    content: ''; display: block; width: 165px; height: 22px; margin: 12px auto 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-mask: url(/assets/img/title-ornament.svg) center / contain no-repeat;
            mask: url(/assets/img/title-ornament.svg) center / contain no-repeat;
}
.section-head p { color: var(--text-secondary); font-size: clamp(1rem, 2vw, 1.12rem); margin: 0; }

/* ---- buttons ---- */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(120deg, var(--accent-soft), var(--primary));
    color: var(--on-accent);
    padding: 13px 28px; border-radius: var(--radius-sm);
    font-family: inherit; font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 6px 18px rgba(254, 192, 7, .32);
}
.btn::after {  /* sheen sweep on hover */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
    transform: translateX(-130%); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--on-accent); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(254, 192, 7, .42); }
.btn:hover::after { transform: translateX(130%); }
/* press feedback — instant (<100ms) so touch devices get a visible response too */
.btn:active { transform: scale(.97); transition-duration: .08s; }
/* force dark label on every filled button (beats the global a{} + a:hover link color) */
a.btn:not(.btn-outline), a.btn:not(.btn-outline):hover, a.btn-outline:hover, a.btn-outline:hover svg { color: var(--on-accent); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 2px solid var(--border); box-shadow: none;
}
.btn-outline::after { display: none; }
.btn-outline:hover { background: var(--primary); color: var(--on-accent); border-color: var(--primary); }

/* ===========================================================================
   Header
   =========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 18, .82);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: box-shadow .3s var(--ease), background .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(26,35,43,.10); }
:root.dark .site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.5); }
/* in-page anchor targets land below the sticky header */
section[id] { scroll-margin-top: 74px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.brand-mark { height: 34px; width: auto; }
.brand-word { height: 34px; width: auto; }
@media (max-width: 480px) {
    .brand { gap: 9px; }
    .brand-mark { height: 32px; }
    .brand-word { height: 26px; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    position: relative; padding: 9px 15px; border-radius: 10px;
    font-size: .96rem; font-weight: 600; transition: color .18s;
}
:root.dark .nav a { color: #c2cfd8; }
.nav a::after {
    content: ''; position: absolute; right: 15px; left: 15px; bottom: 4px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
:root.dark .nav a:hover, :root.dark .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-dd { position: relative; }
.nav-dd > button {
    background: none; border: none; cursor: pointer; font: inherit;
    font-size: .96rem; font-weight: 600; color: var(--text);
    padding: 9px 15px; border-radius: 10px; display: flex; align-items: center; gap: 5px; transition: color .18s;
}
.nav-dd > button svg { transition: transform .25s var(--ease); }
.nav-dd.open > button svg { transform: rotate(180deg); }
:root.dark .nav-dd > button { color: #c2cfd8; }
.nav-dd > button:hover, :root.dark .nav-dd > button:hover, :root.dark .nav-dd.open > button { color: var(--primary); }
.nav-dd-menu a:hover { background: var(--primary-tint); color: var(--primary-darker); }
:root.dark .nav-dd-menu a:hover { background: rgba(254,192,7,.10); color: var(--primary); }
.nav-dd-menu a::after { display: none; }
.nav-dd-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow); padding: 8px; display: none; flex-direction: column;
}
.nav-dd.open .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 9px 12px; border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    background: none; border: 1px solid var(--border); color: var(--text);
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.nav-toggle { display: none; }
.nav-toggle .ico-close { display: none; }

@media (max-width: 900px) {
    .nav, .nav-dd { display: none; }
    .nav-toggle { display: inline-flex; }
    /* keep logo + toggle above the overlay (overlay is a child of the header,
       so its z-index competes with the header's own contents) */
    .nav.open ~ .header-actions,
    .site-header .brand { position: relative; z-index: 95; }
    /* burger morphs to ✕ while the overlay is open */
    .nav.open ~ .header-actions .nav-toggle { border-color: var(--primary); color: var(--primary); }
    .nav.open ~ .header-actions .nav-toggle .ico-burger { display: none; }
    .nav.open ~ .header-actions .nav-toggle .ico-close { display: inline-flex; }

    /* full-screen overlay menu.
       NB: .site-header has backdrop-filter, which makes it the containing block
       for position:fixed descendants — so we size with explicit height (not inset:0),
       otherwise the overlay collapses to the header's height. */
    /* the scroll-lock (overflow:hidden on <html>) disables position:sticky, which
       would drop the header — and this overlay, anchored to it — to the top of the
       document while the viewport stays mid-page. Pin the header to the viewport
       for as long as the menu is open. */
    :root.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
    .nav.open {
        display: flex; flex-direction: column; align-items: center;
        position: fixed; top: 0; left: 0; right: 0; bottom: auto;
        height: 100vh; height: 100dvh; z-index: 90;
        background: #0a0e12;
        padding: 88px 24px 32px; gap: 2px;
        overflow-y: auto; overscroll-behavior: contain;
        animation: navFade .25s var(--ease);
    }
    .nav.open > a,
    .nav.open .nav-dd > button {
        width: 100%; max-width: 340px;
        text-align: center; justify-content: center;
        padding: 10px 16px; border-radius: 12px;
        font-size: 1.18rem; font-weight: 700; color: #e7eef3;
        transition: color .18s, background .18s;
    }
    .nav.open > a::after { display: none; }
    .nav.open > a.active { color: var(--primary); }
    .nav.open > a:active { background: rgba(255, 255, 255, .05); }

    /* tools = accordion, with a divider above it */
    .nav.open .nav-dd {
        display: block; width: 100%; max-width: 340px;
        margin-top: 10px; padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .nav.open .nav-dd > button { width: 100%; gap: 8px; }
    .nav.open .nav-dd > button svg { display: block; color: var(--primary); }
    .nav.open .nav-dd.open > button { color: var(--primary); }
    .nav.open .nav-dd-menu {
        position: static; display: none; flex-direction: column; align-items: center;
        min-width: 0; background: none; border: none; box-shadow: none;
        margin: 0; padding: 4px 0 0;
    }
    .nav.open .nav-dd.open .nav-dd-menu { display: flex; }
    .nav.open .nav-dd-menu a {
        padding: 8px 13px; border-radius: 10px;
        font-size: 1.02rem; color: #9fb0bd; text-align: center;
    }
    .nav.open .nav-dd-menu a:active { color: var(--primary); }
}
@keyframes navFade { from { opacity: 0; } to { opacity: 1; } }

/* ===========================================================================
   Hero — layered mountain scene
   =========================================================================== */
/* hero — interactive particle wordmark (ایده → خلاقیت → برند → نگار نو) */
.hero-particle {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: min(94vh, 900px); min-height: min(calc(100svh - 74px), 900px); display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end; text-align: center;
    padding: 0 24px clamp(64px, 10vh, 110px);
    background: radial-gradient(125% 100% at 50% 0%, #132737, var(--bg));
}
.hero-particle canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* in-app browsers (Instagram et al.): declare that vertical page-scroll owns touches
   on the hero, so the WebView never waits on the particle touch listeners */
.hero-particle, .hero-particle canvas { touch-action: pan-y pinch-zoom; }
/* slow-drifting aurora glow behind the particles (idea #1) */
.hero-particle::before {
    content: ''; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(42% 52% at 30% 42%, rgba(254,192,7,.10), transparent 70%),
        radial-gradient(42% 52% at 70% 42%, rgba(255,122,24,.10), transparent 70%),
        radial-gradient(40% 46% at 50% 28%, rgba(255,255,255,.045), transparent 72%);
    filter: blur(34px);
    animation: heroAurora 19s var(--ease) infinite alternate;
}
@keyframes heroAurora {
    0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
    50%  { transform: translate3d(2%, 3%, 0) scale(1.08); }
    100% { transform: translate3d(3%, -3%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .hero-particle::before { animation: none; } }
/* schematic backdrop — faint blueprint motif (idea-ripple rings + node graph +
   dot grid). Pure CSS, no image. Just enough texture so the load state isn't
   empty, masked to fade softly into the dark theme. */
.hero-particle .hero-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='1000' height='600' viewBox='0 0 1000 600' fill='none'><g stroke='%23fec007' stroke-width='1' opacity='0.12'><path d='M500 250 L-320 600'/><path d='M500 250 L-90 600'/><path d='M500 250 L130 600'/><path d='M500 250 L300 600'/><path d='M500 250 L410 600'/><path d='M500 250 L500 600'/><path d='M500 250 L590 600'/><path d='M500 250 L700 600'/><path d='M500 250 L870 600'/><path d='M500 250 L1090 600'/><path d='M500 250 L1320 600'/></g><g stroke='%23ff9f1c' stroke-width='1' opacity='0.10'><path d='M0 282 H1000'/><path d='M0 312 H1000'/><path d='M0 350 H1000'/><path d='M0 400 H1000'/><path d='M0 466 H1000'/><path d='M0 550 H1000'/></g></svg>");
    background-position: center bottom;
    background-size: 138% auto;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 26%, #000 58%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 26%, #000 58%, #000 88%, transparent 100%);
}
.hero-particle .hero-halo {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 62vw; height: 34vh; z-index: 0; pointer-events: none;
    background: radial-gradient(closest-side, rgba(254,160,30,.20), transparent); filter: blur(22px);
}
.hero-particle .hero-particle-c {
    position: absolute; top: 63%; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 620px; padding: 0 24px; z-index: 2;
}
.hero-particle .lead {
    font-size: clamp(1.02rem, 2.2vw, 1.28rem); color: #fff; margin: 0 auto; line-height: 1.85;
}
/* scroll-down mouse cue (replaces hero CTAs) — padding grows the touch target
   to ~48×66 while the visual mouse stays the same (bottom compensates) */
.hero-scroll {
    position: absolute; left: 50%; bottom: 69px; transform: translateX(-50%);
    z-index: 3; display: block; padding: 11px; opacity: .75; transition: opacity .3s;
}
.hero-scroll:hover { opacity: 1; }
.hero-mouse {
    display: block; position: relative; width: 26px; height: 42px; border-radius: 14px;
    border: 2px solid rgba(255,255,255,.5);
}
.hero-wheel {
    position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: var(--primary);
    animation: heroWheel 1.7s var(--ease) infinite;
}
@keyframes heroWheel {
    0%   { opacity: 0; transform: translateY(-4px); }
    35%  { opacity: 1; }
    70%  { opacity: 1; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(13px); }
}
@media (prefers-reduced-motion: reduce) { .hero-wheel { animation: none; top: 16px; } }
@media (max-width: 700px) {
    /* svh (not vh) — same reason as .pf-wall: the collapsing address bar must not
       resize the hero on every scroll */
    .hero-particle { min-height: 92vh; min-height: 92svh; padding-bottom: clamp(48px, 8vh, 80px); }
    .hero-particle-c { top: 72%; }
}

/* ===========================================================================
   Cards / grids
   =========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--card-shadow); transition: box-shadow .2s, transform .2s, border-color .2s;
    display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); border-color: var(--primary); }
a.card:active, .tool-card:active { transform: scale(.98); transition-duration: .08s; }
.card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.12rem; margin-bottom: .4em; }
.card-body p { color: var(--text-secondary); font-size: .95rem; margin: 0 0 14px; flex: 1; }
.card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border);
}
.card-comments {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text-secondary); font-size: .85rem; font-weight: 600;
}
.card-comments svg { opacity: .8; }
.card-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-size: .88rem; font-weight: 700;
}
.card-tag {
    display: inline-block; font-size: .8rem; font-weight: 700; color: var(--primary-darker);
    background: var(--primary-tint); padding: 3px 11px; border-radius: 20px; margin-bottom: 10px; align-self: flex-start;
}
:root.dark .card-tag { color: var(--primary); }

/* portfolio card — framed like a browser window, with hover overlay */
.pcard-thumb { position: relative; background: var(--bg-alt); }
.pcard-bar { display: flex; align-items: center; gap: 6px; height: 27px; padding: 0 12px; background: linear-gradient(180deg,#142433,#0e1b27); border-bottom: 1px solid var(--border); direction: ltr; }
.pcard-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a4854; }
.pcard-bar i:nth-child(1) { background: #ff5f57; }
.pcard-bar i:nth-child(2) { background: #febc2e; }
.pcard-bar i:nth-child(3) { background: #28c840; }
.pcard-figure { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.pcard-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* no transform on the image — scaling an exact-fit image inside this clip caused a GPU seam (white line) on hover. Hover feedback is now the overlay + eye only. */
.pcard-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(13,20,25,.94), rgba(26,35,43,.55));
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    color: #fff; opacity: 0; transition: opacity .3s var(--ease);
}
.pcard:hover .pcard-overlay { opacity: 1; }
.pcard-overlay b { font-size: 1.05rem; transform: translateY(8px); transition: transform .3s var(--ease) .04s; }
.pcard:hover .pcard-overlay b { transform: translateY(0); }
.pcard-eye {
    width: 54px; height: 54px; border-radius: 50%; color: var(--on-accent);
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    transform: scale(.6); transition: transform .3s var(--ease);
}
.pcard:hover .pcard-eye { transform: scale(1); }

.grid > * { height: 100%; }

/* process — circular illustrated steps with timeline connector */
/* process — fully dark section with animated wave-field background */
.process-section { position: relative; overflow: hidden; background: var(--bg); }
.process-section > .container { position: relative; z-index: 1; }
.process-section .section-head h2 { color: #fff; }
.process-section .process-step h3 { color: #fff; }
.process-section .process-step p  { color: #a9b6c2; }
.process-section .process-icon    { background: linear-gradient(160deg, #132737, #0d1e2c); border: 1px solid rgba(254,192,7,.22); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.process-section .process-icon svg { width: 56px; height: 56px; color: var(--primary); }
.process-section .process-grid::before {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    background-size: 100% 100%; height: 3px; border-radius: 3px; opacity: .6;
    transform: scaleX(0); transform-origin: right;
    transition: transform 1.2s var(--ease) .15s;
}
.process-section .process-grid.in::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .process-section .process-grid::before { transform: none; } }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
/* dashed connector line behind the icons (desktop) */
.process-grid::before {
    content: ''; position: absolute; top: 65px; right: 12.5%; left: 12.5%; height: 2px; z-index: 0;
    background-image: linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
    background-size: 16px 2px;
}
@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
}
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; z-index: 1; text-align: center; }
.process-icon {
    /* squircle — inverse of the logo box (navy tile, yellow icon), corner ≈ 26% of side */
    position: relative; width: 130px; height: 130px; margin: 0 auto 18px;
    background: var(--surface); border-radius: 34px; box-shadow: var(--card-shadow);
    display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.process-step:hover .process-icon { transform: translateY(-4px); }
.process-step h3 { font-size: 1.1rem; }
.process-step .step-no { color: var(--primary); }
.process-step p { color: var(--text-secondary); font-size: .92rem; margin: 0; }

/* testimonials */
.quote {
    position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--card-shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.quote::before {
    content: '\201D'; position: absolute; top: 8px; right: 22px; font-size: 3.4rem; line-height: 1;
    color: var(--primary); opacity: .2; font-family: Georgia, serif; pointer-events: none;
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: var(--primary); }
.quote p { position: relative; font-size: 1.02rem; color: var(--text); margin: 0 0 16px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-tint); flex-shrink: 0; }
.quote .who b { color: var(--text); font-size: .98rem; }
.quote .who span { display: block; color: var(--text-secondary); font-size: .82rem; font-weight: 400; }

/* subtle static dot-grid texture — adds depth to dark sections (no animation) */
.dot-field { position: relative; isolation: isolate; }
.dot-field::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 42%, #000 38%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 64% at 50% 42%, #000 38%, transparent 100%);
}

/* testimonials — avatar strip selects, the chosen quote fades in below */
.tslider { position: relative; max-width: 860px; margin: 0 auto; }
.tavatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.tavatar {
    padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 14px;
    opacity: .5; filter: grayscale(.45);
    transition: opacity .25s var(--ease), filter .25s var(--ease), transform .25s var(--ease);
}
.tavatar img { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; border: 2px solid transparent; display: block; transition: border-color .25s, box-shadow .25s; }
.tavatar:hover { opacity: .9; filter: grayscale(0); }
.tavatar.active { opacity: 1; filter: none; transform: translateY(-3px); }
.tavatar.active img { border-color: var(--primary); box-shadow: 0 6px 18px rgba(254,192,7,.32); }

.tstage { position: relative; }
.tslider { touch-action: pan-y; }
.tslides { user-select: none; }
.tslide { display: none; direction: rtl; padding: 4px; }
.tslide.active { display: block; animation: tslide-next .5s var(--ease); }
.tstage[data-dir="prev"] .tslide.active { animation-name: tslide-prev; }
@keyframes tslide-next { from { opacity: 0; transform: translateX(55px); } to { opacity: 1; transform: none; } }
@keyframes tslide-prev { from { opacity: 0; transform: translateX(-55px); } to { opacity: 1; transform: none; } }
.tslide .quote {
    min-height: 360px; margin: 0; padding: 32px 30px 26px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.tslide .quote::before { top: 6px; right: 30px; left: auto; font-size: clamp(6rem, 9vw, 8.5rem); line-height: 1; opacity: .14; margin: 0; }
.tslide .quote p { font-size: .97rem; line-height: 1.9; max-width: 640px; margin: 0; }
.tslide .quote .who { flex-direction: column; gap: 4px; margin-top: 20px; justify-content: center; }
.tslide .quote .who b { text-align: center; }
.tslide .quote:hover { transform: none; border-color: var(--border); box-shadow: var(--card-shadow); }
.quote-stars { display: flex; justify-content: center; gap: 3px; color: var(--primary); line-height: 1; margin-bottom: 12px; }
.quote-stars svg { display: block; }
.tslider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    /* squircle — same family as .to-top / .sf-phone (corner ≈ 26% of side) */
    width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--card-shadow); transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.tslider-arrow:hover { background: var(--primary); color: var(--on-accent); border-color: var(--primary); transform: translateY(-50%) scale(1.08); }
.tslider-arrow.prev { right: -66px; }
.tslider-arrow.next { left: -66px; }
@media (max-width: 1000px) {
    .tslider { max-width: 620px; }
    .tslide .quote { min-height: 430px; }
    .tslider-arrow.prev { right: -10px; }
    .tslider-arrow.next { left: -10px; }
}
@media (max-width: 560px) {
    .tslider-arrow { display: none; }
    .tslide .quote { padding-left: 14px; padding-right: 14px; }
    .tavatars { flex-wrap: nowrap; gap: clamp(4px, 1.5vw, 9px); }
    .tavatar img { width: clamp(38px, 12vw, 62px); height: clamp(38px, 12vw, 62px); }
}

/* about (web-design) — editorial dark layout */
.about-new { background: var(--bg); }
.about-new .about-grid { display: grid; grid-template-columns: 1.85fr .7fr; gap: clamp(26px, 4vw, 52px); align-items: center; }
.about-new .about-copy h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); color: #fff; margin: 0 0 .6em; line-height: 1.3; }
.about-new .about-copy p { color: #c2cdd7; margin: 0 0 1.1em; line-height: 2; font-size: clamp(1.02rem, 1.5vw, 1.14rem); }
.about-new .about-side { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
/* about logo — particle-built mark (same technique as the hero) */
.about-logo-box {
    position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius);
    overflow: hidden; isolation: isolate;
    background: var(--surface) radial-gradient(circle at 50% 46%, rgba(254,192,7,.08), transparent 62%);
    border: 1px solid var(--border);
}
.about-logo-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-new .about-stat {
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(160deg, #132737, #0f1f2e);
    border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px;
    box-shadow: var(--card-shadow); transition: border-color .3s, transform .3s var(--ease);
}
.about-new .about-stat:hover { border-color: var(--primary); transform: translateY(-3px); }
.about-new .about-num { display: inline-flex; align-items: baseline; gap: 1px; color: var(--primary); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1; font-variant-numeric: proportional-nums; letter-spacing: -.02em; }
.about-new .about-num i { font-style: normal; font-size: .55em; font-weight: 700; }
.about-new .about-lbl { color: #dbe3ea; font-size: 1.02rem; font-weight: 700; }
/* checklist — the in-prose feature list turned into scannable ticks */
.about-checks {
    list-style: none; margin: 0 0 1.4em; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px;
}
.about-checks li {
    display: flex; align-items: flex-start; gap: 10px;
    color: #dbe3ea; font-size: 1.02rem; font-weight: 500; line-height: 1.7;
}
.about-checks li::before {
    content: ''; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px;
    background: linear-gradient(135deg, rgba(254,192,7,.22), rgba(255,159,28,.10));
    border: 1px solid rgba(254,192,7,.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fec007' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 13px; background-position: center; background-repeat: no-repeat;
}
@media (max-width: 600px) { .about-checks { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
    .about-new .about-grid { grid-template-columns: 1fr; }
    .about-new .about-visual { order: -1; }
    /* logo full-width on top, the two stat boxes share the row below */
    .about-new .about-side { flex-direction: row; flex-wrap: wrap; }
    .about-new .about-logo-box { flex: 1 0 100%; }
    /* min-width:0 keeps the two boxes an equal 50/50 split so the growing count
       number can't reflow their widths frame-by-frame (no shake during count-up) */
    .about-new .about-stat { flex: 1; min-width: 0; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
    .bm-shot { height: clamp(300px, 60vw, 430px); }
    .browser-mock:hover .bm-shot img { transform: none; }
}

/* contact section — glow-border card on a dotted dark field (ex hero-lab #6) */
.contact-bg {
    position: relative; overflow: hidden;
    background: var(--bg);
}
.contact-bg > .container { position: relative; z-index: 1; }
.contact-bg .section-head :is(h1, h2) { color: #fff; }
.contact-bg .eyebrow { color: var(--primary); }

/* glow-border card: 2px rotating conic frame + dark inner panel */
.contact-box {
    position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center;
    border-radius: 24px; padding: 2px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    /* own composited layer so the rounded clip is applied at composite time, not
       re-rasterized every frame as the conic border spins (that was the shake) */
    transform: translateZ(0);
}
.contact-box::before {
    content: ''; position: absolute; inset: -60%; z-index: -1;
    background: conic-gradient(from 0deg, transparent 0 60%, var(--primary) 76%, var(--accent) 88%, transparent 100%);
    animation: spin 4.5s linear infinite;
    will-change: transform; backface-visibility: hidden;
}
.contact-inner { background: #0d1e2c; border-radius: 22px; padding: clamp(34px, 6vw, 52px) 32px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .contact-box::before { animation: none; } }
/* On mobile, remove will-change + backface-visibility from ::before so it composites
   inside .contact-box's own layer instead of creating a separate tile-thrashing layer. */
@media (max-width: 820px) {
    .contact-box::before { will-change: auto; backface-visibility: visible; }
}
.contact-inner > p { margin: 0 0 18px; color: #c2cfd8; }
.contact-inner .contact-phone { display: inline-block; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 700; color: #fec007; margin: 4px 0 20px; letter-spacing: 1px; }
.contact-inner .contact-phone:hover { color: #ffd54a; }
.contact-hours { display: flex; flex-direction: column; gap: 10px; color: #eaf1f6; margin-bottom: 0; font-size: 1.02rem; }

/* portfolio wall (ex hero-lab #8) — horizontally scrolling rows of all works */
/* svh (not vh) so the height doesn't change when the mobile address bar hides
   on scroll — that resize was reflowing the section and looked like vibration */
.pf-wall { position: relative; overflow: hidden; background: var(--bg); min-height: min(86svh, 720px); display: flex; align-items: center; padding: clamp(120px, 15vw, 190px) 0; }
.pf-wall .pf-rows { position: absolute; inset: 0; direction: ltr; display: flex; flex-direction: column; gap: 16px; justify-content: center; z-index: 0; pointer-events: none; }
.pf-wall .pf-row { display: flex; gap: 16px; width: max-content; will-change: transform; backface-visibility: hidden; }
/* brightness on the img (not the animated .pf-rows ancestor) so the dimmed
   image is rasterized once and the marquee just translates the cached texture —
   a filter on the moving ancestor forces a repaint every frame (the jitter) */
.pf-wall .pf-row img { height: clamp(110px, 15vw, 180px); width: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 14px; display: block; filter: brightness(.6); }
.pf-wall .left  { animation: pf-rowleft 80s linear infinite; }
.pf-wall .right { animation: pf-rowright 90s linear infinite; }
.pf-wall .left.s { animation-duration: 68s; }
/* translate3d keeps the marquee on its own GPU layer — no sub-pixel shake on mobile */
@keyframes pf-rowleft  { from { transform: translate3d(0,0,0); }      to { transform: translate3d(-50%,0,0); } }
@keyframes pf-rowright { from { transform: translate3d(-50%,0,0); }   to { transform: translate3d(0,0,0); } }
.pf-wall .pf-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(75% 75% at 50% 50%, rgba(6,8,11,.74), rgba(6,8,11,.95)); }
.pf-wall > .container { position: relative; z-index: 2; }
.pf-wall .pf-wall-head h2 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.pf-wall .pf-wall-head p  { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.95); }
@media (prefers-reduced-motion: reduce) { .pf-wall .left, .pf-wall .right, .pf-wall .left.s { animation: none; } }
/* On mobile remove will-change so the browser doesn't promote max-content rows
   to oversized GPU layers (the source of the compositor tile-thrash / tremble). */
@media (max-width: 820px) {
    .pf-wall .pf-row { will-change: auto; }
}

/* CTA band */
.cta-band {
    position: relative; overflow: hidden; color: #f4f8fb; border-radius: var(--radius); padding: 56px 44px; text-align: center;
    background:
        radial-gradient(80% 120% at 85% -10%, rgba(254,192,7,.30), transparent 55%),
        radial-gradient(70% 120% at 10% 110%, rgba(255,159,28,.22), transparent 55%),
        linear-gradient(120deg, var(--slate), var(--slate-2));
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(244,248,251,.82); margin: 0 auto 24px; max-width: 520px; }
.cta-band .btn { background: linear-gradient(120deg, var(--accent-soft), var(--primary)); color: var(--on-accent); }

/* ===========================================================================
   Article / single content
   =========================================================================== */
/* article + related sidebar layout */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.post-main .prose { max-width: none; }
.post-aside { position: sticky; top: 92px; }
.aside-title {
    font-size: 1.12rem; margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border); position: relative;
}
.aside-title::after {
    content: ''; position: absolute; right: 0; bottom: -1px; width: 46px; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.related-item {
    display: flex; gap: 14px; align-items: center; padding: 10px; margin-bottom: 6px;
    border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.related-item:hover { background: rgba(255,255,255,.035); border-color: var(--border); }
.related-thumb { width: 116px; height: 84px; border-radius: 11px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); border: 1px solid var(--border); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.related-item:hover .related-thumb img { transform: scale(1.07); }
.related-title { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.7; transition: color .2s; }
.related-item:hover .related-title { color: var(--primary); }
@media (max-width: 860px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; margin-top: 30px; } }

.prose { max-width: 760px; margin: 0 auto; font-size: 1.06rem; line-height: 2.05; color: #b9c6d1; }
.prose h2 {
    font-size: 1.5rem; margin-top: 1.9em; margin-bottom: .7em; color: #e7eef3; line-height: 1.5;
}
/* numbered sub-heading: the "۱." marker is gold, the title stays light (no vertical bar) */
.prose h2 .h2-num { color: var(--primary); }
.prose h3 { font-size: 1.22rem; margin-top: 1.5em; margin-bottom: .5em; color: #e7eef3; }
/* article bodies use bold numbered labels as inline sub-headings — color them brand gold
   instead of harsh white so the page stops "screaming" and reads as a clear hierarchy. */
/* bold = emphasis only — a touch brighter than body text, NOT colored gold */
.prose strong { color: #e7eef3; font-weight: 700; }
.prose p { margin: 0 0 1.15em; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em auto; box-shadow: var(--card-shadow); }
.prose ul, .prose ol { padding-right: 1.4em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
/* code blocks: LTR monospace in a dark scrollable box (config snippets, htaccess, …) */
.prose pre, .prose .code-block {
    direction: ltr; text-align: left; unicode-bidi: isolate;
    font-family: 'Consolas', 'SFMono-Regular', 'Courier New', monospace;
    font-size: .88rem; line-height: 1.7; tab-size: 2;
    background: #0d1217; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 18px; margin: 1.5em 0; color: #cdd8e1;
    white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.prose :not(pre) > code {
    direction: ltr; unicode-bidi: isolate;
    font-family: 'Consolas', 'Courier New', monospace; font-size: .9em;
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 6px; color: #e7eef3;
}
/* inline links: stay in text colour with a faint underline; gold only on hover (quiet, not screaming) */
.prose a {
    color: #d4dee6; text-decoration: none;
    border-bottom: 1px solid rgba(254,192,7,.28);
    transition: color .2s, border-color .2s;
}
.prose a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* inline "مقاله مرتبط: …" callout — a quiet related-article box, not a raw underlined link */
.prose .related-inline {
    display: flex; align-items: center; gap: 11px;
    margin: 1.7em 0; padding: 12px 16px;
    background: linear-gradient(90deg, rgba(254,192,7,.07), rgba(254,192,7,0) 62%);
    border: 1px solid var(--border); border-right: 3px solid var(--primary);
    border-radius: var(--radius-sm); font-size: .97rem; line-height: 1.6;
}
.prose .related-inline::before {
    content: ''; flex-shrink: 0; width: 21px; height: 21px; background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9.5 13h5'/%3E%3Cpath d='M9.5 16.5h3'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9.5 13h5'/%3E%3Cpath d='M9.5 16.5h3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.prose .related-inline strong { color: var(--text-secondary); font-weight: 700; }
.prose .related-inline a { color: var(--primary); border-bottom: none; font-weight: 700; }
.prose .related-inline a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* pull-quote — a quiet card with a watermark quote glyph in the corner */
.prose blockquote {
    position: relative; margin: 2.4em auto; max-width: 96%;
    padding: 30px 34px 26px; text-align: center;
    background: rgba(255,255,255,.025); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
}
.prose blockquote::before {
    content: '\201D'; position: absolute; top: 6px; right: 22px;
    font-family: Georgia, 'Times New Roman', serif; font-size: 3.4rem; line-height: 1;
    color: var(--primary); opacity: .5;
}
.prose blockquote p {
    margin: 0; position: relative; font-weight: 700; color: #eef3f7;
    font-size: clamp(1.08rem, 2.1vw, 1.3rem); line-height: 1.95;
}

/* article meta row: rating under the title */
.post-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 22px; color: var(--text-secondary); font-size: .92rem; }
.post-rating { display: inline-flex; align-items: center; gap: 8px; }
.post-rating-num { font-weight: 700; color: var(--primary); }
.post-rating-count { color: #8b99a6; font-size: .85rem; }

/* read-only star display (empty track + clipped filled overlay) */
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars-bg, .stars-fg { display: inline-flex; }
.stars-bg svg, .stars-fg svg { display: block; }
.stars-bg svg { fill: rgba(255,255,255,.16); }
.stars-fg { position: absolute; top: 0; right: 0; overflow: hidden; white-space: nowrap; }
.stars-fg svg { fill: var(--primary); filter: drop-shadow(0 0 4px rgba(254,192,7,.4)); }

/* share: short copy-link (matches the old site) */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 40px 0 6px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-label { font-weight: 700; color: #c6d2db; }
.short-link { display: inline-flex; align-items: stretch; height: 44px; max-width: 100%; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.04); transition: border-color .18s; }
.short-link:focus-within { border-color: rgba(254,192,7,.5); }
.short-link input {
    border: 0; background: transparent; color: #c6d2db; font: inherit; font-size: .9rem; direction: ltr; text-align: left;
    padding: 0 16px; width: 230px; max-width: 52vw; outline: none;
}
.short-link input::selection { background: rgba(254,192,7,.28); color: #fff; }
.short-copy {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; width: 46px; flex-shrink: 0;
    border: 0; border-right: 1px solid var(--border); background: rgba(255,255,255,.05); color: #c6d2db; cursor: pointer; transition: background .18s, color .18s;
}
.short-copy:hover { background: var(--primary); color: var(--on-accent); }
.short-copy .i-ok { display: none; }
.short-copy.ok { background: var(--primary); color: var(--on-accent); }
.short-copy.ok .i-copy { display: none; }
.short-copy.ok .i-ok { display: block; animation: copyPop .25s var(--ease); }
@keyframes copyPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* "copied!" toast bubble above the button */
.copied-bubble {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
    background: var(--primary); color: var(--on-accent); font-size: .76rem; font-weight: 700; white-space: nowrap;
    padding: 4px 10px; border-radius: 7px; pointer-events: none;
    visibility: hidden; opacity: 0; transition: opacity .18s, transform .18s, visibility .18s;
    box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.copied-bubble::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--primary); }
.short-copy.ok .copied-bubble { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

/* historical comments (read-only) */
.comments { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.35rem; margin-bottom: 24px; }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comment-list { margin: 0; }
.comment { margin-bottom: 20px; }
/* replies: just indented (no thread line); the "در پاسخ به X" label shows the relationship.
   Scoped under .comments to beat the `.comments ul { margin:0 }` reset above. */
.comments .comment-children { margin: 24px 0 0; padding-right: clamp(18px, 4vw, 36px); }
.comment-body {
    background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
}
.comment.is-admin > .comment-body { border-color: rgba(254,192,7,.4); background: rgba(254,192,7,.06); }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, var(--accent-soft), var(--primary)); color: var(--on-accent); font-weight: 700; font-size: .95rem;
}
.comment-avatar.is-logo { background: transparent; padding: 0; }
.comment-avatar.is-logo img { width: 100%; height: 100%; object-fit: cover; }
.comment-author { font-weight: 700; color: #eef3f7; }
.comment-date { margin-right: auto; font-size: .8rem; color: #8b99a6; }
.comment-replyto { font-size: .8rem; color: #8b99a6; margin: -2px 0 8px; }
.comment-replyto b { color: var(--primary); font-weight: 700; }
.comment-text { margin: 0; color: #c6d2db; line-height: 1.9; }
.comments-closed { margin-top: 22px; text-align: center; font-size: .9rem; color: #8b99a6; background: rgba(255,255,255,.03); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px; }

.page-head { text-align: center; padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-head p { color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

.portfolio-desc { color: var(--text-secondary); font-size: 1.06rem; margin: 0 0 24px; line-height: 2; }
.portfolio-shots { display: flex; flex-direction: column; gap: 28px; margin: 8px 0 30px; }

/* browser-frame shot: chrome bar + screenshot; tall full-page shots auto-scroll */
.browser-mock {
    --fh: 560px;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: #0d1722; box-shadow: var(--card-shadow);
}
.bm-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: linear-gradient(180deg,#142433,#0e1b27); border-bottom: 1px solid var(--border); direction: ltr; }
.bm-dots { display: inline-flex; gap: 7px; flex-shrink: 0; }
.bm-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4854; }
.bm-dots i:nth-child(1) { background: #ff5f57; }
.bm-dots i:nth-child(2) { background: #febc2e; }
.bm-dots i:nth-child(3) { background: #28c840; }
.bm-url { flex: 1; text-align: center; direction: ltr; font-size: .82rem; letter-spacing: .3px; color: #8b99a6; background: #0a131c; border: 1px solid rgba(255,255,255,.04); border-radius: 8px; padding: 5px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-shot { overflow: hidden; }
.bm-shot img { width: 100%; display: block; }
/* tall full-page screenshots: auto-scroll within the fixed frame (staggered, pause on hover) */
.bm-scroll .bm-shot { height: var(--fh); }
.bm-scroll .bm-shot img { animation: bmAuto 18s ease-in-out infinite alternate; animation-delay: calc(var(--d,0) * -3.5s); will-change: transform; }
/* hover-pause only on real hover devices (otherwise a tap sticks the pause on mobile) */
@media (hover: hover) { .bm-scroll:hover .bm-shot img { animation-play-state: paused; } }
/* touch devices: tapping the frame toggles this class (see footer.js) */
.bm-scroll.paused .bm-shot img { animation-play-state: paused; }
@keyframes bmAuto { from { transform: translateY(0); } to { transform: translateY(calc(-100% + var(--fh))); } }
/* low-res narrow shots: native width, centered, no upscaling blur */
.bm-sm { max-width: max-content; margin-left: auto; margin-right: auto; }
.bm-sm .bm-shot img { width: auto; max-width: 100%; }
@media (max-width: 700px) { .browser-mock { --fh: 420px; } }
@media (prefers-reduced-motion: reduce) {
    .bm-scroll .bm-shot { overflow-y: auto; }
    .bm-scroll .bm-shot img { animation: none; }
}
.portfolio-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.breadcrumb { font-size: .9rem; color: var(--text-secondary); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }

.post-meta { color: var(--text-secondary); font-size: .9rem; margin-bottom: 20px; }

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0 32px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; justify-content: center; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 1.2rem;
}
.footer-social a:hover { background: var(--primary); color: var(--on-accent); border-color: var(--primary); transform: translateY(-3px); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--text-secondary); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-social { margin-top: 0; }

/* line clamp for card excerpts */
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* floating support widget (consult + phone) */
.support-fab {
    position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 20px; z-index: 90;
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}
.sf-consult {
    background: var(--slate); color: #fff; padding: 9px 20px; border-radius: 11px;
    text-align: center; font-size: .9rem; font-weight: 700; box-shadow: 0 6px 18px rgba(26,35,43,.35);
}
.sf-consult:hover { background: var(--slate-2); color: #fff; }
.sf-phone, .sf-phone span { color: var(--on-accent); }
.sf-phone svg { stroke: var(--on-accent); color: var(--on-accent); }
.sf-phone {
    /* squircle — echoes the logo's yellow box */
    background: linear-gradient(120deg, var(--accent-soft), var(--primary)); padding: 11px 20px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
    box-shadow: 0 8px 22px rgba(254,192,7,.45); direction: ltr;
}
.sf-phone:hover { transform: translateY(-2px); }
@media (max-width: 560px) {
    .sf-consult { display: none; }
    .sf-phone { padding: 14px; border-radius: 13px; }
    .sf-phone span { display: none; }
}

/* back-to-top button (idea #16) — bare bold gold chevron, no tile;
   the 46px box stays as the (invisible) touch target */
.to-top {
    position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 20px; z-index: 90;
    width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
    background: transparent; border: none; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
    opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
    transition: opacity .3s, transform .3s, color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #ffd54a; transform: translateY(-3px); }
/* on hover, trailing dots light up under the chevron and drift upward —
   tapering size + opacity read as the tail of a rising arrow */
.to-top svg circle {
    opacity: 0; transform: translateY(2.5px); transform-box: fill-box;
    transition: opacity .22s, transform .22s var(--ease);
}
.to-top:hover svg circle:nth-of-type(1) { opacity: 1;   transform: none; transition-delay: .05s; }
.to-top:hover svg circle:nth-of-type(2) { opacity: .65; transform: none; transition-delay: .14s; }
.to-top:hover svg circle:nth-of-type(3) { opacity: .35; transform: none; transition-delay: .23s; }

.contact-hours { margin-bottom: 0; }

/* soft cursor glow on dark sections (idea #19) */
.cursor-glow {
    position: fixed; top: 0; left: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
    z-index: 60; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .35s;
    background: radial-gradient(closest-side, rgba(254,192,7,.06), transparent 72%);
}
.cursor-glow.on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* header CTA (idea #1) */
.header-cta { padding: 9px 20px; font-size: .92rem; box-shadow: 0 4px 14px rgba(254,192,7,.28); }
@media (max-width: 900px) { .header-cta { display: none; } }



/* faq on the contact page, below the contact box */
.contact-faq { max-width: 760px; margin: clamp(48px, 8vw, 84px) auto 0; }
.contact-faq .section-head { margin-bottom: 26px; }

/* faq accordion (idea #4) */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--primary); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--text); padding: 18px 20px; text-align: right; }
.faq-q:hover { color: var(--primary); }
.faq-ic { flex-shrink: 0; color: var(--primary); transition: transform .3s var(--ease); }
.faq-item.open .faq-ic { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-secondary); line-height: 1.95; font-size: .97rem; }

/* ===========================================================================
   Scroll-reveal animation system
   =========================================================================== */
/* transform/opacity only (≤400ms) — the old blur(7px) reveal repainted every frame
   and the permanent will-change held a GPU layer per element */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
[data-reveal="left"]  { transform: translateX(40px); }
[data-reveal="right"] { transform: translateX(-40px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }

/* stagger children: set --i on each child */
[data-stagger] > * {
    opacity: 0; transform: translateY(26px);
    transition: opacity .38s var(--ease), transform .38s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
}
[data-stagger].in > * { opacity: 1; transform: none; }

/* process icons pop in cleanly after the step fades (idea #17) — no stroke-draw (looked like loading dots) */
.process-icon svg {
    opacity: 0; transform: scale(.55); transform-origin: center;
    transition: opacity .45s var(--ease), transform .55s cubic-bezier(.34,1.56,.64,1);
    transition-delay: calc(var(--i, 0) * 80ms + 260ms);
}
.process-grid.in .process-icon svg { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    .process-icon svg { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* count-up numbers sit still until animated by JS */
.count[data-to] { font-variant-numeric: proportional-nums; }
/* tabular figures ONLY while counting — stops the width jitter mid-animation,
   then the final number relaxes back to proportional forms */
.count.counting { font-variant-numeric: tabular-nums; }

/* ---- smooth cross-document page transitions (idea #9) ----
   Pure-CSS View Transitions: same-origin navigations crossfade the page and the
   incoming content lifts in slightly. Browsers without support (Firefox, older
   Safari/Chrome) just ignore @view-transition and navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .32s; animation-timing-function: var(--ease, cubic-bezier(.4,0,.2,1));
}
@keyframes nn-page-out { to { opacity: 0; } }
@keyframes nn-page-in  { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation-name: nn-page-out; }
::view-transition-new(root) { animation-name: nn-page-in; }
/* anchor the header so it stays put while the page content crossfades */
.site-header { view-transition-name: nn-header; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ===========================================================================
   Tools showcase — the hero-adjacent "online tools" band (brand focus)
   =========================================================================== */
.tools-band {
    position: relative; overflow: hidden;
    background: var(--bg);
    color: #eef3f7; padding: 78px 0 86px;
}
:root:not(.dark) .tools-band { color: #eef3f7; }
.tools-band .section-head h2 { color: #fff; }
.tools-band .eyebrow { color: var(--primary); }

.tools-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 920px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center;
    background: #132737; border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius); padding: 28px 24px 26px;
    transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s, box-shadow .4s;
    backdrop-filter: blur(3px);
}
.tool-card::before {  /* yellow bloom */
    content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0;
    background: radial-gradient(120% 120% at 50% 0%, rgba(254,192,7,.16), transparent 60%);
    transition: opacity .4s;
}
.tool-card::after {  /* top accent line grows on hover */
    content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; transform: scaleX(0); transform-origin: right;
    background: linear-gradient(90deg, var(--accent), var(--primary)); transition: transform .4s var(--ease);
}
.tool-card:hover { transform: translateY(-7px); border-color: rgba(254,192,7,.5); background: #1a3347; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover::after { transform: scaleX(1); }
.tool-ic {
    align-self: center;
    width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(254,192,7,.22), rgba(255,159,28,.10));
    border: 1px solid rgba(254,192,7,.32); color: var(--primary);
    transition: transform .4s var(--ease), box-shadow .4s; box-shadow: 0 6px 18px rgba(254,192,7,.10);
}
.tool-card:hover .tool-ic { transform: scale(1.07) rotate(-5deg); box-shadow: 0 10px 26px rgba(254,192,7,.28); }
/* brand tool cards: logo-style icon tile — solid gold box, navy glyph with a white keyline */
.tools-grid--3 .tool-ic {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent; color: var(--on-accent);
    box-shadow: 0 8px 20px rgba(254,192,7,.28);
}
.tools-grid--3 .tool-ic svg {
    filter: drop-shadow(0 0 .5px #fff) drop-shadow(0 0 .5px rgba(255,255,255,.6));
}
.tools-grid--3 .tool-card:hover .tool-ic { box-shadow: 0 12px 28px rgba(254,192,7,.42); }
.tool-card h3 { color: #fff; font-size: 1.18rem; margin: 6px 0 0; letter-spacing: -.3px; }
.tool-card p { color: #9fadb9; font-size: .92rem; margin: 0; flex: 1; line-height: 1.85; }
.tool-host {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: .2px;
    font-size: 1.2rem; font-weight: 700; color: var(--primary); direction: ltr; margin-top: 14px;
    transition: color .3s;
}
.tool-host svg { transition: transform .3s var(--ease); }
.tool-card:hover .tool-host { color: var(--primary); }
.tool-card:hover .tool-host svg { transform: translateX(-5px); }
/* the address as a ghost button — the gold icon tile stays the card's logo; on card
   hover the button fills gold like the site's .btn, so clickability is unmistakable */
.tool-host-pill {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 11px 20px; border-radius: var(--radius-sm);
    background: rgba(254,192,7,.07);
    border: 1.5px solid rgba(254,192,7,.45);
    color: var(--primary); font-size: 1.08rem;
    transition: border-color .3s, color .3s, box-shadow .3s;
}
.tool-host-pill::before {  /* gradient fill on its own layer — gradients can't transition,
    so fade this layer's opacity instead for a clean in/out */
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(120deg, var(--accent-soft), var(--primary));
    opacity: 0; transition: opacity .3s;
}
.tool-host-pill::after {  /* sheen sweep, same as .btn */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
    transform: translateX(-130%); transition: transform .6s var(--ease);
}
.tool-card:hover .tool-host-pill {
    border-color: transparent; color: var(--on-accent);
    box-shadow: 0 10px 24px rgba(254,192,7,.35);
}
.tool-card:hover .tool-host-pill::before { opacity: 1; }
.tool-card:hover .tool-host-pill::after { transform: translateX(130%); }

/* tighter gap between section head and the cards in this band */
.tools-band .section-head { margin-bottom: clamp(26px, 4vw, 40px); }

/* headline row reduced to 3 cards */
.tools-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .tools-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tools-grid--3 { grid-template-columns: 1fr; } }

/* second row: handy web tools (compact cards) */
.tools-subhead { text-align: center; margin: 52px 0 22px; }
.tools-subhead h3 { color: #fff; font-size: 1.18rem; margin: 0 0 5px; letter-spacing: -.3px; }
.tools-subhead p  { color: #9fadb9; font-size: .9rem; margin: 0; }
.tools-grid--mini { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .tools-grid--mini { grid-template-columns: repeat(2, 1fr); } }
.tool-card--mini { flex-direction: row; align-items: center; text-align: right; gap: 14px; padding: 18px 20px; }
[dir=ltr] .tool-card--mini{text-align:left;}
.tool-card--mini .tool-ic { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.tool-card--mini .tool-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.tool-card--mini h3 { font-size: 1.02rem; margin: 0; }
.tool-card--mini p  { font-size: .84rem; line-height: 1.65; margin: 0; flex: none; }
.tool-card--mini .tool-arrow { flex-shrink: 0; color: #7d8c98; transition: transform .3s var(--ease), color .3s; }
.tool-card--mini:hover .tool-arrow { color: var(--primary); transform: translateX(-4px); }
/* phone: compact 2-up tiles (icon + title) so the list isn't endless */
@media (max-width: 540px) {
    .tools-grid--mini { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tool-card--mini { flex-direction: column; align-items: center; text-align: center!important; gap: 8px; padding: 14px 8px; }
    .tool-card--mini .tool-ic { width: 38px; height: 38px; border-radius: 11px; }
    .tool-card--mini .tool-body { align-items: center; }
    .tool-card--mini h3 { font-size: .78rem; line-height: 1.35; }
    .tool-card--mini p,
    .tool-card--mini .tool-arrow { display: none; }
}

/* ===========================================================================
   Whois / domain-check page
   =========================================================================== */
.whois-box { max-width: 720px; margin: 0 auto; }
.whois-form { display: flex; gap: 10px; flex-wrap: wrap; }
.whois-form .btn { order: -1; } /* RTL: button visually right of the LTR input */
.whois-input {
    flex: 1; min-width: 220px; padding: 13px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); font: inherit;
    direction: ltr; text-align: left; transition: border-color .18s, box-shadow .18s;
}
.whois-input:focus { outline: none; border-color: rgba(254,192,7,.55); box-shadow: 0 0 0 3px rgba(254,192,7,.12); }
.whois-tlds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.whois-tlds span { font-size: .82rem; color: var(--text-secondary); }
.whois-tld {
    position: relative;
    border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text-secondary);
    font: inherit; font-size: .82rem; direction: ltr; padding: 4px 12px; border-radius: 99px; cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
}
/* invisible hit-area extension → ≥44px touch target (vertical only: chips sit side by side) */
.whois-tld::before { content: ''; position: absolute; top: -8px; bottom: -8px; left: 0; right: 0; }
.whois-label { display: block; font-size: .88rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.whois-tld:hover, .whois-tld.on { color: var(--primary); border-color: rgba(254,192,7,.5); background: rgba(254,192,7,.07); }
.whois-result { margin-top: 24px; }
.whois-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--card-shadow);
}
.whois-card.is-free { text-align: center; border-color: rgba(254,192,7,.45); background: rgba(254,192,7,.05); }
.whois-card.is-free h3 { color: var(--primary); font-size: 1.25rem; }
/* the Latin domain inside the RTL sentence: isolate + keep on one line */
.whois-card.is-free h3 b { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.whois-card.is-free p { margin: 12px auto 22px; max-width: 440px; color: var(--text-secondary); }
.whois-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.whois-head h3 { font-size: 1.05rem; margin: 0; direction: ltr; text-align: left; unicode-bidi: plaintext; }
.whois-badge {
    font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px;
    background: rgba(255,255,255,.07); border: 1px solid var(--border); color: var(--text-secondary);
}
.whois-rows { margin: 18px 0 0; display: grid; gap: 0; }
.whois-row { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.whois-row b { font-weight: 700; font-size: .88rem; color: #c6d2db; flex-shrink: 0; }
.whois-row > span { direction: ltr; text-align: left; font-size: .88rem; color: var(--text-secondary); word-break: break-all; }
/* Jalali dates are RTL text — isolate them from the LTR value cell */
.whois-row > span > [dir="rtl"] { direction: rtl; unicode-bidi: isolate; word-break: normal; }
.whois-soon {
    display: inline-block; margin: 0 8px; font-style: normal; font-size: .72rem; font-weight: 700;
    color: var(--accent); background: rgba(255,159,28,.1); border: 1px solid rgba(255,159,28,.45);
    border-radius: 99px; padding: 2px 10px;
}
.whois-raw { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.whois-raw summary { cursor: pointer; font-size: .86rem; color: var(--text-secondary); list-style-position: inside; }
.whois-raw summary:hover { color: var(--primary); }
.whois-raw pre {
    white-space: pre-wrap; direction: ltr; text-align: left; font-size: .8rem; line-height: 1.7;
    color: var(--text-secondary); max-height: 320px; overflow: auto; margin: 12px 0 0;
    background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
}
.whois-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-secondary); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.whois-loading { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); }
.whois-loading i {
    width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
    border: 2.5px solid rgba(254,192,7,.25); border-top-color: var(--primary);
    animation: spin .8s linear infinite;
}
.whois-faq { max-width: 720px; margin: 56px auto 0; }
.whois-faq h2 { font-size: 1.3rem; margin-bottom: 18px; }

/* ===========================================================================
   Language switcher + suggestion banner (both languages)
   =========================================================================== */
.lang-switch {
    display: inline-flex; align-items: center; justify-content: center;
    /* squircle — same 26% family as the other action buttons */
    position: relative;
    height: 36px; padding: 0 14px; border-radius: 9px;
    border: 1px solid var(--border); color: var(--text-secondary);
    font-size: .85rem; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}
/* invisible hit-area extension → 44px touch target without changing the visual */
.lang-switch::before { content: ''; position: absolute; top: -4px; bottom: -4px; left: 0; right: 0; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }

/* ===========================================================================
   English (LTR) layer — only re-flows the few rules with hard left/right.
   The Persian site is unaffected (everything here is scoped to lang="en").
   =========================================================================== */
html[lang="en"] body {
    direction: ltr;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
html[lang="en"] .tslide { direction: ltr; }
html[lang="en"] .faq-q { text-align: left; }
html[lang="en"] .quote::before { right: auto; left: 22px; }
html[lang="en"] .tslide .quote::before { right: auto; left: 30px; }
html[lang="en"] .tslider-arrow.prev { right: auto; left: -66px; }
html[lang="en"] .tslider-arrow.next { left: auto; right: -66px; }
@media (max-width: 1000px) {
    html[lang="en"] .tslider-arrow.prev { right: auto; left: -10px; }
    html[lang="en"] .tslider-arrow.next { left: auto; right: -10px; }
}
/* process connector should sweep left->right in LTR (matches steps 1->4) */
html[lang="en"] .process-section .process-grid::before { transform-origin: left; }
/* whois: the order:-1 trick is RTL-only (keeps the button right of the LTR input) */
html[lang="en"] .whois-form .btn { order: 0; }
/* English: "+" sits to the LEFT of the number at normal size (+20), matching the Farsi layout */
html[lang="en"] .about-num i { align-self: baseline; font-size: 1em; }
/* slightly larger consult label in English */
html[lang="en"] .sf-consult { font-size: 1rem; }
/* combined English wordmark logo — the mark fills ~80% of the canvas height,
   so size it taller than the standalone Farsi mark to match it visually. */
.brand-en { height: 43px; width: auto; display: block; }
@media (max-width: 480px) { .brand-en { height: 40px; } }
