/* ==========================================================================
   Digital Pass — website styles
   Built on the Digital Pass brand guidelines v1.0: palette & gradient (p.14–17),
   IBM Plex type (p.18–20), corner radii & elevation (p.23), product shots (p.25).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0A1B3D;
  --deep: #060F24;
  --ink: #2C3A58;
  --slate: #64708A;
  --slate-2: #8C97AD;
  --mist: #DCE3EF;
  --line: #E3E8F1;
  --cloud: #F4F7FC;
  --white: #FFFFFF;

  --blue: #2D63FC;
  --cyan: #1FC8F6;
  --b50: #F2F6FF; --b100: #E2E9FF; --b200: #C0D0FE; --b300: #96B1FE; --b400: #628AFD;
  --b600: #2655D6; --b700: #1F46B0; --b800: #183889; --b900: #122B67;

  --success: #12B76A; --warning: #F5A524; --error: #F04438;

  --grad: linear-gradient(150deg, #1FC8F6 0%, #2D63FC 100%);

  --r-s: 10px; --r-m: 16px; --r-l: 28px; --r-pill: 999px;

  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font: var(--font-ar);

  --header-h: 80px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="en"] { --font: var(--font-en); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
html[lang="en"] .alt-en { display: none; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }

.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */
.h2 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.18; font-weight: 700; }
html[lang="en"] .h2 { letter-spacing: -.02em; line-height: 1.1; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--blue);
}
.label::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }
.label--light { color: var(--cyan); }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--cyan);
}

.section { padding: clamp(96px, 11vw, 152px) 0; }
.section-top {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: end;
  gap: 24px 64px; margin-bottom: clamp(48px, 6vw, 80px);
}
.section-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--slate); max-width: 30em; }

/* ---------- Buttons (radius 10, guide p.31) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s, translate .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 14.5px; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 16.5px; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--b600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--b100); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .26); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .05); }

.arrow { transition: transform .25s var(--ease); }
[dir="ltr"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arrow { transform: scaleX(-1) translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--navy);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, color .3s;
}
/* Transparent over the dark hero until the page scrolls */
.js .site-header:not(.is-scrolled):not(.menu-open) {
  background: transparent; border-bottom-color: transparent; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; direction: ltr; } /* the lockup never mirrors */
