/* Macrosbit site. Layout: night rooms for motion and statements, paper rooms for reading; every component is built from the logo's socket, bit and signal. */
:root {
  --night: #0F0D1A;
  --night-2: #16122E;
  --night-3: #221C42;
  --ink: #16122E;
  --paper: #F5F3FF;
  --surface: #F7F6FB;
  --surface-2: #EEEBF7;
  --muted-l: #5E5878;
  --muted-d: #A49FBF;
  --dim-l: #8F89A8;
  --line-l: rgba(22, 18, 46, .12);
  --line-d: rgba(245, 243, 255, .12);
  --accent-l: #6A2CEB;
  --accent-d: #A98BFF;
  --violet: #7A3CFF;
  --magenta: #FF2D87;
  --orange: #FF7A1A;
  --amber: #FFB800;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-hero: clamp(44px, 7vw, 104px);
  --fs-h1: clamp(42px, 6vw, 84px);
  --fs-h2: clamp(32px, 4.4vw, 62px);
  --fs-h3: clamp(21px, 1.8vw, 26px);
  --fs-lede: clamp(18px, 1.45vw, 21px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
:lang(ar), [dir="rtl"] {
  --display: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --body: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.8; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0 !important; line-height: 1.3 !important; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-d); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: var(--accent-l); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }

.wrap { max-width: 1300px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.room { padding-block: clamp(84px, 11vw, 164px); position: relative; }
.night { background: var(--night); color: var(--paper); }
.paper { background: var(--surface); color: var(--ink); }
.room.tight { padding-block: clamp(64px, 8vw, 112px); }

.muted { color: var(--muted-d); }
.paper .muted { color: var(--muted-l); }
.lede { font-size: var(--fs-lede); line-height: 1.55; max-width: 34em; }
.night .lede { color: #D9D5EA; }
.paper .lede { color: #3A3456; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.035em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.015em; }
.prose { max-width: 40em; display: flex; flex-direction: column; gap: 1.1em; }
.prose a, .ans a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Section heading: statement left, context right */
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 92px); }
.head > p { padding-bottom: .4em; }
.head.solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
@media (max-width: 900px) { .head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Socket and bit (the brand atom) ---------- */
.sock {
  --s: 24px; --c: var(--violet);
  position: relative; display: inline-block; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  border: calc(var(--s) * .17) solid currentColor;
}
.sock::after {
  content: ""; position: absolute; inset: calc(var(--s) * .09); border-radius: 50%;
  background: var(--c); opacity: 0; transform: translateY(-260%);
}
.is-on > .sock::after, .is-on .sock-on::after, .sock.is-full::after, details[open] > summary .sock::after { opacity: 1; transform: none; animation: bitdrop .8s both; }
@keyframes bitdrop {
  0% { transform: translateY(-260%); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  12% { opacity: 1; }
  55% { transform: translateY(0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  72% { transform: translateY(-34%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  86% { transform: translateY(0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  93% { transform: translateY(-8%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { transform: translateY(0); opacity: 1; }
}
.bit { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--c, var(--violet)); flex: none; }
.c-violet { --c: var(--violet); } .c-magenta { --c: var(--magenta); } .c-orange { --c: var(--orange); } .c-amber { --c: var(--amber); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding-block: 0; padding-inline: 14px 24px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 0;
  background: var(--paper); color: var(--ink); transition: background .2s, transform .2s;
}
.btn .sock { --s: 26px; color: var(--ink); }
.btn:hover .sock::after, .btn:focus-visible .sock::after { opacity: 1; transform: none; animation: bitdrop .8s both; }
.btn:hover { background: #fff; }
.paper .btn { background: var(--ink); color: var(--paper); }
.paper .btn .sock { color: var(--paper); }
.paper .btn:hover { background: #2A2350; }
.lnk { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-thickness .15s; }
.lnk:hover { text-decoration-thickness: 3px; }
.night .lnk { color: var(--paper); }
.paper .lnk { color: var(--ink); }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s; }
.hdr.is-solid { background: rgba(15, 13, 26, .9); box-shadow: 0 1px 0 var(--line-d); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: block; flex: none; line-height: 0; }
.brand svg { width: 138px; height: auto; overflow: visible; }
[dir="rtl"] .brand svg { width: 112px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a, .nav > .menu > button {
  font: 500 15px/1 var(--body); color: #DCD8EC; text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 12px 13px; border-radius: 999px; position: relative; display: inline-flex; align-items: center; gap: 8px;
}
.nav > a:hover, .nav > .menu > button:hover, .nav > .menu > button[aria-expanded="true"] { color: #fff; background: rgba(245, 243, 255, .07); }
.nav [aria-current="page"] { color: #fff; }
.nav [aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--amber); }
.caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
[aria-expanded="true"] .caret { transform: translateY(2px) rotate(225deg); }
.lang { font: 500 15px/1 var(--body); color: #DCD8EC; text-decoration: none; padding: 12px 10px; }
.lang:hover { color: #fff; }
.lang[lang="ar"] { font-family: "Readex Pro", "Segoe UI", Tahoma, sans-serif; }
.lang[lang="en"] { font-family: "Figtree", "Segoe UI", sans-serif; }
.hdr .btn { min-height: 46px; font-size: 15px; padding-inline: 11px 18px; }
.hdr .btn .sock { --s: 22px; }
.menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); inset-inline-start: -16px; width: min(640px, calc(100vw - 32px));
  background: var(--night-2); border-radius: 26px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px var(--line-d);
}
.mega a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--paper); }
.mega a .sock { --s: 22px; grid-row: span 2; margin-top: 2px; color: #4A4370; }
.mega a:hover, .mega a:focus-visible { background: var(--night-3); }
.mega a:hover .sock::after, .mega a:focus-visible .sock::after { opacity: 1; transform: none; animation: bitdrop .8s both; }
.mega strong { font: 600 16px/1.3 var(--display); letter-spacing: -.01em; }
.mega span:not(.sock) { font-size: 14px; color: var(--muted-d); line-height: 1.45; }
.burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(245, 243, 255, .08); cursor: pointer; position: relative; color: var(--paper); }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 23px; } .burger i:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav {
  position: fixed; inset: 0; z-index: 45; background: var(--night); overflow-y: auto;
  padding-top: calc(100px + env(safe-area-inset-top, 0px)); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.mnav .wrap { display: flex; flex-direction: column; gap: 6px; }
.mnav a { text-decoration: none; color: var(--paper); font: 700 30px/1.25 var(--display); letter-spacing: -.02em; padding: 6px 0; display: flex; align-items: center; gap: 14px; }
.mnav a .sock { --s: 20px; color: #4A4370; }
.mnav .sub { font: 500 18px/1.4 var(--body); color: var(--muted-d); padding-inline-start: 34px; margin-top: -4px; margin-bottom: 8px; }
.mnav .btn { margin-top: 24px; align-self: flex-start; font-size: 16px; }
@media (max-width: 1080px) {
  .nav, .hdr .btn, .hdr .lang { display: none; }
  .burger { display: block; }
}
html.menu-open { overflow: hidden; }

/* Wordmark build (from the logo motion set): letters rise, bits drop into their sockets in signal order */
.wm path, .wm circle, .wm g { transform-box: fill-box; }
@keyframes rise { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop {
  0% { transform: translateY(-180px); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  10% { opacity: 1; }
  55% { transform: translateY(0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  72% { transform: translateY(-16px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  86% { transform: translateY(0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  93% { transform: translateY(-4px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { transform: translateY(0); opacity: 1; }
}
html.wm-play .brand .l { animation: rise .7s var(--ease-out) calc(var(--i) * 60ms) both; }
html.wm-play .brand .b { animation: drop .95s calc(.75s + var(--i) * 160ms) both; }
.brand:hover .b { animation: drop .95s calc(var(--i) * 120ms) both; }

/* ---------- Motion stages (canvas) ---------- */
.stage { position: relative; width: 100%; max-width: 100%; }
.stage canvas.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage .fallback svg { width: 92%; height: auto; }
.stage.is-live .fallback { visibility: hidden; }
.stage.touch { touch-action: pan-y; }

/* ---------- Home hero ---------- */
.hero { padding-top: calc(clamp(104px, 12vw, 150px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.hero .stage { aspect-ratio: 926 / 215; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(36px, 5vw, 72px); }
.hero h1 { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.045em; }
.hero-side { display: flex; flex-direction: column; gap: 30px; padding-bottom: .5em; }
.hint { font-size: 14px; color: var(--muted-d); margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.hint .bit { width: 8px; height: 8px; }
@media (pointer: coarse) { .hint { display: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bit index (products) ---------- */
.index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.index-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.index-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center;
  padding-block: 22px; text-decoration: none; color: var(--dim-l); transition: color .25s;
}
.index-list a .sock { --s: clamp(26px, 2.6vw, 36px); color: currentColor; }
.index-list .nm { font: 700 clamp(30px, 3.7vw, 54px)/1.05 var(--display); letter-spacing: -.035em; }
.index-list .ds { grid-column: 2; font-size: 16px; color: var(--muted-l); max-width: 30em; }
.index-list li.is-on a, .index-list a:hover { color: var(--ink); }
.demo-stage {
  position: sticky; top: 112px; background: var(--night); color: var(--paper);
  border-radius: 34px; padding: clamp(20px, 3vw, 38px); min-height: 540px; display: flex; flex-direction: column; gap: 18px;
}
.demo-stage .demo { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.demo-note { font-size: 13px; color: var(--muted-d); }
.index-more { margin-top: 30px; }
@media (max-width: 960px) {
  .index { grid-template-columns: minmax(0, 1fr); }
  .demo-stage { position: relative; top: 0; min-height: 0; }
}

/* Shared demo atoms */
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ui-title { font: 600 15px/1.2 var(--display); display: flex; align-items: center; gap: 10px; }
.ui-title svg { height: 22px; width: auto; }
.ui-sub { font-size: 13px; color: var(--muted-d); }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--display); flex: none; }
.person { display: flex; align-items: center; gap: 14px; }
.person b { display: block; font: 600 18px/1.25 var(--display); }
.rows { display: flex; flex-direction: column; gap: 4px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; background: rgba(245, 243, 255, .045); }
.row b { font-weight: 600; font-size: 15px; display: block; }
.row small { font-size: 13px; color: var(--muted-d); }
.row .act { font: 600 13px/1 var(--body); color: var(--ink); background: var(--amber); border: 0; border-radius: 999px; padding: 9px 13px; }
.meter { width: 34px; height: 34px; transform: rotate(-90deg); flex: none; }
.meter circle { fill: none; stroke-width: 5; }
.meter .trk { stroke: rgba(245, 243, 255, .12); }
.meter .val { stroke: var(--c, var(--violet)); stroke-linecap: round; stroke-dasharray: 88 88; stroke-dashoffset: calc(88 - 88 * var(--v)); transition: stroke-dashoffset 1.2s var(--ease-out); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 16px 14px 4px; border-top: 1px solid var(--line-d); }
.total .num { font-size: clamp(20px, 2.2vw, 26px); color: #fff; }

/* chat demo */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 5px; }
.msg .ch { font-size: 12px; color: var(--muted-d); display: flex; align-items: center; gap: 7px; }
.msg .ch .bit { width: 7px; height: 7px; }
.msg p { background: var(--night-3); padding: 11px 15px; border-radius: 18px 18px 18px 6px; font-size: 15px; line-height: 1.45; }
[dir="rtl"] .msg p { border-radius: 18px 18px 6px 18px; }
.msg.out { align-self: flex-end; }
.msg.out p { background: var(--paper); color: var(--ink); border-radius: 18px 18px 6px 18px; }
[dir="rtl"] .msg.out p { border-radius: 18px 18px 18px 6px; }
.suggest { border-radius: 20px; padding: 14px 16px; background: rgba(122, 60, 255, .16); box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .35); display: flex; flex-direction: column; gap: 10px; }
.suggest .lbl { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent-d); font-weight: 600; }
.suggest .lbl svg { height: 18px; width: auto; }
.suggest .btns { display: flex; gap: 8px; }
.suggest .btns span { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.suggest .btns span + span { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-d); }
.typing { display: inline-flex; gap: 6px; padding: 12px 15px; background: var(--night-3); border-radius: 18px; align-self: flex-start; }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); animation: hop 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * 160ms); }
@keyframes hop { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-6px); } }

/* doc demo */
.docbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.sheet { position: relative; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px 18px 22px; overflow: hidden; font-size: 12px; line-height: 1.5; min-height: 260px; }
.sheet h4 { font: 700 15px/1.2 var(--display); margin-bottom: 10px; }
.sheet .ln { height: 7px; border-radius: 4px; background: #DCD8EA; margin: 7px 0; }
.sheet .kv { display: flex; justify-content: space-between; gap: 8px; margin: 3px 0; }
.sheet .kv b { font-weight: 600; }
.sheet .hl { border-radius: 4px; transition: background .3s; padding-inline: 2px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(122, 60, 255, 0), rgba(122, 60, 255, .22)); border-bottom: 2px solid var(--violet); }
.fields { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; border-radius: 14px; background: rgba(245, 243, 255, .05); }
.field small { font-size: 12px; color: var(--muted-d); }
.field b { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.search { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 999px; background: rgba(245, 243, 255, .06); font-size: 14px; }
.search .q { color: #fff; }
.search .bit { width: 8px; height: 8px; }
@media (max-width: 520px) { .docbox { grid-template-columns: minmax(0, 1fr); } }

/* ai demo */
.aimark-wrap { display: flex; align-items: center; gap: 22px; }
.aimark-wrap svg { width: 92px; height: auto; flex: none; overflow: visible; }
.credits { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 5px; }
.credits i { aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--violet)); transition: opacity .4s, transform .4s; }
.credits i.used { opacity: .16; transform: scale(.7); }
.tasks { display: flex; flex-direction: column; gap: 6px; }
.tasks li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(245, 243, 255, .045); font-size: 14.5px; }
.tasks .bit { width: 9px; height: 9px; }

/* Demo sequencing: items arrive one after another when a panel plays */
.js .play .seq { animation: seqin .55s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes seqin { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.js .play .scan { animation: scan 2.6s cubic-bezier(.45, 0, .55, 1) .3s both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-50px); } 8% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(260px); } }
.js .play .hl { animation: hl .5s both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes hl { from { background: transparent; } to { background: rgba(255, 184, 0, .45); } }
.js .play .type { animation: typein .5s steps(14) both; animation-delay: calc(var(--d, 0) * 1ms); clip-path: inset(0 0 0 0); }
@keyframes typein { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
[dir="rtl"] .js .play .type, .js [dir="rtl"] .play .type { animation-name: typein-rtl; }
@keyframes typein-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* ---------- AI room ---------- */
.ai-lockup { max-width: 980px; margin-bottom: clamp(48px, 6vw, 88px); }
.ai-lockup svg { width: 100%; height: auto; overflow: visible; }
.svg-anim path, .svg-anim circle, .svg-anim g { transform-box: fill-box; }
.fly { transform: translateX(var(--dx)); }
@keyframes shift { 0%, 55% { transform: translateX(99px); } 92%, 100% { transform: translateX(0); } }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0); }
  14% { opacity: 1; transform: translate(0, -46px); animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
  62% { transform: translate(var(--dx), -46px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  78% { transform: translate(var(--dx), 0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  88% { transform: translate(var(--dx), -6px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { opacity: 1; transform: translate(var(--dx), 0); }
}
@keyframes think { 0%, 100% { transform: scale(1); } 40% { transform: scale(.7); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.7); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 80% { transform: scale(.98); } 100% { transform: scale(1); opacity: 1; } }
@keyframes appear { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.js .play .lk .shift { animation: shift 3.6s cubic-bezier(.6, 0, .3, 1) both; }
.js .play .lk .l { animation: rise .55s var(--ease-out) calc(var(--i) * 45ms) both; }
.js .play .lk .b { animation: drop .85s calc(.55s + var(--i) * 130ms) both; }
.js .play .lk .fly { animation: fly 1.5s calc(2s + var(--j) * 160ms) both; }
.ripple { opacity: 0; transform-origin: center; }
.js .play .think-mark .b { animation: think 1.4s ease-in-out calc(var(--i) * .7s) infinite; transform-origin: center; }
.js .play .think-mark .ripple { animation: ripple 2s cubic-bezier(.2, .6, .4, 1) 1s infinite; }
.js .play .think-mark .ripple.r2 { animation-delay: 2s; }
.js .play .typing-mark .bubble { animation: pop .7s var(--ease-out) both; transform-origin: left bottom; }
.js .play .typing-mark .tb { animation: appear .45s var(--ease-out) calc(.45s + var(--i) * 120ms) both, hop 1.1s ease-in-out calc(1.2s + var(--i) * 160ms) infinite; transform-origin: center; }
.js .play .loader-mark .l { animation: rise .7s var(--ease-out) both; }
.js .play .loader-mark .b { animation: drop .95s .55s both; }
.js .play .loader-mark .ripple { animation: ripple 1.6s cubic-bezier(.2, .6, .4, 1) 1.5s infinite; }
.js .play .loader-mark .ripple.r2 { animation-delay: 2.3s; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.does { list-style: none; display: flex; flex-direction: column; gap: 26px; }
.does li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; }
.does li .sock { --s: 22px; margin-top: 4px; grid-row: span 2; color: #4A4370; }
.paper .does li .sock { color: #C9C4DC; }
.does b { font: 600 19px/1.35 var(--display); letter-spacing: -.01em; }
.does span { color: var(--muted-d); }
.paper .does span { color: var(--muted-l); }
.note-line { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.paper .note-line { border-top-color: var(--line-l); }

/* ---------- Numbers made of bits ---------- */
.count-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 100px); align-items: center; }
.count-stage { aspect-ratio: 680 / 260; }
.count-stage .fallback { font: 700 clamp(90px, 15vw, 220px)/1 var(--display); letter-spacing: -.05em; }
.count-stage .fallback span:nth-child(1) { color: var(--violet); } .count-stage .fallback span:nth-child(2) { color: var(--magenta); }
.count-stage .fallback span:nth-child(3) { color: var(--orange); } .count-stage .fallback span:nth-child(4) { color: var(--amber); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font: 700 clamp(28px, 3vw, 42px)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted-l); max-width: 22em; }
@media (max-width: 900px) { .count-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bilingual ---------- */
.bi-stage { aspect-ratio: 996 / 300; margin-bottom: clamp(44px, 6vw, 80px); }

/* ---------- Services list ---------- */
.svc { list-style: none; display: flex; flex-direction: column; gap: clamp(30px, 4vw, 52px); }
.svc li a { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 10px 26px; align-items: baseline; text-decoration: none; color: inherit; }
.svc .sock { --s: 22px; color: #C9C4DC; align-self: center; }
.svc .nm { font: 700 clamp(24px, 2.6vw, 36px)/1.1 var(--display); letter-spacing: -.025em; }
.svc .ds { color: var(--muted-l); }
.svc li a:hover .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.svc li a:hover .sock::after { opacity: 1; transform: none; animation: bitdrop .8s both; }
@media (max-width: 760px) { .svc li a { grid-template-columns: auto minmax(0, 1fr); } .svc .ds { grid-column: 2; } }

/* ---------- Steps rail (a real sequence) ---------- */
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; top: 19px; inset-inline-start: 20px; height: 2px; border-radius: 2px; }
.steps::before { inset-inline-end: 20px; background: var(--line-d); }
.steps::after { width: calc((100% - 40px) * var(--p)); background: var(--paper); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 12px; z-index: 1; }
.steps .sock { --s: 40px; color: var(--paper); background: var(--night); }
.steps .k { font: 500 14px/1 var(--mono); color: var(--muted-d); margin-top: 14px; }
.steps h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; }
.steps p { color: var(--muted-d); max-width: 18em; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-inline-start: 0; }
  .steps::before, .steps::after { top: 20px; inset-inline-start: 19px; width: 2px; height: auto; }
  .steps::before { bottom: 20px; inset-inline-end: auto; }
  .steps::after { height: calc((100% - 40px) * var(--p)); width: 2px; }
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; }
  .steps li .sock { grid-row: span 3; }
  .steps .k { margin-top: 0; }
}

/* ---------- Questions ---------- */
.qa { display: flex; flex-direction: column; gap: 6px; max-width: 980px; }
.qa details { border-radius: 22px; transition: background .25s; }
.qa details[open] { background: var(--surface-2); }
.night .qa details[open] { background: var(--night-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 22px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.015em; line-height: 1.3; font-weight: 600; }
.qa summary .sock { --s: 26px; color: #C9C4DC; }
.night .qa summary .sock { color: #4A4370; }
.qa .ans { padding: 0 22px 24px; max-width: 46em; color: var(--muted-l); }
.night .qa .ans { color: #CFCBE0; }

/* ---------- Call to action room ---------- */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 120px); align-items: end; }
.cta-grid .h2 { margin-bottom: 26px; }
.reach { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.reach li { display: flex; flex-direction: column; gap: 2px; }
.reach small { font-size: 14px; color: var(--muted-d); }
.paper .reach small { color: var(--muted-l); }
.reach a, .reach span.v { font: 600 clamp(20px, 2vw, 26px)/1.3 var(--display); letter-spacing: -.015em; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.reach a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
[dir="rtl"] .reach .ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.cta-mark { width: 120px; margin-bottom: 30px; }
.cta-mark svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: var(--paper); padding-top: clamp(64px, 8vw, 100px); padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-d); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr-brand svg { width: 150px; height: auto; }
[dir="rtl"] .ftr-brand svg { width: 124px; }
.ftr-brand p { margin-top: 18px; color: var(--muted-d); max-width: 22em; }
.ftr h2 { font: 600 15px/1.3 var(--body); color: var(--muted-d); margin-bottom: 16px; }
.ftr ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { text-decoration: none; color: #E4E0F2; font-size: 15.5px; }
.ftr ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.social a { font-size: 15px; color: #E4E0F2; }
.ftr-base { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted-d); }
.ftr-base nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr-base a { color: var(--muted-d); }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ftr-brand { grid-column: 1 / -1; } }

/* ---------- Product pages ---------- */
.phero { padding-top: calc(clamp(120px, 13vw, 168px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.phero h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.045em; margin-bottom: 26px; }
.phero .lede { margin-bottom: 34px; }
.crumbs { font-size: 14px; color: var(--muted-d); margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .6; }
.crumbs a { color: var(--muted-d); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.updated { margin-top: 30px; font-size: 14px; color: var(--muted-d); }
.panel { background: var(--night-2); border-radius: 30px; padding: clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 960px) { .phero-grid { grid-template-columns: minmax(0, 1fr); } }
.chat-stage { aspect-ratio: 16 / 12; }
.neural-stage { aspect-ratio: 16 / 11; }
.wide-stage { aspect-ratio: 16 / 9; }

/* At a glance: label and value pairs */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.glance div { display: flex; flex-direction: column; gap: 8px; }
.glance dt { font-size: 15px; color: var(--muted-l); }
.glance dd { margin: 0; font: 600 clamp(19px, 1.7vw, 23px)/1.35 var(--display); letter-spacing: -.012em; }
@media (max-width: 900px) { .glance { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .glance { grid-template-columns: minmax(0, 1fr); } }

/* Module map: what's inside */
.mods { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 48px; }
.mods li { display: flex; flex-direction: column; gap: 10px; }
.mods .sock { --s: 26px; color: #C9C4DC; margin-bottom: 6px; }
.night .mods .sock { color: #4A4370; }
.mods h3 { font-size: clamp(20px, 1.6vw, 23px); letter-spacing: -.015em; line-height: 1.25; }
.mods p { color: var(--muted-l); }
.night .mods p { color: #CFCBE0; }
@media (max-width: 960px) { .mods { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .mods { grid-template-columns: minmax(0, 1fr); } }

/* Payslip that counts to the fils */
.slip { background: var(--paper); color: var(--ink); border-radius: 30px; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 6px; max-width: 560px; width: 100%; }
.slip-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 14px; }
.slip-top b { font: 700 20px/1.2 var(--display); }
.slip-top small { color: var(--muted-l); font-size: 14px; }
.slip .ln { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-l); font-size: 15.5px; }
.slip .ln .num { white-space: nowrap; }
.slip .neg { color: #B4135A; }
.slip .net { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; flex-wrap: wrap; }
.slip .net b { font: 700 18px/1.2 var(--display); }
.slip .net .num { font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; }
[dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }

/* Channel weave (Chatbit) */
.weave { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 0; }
.weave .chans { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.weave .chans li { display: flex; align-items: center; gap: 12px; font: 600 clamp(17px, 1.6vw, 21px)/1.2 var(--display); }
.weave .chans .bit { width: 14px; height: 14px; }
.weave svg.lines { width: 100%; height: auto; overflow: visible; }
.weave .lines path { fill: none; stroke: rgba(245, 243, 255, .16); stroke-width: 2; }
.weave .inbox { background: var(--night-2); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.weave .inbox .it { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(245, 243, 255, .045); font-size: 14px; }
.weave .inbox .it .bit { width: 9px; height: 9px; }
.weave .inbox .it span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .weave { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .weave svg.lines { display: none; }
  .weave .chans { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
}

/* Plans table */
.tbl-wrap { overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.plans th, .plans td { text-align: start; padding: 22px 18px; vertical-align: top; border-bottom: 1px solid var(--line-l); }
.plans thead th { font: 500 14px/1.2 var(--body); color: var(--muted-l); padding-top: 0; }
.plans tbody th { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.plans .price { font: 600 22px/1.2 var(--display); white-space: nowrap; }
.plans .price small { font: 400 14px var(--body); color: var(--muted-l); }

/* Search demo (DocuBit) */
.finder { background: var(--paper); color: var(--ink); border-radius: 30px; padding: clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.finder label { font-size: 14px; color: var(--muted-l); }
.finder input { width: 100%; font: 500 18px/1.3 var(--body); padding: 16px 20px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); }
.finder input:focus-visible { outline: 2px solid var(--accent-l); outline-offset: 2px; }
.finder ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.finder li { padding: 14px 16px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.finder li b { font: 600 15.5px/1.3 var(--display); display: flex; align-items: center; gap: 10px; }
.finder li b .bit { width: 9px; height: 9px; }
.finder li span { font-size: 14px; color: var(--muted-l); }
.finder mark { background: rgba(255, 184, 0, .5); color: inherit; border-radius: 3px; padding-inline: 1px; }
.finder .count { font-size: 14px; color: var(--muted-l); }

/* AI credits calculator */
.calc { background: var(--night-2); border-radius: 30px; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.calc .bits-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; }
.calc .bits-grid i { aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.calc .bits-grid i.extra { opacity: 1; }
.calc .bits-grid i.off { opacity: .12; }
.calc label { font-size: 15px; color: var(--muted-d); display: flex; justify-content: space-between; gap: 12px; }
.calc input[type="range"] { width: 100%; accent-color: var(--amber); }
.calc .out { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.calc .out b { font: 700 clamp(26px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.03em; }
.calc .out span { color: var(--muted-d); }

/* Code example (services) */
.code { background: var(--night-2); border-radius: 26px; padding: 22px; overflow-x: auto; font: 13px/1.6 var(--mono); color: #D9D5EA; max-height: 460px; direction: ltr; text-align: left; }
.code .k { color: var(--accent-d); } .code .s { color: #FFC24D; }

/* Services detail blocks */
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px clamp(40px, 7vw, 120px); align-items: start; }
.svc-block + .svc-block { margin-top: clamp(80px, 10vw, 140px); }
.svc-block h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 20px; }
.svc-block .lede { margin-bottom: 26px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; }
.ticks .bit { width: 10px; height: 10px; transform: translateY(-1px); }
@media (max-width: 900px) { .svc-block { grid-template-columns: minmax(0, 1fr); } }

/* Principles (about) */
.principles { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 72px; }
.principles li { display: flex; flex-direction: column; gap: 12px; }
.principles h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; display: flex; align-items: center; gap: 16px; }
.principles h3 .sock { --s: 28px; color: #C9C4DC; }
.principles p { color: var(--muted-l); max-width: 30em; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.logo-read { max-width: 980px; margin-bottom: 48px; }
.logo-read svg { width: 100%; height: auto; }

/* Contact form */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.form input, .form select, .form textarea {
  font: 400 17px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line-l);
  border-radius: 16px; padding: 14px 16px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent-l); outline-offset: 1px; border-color: transparent; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; color: var(--muted-l); font-size: 14.5px; }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 15px; color: var(--ink); min-height: 1.5em; }
.form-status[data-state="error"] { color: #B4135A; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px clamp(40px, 7vw, 110px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.copy { font: 600 12.5px/1 var(--body); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-l); background: transparent; color: var(--muted-l); cursor: pointer; margin-inline-start: 10px; vertical-align: middle; }
.copy:hover { color: var(--ink); border-color: var(--ink); }

/* Related products row */
.related { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.related b { font: 700 clamp(22px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.025em; display: flex; align-items: center; gap: 14px; }
.related .sock { --s: 22px; color: #C9C4DC; }
.related span { color: var(--muted-l); }
.related a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.related a:hover .sock::after { opacity: 1; transform: none; animation: bitdrop .8s both; }
@media (max-width: 800px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.lost .stage { aspect-ratio: 926 / 230; max-width: 900px; margin-bottom: 40px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .play .scan { display: none; }
}
[dir="rtl"] .hero h1 { font-size: clamp(40px, 5.4vw, 80px); }
[dir="rtl"] .phero h1 { font-size: clamp(38px, 5vw, 72px); }

/* Services inside the products section */
.index-svc { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-l); }
.index-label { font: 600 15px/1.3 var(--body); color: var(--muted-l); margin-bottom: 14px; }
.index-svc ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 28px; }
.index-svc a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding-block: 14px; text-decoration: none; color: var(--ink); }
.index-svc .sock { --s: 18px; color: #C9C4DC; }
.index-svc .nm { font: 700 clamp(18px, 1.6vw, 21px)/1.25 var(--display); letter-spacing: -.015em; }
.index-svc .ds { grid-column: 2; font-size: 14.5px; color: var(--muted-l); line-height: 1.45; }
.index-svc a:hover .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.index-svc a:hover .sock { color: var(--ink); }
@media (max-width: 560px) { .index-svc ul { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .index > div:first-child { display: contents; }
  .index-list { order: 1; } .demo-stage { order: 2; } .index-svc { order: 3; margin-top: 8px; } .index-more { order: 4; margin-top: 0; }
}

/* ---------- Service motion graphics (shown when a service is hovered) ---------- */
.demo-svc { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.demo-svc .sock { color: #4A4370; }

/* Website: page builds, then mirrors between English and Arabic */
.browser { background: var(--night-3); border-radius: 22px; overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(245, 243, 255, .05); direction: ltr; }
.browser .bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 243, 255, .2); }
.browser .url { margin-inline-start: 10px; flex: 1; font: 500 12.5px/1 var(--mono); color: var(--muted-d); background: rgba(245, 243, 255, .06); padding: 7px 12px; border-radius: 999px; }
.browser .lang { display: inline-flex; gap: 4px; }
.browser .lang b { font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 999px; color: var(--muted-d); }
.browser .lang .l2 { font-family: "Readex Pro", var(--body); }
.pg { padding: 18px; display: flex; flex-direction: column; gap: 18px; transform-origin: center; }
.pg-nav { display: flex; align-items: center; gap: 10px; }
.pg-nav .lg { width: 46px; height: 12px; border-radius: 6px; background: var(--paper); margin-inline-end: auto; }
.pg-nav .ln { width: 34px; height: 7px; border-radius: 4px; background: rgba(245, 243, 255, .2); }
.pg-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.pg-txt { display: flex; flex-direction: column; gap: 9px; }
.pg-txt .ln { height: 10px; border-radius: 5px; background: rgba(245, 243, 255, .22); }
.pg-txt .ln.xl { height: 18px; width: 92%; background: var(--paper); }
.pg-txt .ln.l { width: 80%; } .pg-txt .ln.m { width: 56%; }
.pg-txt .pill { width: 74px; height: 22px; border-radius: 999px; background: var(--amber); margin-top: 6px; }
.pg-art { display: flex; justify-content: center; gap: 8px; padding: 18px 8px; border-radius: 16px; background: rgba(245, 243, 255, .05); }
.pg-art .sock { color: var(--paper); }
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-cards span { height: 46px; border-radius: 12px; background: rgba(245, 243, 255, .07); }
.cite { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; background: rgba(122, 60, 255, .16); box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .35); font-size: 14.5px; }
.cite svg { width: 30px; height: auto; flex: none; }
.js .play .pg { animation: mirror 6s cubic-bezier(.7, 0, .3, 1) 1.6s infinite; }
@keyframes mirror { 0%, 38% { transform: scaleX(1); } 50%, 88% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.browser .lang .l1 { background: var(--paper); color: var(--ink); }
.js .play .browser .lang .l1 { animation: langA 6s steps(1) 1.6s infinite; }
.js .play .browser .lang .l2 { animation: langB 6s steps(1) 1.6s infinite; }
@keyframes langA { 0% { background: var(--paper); color: var(--ink); } 44% { background: transparent; color: var(--muted-d); } 94% { background: var(--paper); color: var(--ink); } }
@keyframes langB { 0% { background: transparent; color: var(--muted-d); } 44% { background: var(--paper); color: var(--ink); } 94% { background: transparent; color: var(--muted-d); } }

/* App: phone builds, a notification drops in */
.phone-wrap { flex: 1; display: flex; justify-content: center; align-items: center; padding-block: 6px; }
.phone { position: relative; width: 210px; max-width: 100%; aspect-ratio: 9 / 17; border-radius: 34px; background: var(--paper); padding: 10px; box-shadow: 0 0 0 7px var(--night-3); overflow: hidden; }
.phone .notch { position: absolute; top: 9px; left: 50%; width: 64px; height: 17px; margin-left: -32px; border-radius: 999px; background: var(--night); z-index: 2; }
.phone .scr { height: 100%; border-radius: 26px; background: var(--surface); color: var(--ink); padding: 40px 14px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.phone .scr b { font: 700 19px/1.2 var(--display); }
.phone ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.phone li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 11px 10px; border-radius: 14px; background: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 0 var(--line-l); }
.phone li .bit { width: 9px; height: 9px; }
.phone li i { width: 7px; height: 7px; border-right: 1.6px solid var(--dim-l); border-bottom: 1.6px solid var(--dim-l); transform: rotate(-45deg); }
[dir="rtl"] .phone li i { transform: rotate(135deg); }
.phone .fab { position: absolute; inset-inline-end: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--violet); }
.phone .notif { position: absolute; top: 34px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 16px; background: var(--night-2); color: var(--paper); font-size: 12px; font-weight: 600; line-height: 1.3; box-shadow: 0 12px 26px rgba(15, 13, 26, .35); opacity: 0; }
.phone .notif svg { width: 26px; height: auto; flex: none; }
.js .play .phone .notif { animation: notif 4.4s 1.2s both infinite; }
@keyframes notif {
  0% { opacity: 0; transform: translateY(-90px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  8% { opacity: 1; }
  14% { transform: translateY(0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  19% { transform: translateY(-10px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  24%, 78% { transform: translateY(0); opacity: 1; }
  88%, 100% { transform: translateY(-90px); opacity: 0; }
}

/* Custom system: a bit runs the approval flow, sockets fill, a report exports */
.flow { position: relative; padding-block: 22px 6px; }
.flow .track { position: absolute; top: 37px; inset-inline: 15px; height: 2px; background: rgba(245, 243, 255, .14); border-radius: 2px; }
.flow .runner { position: absolute; top: -6px; inset-inline-start: 0; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(245, 243, 255, .12); opacity: 0; }
.js .play .flow .runner { animation: run 2.4s cubic-bezier(.65, 0, .35, 1) .5s both; }
@keyframes run { 0% { opacity: 0; inset-inline-start: 0%; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { inset-inline-start: 100%; opacity: 0; } }
.flow ol { list-style: none; display: flex; justify-content: space-between; position: relative; }
.flow li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 30px; }
.flow li small { font-size: 12.5px; color: var(--muted-d); white-space: nowrap; }
.flow li .sock { background: var(--night-2); color: #5A5383; }
.js .play .flow li .sock::after { animation: bitdrop .8s both; animation-delay: calc(.5s + var(--k) * 760ms); }
.js .play .flow li .sock { animation: lit .3s both; animation-delay: calc(.5s + var(--k) * 760ms); }
@keyframes lit { to { color: var(--paper); } }
.js .play .flow li small { animation: litt .3s both; animation-delay: calc(.5s + var(--k) * 760ms); }
@keyframes litt { to { color: var(--paper); } }
.sheet-x { border-radius: 18px; background: rgba(245, 243, 255, .05); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.xhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; }
.xbar { width: 40%; height: 8px; border-radius: 4px; background: rgba(245, 243, 255, .1); overflow: hidden; }
.xbar i { display: block; height: 100%; width: 0; background: #1F9D57; border-radius: 4px; }
.js .play .xbar i { animation: fillx 1.1s ease-out 3s both; }
@keyframes fillx { to { width: 100%; } }
.cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.cells i { height: 14px; border-radius: 4px; background: rgba(245, 243, 255, .08); }
.js .play .cells i { animation: cell .35s both; animation-delay: calc(3s + var(--k) * 45ms); }
@keyframes cell { to { background: rgba(31, 157, 87, .55); } }

/* IT: servers blink, tasks tick off */
.rack { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rack li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--night-3); font-size: 14px; font-weight: 600; }
.rack .lights { display: inline-flex; gap: 7px; }
.rack .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.js .play .rack .lights i { animation: blink var(--r) steps(2, jump-none) infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .2; } }
.itasks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.itasks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.itasks .sock { color: #5A5383; }
.js .play .itasks .tick::after { animation: bitdrop .8s both; animation-delay: var(--t); }

@media (prefers-reduced-motion: reduce) {
  .demo-svc .sock::after { opacity: 1 !important; transform: none !important; }
}

/* Google rating, full width under the 150+ number */
.rating { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-l);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(28px, 4vw, 64px); }
.r-score { display: flex; flex-direction: column; gap: 10px; }
.r-num { font: 700 clamp(64px, 8vw, 112px)/.9 var(--display); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
[dir="rtl"] .r-num { font-family: "Sora", var(--display); }
.r-of { font-size: 15px; color: var(--muted-l); max-width: 15em; line-height: 1.4; }
.r-stars { position: relative; width: max-content; max-width: 100%; justify-self: start; }
.r-base, .r-fill > div, .r-fill { display: flex; gap: clamp(4px, .6vw, 10px); }
.r-base { color: rgba(22, 18, 46, .12); }
.r-fill { position: absolute; top: 0; inset-inline-start: 0; height: 100%; overflow: hidden; color: var(--amber); }
.r-fill .star { flex: none; }
.r-base .star { animation: none !important; }
.r-text { flex-direction: row !important; align-items: center; gap: 16px !important; }
.r-text > div { display: flex; flex-direction: column; gap: 4px; }
.g-logo { width: clamp(38px, 3.4vw, 48px); height: auto; flex: none; }
.r-stars .star { width: clamp(34px, 3.6vw, 52px); height: auto; overflow: visible; }
.js .play .r-stars .star { animation: starpop .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--i) * 140ms); }
@keyframes starpop { 0% { transform: translateY(-60px) scale(.4); opacity: 0; } 55% { transform: translateY(0) scale(1.15); opacity: 1; } 75% { transform: scale(.95); } 100% { transform: none; opacity: 1; } }
.r-text { display: flex; flex-direction: column; gap: 4px; }
.r-text b { font: 600 clamp(19px, 1.7vw, 23px)/1.3 var(--display); letter-spacing: -.012em; }
.r-text span { color: var(--muted-l); }
.r-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
@media (max-width: 1100px) { .rating { grid-template-columns: auto minmax(0, 1fr); } .r-text, .r-links { grid-column: 1 / -1; } }
@media (max-width: 520px) { .rating { grid-template-columns: minmax(0, 1fr); } }

/* Neon sign in the footer (from the logo motion set): tubes power on with a flicker, then hum */
.neon { position: relative; display: flex; justify-content: center; margin-bottom: clamp(56px, 7vw, 96px); }
.neon-svg { position: relative; width: min(100%, 980px); height: auto; overflow: visible; }
[dir="rtl"] .neon-svg { width: min(100%, 860px); }
.neon-halo { position: absolute; inset: -10% 5%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 45, 135, .2), rgba(255, 45, 135, 0) 70%); }
.ftr-brand p { margin-top: 0; }
@keyframes neonOn { 0% { opacity: .08; } 2% { opacity: 1; } 4% { opacity: .1; } 7% { opacity: 1; } 9% { opacity: .25; } 11% { opacity: 1; } 14% { opacity: .1; } 16%, 100% { opacity: 1; } }
@keyframes neonBad { 0%, 86% { opacity: 1; } 87% { opacity: .15; } 88% { opacity: 1; } 89.5% { opacity: .15; } 91% { opacity: .6; } 92% { opacity: .15; } 94%, 100% { opacity: 1; } }
@keyframes bulbOn { 0% { opacity: .08; } 20% { opacity: .08; } 24% { opacity: 1; } 28% { opacity: .15; } 32%, 100% { opacity: 1; } }
@keyframes haloOn { 0% { opacity: 0; } 30% { opacity: .6; } 45%, 100% { opacity: 1; } }
.js .neon .nl, .js .neon .nb { opacity: .08; }
.js .neon .neon-halo { opacity: 0; }
.js .neon.play .nl { animation: neonOn 2.4s steps(1, end) var(--d) both; }
.js .neon.play .nl.bad { animation: neonOn 2.4s steps(1, end) var(--d) both, neonBad 9s steps(1, end) 4s infinite; }
.js .neon.play .nb { animation: bulbOn 2.6s steps(1, end) calc(1.2s + var(--i) * .22s) both; }
.js .neon.play .neon-halo { animation: haloOn 2.4s ease-out .8s both; }
@media (prefers-reduced-motion: reduce) { .js .neon .nl, .js .neon .nb, .js .neon .neon-halo { opacity: 1 !important; } }

/* Guides and blog */
.rd-side { display: flex; flex-direction: column; gap: 18px; padding-bottom: .4em; }
.reads { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.reads li { border-top: 1px solid var(--line-l); }
.reads a { display: flex; flex-direction: column; gap: 12px; padding-block: 28px 34px; text-decoration: none; color: var(--ink); }
.rd-meta { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted-l); }
.rd-meta .sock { --s: 20px; color: #C9C4DC; }
.rd-meta time::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-inline-end: 12px; vertical-align: middle; opacity: .6; }
.rd-title { font: 700 clamp(22px, 2.2vw, 30px)/1.18 var(--display); letter-spacing: -.025em; text-wrap: balance; }
[dir="rtl"] .rd-title { letter-spacing: 0; line-height: 1.4; }
.rd-desc { color: var(--muted-l); max-width: 38em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reads a:hover .rd-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.reads a:hover .sock::after, .reads a:focus-visible .sock::after { opacity: 1; transform: none; animation: bitdrop .8s both; }
.reads li:only-child { grid-column: 1 / -1; }
@media (max-width: 800px) { .reads { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1180px) { .nav > a, .nav > .menu > button { padding-inline: 10px; } }

/* Ways to reach us: WhatsApp, email, call, visit */
.acts { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.act { position: relative; }
.act > a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px 18px 14px 14px; border-radius: 24px; text-decoration: none; color: inherit; transition: background .2s; }
[dir="rtl"] .act > a { padding: 14px 14px 14px 18px; }
.night .act > a:hover, .night .act > a:focus-visible { background: var(--night-2); }
.paper .act > a:hover, .paper .act > a:focus-visible { background: var(--surface-2); }
.act-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(245, 243, 255, .08); color: var(--paper); }
.paper .act-ic { background: var(--ink); color: var(--paper); }
.act-ic svg { width: 24px; height: 24px; }
.a-wa .act-ic { background: #25D366; color: #fff; }
.a-wa .act-ic svg { width: 28px; height: 28px; }
.act-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-tx b { font: 600 clamp(19px, 1.7vw, 23px)/1.25 var(--display); letter-spacing: -.012em; }
.act-tx span { font-size: 15.5px; color: var(--muted-d); overflow-wrap: anywhere; }
.paper .act-tx span { color: var(--muted-l); }
[dir="rtl"] .act-tx .ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }
[dir="rtl"] .act-more .ltr { direction: ltr; unicode-bidi: isolate; }
.act > a:hover .act-ic { animation: hopIc .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes hopIc { 0% { transform: translateY(0); } 30% { transform: translateY(-8px); } 55% { transform: translateY(0); } 72% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.act-more { display: block; padding-inline-start: 84px; margin-top: -8px; padding-bottom: 6px; font-size: 14.5px; color: var(--muted-d); }
.paper .act-more { color: var(--muted-l); }
.act-more a { color: inherit; }
.act .copy { position: absolute; top: 26px; inset-inline-end: 16px; }
.night .act .copy { color: var(--muted-d); border-color: var(--line-d); }
.cta-grid { align-items: center; }

/* Footer centred under the neon sign */
.ftr { text-align: center; }
.ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; justify-items: center; }
.ftr-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.ftr-brand p { max-width: 34em; margin-inline: auto; }
.ftr .social { justify-content: center; margin-top: 0; }
.ftr ul { align-items: center; }
.ftr-grid > div:not(.ftr-brand) { min-width: 0; }
.ftr-base { justify-content: center; flex-direction: column; text-align: center; }
.ftr-base nav { justify-content: center; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: minmax(0, 1fr); } }

/* Compact footer */
.ftr { padding-top: clamp(40px, 5vw, 64px); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.neon { margin-bottom: clamp(20px, 2.5vw, 32px); }
.neon-svg { width: min(100%, 640px); }
[dir="rtl"] .neon-svg { width: min(100%, 560px); }
.ftr-grid { gap: 22px 32px; max-width: 760px; }
.ftr-brand { margin-bottom: 4px; }
.ftr h2 { margin-bottom: 10px; font-size: 14px; }
.ftr ul { gap: 6px; }
.ftr ul a { font-size: 15px; }
.ftr .social { gap: 16px; }
.ftr-base { margin-top: clamp(28px, 3.5vw, 40px); padding-top: 18px; gap: 8px; font-size: 13.5px; }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } .ftr-grid > div:nth-child(3) { grid-column: 1 / -1; order: 5; } }
/* Bottom row stays stretched: copyright at the start, legal links at the end */
.ftr-base { flex-direction: row; justify-content: space-between; text-align: start; }
.ftr-base nav { justify-content: flex-end; }
/* Links stretch across the footer under the centred neon sign */
.ftr { text-align: start; }
.ftr-grid { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr)); max-width: none; justify-items: stretch; gap: 24px 32px; }
.ftr-brand { grid-column: auto; align-items: flex-start; margin-bottom: 0; }
.ftr .social { justify-content: flex-start; flex-direction: column; gap: 6px; }
.ftr .social a { font-size: 15px; }
.ftr ul { align-items: flex-start; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr .social { flex-direction: row; gap: 16px; }
  .ftr-grid > div:nth-child(3) { grid-column: 1 / -1; order: 5; }
}

/* Social links in the conversation section */
.cta-social { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.cta-social > span { font-size: 15px; color: var(--muted-d); }
.cta-social > div { display: flex; gap: 10px; }
.cta-social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); background: rgba(245, 243, 255, .08); transition: background .2s, color .2s; }
.cta-social a svg { width: 22px; height: 22px; }
.cta-social a:hover, .cta-social a:focus-visible { animation: hopIc .7s cubic-bezier(.2, .8, .2, 1); }
.cta-social a[aria-label="LinkedIn"]:hover, .cta-social a[aria-label="LinkedIn"]:focus-visible { background: #0A66C2; color: #fff; }
.cta-social a[aria-label="Instagram"]:hover, .cta-social a[aria-label="Instagram"]:focus-visible { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); color: #fff; }
.cta-social a[aria-label="Facebook"]:hover, .cta-social a[aria-label="Facebook"]:focus-visible { background: #1877F2; color: #fff; }
/* Footer without social links: three columns stretched */
.ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) {
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid > div:nth-child(3) { grid-column: auto; order: 0; }
  .ftr-grid > div:nth-child(2) { grid-column: 1 / -1; order: 5; }
}

/* Start a conversation, inside the footer under the neon sign */
.ftr-conv { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center;
  padding-bottom: clamp(28px, 3.5vw, 44px); margin-bottom: clamp(28px, 3.5vw, 40px); border-bottom: 1px solid var(--line-d); }
.ftr .ftr-conv h2.ftr-h { font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--display); color: var(--paper); letter-spacing: -.035em; margin: 0 0 14px; }
[dir="rtl"] .ftr .ftr-conv h2.ftr-h { letter-spacing: 0; line-height: 1.3; }
.ftr-conv p { color: #CFCBE0; max-width: 30em; }
.ftr-conv .cta-social { margin-top: 22px; }
.ftr-conv .acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; align-items: start; }
.ftr-conv .act-ic { width: 46px; height: 46px; }
.ftr-conv .act > a { gap: 14px; padding-block: 12px; }
.ftr-conv .act-tx b { font-size: clamp(17px, 1.4vw, 19px); }
.ftr-conv .act-tx span { font-size: 14px; }
.ftr-conv .act-more { padding-inline-start: 74px; font-size: 13.5px; }
.ftr-conv .act > a:hover, .ftr-conv .act > a:focus-visible { background: var(--night-2); }
@media (max-width: 960px) { .ftr-conv { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ftr-conv .acts { grid-template-columns: minmax(0, 1fr); } }
.ftr-conv .act-more a { color: var(--muted-d); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
