/* ==========================================================================
   Payvand — design system
   Background identity: #08121E (base) and #142637 (alternate surface).
   Accent colours are taken from the Payvand logo (blue #0583F7 → teal #03D4CF).
   ========================================================================== */

:root {
  --bg: #08121E;
  --bg-alt: #142637;
  --surface: #0D1B2A;
  --surface-2: #172B3E;
  --surface-3: #1D354B;
  --border: rgba(160, 190, 225, 0.14);
  --border-strong: rgba(160, 190, 225, 0.26);
  --text: #F3F7FC;
  --text-soft: #C9D5E3;
  --muted: #9DB0C6;
  --logo-navy: #04225A;
  --logo-blue: #0583F7;
  --logo-teal: #03D4CF;
  --accent: #63E3D6;          /* links / highlights on dark (AA on --bg and --bg-alt) */
  --accent-strong: #54DFD0;   /* button fill, with dark text (--on-accent) */
  --accent-hover: #7AE8DC;
  --on-accent: #04212A;
  --accent-rgb: 84, 223, 208;
  --teal: #2FD9D3;
  --success: #3BD28F;
  --danger: #FF8A8A;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, 0.55);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--logo-teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Brand / logo ---------------------------------------------------
   The logo contains a deep navy shape (#04225A) that would disappear on the
   dark site background, so it always sits on a white tile. The logo itself
   is never recoloured. */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.65), 0 6px 18px -6px rgba(5, 131, 247, .55); flex: none; }
