/* =========================================================
   Aslanian Plastic — 2026
   Concept: "molten industrial" — graphite/navy steel surfaces,
   the blue→violet molten gradient of the logo as the accent.
   ========================================================= */

:root {
  --ink: #070b18;
  --ink-1: #0b1020;
  --ink-2: #10172d;
  --ink-3: #18213d;
  --line-d: rgba(148, 163, 255, .12);
  --line-d2: rgba(148, 163, 255, .2);
  --txt-d: #e7eaf6;
  --muted-d: #9aa3c4;

  --paper: #f5f6fb;
  --paper-2: #eceef7;
  --card: #ffffff;
  --txt: #0e1428;
  --muted: #5a6382;
  --line: #e1e4f0;

  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --navy: #1e3a8a;
  --violet: #8b5cf6;
  --lavender: #a78bfa;
  --purple: #6b21a8;
  --pink: #c084fc;

  --molten: linear-gradient(120deg, #3b82f6 0%, #6d6af8 45%, #a78bfa 75%, #c084fc 100%);
  --molten-soft: linear-gradient(120deg, rgba(59, 130, 246, .16), rgba(167, 139, 250, .16));

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(14, 20, 40, .06), 0 4px 14px rgba(14, 20, 40, .06);
  --sh-2: 0 10px 30px -10px rgba(14, 20, 40, .25), 0 2px 6px rgba(14, 20, 40, .06);
  --sh-glow: 0 10px 40px -8px rgba(99, 102, 241, .55);

  --wrap: 1240px;
  --hdr-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.85; color: var(--txt);
  background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .3); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--card); padding: 8px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }
.grad-text { background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.5em; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .98rem;
  line-height: 1.2; background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 18px; height: 18px; }
.btn--glow { color: #fff; background: var(--molten); background-size: 160% 100%; box-shadow: var(--sh-glow); overflow: hidden; }
.btn--glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn--glow:hover { box-shadow: 0 14px 50px -8px rgba(124, 92, 246, .75); background-position: 100% 0; }
.btn--glow:hover::after { transform: translateX(-120%); }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.btn--line { color: var(--txt); background: transparent; border-color: var(--line); }
.btn--line:hover { border-color: var(--violet); color: var(--violet); }
.btn--dark { color: #fff; background: var(--ink-2); }
.btn--sm { padding: .62em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-d);
  background: rgba(255, 255, 255, .04); color: var(--txt-d); transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-d2); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--violet); }
.link-arrow .i { transition: transform .25s var(--ease); width: 18px; height: 18px; }
.link-arrow:hover .i { transform: translateX(-4px); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h); color: var(--txt-d);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s, height .35s;
}
.hdr.is-scrolled {
  background: rgba(9, 13, 28, .78); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line-d), 0 10px 30px -12px rgba(0, 0, 0, .5); --hdr-h: 66px;
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { border-radius: 12px; background: #fff; padding: 3px; box-shadow: 0 6px 20px -6px rgba(99, 102, 241, .6); }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt b { font-size: 1.08rem; font-weight: 800; }
.brand__txt small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-weight: 500; direction: ltr; text-align: end; }
.brand--lg img { width: 56px; height: 56px; }

.nav { margin-inline: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__a {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  color: rgba(231, 234, 246, .82); transition: color .2s, background .2s;
}
.nav__a:hover, .nav__a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__a.is-active { box-shadow: inset 0 -2px 0 var(--lavender); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 280px; padding: 10px; border-radius: var(--r);
  background: rgba(14, 19, 38, .96); border: 1px solid var(--line-d2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  backdrop-filter: blur(16px); display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .94rem; color: var(--txt-d); }
.sub a .i { color: var(--lavender); }
.sub a:hover { background: rgba(139, 92, 246, .14); }
.sub__all { border-top: 1px solid var(--line-d); margin-top: 6px; padding-top: 12px !important; color: var(--lavender) !important; font-weight: 700; justify-content: space-between; }
.nav__mobile-extra { display: none; }

.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 0 6px; color: var(--txt-d); }
.hdr__phone .i { color: var(--lavender); }
.burger { display: none; }

@media (max-width: 1180px) { .hdr__phone { display: none; } }
@media (max-width: 1020px) {
  .burger { display: inline-grid; }
  .hdr__cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--hdr-h) + 20px) 20px 28px; overflow-y: auto;
    background: radial-gradient(120% 60% at 100% 0%, rgba(139, 92, 246, .25), transparent 60%), var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
    display: flex; flex-direction: column; gap: 24px;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__a { font-size: 1.15rem; padding: 14px 16px; width: 100%; justify-content: space-between; border-radius: 14px; }
  .nav__a.is-active { box-shadow: inset -3px 0 0 var(--lavender); }
  .sub { position: static; opacity: 1; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 12px 6px; min-width: 0; backdrop-filter: none; }
  /* inherit, never "visible": a visible child shows through the closed (hidden) menu, and its invisible links
     sat over the bottom dock and caught taps. Same specificity as the desktop :hover/:focus-within rule, later wins. */
  .has-sub .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { visibility: inherit; }
  .sub a { font-size: .98rem; color: var(--muted-d); }
  .has-sub .nav__a .i { display: none; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: auto; }
  .nav__phone { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; color: var(--txt-d); font-size: 1.1rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .brand__txt small { display: none; } .hdr__in { gap: 12px; } }