.brand-symbol { width: 25px; height: 35px; fill: url(#dp-grad); }
.wordmark { font-family: var(--font-en); font-weight: 700; font-size: 18px; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.wm-pass { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--blue); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.main-nav a:not(.btn) { position: relative; padding: 8px 14px; font-size: 15.5px; font-weight: 500; opacity: .82; transition: opacity .2s; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { opacity: 1; }
.main-nav a.is-active::after { content: ""; position: absolute; inset: auto 14px 0; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-toggle {
  min-width: 46px; height: 42px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent);
  font-family: var(--font-en); font-size: 14px; font-weight: 600; transition: border-color .2s;
}
html[lang="en"] .lang-toggle { font-family: var(--font-ar); }
.lang-toggle:hover { border-color: currentColor; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-s); place-items: center; }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 960px);
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--deep);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -10%; inset-inline-end: -10%;
  width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(45, 99, 252, .42), rgba(31, 200, 246, .08) 60%, transparent);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(6, 15, 36, .7));
  pointer-events: none;
}
.hero-mark {
  --mh: clamp(560px, 108vh, 1020px);
  position: absolute; z-index: -1; top: 7%; inset-inline-end: -5vw;
  height: var(--mh); width: calc(var(--mh) * .7075);
  fill: url(#dp-grad);
}
.hero-inner { flex: 1; display: flex; align-items: center; padding: 48px 0 64px; }
.hero-copy { max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .72); margin-bottom: 28px; }
.eyebrow { padding: 7px 16px 7px 14px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.eyebrow-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.eyebrow-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.hero-title { font-size: clamp(52px, 8.4vw, 124px); line-height: 1.1; font-weight: 700; }
html[lang="en"] .hero-title { letter-spacing: -.035em; line-height: 1.02; }
.hero-lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.8; color: rgba(255, 255, 255, .7); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.hero-foot { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-foot::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background: rgba(6, 15, 36, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-caps { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-caps li { display: flex; align-items: baseline; gap: 12px; padding: 26px 0 30px; font-size: 15.5px; color: rgba(255, 255, 255, .82); }
.hero-caps li + li { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.cap-num { font-family: var(--mono); font-size: 12px; color: var(--cyan); }

/* ---------- About ---------- */
.statement { font-size: clamp(30px, 4.3vw, 58px); line-height: 1.35; font-weight: 700; max-width: 17em; }
html[lang="en"] .statement { letter-spacing: -.02em; line-height: 1.2; }
.statement .soft { color: var(--slate-2); }
.about-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 48px; border-top: 1px solid var(--line);
}
.about-text { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.9; color: var(--ink); }
.about-vm { display: grid; gap: 36px; }
.vm-title { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.vm p { font-size: 18px; line-height: 1.8; color: var(--navy); font-weight: 500; }

/* ---------- Services ---------- */
.services { background: var(--cloud); }
.svc-group + .svc-group { margin-top: 80px; }
.svc-group-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1.5px solid var(--navy);
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.svc-count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--slate); direction: ltr; }

.svc {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, .85fr) minmax(0, 1.3fr) 52px;
  align-items: center; gap: 32px;
  padding: 36px 20px; border-bottom: 1px solid #D9E0EC;
  transition: background-color .35s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 3px;
  background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.svc:hover { background: #fff; }
.svc:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--mono); font-size: 13px; color: var(--slate); }
.svc-title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; font-weight: 700; transition: color .3s; }
.svc:hover .svc-title { color: var(--blue); }
.svc-body { display: grid; gap: 12px; }
.svc-desc { font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.svc-tags { font-size: 13.5px; font-weight: 500; color: var(--slate); }
.svc-go {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #C9D3E4; color: var(--navy);
  transition: background-color .3s, border-color .3s, color .3s, transform .35s var(--ease);
}
.svc-go .icon { width: 20px; height: 20px; }
[dir="ltr"] .svc-go .icon { transform: scaleX(-1); }
.svc:hover .svc-go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-8deg); }
[dir="ltr"] .svc:hover .svc-go { transform: rotate(8deg); }

/* ---------- Showcase (product shots, guide p.25) ---------- */
.showcase {
  color: #fff;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(45, 99, 252, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--deep);
}
.showcase .section-lead { color: rgba(255, 255, 255, .62); }