.brand-tile img { width: auto; height: 32px; }
.brand-word { line-height: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 18, 30, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.header-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--text-soft); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--text); background: rgba(var(--accent-rgb),.14); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.mobile-menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: grid; gap: 4px; padding: 12px 0 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav .nav-link { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
.mobile-nav .button { margin-top: 10px; }

/* Language picker */
.language-picker { position: relative; }
.language-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.language-trigger:hover { border-color: var(--accent); }
.globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.language-options { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; z-index: 60; }
.language-panel { display: grid; padding: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); }
.language-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.language-option:hover, .language-option:focus-visible { background: rgba(var(--accent-rgb),.14); text-decoration: none; }
.language-option small { color: var(--muted); font-weight: 500; font-family: var(--font-body); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; cursor: pointer; text-align: center; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { position: relative; overflow: hidden; background: var(--accent-strong); color: var(--on-accent); box-shadow: 0 10px 28px -12px rgba(var(--accent-rgb),.75); }
.button-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.button-primary:hover::after { transform: translateX(120%); }
.button-primary:hover { box-shadow: 0 14px 34px -12px rgba(var(--accent-rgb),.9); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-strong); }
.button-secondary:hover { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.button[disabled] { opacity: .65; cursor: progress; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-inline { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: none; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-heading h2 { margin: 0; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.section-heading.center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 760px; margin-inline: auto; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.accent-text { background: linear-gradient(90deg, #5DB2FF, var(--logo-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.section-alt .card { background: linear-gradient(180deg, rgba(8,18,30,.55), rgba(8,18,30,.35)); }
a.card:hover { text-decoration: none; }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); }
.icon-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, rgba(5,131,247,.32), rgba(3,212,207,.18)); border: 1px solid rgba(var(--accent-rgb),.35); }
.icon-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--accent); background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.28); }
.check-list { list-style: none; display: grid; gap: 12px; margin: 20px 0 0; }
.check-list li { position: relative; padding-inline-start: 32px; color: var(--text-soft); }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: rgba(47,217,211,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FD9D3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text-soft); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(47,217,211,.18); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 50% at 85% 10%, rgba(5,131,247,.20), transparent 65%),
  radial-gradient(45% 40% at 0% 100%, rgba(3,212,207,.10), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(160,190,225,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(160,190,225,.07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero .chip-row { margin-top: 30px; }
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 7vw, 80px); }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero-simple { max-width: 820px; }

/* ---------- Device mockups ---------- */
.browser { border-radius: 14px; overflow: hidden; background: #0A1724; border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.3); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #132536; border-bottom: 1px solid var(--border); }
.browser-dots { display: flex; gap: 6px; flex: none; } .browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3A4C5F; }
.browser-dots span:nth-child(1) { background: #FF6159; } .browser-dots span:nth-child(2) { background: #FFBD2E; } .browser-dots span:nth-child(3) { background: #28C941; }
.browser-url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); font-size: .78rem; font-family: var(--font-body); direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.browser img { width: 100%; aspect-ratio: var(--ratio, 2000 / 1107); object-fit: cover; object-position: top; }
.laptop { position: relative; padding-bottom: 4.2%; }
.laptop-screen { position: relative; border-radius: 18px 18px 6px 6px; padding: 2.2% 2.2% 2.6%; background: linear-gradient(180deg, #1F2A36, #10171F); border: 1px solid #2A3A4B; box-shadow: var(--shadow); }
.laptop-screen::before { content: ""; position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2E3D4C; }
.laptop-screen img { width: 100%; border-radius: 4px; aspect-ratio: var(--ratio, 2000 / 1107); object-fit: cover; object-position: top; }
.laptop-base { position: absolute; left: -7%; right: -7%; bottom: 0; height: 4.4%; min-height: 12px; border-radius: 0 0 22px 22px / 0 0 80% 80%; background: linear-gradient(180deg, #3A4A5A 0%, #1F2A36 55%, #121A23 100%); box-shadow: 0 18px 30px -12px rgba(0,0,0,.7); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 38%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #18212B; }
.mockup-stage { position: relative; }
.mockup-glow { position: absolute; inset: 10% 6% -4%; z-index: -1; background: radial-gradient(closest-side, rgba(5,131,247,.35), transparent); filter: blur(30px); }
.mockup-caption { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.media-frame { margin: 0; }

/* Floating transfer-journey card (illustrative, HTML so it is translatable) */
.journey-card { position: absolute; inset-inline-start: -6%; bottom: -10%; width: min(330px, 74%); padding: 16px 18px; border-radius: 18px; background: rgba(20, 38, 55, 0.94); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.journey-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.journey-card-title { color: var(--text); font-weight: 700; font-size: .92rem; }
.journey-card-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.journey-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.journey-steps::before { content: ""; position: absolute; top: 11px; inset-inline: 10%; height: 2px; background: var(--surface-3); }
.journey-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .68rem; line-height: 1.25; color: var(--muted); }
.journey-steps .node { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--surface-3); display: grid; place-items: center; transition: background .4s, border-color .4s, box-shadow .4s; }
.journey-steps .node svg { width: 12px; height: 12px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.journey-steps li.done .node { background: var(--accent-strong); border-color: var(--accent-strong); }
.journey-steps li.done .node svg { opacity: 1; }
.journey-steps li.current .node { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(47,217,211,.18); }
.journey-steps li.done, .journey-steps li.current { color: var(--text-soft); }

/* ---------- Video ---------- */
.video-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.video-layout.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.video-layout.reverse .video-frame { order: 2; }
.video-frame { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #EEF2F7; border: 1px solid var(--border-strong); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #EEF2F7; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: linear-gradient(180deg, rgba(8,18,30,0) 40%, rgba(8,18,30,.45)); cursor: pointer; color: #fff; }
.video-play-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 10px rgba(var(--accent-rgb),.22), var(--shadow); transition: transform .25s var(--ease); }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { transform: scale(1.06); }
.video-play-icon svg { width: 28px; height: 28px; margin-inline-start: 4px; fill: currentColor; }
.video-play-label { position: absolute; bottom: 16px; inset-inline-start: 18px; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.video-frame.is-playing .video-play { display: none; }
.video-note { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.step-list { list-style: none; display: grid; gap: 10px; counter-reset: step; }
.step-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.step-list li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--accent); background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.3); }
.step-list li.active { border-color: rgba(47,217,211,.5); background: rgba(47,217,211,.06); }
.step-list strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.step-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Timeline (workflow) ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; top: 23px; inset-inline: 24px; height: 2px; background: linear-gradient(90deg, var(--logo-blue), var(--logo-teal)); opacity: .5; }
[dir="rtl"] .timeline::before { background: linear-gradient(270deg, var(--logo-blue), var(--logo-teal)); }
.timeline li { position: relative; }
.timeline li::before { counter-increment: tl; content: counter(tl, decimal-leading-zero); position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; color: #fff; background: var(--bg); border: 1px solid rgba(var(--accent-rgb),.5); box-shadow: 0 0 0 6px var(--bg); }
.section-alt .timeline li::before { background: var(--bg-alt); box-shadow: 0 0 0 6px var(--bg-alt); }
.timeline h3 { font-size: 1.08rem; }
.timeline p { color: var(--muted); margin: 0; font-size: .96rem; }
.callout { margin-top: 32px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--border-strong); color: var(--text-soft); font-size: .95rem; background: rgba(255,255,255,.02); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }

/* ---------- Problem loop ---------- */
.loop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.loop-grid .card { position: relative; }
.loop-arrow { position: absolute; top: 50%; inset-inline-end: -17px; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--border-strong); color: var(--accent); }
.loop-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.loop-result { margin-top: 28px; display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(5,131,247,.16), rgba(3,212,207,.08)); border: 1px solid rgba(var(--accent-rgb),.3); color: var(--text); font-weight: 600; }
.loop-result .icon-badge { margin: 0; flex: none; }

/* ---------- Stat-free highlight list ---------- */
.gap-list { display: grid; gap: 14px; margin-top: 24px; }
.gap-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.gap-item .num { margin: 0; }
.gap-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.gap-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.signal-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Solutions detail ---------- */
.solution-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.solution-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--border); }
.solution-block:first-child { border-top: 0; }
.solution-block h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.solution-block .card { height: 100%; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(135deg, #10304D 0%, #142637 45%, #0E2A3A 100%); border: 1px solid rgba(var(--accent-rgb),.3); box-shadow: var(--shadow); }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -120px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(3,212,207,.22), transparent); pointer-events: none; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0; color: var(--text-soft); max-width: 56ch; }
.cta-band .button-row { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-aside .contact-direct { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 12px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--text); font-weight: 600; }
.contact-aside .contact-direct:hover { border-color: var(--accent); text-decoration: none; }
.contact-direct .icon-badge { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.contact-direct small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.contact-form { display: grid; gap: 18px; }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--text); font-weight: 600; font-size: .92rem; }
.form-field .optional { color: var(--muted); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DB0C6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; }
[dir="rtl"] .form-field select { background-position: left 14px center; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.2); }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; min-height: 0; margin: 0; }
.field-error:empty { display: none; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-note { margin: 0; font-size: .88rem; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: var(--success); padding: 12px 14px; border-radius: 12px; background: rgba(59,210,143,.1); border: 1px solid rgba(59,210,143,.35); }
.form-status[data-state="error"] { color: var(--danger); padding: 12px 14px; border-radius: 12px; background: rgba(255,138,138,.08); border: 1px solid rgba(255,138,138,.35); }
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #060E17; border-top: 1px solid var(--border); padding-block: clamp(48px, 7vw, 72px) 28px; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 16px 0 0; color: var(--muted); max-width: 34ch; font-size: .95rem; }
.footer-column h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.footer-column a { display: block; padding: 6px 0; color: var(--text-soft); font-size: .95rem; }
.footer-column a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.legal-labels { display: flex; gap: 18px; }
.legal-labels span { color: var(--muted); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(min(var(--steps, 4), 3), minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .desktop-nav, .header-tools .header-action { display: none; }
  .mobile-menu-toggle { display: grid; }
  .hero-grid, .page-hero .hero-grid, .split, .video-layout, .video-layout.reverse, .contact-layout, .solution-block { grid-template-columns: minmax(0, 1fr); }
  .video-layout.reverse .video-frame { order: 0; }
  .split.reverse > :first-child { order: 0; }
  .section-heading { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .loop-grid { grid-template-columns: minmax(0, 1fr); }
  .loop-arrow { top: auto; bottom: -17px; inset-inline-end: auto; left: 50%; margin: 0 0 0 -17px; transform: rotate(90deg); }
  [dir="rtl"] .loop-arrow { transform: rotate(90deg) scaleY(-1); }
  .hero-visual { margin-bottom: 40px; }
  .journey-card { inset-inline-start: 4%; bottom: -36px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: .98rem; }
  .grid-2, .grid-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; padding-bottom: 24px; }
  .timeline li::before { margin: 0; grid-row: span 2; }
  .timeline li:not(:last-child)::after { content: ""; position: absolute; top: 54px; bottom: 4px; inset-inline-start: 23px; width: 2px; background: linear-gradient(180deg, rgba(var(--accent-rgb),.5), rgba(3,212,207,.2)); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button-row .button { flex: 1 1 100%; }
  .brand-tile { width: 40px; height: 40px; } .brand-tile img { height: 28px; }
  .journey-card { position: relative; inset: auto; width: 100%; margin-top: 16px; }
  .hero-visual { margin-bottom: 0; }
  .laptop-base { left: -4%; right: -4%; }
  .language-trigger .lang-label { display: none; }
  .language-trigger { padding: 0 12px; }
  .browser-url { font-size: .7rem; }
  .video-play-icon { width: 60px; height: 60px; }
  .loop-result { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Video chapters & receipt list ---------- */
.step-list .chapter { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.step-list .chapter:focus-visible { outline-offset: 6px; }
.step-list li:has(.chapter):hover { border-color: rgba(var(--accent-rgb),.4); }
.step-list.receipts { counter-reset: none; margin-top: 6px; }
.step-list.receipts li { grid-template-columns: 28px 1fr; align-items: center; padding: 12px 14px; }
.step-list.receipts li::before { content: none; }
.step-list.receipts .node { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid; }
.step-list.receipts .node svg { width: 13px; height: 13px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step-list.receipts strong { font-size: .95rem; }
.step-list.receipts span { font-size: .85rem; }

/* ==========================================================================
   Interactive layer (v2)
   ========================================================================== */

/* Scroll progress */
.scroll-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--logo-blue), var(--accent-strong)); }
[dir="rtl"] .scroll-progress span { transform-origin: right; }

/* Animated hero background */
.hero::before { animation: hero-drift 18s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

/* Cards: lift, glow border and a spotlight that follows the pointer */
.card { position: relative; isolation: isolate; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), .14), transparent 60%); }
.card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 22px 44px -22px rgba(0,0,0,.7), 0 0 0 1px rgba(var(--accent-rgb), .12); }
.card:hover::before { opacity: 1; }
.card .icon-badge { transition: transform .35s var(--ease), background .35s, border-color .35s; }
.card:hover .icon-badge { transform: translateY(-2px) rotate(-6deg) scale(1.06); border-color: rgba(var(--accent-rgb), .7); background: linear-gradient(135deg, rgba(var(--accent-rgb), .35), rgba(5,131,247,.25)); }
.card:hover .text-link svg { transform: translateX(4px); }
[dir="rtl"] .card:hover .text-link svg { transform: scaleX(-1) translateX(4px); }
.text-link svg { transition: transform .3s var(--ease); }
.contact-form.card:hover, .cta-band:hover { transform: none; }
.gap-item, .step-list li, .contact-direct { transition: transform .3s var(--ease), border-color .3s, background .3s; }
.gap-item:hover { transform: translateX(4px); border-color: rgba(var(--accent-rgb), .4); }
[dir="rtl"] .gap-item:hover { transform: translateX(-4px); }
.chip { transition: border-color .25s, color .25s, background .25s; }
a.chip:hover, .signal-cloud .chip:hover { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), .08); text-decoration: none; }

