/* =========================================================
   ManisTech — Luminous Minimal (v2)
   Light premium, bento grid, RTL-first (logical properties)
   ========================================================= */

:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --ink: #0B1220;
  --ink-2: #1D2939;
  --muted: #475467;
  --muted-2: #5D6B82;
  --line: #E4E7F0;
  --line-2: #EEF0F6;
  --indigo: #4F46E5;
  --indigo-7: #4338CA;
  --sky: #0EA5E9;
  --sky-7: #0369A1;
  --coral: #FF6B57;
  --amber: #F5A524;
  --green: #12B76A;
  --tint: #EEF0FF;
  --tint-2: #EAF6FE;

  --grad: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
  --grad-text: linear-gradient(110deg, #4F46E5 0%, #3B5BDB 45%, #0284C7 100%);
  --grad-btn: linear-gradient(135deg, #4F46E5 0%, #3A4FD8 50%, #1D5FB8 100%);

  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;

  --sh-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --sh-md: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 12px -4px rgba(24, 33, 77, .07), 0 16px 32px -12px rgba(24, 33, 77, .10);
  --sh-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 14px 28px -10px rgba(30, 41, 99, .14), 0 36px 72px -24px rgba(30, 41, 99, .20);
  --sh-xl: 0 2px 6px rgba(16, 24, 40, .05), 0 24px 48px -16px rgba(30, 41, 99, .20), 0 60px 110px -40px rgba(49, 46, 129, .32);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 84px;
  --font: Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.45; color: var(--ink); text-wrap: balance; }
/* Avoid one-word last lines in leads and card copy */
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); }
::selection { background: rgba(79, 70, 229, .18); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
@media (min-width: 1600px) { :root { --container: 1260px; } }

.ic { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 10px; }
.contact-card :focus-visible { outline-color: #A5B4FC; }
.contact-card .composer :focus-visible { outline-color: var(--indigo); }

.skip-link {
  position: absolute; z-index: 100; inset-inline-start: 16px; top: -120px;
  padding: 10px 18px; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none; box-shadow: var(--sh-lg);
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Type helpers ---------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  color: var(--indigo-7);
  font-size: .875rem; font-weight: 700; line-height: 1.6;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.eyebrow-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #C7D2FE; box-shadow: none; }

.sec-title { font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.85rem); line-height: 1.4; margin-top: 16px; letter-spacing: 0; }
.sec-lead { color: var(--muted); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 2; max-width: 34rem; text-wrap: balance; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px);
}
.sec-head > div { flex: 1 1 30rem; max-width: 46rem; }
.sec-head > .sec-lead { flex: 0 1 26rem; }
@media (min-width: 768px) { .nw { white-space: nowrap; } }
.sec-head-center { flex-direction: column; align-items: center; text-align: center; }
.sec-head-center .sec-lead { margin-top: 4px; flex: none; }

.section { padding-block: clamp(56px, 6.5vw, 96px); scroll-margin-top: calc(var(--header-h) - 8px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 10px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.4; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --btn-h: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn-lg { --btn-h: 56px; padding: 12px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff; background: var(--grad-btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 24, 40, .1), 0 10px 24px -8px rgba(79, 70, 229, .6);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 24, 40, .1), 0 16px 32px -10px rgba(79, 70, 229, .7); }
.btn-primary .ic { transition: transform .25s var(--ease); }
.btn-primary:hover .ic { transform: translateX(-3px); }

.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: #CDD3E3; box-shadow: var(--sh-md); }
.btn-ghost .ic-wa { color: #0E9F6E; }

.btn-light { color: var(--ink); background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-block: 12px;
  transition: padding .3s var(--ease);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px;
  padding-inline: 12px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(228, 231, 240, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: box-shadow .3s var(--ease), background-color .3s;
}
.site-header.is-scrolled .header-inner { background: rgba(255, 255, 255, .88); box-shadow: var(--sh-md); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 10px rgba(79, 70, 229, .28)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-fa { font-weight: 900; font-size: 1.2rem; }
.brand-en { font-size: .72rem; font-weight: 600; color: var(--muted-2); letter-spacing: .06em; text-align: end; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  position: relative; display: block;
  padding: 8px 14px; border-radius: 12px;
  font-weight: 600; font-size: .96rem; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-list a:hover { background: rgba(79, 70, 229, .07); color: var(--indigo-7); }
.nav-list a[aria-current="true"] { color: var(--indigo-7); }
.nav-list a[aria-current="true"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: var(--sh-sm);
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 1023.98px) {
  /* Only the desktop CTA lives in .header-actions; hide the empty wrapper so the toggle (placed before
     the nav in the DOM for focus order) stays at the inline end via space-between. */
  .header-cta, .header-actions { display: none; }
  .js .menu-btn { display: grid; }
  .js .site-nav {
    position: absolute; top: calc(100% + 10px); inset-inline: 0;
    padding: 12px;
    border-radius: 22px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-xl);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav-list a { padding: 12px 16px; font-size: 1.05rem; }
  .js .nav-list a[aria-current="true"]::after { inset-inline: auto 0; inset-inline-start: 6px; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .js .nav-extra { display: grid; gap: 10px; padding: 12px 4px 4px; margin-top: 8px; border-top: 1px solid var(--line-2); }
  .nav-phone {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px; font-weight: 700; color: var(--ink-2); text-decoration: none;
  }
  /* No-JS fallback: a simple scrollable link row under the brand */
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .nav-list { flex-wrap: wrap; gap: 0; }
  html:not(.js) .nav-list a { padding: 6px 10px; font-size: .92rem; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 104px); isolation: isolate; }
.hero-bg {
  position: absolute; inset: calc(-1 * var(--header-h) - 12px) 0 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 20%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 46% at 22% 30%, rgba(99, 102, 241, .20), transparent 70%),
    radial-gradient(36% 40% at 8% 70%, rgba(14, 165, 233, .16), transparent 70%),
    radial-gradient(30% 30% at 88% 10%, rgba(255, 107, 87, .09), transparent 70%);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-copy { max-width: 38rem; }
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 1.05rem + 3.3vw, 3.65rem);
  line-height: 1.38; font-weight: 900;
}
.hero-lead {
  margin-top: 22px; color: var(--muted);
  font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.hero-points .ic {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  color: #fff; background: var(--grad);
}

/* --- Hero visual (illustrative mockup, all em-based so it scales) --- */
.hero-visual { container-type: inline-size; position: relative; }
@media (min-width: 1360px) { .hero-visual { margin-inline-end: -44px; } }
.hv-stage { position: relative; aspect-ratio: 1 / .9; font-size: 1.62cqw; direction: rtl; }
.hv-halo {
  position: absolute; inset: 8% 6% 4% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .28), rgba(14, 165, 233, .14) 55%, transparent 100%);
  filter: blur(20px); opacity: .9;
}
.sk { display: block; height: .75em; border-radius: 99px; background: #E6E9F2; }

.mock-browser {
  position: absolute; top: 7%; inset-inline-start: 0;
  width: 86%; height: 73%;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 1.8em;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.mb-bar {
  display: flex; align-items: center; gap: 1em;
  height: 3.6em; flex: none; padding-inline: 1.4em;
  border-bottom: 1px solid var(--line-2); background: #FBFBFE;
}
.mb-dots { display: flex; gap: .5em; }
.mb-dots i { width: .9em; height: .9em; border-radius: 50%; background: #FF8A7A; }
.mb-dots i:nth-child(2) { background: #FFC960; }
.mb-dots i:nth-child(3) { background: #4ED39A; }
.mb-url {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 52%; margin-inline: auto; height: 2.2em; border-radius: 99px;
  background: #F1F3F9; color: #667085; font-size: 1.05em; font-weight: 500;
}
.mb-lock { width: 1em; height: 1em; }
.mb-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 12.5em minmax(0, 1fr); }
.mb-side {
  display: flex; flex-direction: column; gap: .35em;
  padding: 1.4em 1em; border-inline-end: 1px solid var(--line-2); background: #FCFCFF;
}
.mb-brand { width: 2.6em; height: 2.6em; border-radius: .85em; background: var(--grad); margin: 0 .5em 1em; box-shadow: 0 .5em 1em -.3em rgba(79, 70, 229, .5); }
.mb-nav {
  display: flex; align-items: center; gap: .7em;
  padding: .45em .8em; border-radius: .8em;
  font-size: 1.15em; font-weight: 500; color: #667085; line-height: 1.6;
}
.mb-nav i { width: .95em; height: .95em; border-radius: .3em; background: #D9DEEA; }
.mb-nav.is-active { background: var(--tint); color: var(--indigo-7); font-weight: 700; }
.mb-nav.is-active i { background: var(--indigo); }

.mb-main { display: flex; flex-direction: column; gap: 1.1em; padding: 1.5em 1.7em; min-width: 0; min-height: 0; }
.mb-head { display: flex; align-items: center; justify-content: space-between; }
.mb-head b { font-size: 1.7em; font-weight: 800; line-height: 1.3; }
.mb-chip { font-size: 1.05em; padding: .2em .9em; border-radius: 99px; border: 1px solid var(--line); color: #667085; }
.mb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; }
.kpi {
  display: flex; flex-direction: column; gap: .55em;
  padding: .9em 1em; border-radius: 1.1em;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, #fff, #FAFBFF);
}
.kpi > span { font-size: 1.05em; color: #667085; line-height: 1.4; }
.kpi .sk { height: 1em; width: 62%; background: linear-gradient(90deg, #C7D2FE, #BAE6FD); }
.kpi .sk-b { width: 48%; }
.kpi .sk-c { width: 56%; }
.spark { width: 100%; height: 2.2em; }
.spark path { fill: none; stroke: url(#g-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mb-chart {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .4em;
  padding: .9em 1.1em .5em; border-radius: 1.1em; border: 1px solid var(--line-2);
}
.mb-chart-head { display: flex; align-items: center; justify-content: space-between; }
.mb-chart-head b { font-size: 1.15em; font-weight: 700; }
.mb-chart-head span { display: flex; gap: .35em; }
.mb-chart-head span i { width: 2.2em; height: .6em; border-radius: 99px; background: #E6E9F2; }
.mb-chart-head span i:first-child { background: linear-gradient(90deg, #4F46E5, #0EA5E9); }
.area { flex: 1; width: 100%; min-height: 0; }
.area-line { stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mb-rows { display: grid; gap: .5em; }
.mb-row { display: flex; align-items: center; gap: .8em; padding: .45em .2em; border-top: 1px solid var(--line-2); }
.mb-row .sk { flex: 1; max-width: 45%; }
.mb-row .sk-s { max-width: 34%; }
.av { width: 1.9em; height: 1.9em; border-radius: 50%; flex: none; }
.av1 { background: linear-gradient(135deg, #C7D2FE, #818CF8); }
.av2 { background: linear-gradient(135deg, #FED7AA, #FB923C); }
.pill { margin-inline-start: auto; font-size: 1em; font-weight: 700; padding: .15em .8em; border-radius: 99px; line-height: 1.6; }
.pill-green { background: #E7F8EF; color: #067647; }
.pill-amber { background: #FFF4E0; color: #B54708; }

.mock-phone {
  position: absolute; inset-inline-end: 1%; bottom: 1%;
  width: 31%; aspect-ratio: 9 / 17;
  padding: .75em; border-radius: 3.4em;
  background: linear-gradient(160deg, #1E293B, #0B1220);
  box-shadow: var(--sh-xl), inset 0 0 0 1px rgba(255, 255, 255, .08);
  z-index: 2;
}
.mp-screen {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: .85em;
  padding: 3.1em 1.2em 1.2em;
  background: #fff; border-radius: 2.7em; overflow: hidden;
}
.mp-screen::before {
  content: ""; position: absolute; top: .9em; left: 50%; transform: translateX(-50%);
  width: 34%; height: 1.4em; border-radius: 99px; background: #0B1220;
}
.mp-top { display: flex; align-items: center; justify-content: space-between; }
.mp-top b { font-size: 1.45em; font-weight: 800; line-height: 1.4; }
.mp-count { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--coral); color: #fff; font-size: 1em; font-weight: 800; line-height: 1; }
.mp-item { display: flex; align-items: center; gap: .7em; padding: .6em; border-radius: 1.1em; background: #F7F8FC; }
.thumb { width: 3.3em; height: 3.3em; border-radius: .9em; flex: none; position: relative; overflow: hidden; }
.th1 { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.th1::after { content: ""; position: absolute; inset: 22% 26%; border-radius: 50% 50% .4em .4em; border: .28em solid rgba(255, 255, 255, .85); border-bottom: 0; }
.th2 { background: linear-gradient(135deg, #7DD3FC, #0EA5E9); }
.th2::after { content: ""; position: absolute; inset: 24%; border-radius: .7em; border: .28em solid rgba(255, 255, 255, .85); }
.mp-txt { flex: 1; min-width: 0; display: grid; gap: .35em; }
.mp-txt b { font-size: 1.05em; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-txt .sk { width: 70%; height: .65em; }
.mp-txt .sk-s { width: 50%; }
.mp-qty { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .6em; background: #fff; border: 1px solid var(--line); font-size: .95em; font-weight: 700; }
.mp-ship { display: grid; gap: .45em; }
.mp-radio { display: flex; align-items: center; gap: .6em; font-size: 1em; color: #667085; padding: .45em .7em; border-radius: .9em; border: 1px solid var(--line-2); line-height: 1.5; }
.mp-radio i { width: 1.05em; height: 1.05em; border-radius: 50%; border: .18em solid #CBD2E1; flex: none; }
.mp-radio.is-on { border-color: #C7D2FE; background: #F5F6FF; color: var(--indigo-7); font-weight: 700; }
.mp-radio.is-on i { border-color: var(--indigo); box-shadow: inset 0 0 0 .18em #fff; background: var(--indigo); }
.mp-coupon { display: flex; align-items: center; justify-content: space-between; padding: .35em .35em .35em .35em; padding-inline-start: .8em; border-radius: .9em; border: 1px dashed #C7D2FE; color: #667085; font-size: .95em; line-height: 1.5; }
.mp-coupon b { padding: .25em .8em; border-radius: .6em; background: var(--tint); color: var(--indigo-7); font-weight: 700; }
.mp-sum { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .7em; border-top: 1px dashed var(--line); font-size: 1.05em; color: #667085; }
.mp-sum .sk { width: 34%; height: .9em; background: linear-gradient(90deg, #C7D2FE, #BAE6FD); }
.mp-btn { display: grid; place-items: center; height: 3.4em; border-radius: 1.2em; background: var(--grad-btn); color: #fff; font-weight: 800; font-size: 1.1em; box-shadow: 0 .8em 1.6em -.8em rgba(79, 70, 229, .8); }

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .85em;
  padding: .85em 1.1em; border-radius: 1.4em;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: var(--sh-lg);
  font-size: 1.12em; white-space: nowrap;
}
.chip b { display: block; font-weight: 800; font-size: 1.05em; line-height: 1.5; }
.chip small { display: block; font-size: .9em; color: #667085; line-height: 1.5; }
.chip code { display: block; font-size: .85em; color: #334155; line-height: 1.6; }
.ci { display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: .95em; flex: none; }
.ci svg { width: 1.45em; height: 1.45em; }
.ci-coral { background: #FFEDEA; color: #E0432D; }
.ci-green { background: #E3F8EE; color: #079455; }
.ci-grad { background: var(--grad); color: #fff; }

.chip-order { top: 1%; inset-inline-end: 3%; }
.chip-order .ci { position: relative; }
.chip-order .ci::after { content: ""; position: absolute; top: .35em; inset-inline-end: .4em; width: .55em; height: .55em; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .18em #FFEDEA; }
.chip-api { bottom: 3%; inset-inline-start: 5%; }
.chip-ai { top: 57%; inset-inline-start: -5%; }
.chip-ai small { max-width: 17em; }

.typing { display: inline-flex; gap: .3em; align-items: center; padding: .55em .7em; border-radius: 99px; background: #F1F3F9; }
.typing i { width: .45em; height: .45em; border-radius: 50%; background: #98A2B3; }

/* ---------- Ribbon ---------- */
.ribbon {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
}
.ribbon-wrap { position: relative; }
/* Default = static layout (no JS or reduced motion): all labels visible, wrapped and centred.
   The moving marquee is layered on top of this in the Motion section. */
.ribbon-track { display: flex; padding: 10px var(--gutter); }
.ribbon-toggle {
  display: none; place-items: center;
  position: absolute; top: 50%; inset-inline-end: 10px; z-index: 1;
  width: 36px; height: 36px; padding: 0; margin-top: -18px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  box-shadow: var(--sh-sm); cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.ribbon-toggle:hover { border-color: #C7CEE3; color: var(--indigo-7); box-shadow: var(--sh-md); }
.ribbon-toggle .ic { width: 16px; height: 16px; }
.ribbon-toggle .ic-play, .ribbon-toggle[aria-pressed="true"] .ic-pause { display: none; }
.ribbon-toggle[aria-pressed="true"] .ic-play { display: block; }
.ribbon-list { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ribbon-list[aria-hidden="true"] { display: none; }
/* static: a wrapped cloud of chips */
.ribbon-list li {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 3px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: .95rem; color: var(--ink-2); white-space: nowrap;
}
.ribbon-list li::after {
  content: ""; display: none; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--grad); opacity: .8;
}

/* ---------- Services / Bento ---------- */
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b c"
    "a a d d"
    "e f f g"
    "h f f i";
}
.svc-1 { grid-area: a; } .svc-2 { grid-area: b; } .svc-3 { grid-area: c; }
.svc-4 { grid-area: d; } .svc-5 { grid-area: e; } .svc-6 { grid-area: f; }
.svc-7 { grid-area: g; } .svc-8 { grid-area: h; } .svc-9 { grid-area: i; }

.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 250px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.svc:hover { translate: 0 -5px; box-shadow: var(--sh-lg); border-color: #D5DAEC; }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.svc-ic {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(135deg, #EEF0FF, #E6F5FE); color: var(--indigo);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .08);
}
.svc-ic .ic { width: 24px; height: 24px; }
.svc-ic-solid { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8); }
.svc-no { font-weight: 800; font-size: .95rem; color: #667085; font-feature-settings: "tnum"; }
.svc h3 { font-size: 1.14rem; line-height: 1.7; }
.svc p { color: var(--muted); font-size: .96rem; line-height: 1.95; }
.svc-feature h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.55rem); line-height: 1.6; }
.svc-feature p { font-size: 1.02rem; max-width: 30rem; }
.svc-art { margin-top: auto; padding-top: 14px; }

.svc-1 { background: radial-gradient(120% 70% at 0% 100%, rgba(14, 165, 233, .09), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(79, 70, 229, .08), transparent 60%), #fff; }

.svc-wide { flex-direction: row; align-items: stretch; gap: 22px; }
.svc-wide .svc-body { flex: 1 1 52%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.svc-wide .svc-art { flex: 1 1 48%; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; }
.svc-tint { background: linear-gradient(135deg, #F3F3FF 0%, #EDF7FE 100%); border-color: #E0E4F6; }

.svc-dark {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(99, 102, 241, .45), transparent 65%),
    radial-gradient(80% 60% at 0% 100%, rgba(14, 165, 233, .28), transparent 65%),
    #0B1220;
  border-color: #1C2436; color: #fff;
}
.svc-dark h3 { color: #fff; }
.svc-dark p { color: #B9C3D6; }
.svc-dark .svc-no { color: #9AA6BD; }
.svc-dark:hover { border-color: #2B3752; }
.svc-ic-glass { background: rgba(255, 255, 255, .08); color: #C7D2FE; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

.svc-code {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 12px; border-radius: 10px;
  background: #0B1220; color: #CBD5E1; font-size: .8rem; line-height: 1.6;
}
.svc-code .m { color: #7DD3FC; font-weight: 700; }
.svc-code .ok { color: #4ADE80; font-weight: 700; }

/* art: panel */
.art-panel { font-size: 10px; }
.svc-1 .svc-art { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ap-win {
  flex: 1;
  display: grid; grid-template-columns: 4.4em minmax(0, 1fr);
  border-radius: 1.8em; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-md); overflow: hidden;
}
.ap-side { display: flex; flex-direction: column; gap: 1.1em; align-items: center; padding: 1.6em 0; background: #F8F9FE; border-inline-end: 1px solid var(--line-2); }
.ap-side i { width: 1.8em; height: 1.8em; border-radius: .6em; background: #E3E7F1; }
.ap-side i.on { background: var(--grad); }
.ap-main { padding: 1.6em 1.8em; display: grid; grid-template-rows: auto minmax(11em, 1fr) auto; gap: 1.4em; }
.ap-row { display: flex; align-items: center; justify-content: space-between; }
.ap-row .sk { height: 1.1em; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w55 { width: 55%; } .w60 { width: 60%; }
.ap-pill { font-size: 1.2em; font-weight: 700; color: #067647; background: #E7F8EF; padding: .1em .9em; border-radius: 99px; line-height: 1.7; }
.ap-bars { display: flex; align-items: flex-end; gap: .9em; min-height: 11em; padding-bottom: .2em; border-bottom: 1px dashed var(--line); }
.ap-bars i {
  flex: 1; height: var(--h); border-radius: .6em .6em .25em .25em;
  background: linear-gradient(180deg, #A5B4FC, #E0E7FF);
  transform-origin: bottom;
}
.ap-bars i:nth-child(6) { background: linear-gradient(180deg, #4F46E5, #0EA5E9); }
.ap-list { display: grid; gap: .8em; }
.ap-list > span { display: flex; align-items: center; gap: 1em; }
.ap-list .sk { height: 1em; }
.ap-list .dot { width: 1.2em; height: 1.2em; border-radius: 50%; background: #C7D2FE; flex: none; }
.ap-list .dot.d2 { background: #FFD8CF; }
.tog { margin-inline-start: auto; width: 3.2em; height: 1.8em; border-radius: 99px; background: #E3E7F1; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: .25em; inset-inline-start: .25em; width: 1.3em; height: 1.3em; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tog.on { background: var(--indigo); }
.tog.on::after { inset-inline-start: auto; inset-inline-end: .25em; }

/* art: order */
.art-order { font-size: 10px; justify-content: center; }
.ao-card {
  width: 100%; max-width: 30em;
  display: grid; gap: 1em; padding: 1.6em;
  background: #fff; border-radius: 1.8em; border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: var(--sh-lg);
}
.ao-head { display: flex; align-items: center; gap: .8em; }
.ao-head b { font-size: 1.45em; font-weight: 800; line-height: 1.4; }
.ao-ic { display: grid; place-items: center; width: 3em; height: 3em; border-radius: 1em; background: #FFEDEA; color: #E0432D; }
.ao-ic svg { width: 1.6em; height: 1.6em; }
.ao-tag { margin-inline-start: auto; font-size: 1.15em; font-weight: 700; color: #067647; background: #E7F8EF; padding: .1em .8em; border-radius: 99px; line-height: 1.7; }
.ao-item { display: flex; align-items: center; gap: 1em; padding: .6em; border-radius: 1em; background: #F7F8FC; }
.ao-item .thumb { width: 3.4em; height: 3.4em; }
.ao-item .sk { height: .9em; }
.ao-q { margin-inline-start: auto; font-size: 1.2em; font-weight: 700; color: #667085; }
.ao-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; margin-top: .3em; padding-top: 1.6em; }
.ao-steps::before, .ao-steps::after {
  content: ""; position: absolute; top: .45em; height: .3em; border-radius: 99px;
  inset-inline-start: 16%; inset-inline-end: 16%;
  background: #E3E7F1;
}
.ao-steps::after { inset-inline-end: 50%; background: var(--grad); transform-origin: right; }
.ao-steps span { position: relative; text-align: center; font-size: 1.15em; font-weight: 600; color: #667085; line-height: 1.5; }
.ao-steps span::before {
  content: ""; position: absolute; top: -1.45em; left: 50%; transform: translateX(-50%);
  width: 1em; height: 1em; border-radius: 50%; background: #fff; border: .25em solid #D0D6E4; z-index: 1;
}
.ao-steps .done { color: var(--indigo-7); }
.ao-steps .done::before { border-color: var(--indigo); background: var(--indigo); box-shadow: inset 0 0 0 .15em #fff; }

/* art: AI chat (dark) */
.art-chat { display: grid; gap: 12px; font-size: .92rem; }
.ac-msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; line-height: 1.85; }
.ac-user { justify-self: start; background: rgba(255, 255, 255, .1); color: #fff; border-start-start-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); }
.ac-ai {
  justify-self: end; display: flex; gap: 10px; align-items: flex-start;
  background: #fff; color: var(--ink); border-start-end-radius: 6px;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6);
}
.ac-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: var(--grad); color: #fff; flex: none; }
.ac-av svg { width: 16px; height: 16px; }
.art-chat {
  padding: 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
.ac-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ac-head .ac-av { width: 36px; height: 36px; border-radius: 12px; }
.ac-head .ac-av svg { width: 19px; height: 19px; }
.ac-head b { display: block; color: #fff; font-weight: 800; line-height: 1.5; }
.ac-head small { display: flex; align-items: center; gap: 6px; color: #9AA6BD; font-size: .8rem; line-height: 1.5; }
.ac-head small i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.ac-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ac-quick span {
  padding: 5px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; line-height: 1.6;
  color: #C7D2FE; background: rgba(129, 140, 248, .12); border: 1px solid rgba(129, 140, 248, .28);
}
.ac-input {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 4px; padding: 7px 7px 7px 7px; padding-inline-start: 16px;
  border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: #9AA6BD;
}
.ac-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; }
.ac-send svg { width: 18px; height: 18px; }

/* ---------- Why ---------- */
.why { position: relative; }
.why::before {
  content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 80% 50%, rgba(99, 102, 241, .08), transparent 70%), radial-gradient(40% 60% at 15% 40%, rgba(14, 165, 233, .08), transparent 70%);
}
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 30px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.why-card:hover { translate: 0 -5px; box-shadow: var(--sh-lg); border-color: #D5DAEC; }
.why-card h3 { padding-inline: 14px; margin-top: 10px; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.65; }
.why-card p { padding-inline: 14px; color: var(--muted); font-size: .98rem; }
.why-art {
  position: relative; height: 200px; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(rgba(79, 70, 229, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(79, 70, 229, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, #F3F4FF, #ECF7FE);
}

.art-scale { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 26px 30px 0; }
.art-scale span {
  position: relative; width: 17%; height: var(--h);
  border-radius: 12px 12px 0 0;
  background:
    radial-gradient(circle, rgba(79, 70, 229, .35) 2.2px, transparent 2.6px) 0 0 / 14px 16px,
    linear-gradient(180deg, #fff, #F5F6FF);
  background-position: 7px 12px, 0 0;
  border: 1px solid #D9DEF3; border-bottom: 0;
  box-shadow: 0 -6px 20px -12px rgba(79, 70, 229, .35);
  transform-origin: bottom;
}
.art-scale span:first-child::before {
  content: ""; position: absolute; top: -9px; inset-inline: -4px; height: 12px; border-radius: 6px 6px 3px 3px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 8px, #fff 8px 16px); border: 1px solid #FFC4BA;
}
.art-scale span.tall {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .55) 2.2px, transparent 2.6px) 0 0 / 14px 16px,
    linear-gradient(180deg, #4F46E5, #0EA5E9);
  background-position: 7px 12px, 0 0;
  border-color: transparent;
}

.art-custom { display: grid; place-items: center; }
.acu-frame {
  position: relative; width: 62%; height: 58%;
  border: 1.5px dashed var(--indigo); border-radius: 6px; padding: 12px;
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 14px 1fr; gap: 8px;
  background: rgba(255, 255, 255, .7);
}
.acu-bar { grid-column: 1 / -1; border-radius: 6px; background: linear-gradient(90deg, #C7D2FE, #BAE6FD); }
.acu-block { border-radius: 8px; background: #fff; border: 1px solid #DDE2F3; }
.acu-block.b1 { background: linear-gradient(135deg, #4F46E5, #0EA5E9); border: 0; }
.acu-frame .h { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--indigo); border-radius: 3px; }
.acu-frame .h1 { top: -6px; right: -6px; } .acu-frame .h2 { top: -6px; left: -6px; }
.acu-frame .h3 { bottom: -6px; right: -6px; } .acu-frame .h4 { bottom: -6px; left: -6px; }
/* Vertical tool palette in the free margin beside the frame, so it never covers the selection handles */
.acu-swatches { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; border-radius: 99px; background: #fff; box-shadow: var(--sh-md); }
.acu-swatches i { width: 14px; height: 14px; border-radius: 50%; background: var(--indigo); }
.acu-swatches i:nth-child(2) { background: var(--sky); }
.acu-swatches i:nth-child(3) { background: var(--coral); }
.acu-cursor { position: absolute; width: 26px; height: 26px; bottom: 26px; left: 22%; filter: drop-shadow(0 4px 6px rgba(15, 23, 42, .25)); }
.acu-cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }

.art-fit { display: grid; place-items: center; }
.af-card {
  width: 74%; padding: 18px 20px 16px; border-radius: 18px;
  background: #fff; box-shadow: var(--sh-md); border: 1px solid var(--line-2);
  display: grid; gap: 18px;
}
.af-rows { display: grid; gap: 8px; }
.af-rows .sk { height: 9px; }
.af-rows .sk:first-child { background: #D9DEEA; }
.af-slider { position: relative; height: 8px; border-radius: 99px; background: #E6E9F2; }
.af-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 58%; border-radius: inherit; background: var(--grad); transform-origin: right; }
.af-thumb {
  position: absolute; top: 50%; inset-inline-start: 58%; transform: translate(50%, -50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15), 0 4px 10px rgba(30, 41, 99, .25);
}
.af-thumb svg { width: 15px; height: 15px; }
.af-ticks { display: flex; justify-content: space-between; }
.af-ticks i { width: 2px; height: 8px; border-radius: 2px; background: #D0D6E4; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline: 12.5%; height: 2px; border-radius: 2px;
  background: linear-gradient(270deg, #4F46E5, #0EA5E9 60%, rgba(14, 165, 233, .25));
  opacity: .5;
}
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.step-no {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; font-size: 1.35rem; font-weight: 900; color: var(--indigo-7);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px #DCE1F3, var(--sh-md);
}
.step:first-child .step-no { background: var(--grad); color: #fff; box-shadow: 0 0 0 6px var(--bg), 0 12px 24px -10px rgba(79, 70, 229, .8); }
.step-card {
  width: 100%; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.step:hover .step-card { translate: 0 -5px; box-shadow: var(--sh-lg); border-color: #D5DAEC; }
.step-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #EEF0FF, #E6F5FE); color: var(--indigo); margin-bottom: 4px; }
.step-card h3 { font-size: 1.12rem; line-height: 1.7; }
.step-card p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-intro .sec-lead { margin-top: 14px; }
.faq-cta {
  margin-top: 30px; padding: 22px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #F3F3FF, #EDF7FE); border: 1px solid #E0E4F6;
}
.faq-cta-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Equal widths: share one row when both fit, otherwise stack at equal full width */
.faq-cta-actions .btn { flex: 1 1 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.faq-item[open] { box-shadow: var(--sh-md); border-color: #D5DAEC; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.06rem; line-height: 1.8; text-wrap: balance;
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex: none;
  background: var(--tint); color: var(--indigo);
  transition: background-color .3s, color .3s;
}
.faq-ic .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.faq-item[open] .faq-ic { background: var(--indigo); color: #fff; }
.faq-item[open] .faq-ic .ic { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--muted); line-height: 2; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ---------- Contact (dark band) ---------- */
.contact { padding-block: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 40px); }
.contact-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: #0B1220; color: #E6EAF2;
  box-shadow: var(--sh-xl);
}
.contact-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(79, 70, 229, .45), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(14, 165, 233, .28), transparent 70%),
    radial-gradient(22% 30% at 30% 12%, rgba(255, 107, 87, .12), transparent 70%);
}
.contact-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 10%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 80% 10%, #000, transparent 70%);
}
.contact-info { display: flex; flex-direction: column; align-items: flex-start; }
.contact-title { margin-top: 18px; color: #fff; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.85rem); line-height: 1.45; }
.contact-lead { margin-top: 14px; color: #B9C3D6; font-size: 1.06rem; max-width: 30rem; }
.big-phone {
  display: inline-block; margin-top: 28px;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 900; line-height: 1.3;
  text-decoration: none;
  background: linear-gradient(100deg, #C7D2FE 0%, #A5B4FC 35%, #7DD3FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-phone:hover { filter: brightness(1.12); }
.phone-intl { color: #9AA6BD; font-size: .98rem; margin-top: 2px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.address {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  width: 100%; margin-top: 32px; padding: 16px 18px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.address-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 107, 87, .14); color: #FF9A8B; flex: none; }
.address-ic .ic { width: 22px; height: 22px; }
.address-label { font-size: .85rem; color: #9AA6BD; line-height: 1.5; }
.address-text { font-weight: 700; color: #fff; font-size: 1.05rem; line-height: 1.6; }
.map-link {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.map-link:hover { background: rgba(255, 255, 255, .15); }
.map-link .ic { width: 16px; height: 16px; }

.composer {
  align-self: start;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.composer-title { font-size: 1.3rem; }
.composer-sub { color: var(--muted); font-size: .95rem; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border-radius: var(--r-sm); border: 1px solid #D0D5DD; background: #F9FAFC;
  font-size: 1rem; line-height: 1.7; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #667085; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B6BDCC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background-color: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .16); }
.field-err { min-height: 0; color: #B42318; font-size: .88rem; font-weight: 600; line-height: 1.6; }
.field-err:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D92D20; background-color: #FFFBFA; }
.composer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.composer-actions .btn { width: 100%; padding-inline: 14px; }
/* Without JS the form is a plain GET to wa.me, which only reads `text`: show just the description field
   and WhatsApp-only wording, so nothing the visitor types is silently dropped. */
html:not(.js) .btn-sms, html:not(.js) .js-only { display: none; }
html:not(.js) .composer-actions { grid-template-columns: 1fr; }
.composer-status { font-size: .92rem; font-weight: 600; color: var(--indigo-7); }
.composer-status.is-error { color: #B42318; }
.composer-status:empty { display: none; }
.composer-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted-2); line-height: 1.8; }
.composer-note .ic { width: 16px; height: 16px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(40px, 5vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 26rem; font-size: .96rem; }
.footer-title { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.footer-col a:hover { color: var(--indigo-7); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.footer-contact .ic { width: 18px; height: 18px; color: var(--indigo); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 22px 28px; border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: .92rem;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; }
.to-top:hover { color: var(--indigo-7); }
.to-top .ic { width: 16px; height: 16px; }

/* ---------- Floating quick-contact (mobile) ---------- */
.fab { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .fab {
    position: fixed; z-index: 60; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 6px; padding: 6px;
    transform: translateX(-50%);
    border-radius: 99px; background: rgba(11, 18, 32, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px -12px rgba(11, 18, 32, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .js .fab.is-hidden { opacity: 0; visibility: hidden; transform: translate(-50%, 24px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
  .fab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 46px; padding: 8px 18px; border-radius: 99px;
    color: #fff; font-weight: 700; text-decoration: none; font-size: .98rem;
  }
  .fab-btn:first-child { background: var(--grad-btn); }
  .fab-wa { background: #047857; }
  .fab :focus-visible { outline-color: #A5B4FC; }
  .fab .ic { width: 20px; height: 20px; }
}

/* =========================================================
   Motion (progressive: hidden states only under .js)
   ========================================================= */
.reveal { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.lift { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: no-preference) {
  /* Ambient hero loops run a few cycles and then settle (all keyframes end on the resting state);
     the toggle on the ribbon pauses them earlier, together with the marquee (WCAG 2.2.2). */
  .mock-phone { animation: floatY 7s ease-in-out 3; }
  .chip-order { animation: floatY 6s ease-in-out -1s 3; }
  .chip-api { animation: floatY 6.5s ease-in-out -3s 3; }
  .chip-ai { animation: floatY 7.5s ease-in-out -2s 3; }
  .hv-halo { animation: halo 10s ease-in-out 3; }
  .typing i { animation: dot 1.2s ease-in-out 8 both; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  .chip-order .ci::after { animation: ping 2.4s ease-out 5; }
  .js .hero-visual.is-in .area-line { animation: draw 2.2s var(--ease) .4s both; }
  .js .hero-visual.is-in .area-fill { animation: fadeIn 1.4s ease 1s both; }

  /* Ribbon marquee (JS on, motion allowed): one line, duplicated list, soft edges.
     The inline-end (left in RTL) edge stays fully faded under the pause button. */
  .js .ribbon {
    -webkit-mask-image: linear-gradient(90deg, transparent 0 56px, #000 max(120px, 12%), #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent 0 56px, #000 max(120px, 12%), #000 90%, transparent);
  }
  .js .ribbon-track { width: max-content; padding: 0; animation: marquee 38s linear infinite; }
  .js .ribbon-list { flex: none; flex-wrap: nowrap; gap: 0; }
  .js .ribbon-list[aria-hidden="true"] { display: flex; }
  .js .ribbon-list li { padding: 16px 0; padding-inline-end: 22px; border: 0; border-radius: 0; background: none; font-size: 1.02rem; }
  .js .ribbon-list li::after { display: block; }
  .ribbon:hover .ribbon-track { animation-play-state: paused; }
  .js .ribbon-toggle { display: grid; }

  .js .svc.is-in .ap-bars i { animation: growY 1s var(--ease) both; }
  .js .svc.is-in .ap-bars i:nth-child(2) { animation-delay: .06s; }
  .js .svc.is-in .ap-bars i:nth-child(3) { animation-delay: .12s; }
  .js .svc.is-in .ap-bars i:nth-child(4) { animation-delay: .18s; }
  .js .svc.is-in .ap-bars i:nth-child(5) { animation-delay: .24s; }
  .js .svc.is-in .ap-bars i:nth-child(6) { animation-delay: .30s; }
  .js .svc.is-in .ap-bars i:nth-child(7) { animation-delay: .36s; }
  .js .svc.is-in .ao-steps::after { animation: growX 1.2s var(--ease) .3s both; }
  .js .why-card.is-in .art-scale span { animation: growY 1s var(--ease) both; }
  .js .why-card.is-in .art-scale span:nth-child(2) { animation-delay: .08s; }
  .js .why-card.is-in .art-scale span:nth-child(3) { animation-delay: .16s; }
  .js .why-card.is-in .art-scale span:nth-child(4) { animation-delay: .24s; }
  .js .why-card.is-in .af-fill { animation: growX 1.2s var(--ease) .2s both; }
  .js .why-card.is-in .acu-cursor { animation: cursor 6s ease-in-out .8s 3; }
}

/* Page-wide pause (set on <html> by the ribbon's pause button): freezes every looping animation.
   One-shot entrance animations are deliberately left alone so nothing gets stuck half-drawn. */
.motion-paused .ribbon-track, .motion-paused .mock-phone, .motion-paused .chip, .motion-paused .hv-halo,
.motion-paused .typing i, .motion-paused .chip-order .ci::after, .motion-paused .acu-cursor { animation-play-state: paused !important; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.9em); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.25em); opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 .18em #FFEDEA, 0 0 0 .18em rgba(255, 107, 87, .5); } 100% { box-shadow: 0 0 0 .18em #FFEDEA, 0 0 0 1.1em rgba(255, 107, 87, 0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(22px, -14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .btn:hover, .svc:hover, .why-card:hover, .step:hover .step-card { transform: none; translate: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
  /* Below 1200px four columns get too narrow (~230px cards): switch to the 2-column bento */
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "b c"
      "d d"
      "e g"
      "f f"
      "h i";
  }
  .svc-wide .svc-art { justify-content: center; }
}

@media (max-width: 1023.98px) {
  :root { --header-h: 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 42rem; }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .steps::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-head > div, .sec-head > .sec-lead { flex: none; }
  .sec-head-center { align-items: center; }
  .bento { gap: 14px; grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g" "h" "i"; }
  .svc { min-height: 0; padding: 22px; }
  .svc-wide { flex-direction: column; }
  .art-panel, .art-order { font-size: 8.6px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { flex-direction: row; align-items: flex-start; gap: 16px; }
  .step::before {
    content: ""; position: absolute; inset-inline-start: 27px; top: 56px; bottom: -16px; width: 2px;
    background: linear-gradient(180deg, #A5B4FC, rgba(165, 180, 252, .2));
  }
  .step:last-child::before { display: none; }
  .step-no { flex: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-actions { align-self: stretch; }
  .contact-actions .btn { flex: 1 1 0; }
  .map-link { margin-inline-start: 0; }
  .contact-card { padding: 28px 18px 18px; border-radius: 26px; }
  .composer { padding: 22px 18px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 599.98px) {
  .hv-stage { aspect-ratio: 1 / 1.02; font-size: 2.05cqw; }
  .mock-browser { width: 94%; height: 64%; top: 9%; }
  .mb-body { grid-template-columns: minmax(0, 1fr); }
  .mb-side { display: none; }
  .mb-rows .mb-row:nth-child(2) { display: none; }
  .mock-phone { width: 38%; }
  .chip { font-size: 1.05em; }
  .chip-ai { top: auto; bottom: 30%; inset-inline-start: 0; }
  .chip-ai small, .chip-ai .typing { display: none; }
  .chip-order { top: 0; }
  .chip-api { bottom: 2%; inset-inline-start: 2%; }
  .why-art { height: 180px; }
  .composer-actions { grid-template-columns: 1fr; }
  /* Phone: call as the full-width lead action, SMS + WhatsApp as an equal pair below */
  .contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions .btn:first-child { grid-column: 1 / -1; }
  .contact-actions .btn { padding-inline: 14px; }
}

@media (max-width: 380px) {
  .brand-en { display: none; }
  .hero-points { gap: 8px 16px; }
}