/* ---------- dark surfaces & decor ---------- */
.dark { background: var(--ink-1); color: var(--txt-d); }
.dark .muted, .dark p.lead { color: var(--muted-d); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); opacity: .6;
}
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.aurora--1 { width: 520px; height: 520px; background: #3b82f6; top: -160px; inset-inline-end: -120px; animation: float 16s ease-in-out infinite; }
.aurora--2 { width: 460px; height: 460px; background: #8b5cf6; bottom: -200px; inset-inline-start: -100px; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--txt-d); background: var(--ink);
  min-height: min(100svh, 900px); display: flex; align-items: center; padding: calc(var(--hdr-h) + 40px) 0 120px;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.05); transform: scale(1.04); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(7, 11, 24, .96) 0%, rgba(7, 11, 24, .88) 38%, rgba(16, 23, 60, .55) 70%, rgba(40, 20, 90, .45) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 35%);
}
.hero .grid-bg { z-index: -1; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(167, 139, 250, .3); color: #ddd6fe; margin-bottom: 22px;
}
.eyebrow b { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--molten); color: #fff; font-size: .78rem; }
.hero__title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.1rem); line-height: 1.28; font-weight: 900; margin-bottom: 22px; }
.hero__title .grad-text { display: inline-block; padding-bottom: .08em; }
.hero__lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: #b8c0e0; max-width: 40em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; font-size: .92rem; color: var(--muted-d); }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .i { color: #86efac; width: 18px; height: 18px; }
.hero__art { position: relative; aspect-ratio: 400/440; max-width: 460px; justify-self: center; width: 100%; }
.hero__scroll {
  position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(50%); width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px;
}
.hero__scroll::after { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; background: #fff; border-radius: 4px; animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 90px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; order: -1; margin-bottom: -10px; }
  .hero__scroll { display: none; }
}

/* hero machine illustration */
.art { width: 100%; height: 100%; overflow: visible; }
.art .stroke { fill: none; stroke: #c7d2fe; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art .glow { filter: drop-shadow(0 0 12px rgba(139, 92, 246, .75)); }
.art__drop { animation: drip 2.6s cubic-bezier(.55, 0, .75, .4) infinite; transform-box: fill-box; transform-origin: center top; }
@keyframes drip {
  0% { transform: translateY(-6px) scale(.2, .2); opacity: 0; }
  18% { transform: translateY(0) scale(.85, 1.1); opacity: 1; }
  32% { transform: translateY(2px) scale(1, 1); }
  78% { transform: translateY(66px) scale(.9, 1.15); opacity: 1; }
  86%, 100% { transform: translateY(74px) scale(1.4, .3); opacity: 0; }
}
.art__fill { animation: fill 7.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes fill { 0% { transform: scaleY(0); } 70% { transform: scaleY(1); } 88% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.art__ring { animation: spin 40s linear infinite; transform-origin: 200px 230px; }
.art__ring--rev { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.art__spark { animation: spark 4s ease-in-out infinite; }
.art__spark:nth-of-type(2) { animation-delay: 1.3s; }
.art__spark:nth-of-type(3) { animation-delay: 2.6s; }
@keyframes spark { 0%, 100% { opacity: 0; transform: translateY(8px); } 50% { opacity: 1; transform: translateY(-8px); } }
.art__heat { animation: heat 2.6s ease-in-out infinite; }
@keyframes heat { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(16, 23, 45, .82); border: 1px solid var(--line-d2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(7, 11, 24, .8);
}
.stat { padding: 28px 26px; color: var(--txt-d); position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line-d2); }
.stat__num { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 900; line-height: 1.1; display: flex; align-items: baseline; gap: 4px; }
.stat__num small { font-size: .5em; font-weight: 700; color: var(--lavender); }
.stat__label { color: var(--muted-d); font-size: .93rem; margin-top: 6px; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-d); }
}

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 5vw + 32px, 112px) 0; position: relative; }
.sec--tight { padding-top: 40px; }
.sec--alt { background: var(--paper-2); }
.sec--dark { background: var(--ink-1); color: var(--txt-d); overflow: hidden; isolation: isolate; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec__head--center { flex-direction: column; align-items: center; text-align: center; }
.sec__head--center .lead { margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 800; letter-spacing: .02em;
  color: var(--violet); margin-bottom: 10px;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--molten); }