/* 3D tilt wrapper (pointer-driven in main.js) */
.tilt { --rx: 0deg; --ry: 0deg; position: relative; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear; }
.screen-media { position: relative; overflow: hidden; line-height: 0; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.14), transparent 45%); opacity: .7; transition: opacity .3s; }

/* Floating screen (replaces the laptop) */
.screen-stage { padding: 4% 3% 6%; }
.screen { position: relative; border-radius: 18px; padding: 8px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4), 0 0 60px -10px rgba(var(--accent-rgb), .18); animation: float-y 7s ease-in-out infinite; }
.screen .screen-media { border-radius: 11px; }
.screen img { width: 100%; aspect-ratio: var(--ratio); object-fit: cover; object-position: top; }
.scanline { position: absolute; inset-inline: 0; top: -30%; height: 30%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .10), transparent); animation: scan 6s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 60%, 100% { top: 110%; } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Pulsing highlights over live dashboard widgets */
.hotspot { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); animation: pulse 2.8s ease-out infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .65); opacity: 1; } 70% { box-shadow: 0 0 0 18px rgba(var(--accent-rgb), 0); opacity: .9; } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); opacity: .9; } }

/* Floating status chips */
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: .82rem; font-weight: 700; color: var(--text); background: rgba(20, 38, 55, .92); border: 1px solid var(--border-strong); box-shadow: var(--shadow-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateZ(40px); animation: float-chip 6s ease-in-out infinite; }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); animation: blink 2s ease-in-out infinite; }
.float-chip .tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-strong); }
.float-chip .tick svg { width: 11px; height: 11px; fill: none; stroke: var(--on-accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.chip-a { top: 0; inset-inline-end: 4%; }
.chip-b { bottom: 0; inset-inline-start: 0; animation-delay: -3s; }
@keyframes float-chip { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes blink { 50% { opacity: .45; } }

/* Smartphone mockup */
.phone-figure { display: grid; place-items: center; }
.phone-stage { width: min(330px, 78vw); margin-inline: auto; padding: 30px 0; --rx: 4deg; --ry: -14deg; }
[dir="rtl"] .phone-stage { --ry: 14deg; }
.phone { position: relative; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #2B3A4A 0%, #0F1923 45%, #1F2D3B 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 5px #070D14, 0 50px 90px -30px rgba(0,0,0,.9), 0 0 70px -20px rgba(var(--accent-rgb), .3); animation: float-y 6.5s ease-in-out infinite; }
.phone-btn { position: absolute; inset-inline-start: -3px; width: 3px; border-radius: 3px 0 0 3px; background: #2B3A4A; }
.phone-btn-1 { top: 22%; height: 56px; } .phone-btn-2 { top: 34%; height: 56px; }
.phone-screen { position: relative; overflow: hidden; border-radius: 42px; background: #F7F9FC; line-height: 0; }
.phone-screen img { width: 100%; aspect-ratio: 820 / 1645; object-fit: cover; object-position: top; }
.phone-status { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; height: 46px; color: #0B1520; font: 700 13px/1 var(--font-body); direction: ltr; }
.phone-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #05090E; }
.phone-icons { display: inline-flex; gap: 3px; align-items: flex-end; }
.phone-icons i { display: block; width: 4px; border-radius: 1px; background: #0B1520; }
.phone-icons i:nth-child(1) { height: 5px; } .phone-icons i:nth-child(2) { height: 8px; } .phone-icons i:nth-child(3) { width: 18px; height: 9px; border-radius: 3px; margin-left: 4px; }
/* An animated "tap" walks through the registration steps: role → terms → register */
.tap { position: absolute; z-index: 2; left: 50%; top: 25.5%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(5,131,247,.25); border: 2px solid rgba(5,131,247,.65); animation: tap-path 6s ease-in-out infinite; pointer-events: none; }
@keyframes tap-path {
  0%, 8% { left: 50%; top: 25.5%; transform: scale(1); }
  12% { transform: scale(.7); } 16%, 36% { left: 50%; top: 25.5%; transform: scale(1); }
  44%, 52% { left: 9%; top: 31.5%; transform: scale(1); } 56% { transform: scale(.7); } 60%, 70% { left: 9%; top: 31.5%; transform: scale(1); }
  80%, 86% { left: 50%; top: 37.5%; transform: scale(1); } 90% { transform: scale(.7); } 94%, 100% { left: 50%; top: 37.5%; transform: scale(1); opacity: 0; }
}
.orbit { position: absolute; z-index: -1; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), .28); pointer-events: none; }
.orbit-1 { width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; animation: spin 40s linear infinite; }
.orbit-2 { width: 115%; aspect-ratio: 1; margin: -57.5% 0 0 -57.5%; border-style: solid; border-color: rgba(5,131,247,.18); animation: spin 28s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.role-chip { animation-duration: 7s; }
.role-0 { top: 14%; inset-inline-end: -38%; }
.role-1 { top: 44%; inset-inline-start: -40%; animation-delay: -2s; }
.role-2 { top: 72%; inset-inline-end: -34%; animation-delay: -4s; }
.phone-chip { bottom: 4%; inset-inline-start: -22%; }

/* Videos: play automatically when visible, with a pause control */
.video-frame video { pointer-events: none; user-select: none; -webkit-user-select: none; }
.video-toggle { position: absolute; z-index: 2; bottom: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(8,18,30,.72); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.video-toggle:hover { transform: scale(1.08); background: rgba(8,18,30,.9); }
.video-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.video-toggle .i-pause { display: none; }
.video-frame.is-playing .video-toggle .i-pause { display: block; }
.video-frame.is-playing .video-toggle .i-play { display: none; }
.video-badge { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; background: rgba(8,18,30,.65); }
.video-progress { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; height: 4px; background: rgba(8,18,30,.25); }
.video-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--vp, 0)); background: linear-gradient(90deg, var(--logo-blue), var(--accent-strong)); }
[dir="rtl"] .video-progress span { transform-origin: right; }
.step-list li.active { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .07); transform: translateX(4px); }
[dir="rtl"] .step-list li.active { transform: translateX(-4px); }
.step-list li.active::before { background: var(--accent-strong); color: var(--on-accent); border-color: var(--accent-strong); }

/* Staggered reveals inside grids */
.js .grid-2 > .reveal:nth-child(2), .js .grid-3 > .reveal:nth-child(2), .js .grid-4 > .reveal:nth-child(2), .js .loop-grid > .reveal:nth-child(2), .js .timeline > .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid-3 > .reveal:nth-child(3), .js .grid-4 > .reveal:nth-child(3), .js .loop-grid > .reveal:nth-child(3), .js .timeline > .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid-4 > .reveal:nth-child(4), .js .timeline > .reveal:nth-child(4) { transition-delay: .24s; }
.js .timeline > .reveal:nth-child(5) { transition-delay: .32s; } .js .timeline > .reveal:nth-child(6) { transition-delay: .4s; }

@media (max-width: 960px) {
  .role-0 { inset-inline-end: -18%; } .role-1 { inset-inline-start: -20%; } .role-2 { inset-inline-end: -14%; } .phone-chip { inset-inline-start: -8%; }
}
@media (max-width: 640px) {
  .float-chip { font-size: .72rem; padding: 7px 11px; }
  .chip-a { inset-inline-end: 0; top: -6px; }
  .phone-stage { width: min(260px, 70vw); --rx: 2deg; --ry: -8deg; }
  [dir="rtl"] .phone-stage { --ry: 8deg; }
  .role-0 { inset-inline-end: -14%; } .role-1 { inset-inline-start: -16%; } .role-2 { inset-inline-end: -10%; } .phone-chip { display: none; }
  .phone { border-radius: 42px; padding: 9px; } .phone-screen { border-radius: 34px; }
  .card:hover { transform: none; }
}
@media (hover: none) { .card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen, .phone, .float-chip, .hotspot, .scanline, .tap, .orbit, .hero::before { animation: none !important; }
  .tilt { transform: none !important; }
}
.card::before { border-radius: inherit; }
.loop-grid .card { overflow: visible; }
/* Keep decorative orbits and chips from widening the page */
.phone-figure { overflow: clip; overflow-clip-margin: 24px; }
.phone-figure { padding-block: 12px; }
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .role-0 { inset-inline-end: -8%; } .role-1 { inset-inline-start: -10%; } .role-2 { inset-inline-end: -6%; }
  .orbit-1 { width: 125%; margin: -62.5% 0 0 -62.5%; }
}
.phone-status { height: 34px; padding-top: 8px; font-size: 12px; }
.phone-island { top: 7px; height: 22px; width: 80px; margin-left: -40px; }