.bento {
  display: grid; gap: 20px;
  grid-template-columns: 1.55fr 1fr;
  grid-template-areas: "dash phone" "store phone";
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px 32px 0; border-radius: var(--r-l);
  border: 1px solid rgba(255, 255, 255, .08);
}
.tile--dash { grid-area: dash; background: var(--grad); }
.tile--store { grid-area: store; background: linear-gradient(160deg, #183889 0%, #0A1B3D 85%); }
.tile--phone { grid-area: phone; background: linear-gradient(175deg, #0E2250 0%, #0A1B3D 55%, #122B67 100%); }
.tile-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.tile-cap strong { font-size: 19px; font-weight: 600; }
.tile-cap span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.tile-shot { container-type: inline-size; flex: 1; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.tile--dash .tile-shot, .tile--store .tile-shot { height: clamp(250px, 29vw, 390px); flex: none; }

/* Mocks are decorative product shots; sizes scale with the tile (em-based) */
.mock { font-family: var(--font-ar); color: var(--navy); line-height: 1.5; text-align: right; }
.mock b, .mock strong { font-weight: 600; }
.mock-browser {
  width: 100%; font-size: clamp(7px, 1.42cqw, 12.5px);
  background: #fff; border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(6, 15, 36, .55);
}
.mb-bar { display: flex; align-items: center; gap: .5em; height: 2.7em; padding: 0 1.1em; background: var(--cloud); border-bottom: 1px solid var(--line); }
.mb-bar i { width: .8em; height: .8em; border-radius: 50%; background: #FF5F57; }
.mb-bar i:nth-child(2) { background: #FEBC2E; }
.mb-bar i:nth-child(3) { background: #28C840; }
.mb-url { margin-inline: auto; padding: .15em 3em; border-radius: .5em; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: .85em; color: var(--slate); }

.mb-body { display: grid; grid-template-columns: 10em 1fr; }
.mb-side { display: flex; flex-direction: column; gap: .25em; padding: 1.3em .8em; background: var(--navy); color: rgba(255, 255, 255, .6); }
.mb-logo { width: 2em; height: 2em; border-radius: .45em; background: var(--grad); margin: 0 .6em 1.2em; }
.mb-side b { font-weight: 500; padding: .55em .7em; border-radius: .55em; }
.mb-side b.on { background: rgba(45, 99, 252, .4); color: #fff; }
.mb-main { display: grid; gap: 1em; padding: 1.4em; background: #F8FAFE; }
.mb-head { display: flex; justify-content: space-between; align-items: center; }
.mb-head strong { font-size: 1.3em; font-weight: 700; }
.mb-pill { padding: .2em .9em; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: .85em; color: var(--slate); }
.mb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.kpi { display: grid; gap: .15em; padding: .9em 1em; border-radius: .8em; background: #fff; border: 1px solid var(--line); }
.kpi span { font-size: .85em; color: var(--slate); }
.kpi strong { font-family: var(--font-en); font-size: 1.75em; font-weight: 700; line-height: 1.2; }
.kpi em { justify-self: start; font-style: normal; font-family: var(--font-en); font-size: .78em; font-weight: 600; color: #0C7A47; background: #E7F8EF; border-radius: 99px; padding: .05em .6em; direction: ltr; }
.mb-chart { padding: 1em 1.1em; border-radius: .8em; background: #fff; border: 1px solid var(--line); }
.mb-chart-head { display: flex; justify-content: space-between; }
.mb-chart-head span { font-size: .8em; color: var(--slate); }
.bars { display: flex; align-items: flex-end; gap: .55em; height: 7.5em; margin-top: .9em; }
.bars i { flex: 1; height: var(--h); border-radius: .3em .3em 0 0; background: var(--b100); }
.bars i.hi { background: var(--grad); }
.mb-table { border-radius: .8em; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.tr { display: grid; grid-template-columns: 1fr 2fr 1.4fr; align-items: center; padding: .65em 1.1em; border-top: 1px solid #EEF2F8; font-size: .92em; }
.tr.th { border-top: 0; background: #FAFBFE; font-size: .8em; color: var(--slate); }
.tr .mono { font-size: .9em; color: var(--slate); }
.st { justify-self: start; padding: .1em .75em; border-radius: 99px; font-size: .85em; font-weight: 600; }
.st--ok { background: #E7F8EF; color: #0C7A47; }
.st--run { background: var(--b100); color: var(--b700); }
.st--wait { background: #FEF3E2; color: #A35F00; }

/* Store */
.st-nav { display: flex; align-items: center; gap: 1.8em; padding: 1em 1.5em; border-bottom: 1px solid #EEF2F8; font-size: .95em; color: var(--ink); }
.st-logo { font-size: 1.2em; font-weight: 700 !important; color: var(--navy); }
.st-cart { margin-inline-start: auto; padding: .3em 1em; border-radius: 99px; background: var(--navy); color: #fff; font-size: .85em; }
.st-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; margin: 1.2em 1.5em; padding: 1.7em 2em; border-radius: 1em; background: var(--grad); color: #fff; overflow: hidden; }
.st-hero-tx small { font-size: .85em; opacity: .85; }
.st-hero-tx strong { display: block; margin: .3em 0 .9em; font-size: 1.75em; line-height: 1.3; font-weight: 700; }
.st-btn { display: inline-block; padding: .45em 1.2em; border-radius: .5em; background: #fff; color: var(--blue); font-size: .9em; font-weight: 600; }
.st-hero-art { position: relative; height: 7.5em; }
.st-hero-art i { position: absolute; width: 3.2em; height: 3.2em; border-radius: .7em; background: #fff; }
.st-hero-art i:nth-child(1) { inset-inline-start: 1.5em; top: .4em; opacity: .9; }
.st-hero-art i:nth-child(2) { inset-inline-start: 1.5em; top: 4.2em; opacity: .55; }
.st-hero-art i:nth-child(3) { inset-inline-start: 5.3em; top: 4.2em; opacity: .3; }
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; padding: 0 1.5em 1.5em; }
.prod { display: grid; gap: .3em; font-size: .9em; color: var(--ink); }
.prod b { color: var(--navy); font-family: var(--font-en); }
.prod-img { position: relative; aspect-ratio: 1; border-radius: .8em; background: linear-gradient(150deg, var(--a), var(--b)); margin-bottom: .3em; }
.prod-img::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; background: rgba(255, 255, 255, .45); }

/* Phone */
.mock-phone {
  position: relative; width: min(76cqw, 340px); aspect-ratio: 9 / 19.2;
  font-size: min(3.1cqw, 13.8px);
  padding: .6em; border-radius: 3.2em; background: #0B1428;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(0, 0, 0, .7);
  margin-top: 1em;
}
.ph-island { position: absolute; z-index: 2; top: 1.35em; left: 50%; width: 7.5em; height: 2.1em; margin-left: -3.75em; border-radius: 99px; background: #000; }
.ph-screen { position: relative; display: flex; flex-direction: column; gap: .9em; height: 100%; padding: 4em 1.3em 1.2em; border-radius: 2.6em; background: var(--cloud); overflow: hidden; }
.ph-status { position: absolute; top: 1.2em; inset-inline: 2em; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-en); font-size: .95em; font-weight: 600; }
.ph-sig { display: flex; align-items: flex-end; gap: .15em; }
.ph-sig i { width: .3em; background: var(--navy); border-radius: .1em; }
.ph-sig i:nth-child(1) { height: .45em; } .ph-sig i:nth-child(2) { height: .7em; } .ph-sig i:nth-child(3) { height: .95em; }
.ph-hello small { display: block; font-size: .9em; color: var(--slate); }
.ph-hello strong { font-size: 1.75em; font-weight: 700; line-height: 1.3; }
.ph-card { display: grid; gap: .3em; padding: 1.2em 1.3em; border-radius: 1.4em; background: var(--grad); color: #fff; box-shadow: 0 1em 2em -1em rgba(45, 99, 252, .6); }
.ph-card small { font-size: .85em; opacity: .88; }
.ph-card strong { font-size: 1.35em; font-weight: 700; }
.ph-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35em; margin: .45em 0 .2em; }
.ph-steps i { height: .42em; border-radius: 99px; background: rgba(255, 255, 255, .32); }
.ph-steps i.on { background: #fff; }
.ph-sec { margin-top: .2em; font-weight: 700; }
.ph-item { display: flex; align-items: center; gap: .8em; padding: .75em .8em; border-radius: 1em; background: #fff; border: 1px solid var(--line); }
.ph-ic { width: 2.6em; height: 2.6em; flex: none; border-radius: .75em; background: var(--b100); }
.ph-ic--2 { background: #DFF6FE; }
.ph-ic--3 { background: #FEEFEE; }
.ph-tx { display: grid; flex: 1; line-height: 1.35; }
.ph-tx b { font-size: .95em; }
.ph-tx small { font-size: .8em; color: var(--slate); }
.ph-amt { font-size: .92em; font-weight: 700; }
.ph-tabs { display: flex; justify-content: space-around; margin-top: auto; padding: .9em; border-radius: 1.3em; background: #fff; border: 1px solid var(--line); }
.ph-tabs i { width: 1.5em; height: 1.5em; border-radius: .45em; background: var(--mist); }
.ph-tabs i.on { background: var(--grad); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); }
.process li { position: relative; padding: 36px 0 0; padding-inline-end: 40px; border-top: 1px solid var(--mist); }
.process li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 56px; height: 2px; background: var(--grad); }
.p-num {
  display: inline-block; font-family: var(--font-en); font-size: clamp(64px, 7vw, 108px); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--b200);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; background-size: 100% 0%; background-repeat: no-repeat; background-position: bottom;
  transition: background-size .5s var(--ease), -webkit-text-stroke-color .5s;
}
.process li:hover .p-num { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.p-title { margin: 10px 0 10px; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.3; font-weight: 700; }
.process p { font-size: 16.5px; color: var(--ink); max-width: 22em; }

/* ---------- Why / values (bento) ---------- */
.why { background: var(--cloud); }
.vbento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vtile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; min-height: 300px;
  padding: 32px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.vtile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 60px -30px rgba(10, 27, 61, .35); }
[dir="ltr"] .vtile:hover { transform: translateY(-6px) rotate(.6deg); }
.vtile--trust { grid-column: span 2; background: var(--grad); color: #fff; border: 0; }
.vtile--clarity { background: var(--navy); color: #fff; border: 0; }
.vtile--craft { background: var(--b100); border-color: var(--b200); }
.vtile--partner { grid-column: span 2; }
.vt-num { font-family: var(--mono); font-size: 13px; opacity: .7; }
.vtile h3 { margin-top: auto; font-size: clamp(36px, 4vw, 56px); line-height: 1.15; font-weight: 700; }
.vtile p { max-width: 30em; font-size: 16.5px; opacity: .88; }
.vt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vt-pills li { padding: 6px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; background: rgba(10, 27, 61, .06); }
.vtile--trust .vt-pills li, .vtile--clarity .vt-pills li { background: rgba(255, 255, 255, .14); }
.vt-mark { position: absolute; z-index: -1; inset-inline-end: -40px; top: -60px; width: 260px; height: 368px; fill: #fff; opacity: .12; rotate: -12deg; }
.vt-pixels { position: absolute; z-index: -1; inset-inline-end: 32px; top: 32px; display: grid; grid-template-columns: repeat(2, 44px); grid-template-rows: repeat(2, 44px); gap: 10px; }
.vt-pixels i { border-radius: 10px; background: var(--grad); }
.vt-pixels i:nth-child(1) { grid-column: 1; grid-row: 1; }
.vt-pixels i:nth-child(2) { grid-column: 1; grid-row: 2; opacity: .6; }
.vt-pixels i:nth-child(3) { grid-column: 2; grid-row: 2; opacity: .3; }
.vtile--partner:hover .vt-pixels i { animation: pixel-hop .6s var(--ease) both; }
.vtile--partner:hover .vt-pixels i:nth-child(2) { animation-delay: .08s; }
.vtile--partner:hover .vt-pixels i:nth-child(3) { animation-delay: .16s; }
@keyframes pixel-hop { 40% { transform: translateY(-10px); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px clamp(48px, 7vw, 112px); align-items: start; }
.contact-info .section-lead { margin-top: 20px; }
.contact-list { margin-top: 48px; border-bottom: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 8px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--slate); }
.contact-list dt .icon { width: 18px; height: 18px; }
.contact-list dd { font-size: 16.5px; font-weight: 600; }
.contact-list dd a, .contact-list dd span { unicode-bidi: isolate; transition: color .2s; }
.contact-list dd a:hover { color: var(--blue); }

.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials:empty { display: none; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mist); color: var(--navy); transition: color .2s, border-color .2s, background-color .2s; }
.socials a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.socials .icon { width: 19px; height: 19px; }
.socials--dark a { border-color: rgba(255, 255, 255, .16); color: #fff; }

.form-card {
  padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(10, 27, 61, .35);
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid #D3DBE8; background: #fff;
  font-size: 16px; line-height: 1.5; color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #9AA5BA; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--b300); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45, 99, 252, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: 13px; color: #D92D20; }
.field-error:empty { display: none; }
.ltr-input { font-family: var(--mono); font-size: 15px !important; }
[dir="rtl"] .ltr-input { text-align: right; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364708A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 16px center; padding-left: 44px;
}
[dir="ltr"] .field select { background-position: right 16px center; padding-left: 16px; padding-right: 44px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 4px; }
.form-note { font-size: 13.5px; color: var(--slate); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.submit-btn.is-loading { pointer-events: none; opacity: .9; }
.submit-btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-s); background: var(--b50); border: 1px solid var(--b200); color: var(--b800); font-size: 15px; }
.alert .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.alert.is-success { background: #E7F8EF; border-color: #A6E9C8; color: #0C5F38; }
.alert.is-success .icon { color: var(--success); }
.alert.is-error { background: #FEEFEE; border-color: #FBC9C5; color: #A2231A; }
.alert.is-error .icon { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: rgba(255, 255, 255, .62); padding-top: clamp(80px, 9vw, 120px); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-tagline { font-size: clamp(34px, 5vw, 68px); line-height: 1.2; font-weight: 700; color: #fff; }
.footer-tagline .alt-en { display: block; margin-top: 10px; font-family: var(--font-en); font-size: .32em; font-weight: 500; color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; padding: 56px 0 64px; }
.footer-brand { display: grid; gap: 20px; align-content: start; max-width: 360px; }
.footer-brand .brand { justify-self: start; }
.brand--light { color: #fff; }
.footer-brand p { font-size: 15px; line-height: 1.8; }
.site-footer h4 { margin-bottom: 18px; font-size: 15px; font-weight: 600; color: #fff; }
.site-footer ul { display: grid; gap: 10px; font-size: 15px; }
.site-footer ul a { transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.footer-contact a, .footer-contact span { unicode-bidi: isolate; }
.footer-bottom .copy { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .45); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 40; bottom: 24px; inset-inline-end: 24px;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); color: #fff; box-shadow: 0 12px 28px -6px rgba(45, 99, 252, .55);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--b600); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   Youthful layer — motion, stickers, tapes, grain, cursor effects
   ========================================================================== */

/* Film grain on dark surfaces */
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.showcase { position: relative; isolation: isolate; }

/* Cursor spotlight in the hero */
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 35%), rgba(31, 200, 246, .13), transparent 60%);
  transition: opacity .4s;
}

/* Rotating word */
.rotator {
  display: inline-block; padding: 0 .45em; margin: 0 .1em; border-radius: var(--r-pill);
  background: rgba(31, 200, 246, .12); border: 1px solid rgba(31, 200, 246, .35);
  color: #fff; font-weight: 600; line-height: 1.5; vertical-align: baseline; overflow: hidden;
}
.rotator-word { display: inline-block; }
.rotator-word.is-out { animation: word-out .28s var(--ease) forwards; }
.rotator-word.is-in { animation: word-in .4s var(--ease) both; }
@keyframes word-out { to { transform: translateY(-80%); opacity: 0; } }
@keyframes word-in { from { transform: translateY(80%); opacity: 0; } }

/* Draggable stickers */
.stickers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sticker {
  position: absolute; pointer-events: auto; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
  padding: 10px 20px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  rotate: var(--r, 0deg); translate: var(--dx, 0) var(--dy, 0);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  animation: bob 5s ease-in-out infinite;
  transition: scale .2s var(--ease);
}
.sticker:nth-child(2) { animation-delay: -1.2s; }
.sticker:nth-child(3) { animation-delay: -2.4s; }
.sticker:nth-child(4) { animation-delay: -3.6s; }
.sticker:hover { scale: 1.06; }
.sticker.is-dragging { cursor: grabbing; scale: 1.1; animation-play-state: paused; z-index: 2; }
.sticker--white { background: #fff; color: var(--navy); }
.sticker--cyan { background: var(--cyan); color: var(--navy); }
.sticker--navy { background: var(--navy); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.sticker--grad { background: var(--grad); color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Magnetic buttons */
.magnetic { translate: var(--tx, 0) var(--ty, 0); }

/* Crossing tapes */
.tapes { position: relative; overflow: hidden; padding: 72px 0 64px; background: #fff; }
.tape { position: relative; direction: ltr; width: 112%; margin-inline: -6%; padding: 16px 0; overflow: hidden; }
.tape--a { z-index: 2; background: var(--grad); color: #fff; rotate: -2.4deg; box-shadow: 0 20px 40px -20px rgba(45, 99, 252, .55); }
.tape--b { margin-top: -4px; background: var(--navy); color: #fff; rotate: 2deg; }
.tape-track { display: flex; width: max-content; direction: ltr; animation: tape 36s linear infinite; }
.tape--b .tape-track { animation-direction: reverse; animation-duration: 44s; }
.tapes:hover .tape-track { animation-play-state: paused; }
.tape-group { display: flex; flex: none; align-items: center; }
.tape-group span {
  display: inline-flex; align-items: center; gap: 32px; padding-inline-end: 32px;
  font-size: clamp(22px, 3vw, 40px); font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.tape--b .tape-group span { font-family: var(--font-en); }
.tape--b .tape-group span:nth-child(even) { color: var(--cyan); }
.tape-group span::after {
  content: ""; width: .5em; height: .5em; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23fff'%3E%3Crect width='5' height='5' rx='1'/%3E%3Crect y='7' width='5' height='5' rx='1'/%3E%3Crect x='7' y='7' width='5' height='5' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes tape { to { transform: translateX(-50%); } }

/* Service hover preview card that follows the cursor */
.svc-preview {
  position: fixed; z-index: 45; top: 0; left: 0; pointer-events: none;
  width: 260px; height: 180px; padding: 22px; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background: var(--pv-bg, var(--grad));
  box-shadow: 0 30px 60px -20px rgba(10, 27, 61, .5);
  opacity: 0; scale: .6; rotate: var(--pv-rot, 0deg);
  transition: opacity .25s, scale .35s var(--ease), rotate .3s var(--ease);
  will-change: transform;
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.pv-num { font-family: var(--font-en); font-size: 64px; font-weight: 700; line-height: .9; letter-spacing: -.04em; }
.pv-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.pv-pixels { position: absolute; top: 22px; inset-inline-end: 22px; display: grid; grid-template-columns: repeat(2, 14px); grid-template-rows: repeat(2, 14px); gap: 4px; }
.pv-pixels i { border-radius: 4px; background: rgba(255, 255, 255, .9); }
.pv-pixels i:nth-child(1) { grid-column: 1; grid-row: 1; }
.pv-pixels i:nth-child(2) { grid-column: 1; grid-row: 2; opacity: .65; }
.pv-pixels i:nth-child(3) { grid-column: 2; grid-row: 2; opacity: .35; }

/* 3D tilt on product tiles */
.tile { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.tile.is-tilting { transition: transform .12s linear; }

/* Giant footer wordmark */
.footer-giant {
  direction: ltr; text-align: center; white-space: nowrap; user-select: none;
  margin-top: 8px; margin-bottom: -.2em;
  font-family: var(--font-en); font-size: clamp(56px, 15.2vw, 236px); font-weight: 700; line-height: 1; letter-spacing: -.045em;
}
.fg-digital { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); }
.fg-pass { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr) 48px; gap: 24px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .stickers { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: #fff; color: var(--navy);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -12px rgba(10, 27, 61, .15);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a:not(.btn) { padding: 14px 4px; font-size: 17px; opacity: 1; border-bottom: 1px solid var(--line); }
  .main-nav a.is-active::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 16px; min-height: 52px; }

  .hero { min-height: auto; }
  .hero-mark { --mh: 640px; top: auto; bottom: -120px; inset-inline-end: -170px; opacity: .3; }
  .hero-inner { padding: 72px 0 72px; }
  .hero-caps { grid-template-columns: 1fr 1fr; }
  .hero-caps li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .hero-caps li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }

  .section-top, .about-cols, .contact-grid { grid-template-columns: 1fr; }
  .section-top { align-items: start; }

  .svc { grid-template-columns: 36px minmax(0, 1fr) 44px; grid-template-areas: "num title go" "num body go"; gap: 10px 16px; padding: 28px 8px; align-items: start; }
  .svc-num { grid-area: num; padding-top: 8px; }
  .svc-title { grid-area: title; }
  .svc-body { grid-area: body; }
  .svc-go { grid-area: go; width: 44px; height: 44px; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "dash" "phone" "store"; }
  .tile--phone .tile-shot { height: 560px; flex: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .vbento { grid-template-columns: 1fr 1fr; }
  .vtile--trust, .vtile--partner { grid-column: span 2; }
  .tile { transform: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .wordmark { font-size: 16px; }
  .brand-symbol { width: 22px; height: 31px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-caps li { font-size: 14px; gap: 8px; padding: 18px 0 20px; }
  .hero-caps li + li { padding-inline-start: 14px; }
  .hero-caps li:nth-child(3) { padding-inline-start: 0; }

  .tile { padding: 24px 20px 0; }
  .tile-cap { flex-direction: column; gap: 2px; margin-bottom: 20px; }
  .tile--dash .tile-shot, .tile--store .tile-shot { height: 240px; }
  .tile--phone .tile-shot { height: 470px; }
  .mock-browser { font-size: 2.1cqw; }
  .mb-body { grid-template-columns: 1fr; }
  .mb-side { display: none; }
  .st-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-phone { width: min(78cqw, 290px); font-size: min(3.2cqw, 12px); }

  .process { grid-template-columns: 1fr; }
  .process li { padding-inline-end: 0; }
  .vbento { grid-template-columns: 1fr; }
  .vtile--trust, .vtile--partner { grid-column: auto; }
  .vtile { min-height: 0; padding: 28px 24px; }
  .vt-pixels { display: none; }
  .tapes { padding: 44px 0 28px; }
  .tape { padding: 12px 0; }
  .tape--b { margin-top: -2px; }

  .contact-list > div { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tape-track { animation: none; }
}