.sec--dark .kicker { color: var(--lavender); }
.sec__title { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem); font-weight: 900; margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46em; margin: 12px 0 0; }
.sec--dark .lead { color: var(--muted-d); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); isolation: isolate;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--molten); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(30, 40, 90, .35); }
.card:hover::after { opacity: 1; }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(11, 16, 32, .72); color: #fff; backdrop-filter: blur(8px);
}
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.12rem; font-weight: 800; margin: 0 0 8px; line-height: 1.6; }
.card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__text { color: var(--muted); font-size: .95rem; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .85rem; }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta .i { width: 16px; height: 16px; }
.card__more { margin-top: auto; }

/* service card (dark, icon-led) */
.svc {
  position: relative; padding: 30px 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-d); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, background .35s; isolation: isolate;
  display: flex; flex-direction: column; min-height: 100%;
}
.svc::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 70%);
  top: -130px; inset-inline-end: -110px; z-index: -1; opacity: .5; transition: opacity .35s, transform .5s var(--ease);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .45); background: linear-gradient(180deg, rgba(139, 92, 246, .1), rgba(59, 130, 246, .03)); }
.svc:hover::before { opacity: 1; transform: scale(1.2); }
.svc__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: var(--molten); box-shadow: var(--sh-glow);
}
.svc__icon .i { width: 28px; height: 28px; }
.svc__num { position: absolute; top: 22px; inset-inline-end: 26px; font-size: 3rem; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .05); }
.svc h3 { font-size: 1.2rem; margin-bottom: 10px; }
.svc h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc p { color: var(--muted-d); font-size: .95rem; margin-bottom: 20px; }
.svc .link-arrow { margin-top: auto; color: var(--lavender); }

/* product card (machine) */
.prod { background: var(--ink-2); color: var(--txt-d); box-shadow: none; border: 1px solid var(--line-d); }
.prod .card__media { background: #fff; aspect-ratio: 4/3; }
.card--post .card__media { aspect-ratio: 1/1; }
.prod .card__media img { object-fit: contain; padding: 18px; }
.prod .card__text { color: var(--muted-d); }
.prod__model { display: inline-block; direction: ltr; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; letter-spacing: .06em; color: var(--lavender); margin-bottom: 6px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; inset-inline: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .6), rgba(59, 130, 246, .6), transparent);
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__dot {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--card); box-shadow: 0 0 0 8px var(--paper), var(--sh-2); color: var(--violet);
}
.step__dot::after {
  counter-increment: step; content: counter(step, persian); position: absolute; top: -4px; inset-inline-end: -4px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--molten); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}
.step__dot .i { width: 28px; height: 28px; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 33px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(139, 92, 246, .6), rgba(59, 130, 246, .3)); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 18px; text-align: start; padding: 0 0 26px; }
  .step__dot { margin: 0; grid-row: span 2; }
  .step h3 { margin-top: 8px; }
}

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1/1; position: relative; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.collage img:first-child { grid-row: span 2; }

/* portfolio tiles (home, /portfolio, search, tags) */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-lg); background: var(--ink-2); box-shadow: var(--sh-1); isolation: isolate; }
.work__zoom { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.work__zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__zoom img, .work:focus-within .work__zoom img { transform: scale(1.06); }
.work__icon { position: absolute; top: 12px; inset-inline-start: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(7, 11, 24, .55); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.work:hover .work__icon, .work__zoom:focus-visible .work__icon { opacity: 1; transform: none; }
.work__cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(7, 11, 24, .85)); color: #fff; pointer-events: none; }
.work__cap h3 { margin: 0; font-size: .98rem; line-height: 1.5; font-weight: 700; }
.work__cap a { color: inherit; pointer-events: auto; }
.work__cap a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work__cat { display: block; font-size: .76rem; opacity: .78; margin-bottom: 2px; }
@media (max-width: 1080px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .works { grid-template-columns: repeat(2, 1fr); gap: 10px; } .work__cap { padding: 30px 10px 10px; } .work__cap h3 { font-size: .86rem; } .work__icon { opacity: 1; transform: none; width: 32px; height: 32px; } }
.collage__badge {
  position: absolute; bottom: -22px; inset-inline-end: 24px; background: var(--ink-1); color: #fff; padding: 18px 22px; border-radius: var(--r);
  box-shadow: var(--sh-glow); display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-d2);
}
.collage__badge b { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.collage__badge span { font-size: .88rem; color: var(--muted-d); line-height: 1.5; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--molten-soft); color: var(--violet); margin-top: 2px; }

