:root {
    --font-sans: 'Vazirmatn', Tahoma, sans-serif;
    --blue-900: #0d254d;
    --blue-800: #123a72;
    --blue-700: #1d4f91;
    --blue-600: #2968c8;
    --red-500: #e94b4b;
    --red-600: #d93e43;
    --color-primary: var(--blue-800);
    --color-primary-2: var(--blue-600);
    --color-accent: var(--red-500);
    --color-bg: #f7f9fc;
    --color-surface: #ffffff;
    --color-surface-2: #f0f4fa;
    --color-text: #14213a;
    --color-muted: #6b7890;
    --color-border: #e3e9f2;
    --color-success: #16865f;
    --header-glass: rgba(255,255,255,.87);
    --hero-start: #f7faff;
    --hero-end: #eef4fc;
    --shadow-sm: 0 8px 30px rgba(21,45,83,.07);
    --shadow-md: 0 20px 60px rgba(17,42,78,.12);
    --shadow-lg: 0 35px 90px rgba(9,34,76,.18);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --container: 1180px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --color-primary: #73a7f3;
        --color-primary-2: #4b83db;
        --color-accent: #ff6666;
        --color-bg: #081120;
        --color-surface: #0e1a2d;
        --color-surface-2: #14243a;
        --color-text: #eef5ff;
        --color-muted: #9ba9bc;
        --color-border: #21344f;
        --header-glass: rgba(8,17,32,.86);
        --hero-start: #07101e;
        --hero-end: #0c1b31;
        --shadow-sm: 0 8px 30px rgba(0,0,0,.18);
        --shadow-md: 0 22px 70px rgba(0,0,0,.25);
        --shadow-lg: 0 35px 90px rgba(0,0,0,.35);
    }
}
:root[data-theme="dark"] {
    --color-primary: #73a7f3; --color-primary-2: #4b83db; --color-accent: #ff6666;
    --color-bg: #081120; --color-surface: #0e1a2d; --color-surface-2: #14243a; --color-text: #eef5ff; --color-muted: #9ba9bc; --color-border: #21344f;
    --header-glass: rgba(8,17,32,.86); --hero-start: #07101e; --hero-end: #0c1b31;
    --shadow-sm: 0 8px 30px rgba(0,0,0,.18); --shadow-md: 0 22px 70px rgba(0,0,0,.25); --shadow-lg: 0 35px 90px rgba(0,0,0,.35);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 90px 0; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1); }