/* ---------- partner band ---------- */
.partner-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 34px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--sh-1); border: 1px solid var(--line);
}
.partner-band img { height: 58px; width: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); border: 1px solid var(--line); transition: border-color .25s; }
.faq details[open] { border-color: rgba(139, 92, 246, .45); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .3s var(--ease); color: var(--violet); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }

/* ---------- page hero ---------- */
.phero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--txt-d);
  padding: calc(var(--hdr-h) + 56px) 0 64px;
}
.phero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-d2), transparent); }
.phero .aurora--1 { width: 420px; height: 420px; top: -220px; opacity: .45; }
.phero .aurora--2 { width: 360px; height: 360px; bottom: -260px; opacity: .35; }
.phero__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem); font-weight: 900; margin: 14px 0 12px; max-width: 26em; }
.phero__lead { color: var(--muted-d); font-size: 1.08rem; max-width: 46em; margin: 0; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted-d); font-size: .92rem; }
.phero__meta span, .phero__meta a { display: inline-flex; align-items: center; gap: 7px; }
.phero__meta .i { width: 17px; height: 17px; color: var(--lavender); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted-d); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-inline-start: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-inline-end: 4px; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #c7d2fe; }

/* ---------- chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: all .2s;
}
.chip:hover { color: var(--violet); border-color: rgba(139, 92, 246, .5); }
.chip.is-active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.chip--sm { padding: 4px 12px; font-size: .84rem; }

/* ---------- blog list ---------- */
.feature-post { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); margin-bottom: 36px; position: relative; }
.feature-post__media { min-height: 340px; position: relative; }
.feature-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-post__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature-post__body h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); }
.feature-post__body h2 a::before { content: ""; position: absolute; inset: 0; }
@media (max-width: 860px) { .feature-post { grid-template-columns: 1fr; } .feature-post__media { min-height: 0; aspect-ratio: 16/9; } }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.pager a:hover { border-color: var(--violet); color: var(--violet); }
.pager [aria-current] { background: var(--molten); color: #fff; border-color: transparent; }

/* ---------- article ---------- */
.reading-bar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-bar span { display: block; height: 100%; width: 100%; background: var(--molten); transform-origin: right; transform: scaleX(var(--p, 0)); }

.article-cover { margin-top: -40px; position: relative; z-index: 2; }
.article-cover img { width: 100%; border-radius: var(--r-xl); box-shadow: 0 40px 80px -40px rgba(7, 11, 24, .6); max-height: 560px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article-layout--wide { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1080px) { .article-layout, .article-layout--wide { grid-template-columns: 1fr; } }
.aside { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 1080px) { .aside { position: static; } }
.box { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.box__title { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.box__title .i { color: var(--violet); }
.box--cta { background: var(--ink-1); color: var(--txt-d); border: 0; position: relative; overflow: hidden; isolation: isolate; }
.box--cta::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 70%); top: -120px; inset-inline-start: -80px; z-index: -1; }
.box--cta p { color: var(--muted-d); font-size: .94rem; }
.box--cta .btn { width: 100%; margin-top: 8px; }

.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; font-size: .9rem; color: var(--muted); border-inline-start: 2px solid transparent; line-height: 1.6; }
.toc a:hover { background: var(--paper); color: var(--txt); }
.toc a.is-active { color: var(--violet); border-inline-start-color: var(--violet); background: rgba(139, 92, 246, .06); font-weight: 700; }
.toc .lvl-3 a { padding-inline-start: 26px; font-size: .86rem; }
.toc-inline { display: none; margin-bottom: 28px; }
@media (max-width: 1080px) { .toc-inline { display: block; } .aside .box--toc { display: none; } }
.toc-inline summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.toc-inline .toc { margin-top: 12px; max-height: none; }

.prose { font-size: 1.07rem; line-height: 2.1; color: #1c2340; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--txt); margin: 2em 0 .7em; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.prose h2 { font-size: 1.55rem; padding-bottom: .35em; position: relative; }
.prose h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--molten); }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.08rem; }
.prose p { margin: 0 0 1.25em; }
.prose a { color: var(--violet); text-decoration: underline; text-decoration-color: rgba(139, 92, 246, .35); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--txt); font-weight: 800; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--violet); }
.prose ol li::marker { color: var(--violet); font-weight: 800; }
.prose img { border-radius: var(--r); margin: 1.6em auto; box-shadow: var(--sh-2); }
.prose blockquote { margin: 1.8em 0; padding: 18px 24px; border-inline-start: 4px solid var(--violet); background: var(--molten-soft); border-radius: 0 var(--r) var(--r) 0; font-weight: 500; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--r); border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { background: var(--paper-2); font-weight: 800; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-left { text-align: left; }
.prose .ql-align-justify { text-align: justify; }
.prose code { background: var(--paper-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags > .i { color: var(--violet); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share span { font-weight: 700; margin-inline-end: 4px; }
.share a, .share button {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: all .2s;
}
.share a:hover, .share button:hover { color: #fff; background: var(--violet); border-color: var(--violet); }
.share .i { width: 18px; height: 18px; }

/* ---------- product detail ---------- */
.gallery { display: grid; gap: 12px; }
.gallery__main { border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--sh-2); border: 1px solid var(--line); aspect-ratio: 4/3; display: grid; place-items: center; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.gallery__main--photo { position: relative; background: var(--ink-2); border: 0; }
.gallery__main--photo img { object-fit: cover; padding: 0; transition: transform .8s var(--ease); }
.gallery__main--photo:hover img { transform: scale(1.03); }
.gallery__zoom { position: absolute; bottom: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(7, 11, 24, .6); color: #fff; font-size: .82rem; backdrop-filter: blur(6px); pointer-events: none; }
.gallery__main:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.gallery__thumbs button.is-active { border-color: var(--violet); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.specs th { color: var(--muted); font-weight: 600; width: 45%; }
.specs td { font-weight: 700; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.detail-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .detail-head { grid-template-columns: 1fr; } }
.detail-head__info h2 { font-size: 1.15rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

.lightbox { padding: 0; margin: 0; inset: 0; border: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 8, 18, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 64px 72px 8px; touch-action: pan-y; }
.lightbox__stage img { width: auto; height: auto; max-width: calc(100vw - 160px); max-height: calc(100dvh - 150px); border-radius: var(--r); object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transition: opacity .25s var(--ease); }
.lightbox__stage img.is-loading { opacity: .3; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 20px 22px; text-align: center; font-size: .92rem; line-height: 1.6; }
.lightbox__cap { max-width: 760px; }
.lightbox__cap a { color: var(--lavender); margin-inline-start: 8px; white-space: nowrap; }
.lightbox__count { opacity: .65; font-size: .82rem; direction: ltr; white-space: nowrap; }
.lightbox .icon-btn { position: fixed; color: #fff; background: rgba(255, 255, 255, .08); z-index: 2; }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__prev { inset-inline-start: 16px; }
.lightbox__next { inset-inline-end: 16px; }
.lightbox__prev .i { transform: scaleX(-1); }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) { .lightbox__stage { padding: 60px 8px 4px; } .lightbox__stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 190px); } .lightbox__bar { padding-inline: 72px; } .lightbox__nav { top: auto; bottom: 14px; transform: none; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field label small { color: var(--muted); font-weight: 500; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .2s, box-shadow .2s; font-size: 1rem; line-height: 1.6;
}
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
textarea.input { min-height: 150px; resize: vertical; }
.field-error { color: #dc2626; font-size: .86rem; }
.hp { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: var(--r); display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert .i { flex: none; margin-top: 3px; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 48px; }
.ccard { padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.ccard:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .45); }
.ccard__icon { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--molten); color: #fff; box-shadow: var(--sh-glow); }
.ccard h3 { font-size: 1rem; margin-bottom: 4px; }
.ccard p, .ccard a { color: var(--muted); font-size: .95rem; margin: 0; display: block; }
.ccard a:hover { color: var(--violet); }
.map { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 16/10; background: var(--paper-2); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; }
.nav-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- search ---------- */
.search-dlg { width: min(720px, 94vw); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--ink-2); color: var(--txt-d); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); border: 1px solid var(--line-d2); }
.search-dlg::backdrop { background: rgba(5, 8, 18, .7); backdrop-filter: blur(8px); }
.search-dlg__form { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-d); }
.search-dlg__form > .i { color: var(--lavender); width: 24px; height: 24px; }
.search-dlg input { flex: 1; background: transparent; border: 0; font-size: 1.15rem; padding: 10px 0; color: #fff; }
.search-dlg input:focus { outline: none; }
.search-dlg__hint { padding: 14px 22px 18px; margin: 0; font-size: .9rem; color: var(--muted-d); }
.search-dlg__hint a { color: var(--lavender); }
.search-big { display: flex; gap: 10px; max-width: 640px; margin-top: 24px; }
.search-big .input { background: rgba(255, 255, 255, .06); border-color: var(--line-d2); color: #fff; }
.result-group + .result-group { margin-top: 56px; }

/* ---------- empty / error ---------- */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.err-code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 900; line-height: 1; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px);
  background: var(--ink-1); color: var(--txt-d); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(59, 130, 246, .45), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(167, 139, 250, .45), transparent 60%); }
.cta-band h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); }
.cta-band p { color: var(--muted-d); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--ink); color: var(--muted-d); padding-top: 40px; overflow: hidden; isolation: isolate; margin-top: 40px; }
.ftr__glow { position: absolute; width: 900px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, .25), transparent); top: -200px; inset-inline-start: 50%; transform: translateX(50%); z-index: -1; }
.ftr__cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(59, 130, 246, .18), rgba(167, 139, 250, .18)); border: 1px solid var(--line-d2); margin-bottom: 64px;
}
.ftr__cta-title { color: #fff; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); margin-bottom: 6px; }
.ftr__cta p { margin: 0; }
.ftr__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 1020px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr__grid { grid-template-columns: 1fr; } .ftr__cta { padding: 28px 24px; } }
.ftr .brand { color: #fff; margin-bottom: 18px; }
.ftr__about p { font-size: .94rem; }
.ftr__h { color: #fff; font-size: 1.02rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.ftr__h::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 2px; background: var(--molten); border-radius: 2px; }
.ftr__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.ftr__links a { transition: color .2s, padding .2s; display: inline-block; line-height: 1.7; }
.ftr__links a:hover { color: #fff; padding-inline-start: 4px; }
.ftr__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .94rem; }
.ftr__contact li { display: flex; gap: 12px; align-items: flex-start; }
.ftr__contact .i { color: var(--lavender); margin-top: 4px; }
.ftr__contact a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); transition: all .25s; }
.social a:hover { background: var(--molten); color: #fff; border-color: transparent; transform: translateY(-3px); }
.ftr__bottom { border-top: 1px solid var(--line-d); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; font-size: .88rem; }
.ftr__bottom p { margin: 0; }
.ftr__bottom a:hover { color: #fff; }
.partner { display: inline-flex; align-items: center; gap: 12px; }
.partner img { height: 34px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .8; transition: filter .3s, opacity .3s; background: #fff; border-radius: 8px; padding: 3px 6px; }
.partner:hover img { filter: none; opacity: 1; }
.credit { opacity: .7; }

/* ---------- mobile dock / to top ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; inset: auto 12px 12px; z-index: 40; display: flex; gap: 6px; padding: 6px; border-radius: 20px;
    /* Opaque, no backdrop-filter: Android Chrome drew the blurred backdrop as a square block across the buttons. */
    background: #0b1020; border: 1px solid var(--line-d2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
    overflow: hidden; isolation: isolate;
    padding-bottom: calc(6px + env(safe-area-inset-bottom) / 2);
  }
  /* No grey/blue tap rectangle (it lingered after returning from the dialer); :active gives the feedback instead. */
  .dock a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; color: var(--txt-d); font-size: .78rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .dock a:not(.dock__main):active { background: rgba(255, 255, 255, .08); }
  .dock a:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
  .dock .i { width: 22px; height: 22px; }
  .dock__main { background: var(--molten); color: #fff !important; flex: 1.4 !important; }
  .ftr { padding-bottom: 84px; }
  .to-top { bottom: 92px !important; }
}
.to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 39; width: 46px; height: 46px; border-radius: 14px; border: 0;
  display: grid; place-items: center; background: var(--molten); color: #fff; box-shadow: var(--sh-glow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .hdr, .ftr, .dock, .to-top, .aside, .share, .reading-bar { display: none !important; }
  .phero { padding: 0; background: none; color: #000; }
  body { background: #fff; }
}