[data-reveal].reveal-in { opacity: 1; transform: none; }
[data-parallax] { transform: translate3d(0, var(--parallax-y,0), 0); will-change: transform; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 80; border-bottom: 1px solid transparent; transition: transform .3s ease, background .3s ease, border-color .3s ease; background: var(--header-glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: color-mix(in srgb, var(--color-border) 75%, transparent); }
.site-header.is-hidden { transform: translateY(-105%); }
.header-inner { height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px 14px 14px 7px; background: linear-gradient(145deg,var(--blue-700),var(--blue-900)); display: grid; place-items: center; box-shadow: 0 10px 25px rgba(18,58,114,.2); position: relative; overflow: hidden; }
.brand-mark::before { content: ''; width: 23px; height: 23px; border: 3px solid #fff; border-radius: 8px 8px 8px 3px; transform: rotate(-7deg); }
.brand-mark span { position: absolute; width: 6px; height: 6px; background: var(--red-500); border-radius: 50%; top: 9px; right: 8px; box-shadow: 0 0 0 3px rgba(255,255,255,.23); }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 1.04rem; font-weight: 900; letter-spacing: -.03em; }
.brand-text small { color: var(--color-muted); font-size: .68rem; margin-top: 3px; }
.desktop-nav { justify-self: center; display: flex; gap: 6px; padding: 5px; border-radius: 16px; }
.desktop-nav a { padding: 9px 13px; border-radius: 11px; color: var(--color-muted); font-size: .82rem; font-weight: 700; transition: .2s ease; }
.desktop-nav a:hover { color: var(--color-primary); background: var(--color-surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-head-actions { display: none; }
.icon-btn, .theme-toggle { width: 40px; height: 40px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 13px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.theme-toggle { position: relative; overflow: hidden; }
.theme-icon { position: absolute; display: grid; place-items: center; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.theme-icon svg { width: 18px; height: 18px; }
.theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-icon-moon { opacity: 0; transform: scale(.55) rotate(-55deg); }
.theme-toggle.is-dark .theme-icon-sun { opacity: 0; transform: scale(.55) rotate(55deg); }
.theme-toggle.is-dark .theme-icon-moon { opacity: 1; transform: scale(1) rotate(0); }
.btn { border: 0; border-radius: 14px; min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: .84rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg,var(--blue-700),var(--blue-900)); color: #fff; box-shadow: 0 12px 28px rgba(18,58,114,.22); }
.btn-primary:hover { box-shadow: 0 16px 35px rgba(18,58,114,.28); }
.btn-ghost, .btn-surface { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-sm { min-height: 40px; padding-inline: 13px; }
.btn-lg { min-height: 53px; padding-inline: 22px; border-radius: 16px; font-size: .9rem; }
.login-btn svg { width: 17px; height: 17px; }
.btn-glass { background: color-mix(in srgb, var(--color-surface) 75%, transparent); border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent); color: var(--color-text); backdrop-filter: blur(14px); }
.btn-white { background: #fff; color: var(--blue-900); box-shadow: 0 14px 34px rgba(0,0,0,.16); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(3,10,22,.44); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; z-index: 90; top: 0; right: 0; height: 100dvh; width: min(88vw,365px); background: var(--color-surface); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); padding: max(18px,env(safe-area-inset-top)) 18px 24px; box-shadow: -30px 0 80px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 24px; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav { display: grid; gap: 8px; }
.drawer-nav a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; transition: .18s ease; }
.drawer-nav a:hover { background: var(--color-surface-2); }
.drawer-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb,var(--color-primary) 10%,var(--color-surface)); color: var(--color-primary); font-weight: 900; }
.drawer-nav div { display: grid; }
.drawer-nav strong { font-size: .88rem; }
.drawer-nav small { color: var(--color-muted); font-size: .7rem; margin-top: 3px; }
.drawer-nav b { color: var(--color-muted); font-size: 1.4rem; font-weight: 400; }
.drawer-card { margin-top: auto; padding: 20px; border-radius: 22px; background: linear-gradient(140deg,var(--blue-800),var(--blue-900)); color: white; display: grid; gap: 7px; }
.drawer-card span { color: #a9c9f7; font-size: .72rem; }
.drawer-card strong { font-size: 1rem; line-height: 1.8; }
.drawer-card a { color: #fff; font-size: .78rem; font-weight: 800; margin-top: 6px; }

.hero { min-height: 720px; padding: 120px 0 55px; position: relative; overflow: hidden; background: radial-gradient(circle at 13% 20%, color-mix(in srgb,var(--color-primary) 12%,transparent), transparent 36%), linear-gradient(180deg,var(--hero-start),var(--hero-end)); }
.hero-noise { position: absolute; inset: 0; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-orb-one { width: 320px; height: 320px; background: radial-gradient(circle,rgba(41,104,200,.16),transparent 68%); right: -80px; top: 170px; }
.hero-orb-two { width: 270px; height: 270px; background: radial-gradient(circle,rgba(233,75,75,.13),transparent 68%); left: 8%; bottom: -120px; }
.hero-grid { min-height: 540px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 40px; position: relative; z-index: 2; }
.hero-content { max-width: 570px; }
.eyebrow { width: max-content; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid color-mix(in srgb,var(--color-primary) 18%,var(--color-border)); border-radius: 99px; background: color-mix(in srgb,var(--color-surface) 72%,transparent); color: var(--color-primary); font-size: .74rem; font-weight: 800; backdrop-filter: blur(12px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 color-mix(in srgb,var(--color-accent) 35%,transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { margin: 18px 0 15px; font-size: clamp(3rem,5.2vw,5.2rem); line-height: 1.12; letter-spacing: -.06em; font-weight: 900; }
.hero h1 span { color: var(--color-primary); position: relative; }
.hero h1 span::after { content: ''; position: absolute; height: 6px; background: var(--color-accent); border-radius: 99px; width: 34%; right: 0; bottom: -8px; opacity: .85; }
.hero-content > p { color: var(--color-muted); font-size: 1.02rem; line-height: 2; max-width: 510px; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 18px; align-items: center; margin-top: 32px; }
.hero-proof div { display: grid; }
.hero-proof strong { font-size: .83rem; }
.hero-proof small { color: var(--color-muted); font-size: .68rem; margin-top: 2px; }
.hero-proof i { width: 1px; height: 30px; background: var(--color-border); }
.hero-stage { height: 520px; position: relative; isolation: isolate; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.hero-stage.three-ready #heroCanvas { opacity: 1; }
.hero-stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s ease; }
.hero-stage.three-ready .hero-stage-fallback { opacity: 0; }
.fallback-phone { width: 220px; height: 430px; border-radius: 43px; transform: rotate(-9deg); background: linear-gradient(150deg,#1d2d4e,#08101e); border: 6px solid #6682aa; box-shadow: 0 40px 80px rgba(14,41,81,.28); }
.float-card { position: absolute; z-index: 4; background: color-mix(in srgb,var(--color-surface) 83%,transparent); border: 1px solid color-mix(in srgb,var(--color-border) 70%,transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(18px) saturate(140%); border-radius: 17px; }
.float-card-price { top: 70px; right: 7%; padding: 14px 17px; display: grid; min-width: 148px; }
.float-card-price span,.float-card-price small,.float-card-slot span { color: var(--color-muted); font-size: .66rem; }
.float-card-price strong { font-size: 1.12rem; margin-top: 2px; color: var(--color-primary); }
.float-card-check { bottom: 88px; left: 4%; padding: 11px 14px; display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; }
.float-card-check b { width: 28px; height: 28px; display: grid; place-items: center; background: color-mix(in srgb,var(--color-success) 12%,var(--color-surface)); color: var(--color-success); border-radius: 10px; }
.float-card-slot { right: 4%; bottom: 40px; padding: 11px 14px; display: grid; }
.float-card-slot strong { color: var(--color-accent); font-size: .9rem; }

.quick-strip { position: relative; z-index: 5; margin-top: -28px; }
.quick-strip-inner { display: grid; grid-template-columns: repeat(3,1fr); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); border-radius: 22px; padding: 10px; }
.quick-strip-inner > div { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-left: 1px solid var(--color-border); }
.quick-strip-inner > div:last-child { border-left: 0; }
.quick-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-primary); font-weight: 900; }
.quick-strip p { margin: 0; display: grid; }
.quick-strip strong { font-size: .82rem; }
.quick-strip small { color: var(--color-muted); font-size: .68rem; margin-top: 3px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.65rem,3vw,2.45rem); letter-spacing: -.045em; margin: 5px 0 0; line-height: 1.35; }
.section-head p { max-width: 430px; margin: 0; color: var(--color-muted); line-height: 1.8; font-size: .84rem; }
.kicker { color: var(--color-accent); font-size: .73rem; font-weight: 900; }
.market-stamp { color: var(--color-muted); font-size: .7rem; padding: 7px 10px; border-radius: 99px; background: var(--color-surface-2); }
.quote-section { padding-top: 100px; }
.quote-shell { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; position: relative; }
.quote-shell::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,var(--color-accent),var(--color-primary)); }
.quote-progress { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 23px 20px 15px; border-bottom: 1px solid var(--color-border); }
.quote-progress span { display: flex; align-items: center; gap: 7px; color: var(--color-muted); font-size: .72rem; font-weight: 700; transition: .25s ease; }
.quote-progress span b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-border); font-size: .65rem; }
.quote-progress span.is-active { color: var(--color-primary); }
.quote-progress span.is-active b { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.quote-progress i { width: 55px; height: 1px; background: var(--color-border); }
.quote-form { display: grid; grid-template-columns: 1fr 1.25fr .8fr auto; gap: 12px; padding: 28px; align-items: end; transition: opacity .25s ease, max-height .3s ease, padding .3s ease; }
.quote-form.is-collapsed { opacity: 0; max-height: 0; padding-block: 0; pointer-events: none; overflow: hidden; }
label { display: grid; gap: 7px; }
label > span, fieldset legend { font-size: .72rem; color: var(--color-muted); font-weight: 700; }
select { width: 100%; height: 49px; border-radius: 13px; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); padding: 0 13px; outline: none; transition: border .2s, box-shadow .2s; }
select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--color-primary) 11%,transparent); }
select:disabled { opacity: .55; }
.quote-submit { min-height: 49px; white-space: nowrap; }
.condition-panel { padding: 26px 28px 30px; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.condition-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.condition-title div { display: grid; }
.condition-title small { color: var(--color-muted); font-size: .68rem; }
.condition-title strong { margin-top: 4px; font-size: 1.05rem; direction: ltr; text-align: right; }
.text-btn,.text-link { border: 0; background: transparent; color: var(--color-primary); padding: 0; font-weight: 800; font-size: .77rem; }
.condition-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.condition-grid fieldset { border: 0; padding: 0; margin: 0; }
.segmented { height: 49px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 13px; }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { height: 100%; display: grid; place-items: center; border-radius: 9px; color: var(--color-muted); font-size: .76rem; font-weight: 800; cursor: pointer; }
.segmented input:checked + span { background: var(--color-surface); color: var(--color-primary); box-shadow: 0 3px 12px rgba(16,40,78,.08); }
.calculate-btn { min-height: 49px; margin-top: 22px; min-width: 190px; }
.price-result { margin: 25px 28px 30px; padding: 26px; border-radius: 25px; background: linear-gradient(135deg,color-mix(in srgb,var(--color-primary) 10%,var(--color-surface)),var(--color-surface)); border: 1px solid color-mix(in srgb,var(--color-primary) 24%,var(--color-border)); display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px 30px; animation: panelIn .35s ease; }
.result-main { display: grid; }
.result-main > span { color: var(--color-muted); font-size: .72rem; }
.result-main > strong { display: flex; align-items: baseline; gap: 10px; margin-top: 7px; direction: ltr; justify-content: flex-end; width: max-content; }
.result-main b { font-size: clamp(2rem,4.5vw,3.35rem); letter-spacing: -.06em; color: var(--color-primary); }
.result-main em { font-style: normal; color: var(--color-muted); font-size: .75rem; }
.result-main small { color: var(--color-muted); font-size: .72rem; }
.result-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.result-side div { padding: 13px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); display: grid; }
.result-side span { color: var(--color-muted); font-size: .65rem; }
.result-side strong { margin-top: 3px; font-size: .82rem; }
.result-note { grid-column: 1 / -1; color: var(--color-muted); font-size: .75rem; padding-top: 15px; border-top: 1px solid var(--color-border); }
.result-actions { grid-column: 1 / -1; display: flex; gap: 8px; }

.inspection-section { background: color-mix(in srgb,var(--color-primary) 3.2%,var(--color-bg)); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card { min-height: 340px; border-radius: 29px; padding: 29px; position: relative; overflow: hidden; transform-style: preserve-3d; transition: transform .18s ease, box-shadow .2s ease; }
.service-card-blue { color: #fff; background: radial-gradient(circle at 10% 5%,rgba(99,150,235,.42),transparent 34%), linear-gradient(140deg,var(--blue-700),var(--blue-900)); box-shadow: 0 24px 70px rgba(18,58,114,.22); }
.service-card-blue::after { content:''; position:absolute; width:240px;height:240px;border:1px solid rgba(255,255,255,.1);border-radius:50%;left:-70px;bottom:-110px;box-shadow:0 0 0 35px rgba(255,255,255,.03),0 0 0 70px rgba(255,255,255,.025); }
.service-card-light { background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-symbol { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.service-card-light .service-symbol { background: var(--color-surface-2); color: var(--color-primary); }
.service-symbol svg { width: 25px; height: 25px; }
.service-tag { padding: 6px 9px; border-radius: 99px; font-size: .68rem; font-weight: 800; background: rgba(255,255,255,.11); }
.service-card-light .service-tag { background: var(--color-surface-2); color: var(--color-muted); }
.service-card h3 { font-size: 1.55rem; margin: 45px 0 9px; letter-spacing: -.04em; }
.service-card p { max-width: 460px; line-height: 1.9; margin: 0; font-size: .86rem; color: rgba(255,255,255,.72); }
.service-card-light p { color: var(--color-muted); }
.service-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.service-meta span { padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.09); font-size: .65rem; }
.service-card-light .service-meta span { background: var(--color-surface-2); color: var(--color-muted); }
.service-link { position: absolute; right: 29px; bottom: 27px; border: 0; background: transparent; color: inherit; font-weight: 900; font-size: .8rem; }
.service-card-light .service-link { color: var(--color-primary); }

.models-section { overflow: hidden; }
.models-glow { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle,color-mix(in srgb,var(--color-accent) 10%,transparent),transparent 65%); left: -120px; top: 50px; pointer-events: none; }
.phone-card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.phone-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 23px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.phone-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.device-art { height: 190px; margin: 10px; border-radius: 18px; position: relative; overflow: hidden; background: linear-gradient(145deg,#e5e9f0,#b9c5d5); }
.device-art::before { content:''; position:absolute; width:92px;height:160px;border-radius:22px;background:linear-gradient(145deg,#53647c,#152039);left:50%;top:50%;transform:translate(-50%,-50%) rotate(7deg);box-shadow:0 18px 35px rgba(8,21,41,.25);border:3px solid rgba(255,255,255,.5); }
.device-art .camera { position:absolute; z-index:2; width:18px;height:18px;border-radius:50%;background:#09111f;border:3px solid #8395ad; left:calc(50% - 29px); top:calc(50% - 58px); transform:rotate(7deg); }
.device-art .c2 { top:calc(50% - 34px); }
.device-art .c3 { left:calc(50% - 5px); }
.device-art-iphone { background: linear-gradient(145deg,#e7dfd2,#bdad99); }
.device-art-iphone::before { background: linear-gradient(145deg,#b7ab9c,#6f6459); }
.device-art-a56 { background: linear-gradient(145deg,#dce7ef,#a8c7da); }
.device-art-redmi { background: linear-gradient(145deg,#e9e4df,#c6c0b8); }
.phone-card-body { padding: 5px 16px 17px; }
.phone-card small { color: var(--color-primary); font-weight: 800; font-size: .68rem; }
.phone-card h3 { margin: 3px 0 0; font-size: .97rem; direction: ltr; text-align: right; }
.phone-card p { margin: 2px 0 13px; color: var(--color-muted); font-size: .7rem; direction: ltr; text-align: right; }
.phone-price { padding-top: 11px; border-top: 1px solid var(--color-border); display: grid; }
.phone-price span { color: var(--color-muted); font-size: .64rem; }
.phone-price strong { font-size: .82rem; margin-top: 3px; }
.model-quote { margin-top: 12px; width: 100%; min-height: 39px; border: 0; border-radius: 11px; background: var(--color-surface-2); color: var(--color-primary); font-weight: 900; font-size: .73rem; }

.why-section { background: linear-gradient(180deg,color-mix(in srgb,var(--color-primary) 4%,var(--color-bg)),var(--color-bg)); }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); margin: 7px 0 12px; line-height: 1.4; letter-spacing: -.05em; }
.why-copy p { color: var(--color-muted); line-height: 2; font-size: .86rem; }
.why-copy .text-link { display: inline-block; margin-top: 10px; }
.why-cards { display: grid; gap: 10px; }
.why-cards article { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 18px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 17px; }
.why-cards b { grid-row: 1/3; color: color-mix(in srgb,var(--color-primary) 45%,var(--color-muted)); font-size: .82rem; align-self: center; }
.why-cards strong { font-size: .88rem; }
.why-cards small { color: var(--color-muted); font-size: .7rem; margin-top: 3px; }

.center-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.center-card { padding: 11px; border-radius: 22px; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.center-cover { height: 150px; border-radius: 16px; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: flex-end; font-weight: 900; position: relative; overflow: hidden; }
.center-cover::after { content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(6,17,35,.65)); }
.center-cover > * { position: relative; z-index: 1; }
.center-pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); }
.cover-vanak { background: linear-gradient(135deg,#7698bd,#214d82); }
.cover-saadat { background: linear-gradient(135deg,#c1787a,#713b4e); }
.cover-tehranpars { background: linear-gradient(135deg,#7f9f91,#375f5c); }
.center-card > div:last-child { padding: 12px 5px 5px; }
.center-card h3 { margin: 0; font-size: .9rem; }
.center-card p { margin: 4px 0 12px; color: var(--color-muted); font-size: .7rem; }
.available { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: color-mix(in srgb,var(--color-success) 11%,var(--color-surface)); color: var(--color-success); font-size: .64rem; font-weight: 800; }
.available.muted { color: var(--color-muted); background: var(--color-surface-2); }

.final-cta-section { padding-top: 35px; }
.final-cta { border-radius: 30px; padding: 34px 38px; color: white; background: radial-gradient(circle at 12% 10%,rgba(77,131,219,.5),transparent 35%), linear-gradient(135deg,var(--blue-800),#081e41); display: flex; align-items: center; justify-content: space-between; gap: 25px; box-shadow: var(--shadow-lg); }
.final-cta span { color: #b9d2f7; font-size: .72rem; }
.final-cta h2 { margin: 5px 0 0; font-size: 1.65rem; max-width: 650px; }
.site-footer { padding: 62px 0 95px; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 45px; }
.footer-brand p { color: var(--color-muted); max-width: 300px; font-size: .78rem; line-height: 1.9; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid > div > strong { font-size: .82rem; margin-bottom: 4px; }
.footer-grid a,.footer-grid span { color: var(--color-muted); font-size: .75rem; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid var(--color-border); margin-top: 38px; padding-top: 17px; display: flex; justify-content: space-between; color: var(--color-muted); font-size: .7rem; }
.footer-bottom a { color: var(--color-primary); font-weight: 900; }
.mobile-bottom-nav { display: none; }

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .hero h1 { font-size: 3.4rem; }
    .quote-form { grid-template-columns: 1fr 1fr; }
    .quote-submit { grid-column: 2; }
    .condition-grid { grid-template-columns: 1fr 1fr; }
    .phone-card-grid { grid-template-columns: repeat(2,1fr); }
    .why-grid { gap: 35px; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 74px; }
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .container { width: min(calc(100% - 24px),var(--container)); }
    .section { padding: 64px 0; }
    .header-inner { height: 64px; grid-template-columns: auto 1fr auto; gap: 8px; }
    .mobile-head-actions { display: block; }
    .brand { justify-self: center; }
    .brand-mark { width: 37px; height: 37px; border-radius: 12px 12px 12px 6px; }
    .brand-mark::before { width: 20px; height: 20px; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: .92rem; }
    .desktop-cta,.login-btn { display: none; }
    .theme-toggle,.icon-btn { width: 37px; height: 37px; border-radius: 12px; }
    .header-actions { justify-self: end; }

    .hero { min-height: auto; padding: 92px 0 45px; }
    .hero-grid { display: flex; flex-direction: column; min-height: 0; gap: 18px; }
    .hero-content { text-align: center; order: 1; }
    .eyebrow { margin-inline: auto; font-size: .67rem; }
    .hero h1 { font-size: clamp(2.35rem,11vw,3.35rem); margin-top: 15px; line-height: 1.17; }
    .hero h1 span::after { height: 4px; }
    .hero-content > p { font-size: .86rem; line-height: 1.9; margin-inline: auto; max-width: 360px; }
    .hero-actions { display: grid; grid-template-columns: 1.2fr .8fr; gap: 7px; }
    .hero-actions .btn { padding-inline: 10px; font-size: .77rem; min-height: 49px; }
    .hero-proof { justify-content: center; margin-top: 23px; }
    .hero-stage { order: 2; width: 100%; height: 365px; margin-top: -5px; }
    .float-card-price { top: 45px; right: 0; min-width: 132px; padding: 11px 13px; }
    .float-card-price strong { font-size: .95rem; }
    .float-card-check { bottom: 63px; left: 0; font-size: .64rem; padding: 9px 10px; }
    .float-card-slot { right: 4px; bottom: 19px; }
    .hero-orb-one { right: -160px; }

    .quick-strip { margin-top: -22px; }
    .quick-strip-inner { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; padding: 7px; border-radius: 18px; }
    .quick-strip-inner::-webkit-scrollbar { display: none; }
    .quick-strip-inner > div { flex: 0 0 82%; padding: 11px 13px; border-left: 1px solid var(--color-border); }
    .quick-icon { width: 38px; height: 38px; }

    .section-head { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
    .section-head h2 { font-size: 1.6rem; }
    .quote-head { gap: 10px; }
    .market-stamp { font-size: .63rem; }
    .quote-section { padding-top: 72px; }
    .quote-shell { border-radius: 24px; }
    .quote-progress { justify-content: stretch; gap: 6px; padding: 17px 12px 12px; overflow: hidden; }
    .quote-progress span { font-size: .6rem; white-space: nowrap; }
    .quote-progress span b { width: 22px; height: 22px; font-size: .58rem; }
    .quote-progress i { flex: 1; min-width: 10px; }
    .quote-form { grid-template-columns: 1fr; padding: 18px 14px 20px; gap: 10px; }
    .quote-submit { grid-column: auto; width: 100%; }
    .condition-panel { padding: 18px 14px 22px; }
    .condition-grid { grid-template-columns: 1fr; gap: 11px; }
    .condition-title strong { font-size: .9rem; }
    .calculate-btn { width: 100%; }
    .price-result { margin: 16px 14px 20px; padding: 19px 15px; grid-template-columns: 1fr; gap: 16px; }
    .result-main b { font-size: 2.2rem; }
    .result-side { grid-template-columns: 1fr 1fr; }
    .result-note,.result-actions { grid-column: auto; }
    .result-actions { display: grid; grid-template-columns: 1fr 1fr; }

    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 300px; padding: 22px; border-radius: 24px; }
    .service-card h3 { margin-top: 32px; font-size: 1.35rem; }
    .service-card p { font-size: .8rem; }
    .service-link { right: 22px; bottom: 22px; }
    .phone-card-grid { display: flex; overflow-x: auto; gap: 11px; scroll-snap-type: x mandatory; padding-bottom: 7px; margin-left: -12px; scrollbar-width: none; }
    .phone-card-grid::-webkit-scrollbar { display:none; }
    .phone-card { flex: 0 0 77%; scroll-snap-align: start; }
    .device-art { height: 170px; }
    .why-grid { grid-template-columns: 1fr; gap: 24px; }
    .why-copy h2 { font-size: 1.75rem; }
    .center-grid { display: flex; overflow-x: auto; gap: 11px; scroll-snap-type: x mandatory; padding-bottom: 7px; scrollbar-width: none; }
    .center-grid::-webkit-scrollbar { display:none; }
    .center-card { flex: 0 0 84%; scroll-snap-align: start; }
    .final-cta { border-radius: 25px; padding: 25px 20px; flex-direction: column; align-items: stretch; }
    .final-cta h2 { font-size: 1.35rem; line-height: 1.6; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
    .footer-brand { grid-column: 1/-1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 5px; }

    .mobile-bottom-nav { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: max(9px,env(safe-area-inset-bottom)); min-height: 63px; padding: 6px 7px; border-radius: 21px; display: grid; grid-template-columns: repeat(5,1fr); align-items: end; border: 1px solid color-mix(in srgb,var(--color-border) 80%,transparent); background: color-mix(in srgb,var(--color-surface) 91%,transparent); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 18px 45px rgba(8,23,45,.22); transition: transform .3s ease, opacity .25s ease; }
    .mobile-bottom-nav.is-hidden { transform: translateY(125%); opacity: 0; }
    .mobile-bottom-nav a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 50px; color: var(--color-muted); position: relative; font-weight: 700; }
    .mobile-bottom-nav a > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; transition: .22s ease; }
    .mobile-bottom-nav svg { width: 19px; height: 19px; }
    .mobile-bottom-nav small { font-size: .58rem; }
    .mobile-bottom-nav a.is-active { color: var(--color-primary); }
    .mobile-bottom-nav a.is-active:not(.nav-main-action) > span { background: color-mix(in srgb,var(--color-primary) 10%,var(--color-surface)); }
    .mobile-bottom-nav .nav-main-action { transform: translateY(-10px); }
    .mobile-bottom-nav .nav-main-action > span { width: 46px; height: 46px; color: white; border-radius: 16px; background: linear-gradient(145deg,var(--blue-700),var(--blue-900)); box-shadow: 0 11px 25px rgba(18,58,114,.34),0 0 0 5px var(--color-surface); }
    .mobile-bottom-nav .nav-main-action small { margin-top: 1px; }
}

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

/* v3 visual refinement: closer to Hamrah Mechanic's blue/red identity and compact Persian UI rhythm. */
:root {
    --blue-900: #25347f;
    --blue-800: #30439a;
    --blue-700: #3c50ad;
    --blue-600: #566bd0;
    --red-500: #f12637;
    --red-600: #d91e2e;
    --color-bg: #f7f8fb;
    --color-surface-2: #f3f5f9;
    --color-text: #202536;
    --color-muted: #737b8d;
    --color-border: #e4e7ed;
    --hero-start: #ffffff;
    --hero-end: #f4f6fb;
    --shadow-sm: 0 5px 20px rgba(43,55,105,.06);
    --shadow-md: 0 15px 45px rgba(38,51,115,.11);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --color-primary: #91a3ff;
        --color-primary-2: #6f82e7;
        --color-accent: #ff5260;
        --color-bg: #0b1020;
        --color-surface: #11182a;
        --color-surface-2: #171f34;
        --color-text: #f2f4fb;
        --color-muted: #a1a8b7;
        --color-border: #252f47;
        --header-glass: rgba(11,16,32,.88);
        --hero-start: #0b1020;
        --hero-end: #121a30;
    }
}
:root[data-theme="dark"] {
    --color-primary: #91a3ff;
    --color-primary-2: #6f82e7;
    --color-accent: #ff5260;
    --color-bg: #0b1020;
    --color-surface: #11182a;
    --color-surface-2: #171f34;
    --color-text: #f2f4fb;
    --color-muted: #a1a8b7;
    --color-border: #252f47;
    --header-glass: rgba(11,16,32,.88);
    --hero-start: #0b1020;
    --hero-end: #121a30;
}

body { font-size: 15px; }
.site-header { background: color-mix(in srgb,var(--header-glass) 96%,transparent); }
.desktop-nav a { font-size: .79rem; font-weight: 650; }
.brand-text strong { letter-spacing: -.02em; }
.btn { border-radius: 11px; font-size: .81rem; }
.btn-primary { background: var(--blue-800); box-shadow: 0 9px 22px rgba(48,67,154,.19); }
.btn-primary:hover { background: var(--blue-900); box-shadow: 0 12px 26px rgba(48,67,154,.24); }
.brand-mark { background: var(--blue-800); border-radius: 50%; box-shadow: 0 8px 18px rgba(48,67,154,.18); }
.brand-mark::before { border-radius: 50%; width: 22px; height: 22px; border-width: 4px; transform: none; }
.brand-mark span { background: var(--red-500); width: 9px; height: 9px; top: 9px; right: 7px; box-shadow: 0 0 0 3px var(--blue-800); }

.hero { min-height: 690px; padding-top: 108px; background: radial-gradient(circle at 78% 28%, color-mix(in srgb,var(--color-primary) 8%,transparent), transparent 36%), linear-gradient(180deg,var(--hero-start),var(--hero-end)); }
.hero-grid { min-height: 525px; }
.hero-content { max-width: 540px; }
.eyebrow { font-size: .69rem; padding: 6px 10px; background: var(--color-surface); border-radius: 9px; }
.hero h1 { font-size: clamp(2.8rem,4.6vw,4.35rem); line-height: 1.2; letter-spacing: -.045em; margin-top: 16px; }
.hero h1 span::after { height: 4px; width: 29%; bottom: -7px; }
.hero-content > p { font-size: .94rem; line-height: 1.95; max-width: 480px; }
.hero-proof { margin-top: 27px; }
.hero-proof strong { font-size: .8rem; }
.hero-proof small { font-size: .65rem; }
.hero-stage { height: 515px; overflow: visible; }
#heroCanvas { z-index: 2; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-stage.is-dragging #heroCanvas { cursor: grabbing; }
.hero-stage-fallback { z-index: 1; }
.hero-stage.three-ready .hero-stage-fallback { opacity: 0; visibility: hidden; }
.hero-stage.three-failed .hero-stage-fallback { opacity: 1; visibility: visible; }
.fallback-phone { width: 224px; height: 438px; border-radius: 45px; transform: rotate(-7deg); background: linear-gradient(165deg,#d9dde4,#aab2c0); border: 5px solid #8e98aa; position: relative; }
:root[data-theme="dark"] .fallback-phone { background: linear-gradient(165deg,#2e3e5d,#182640); border-color:#60708d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .fallback-phone { background: linear-gradient(165deg,#2e3e5d,#182640); border-color:#60708d; } }
.fallback-phone::before { content:''; position:absolute; right:14px; top:17px; width:194px; height:112px; border-radius:27px; background:rgba(70,84,108,.26); }
.fallback-phone::after { content:''; position:absolute; left:25px; top:30px; width:45px; height:45px; border-radius:50%; background:#0a0e17; box-shadow: 0 52px 0 #0a0e17, 52px 26px 0 #0a0e17; }
.float-card { border-radius: 13px; box-shadow: 0 12px 35px rgba(34,46,95,.12); }

.quick-strip { margin-top: -24px; }
.quick-strip-inner { grid-template-columns: repeat(4,1fr); padding: 0; overflow: hidden; border-radius: 15px; box-shadow: 0 10px 34px rgba(36,47,101,.10); }
.quick-item { min-width: 0; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; padding: 15px 16px; border-left: 1px solid var(--color-border); transition: background .18s ease, transform .18s ease; }
.quick-item:last-child { border-left: 0; }
.quick-item:hover { background: var(--color-surface-2); }
.quick-item b { color: #a6adba; font-size: 1.2rem; font-weight: 400; }
.quick-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid #e4e7ef; color: var(--blue-800); box-shadow: 0 4px 14px rgba(45,60,130,.07); position: relative; }
.quick-icon::after { content:''; position:absolute; width:7px; height:7px; border-radius:50%; background:var(--red-500); top:5px; left:5px; border:2px solid var(--color-surface); }
.quick-icon svg { width: 21px; height: 21px; stroke-width: 1.7; }
.quick-strip p { line-height: 1.4; }
.quick-strip strong { font-size: .78rem; font-weight: 800; }
.quick-strip small { font-size: .64rem; }

.section-head h2 { font-size: clamp(1.55rem,2.7vw,2.15rem); letter-spacing: -.035em; }
.kicker { color: var(--blue-800); font-size: .7rem; }
.quote-shell { border-radius: 22px; }
.quote-shell::before { height: 3px; background: var(--red-500); }

@media (max-width: 980px) {
    .quick-strip-inner { grid-template-columns: repeat(2,1fr); }
    .quick-item:nth-child(2) { border-left: 0; }
    .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 24px),var(--container)); }
    .hero { padding: 82px 0 28px; }
    .hero-grid { width: 100%; gap: 8px; }
    .hero-content { width: min(calc(100% - 24px),var(--container)); margin-inline: auto; }
    .eyebrow { font-size: .64rem; }
    .hero h1 { font-size: clamp(2.15rem,10vw,2.95rem); line-height: 1.23; margin-bottom: 11px; }
    .hero-content > p { font-size: .80rem; line-height: 1.85; max-width: 340px; }
    .hero-actions { margin-top: 20px; }
    .hero-proof { margin-top: 20px; }
    .hero-stage { width: 100vw; max-width: none; height: 355px; margin-inline: calc(50% - 50vw); margin-top: -2px; overflow: hidden; }
    #heroCanvas { inset: 0; width: 100vw; height: 100%; touch-action: none; }
    .float-card-price { right: 12px; top: 38px; }
    .float-card-check { left: 12px; bottom: 61px; }
    .float-card-slot { right: 12px; bottom: 16px; }
    .quick-strip { margin-top: -7px; padding: 0 12px; }
    .quick-strip .container { width: 100%; }
    .quick-strip-inner { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 6px; background: transparent; border: 0; box-shadow: none; border-radius: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .quick-strip-inner::-webkit-scrollbar { display:none; }
    .quick-item { flex: 0 0 69%; grid-template-columns: 42px 1fr auto; padding: 13px 14px; background: var(--color-surface); border: 1px solid var(--color-border) !important; border-radius: 14px; box-shadow: 0 6px 20px rgba(35,48,105,.07); scroll-snap-align: start; }
    .quick-icon { width: 42px; height: 42px; }
    .quick-strip strong { font-size: .76rem; }
    .quick-strip small { font-size: .62rem; }
    .section-head h2 { font-size: 1.48rem; }
}
