/* =====================================================================
   P+  —  Enterprise Project Management  ·  Landing Page Design System
   Brand mark colour: #2AAEC0 (extracted from official P+ logo)
   Author: MasterTeam · Built for Saudi Arabia
   ===================================================================== */

/* ----------------------------  TOKENS  ---------------------------- */
:root {
  /* Brand */
  --brand:        #2AAEC0;
  --brand-400:    #45C7D8;
  --brand-600:    #1F94A6;
  --brand-700:    #167585;
  --brand-soft:   #E5F6F8;

  /* Saudi / premium accent */
  --gold:         #C8A24B;
  --gold-soft:    #F4ECD8;
  --violet:       #6C5CE7;

  /* Light theme surfaces */
  --bg:           #F5F9FA;
  --bg-2:         #EDF4F5;
  --surface:      #FFFFFF;
  --surface-2:    #FBFDFD;
  --ink:          #0A2530;
  --text:         #0B2029;
  --muted:        #56707A;
  --border:       #E0EBEE;
  --border-2:     #D2E2E5;
  --shadow:       18px 30px 60px -28px rgba(11, 51, 61, 0.28);
  --shadow-sm:    0 10px 30px -18px rgba(11, 51, 61, 0.35);
  --glass:        rgba(255, 255, 255, 0.72);
  --glass-brd:    rgba(255, 255, 255, 0.55);

  /* Type */
  --font-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* Rhythm */
  --container:    1200px;
  --radius:       22px;
  --radius-lg:    30px;
  --section-y:    clamp(5rem, 9vw, 9rem);
}

html[data-theme="dark"] {
  --bg:           #061218;
  --bg-2:         #08191F;
  --surface:      #0C2129;
  --surface-2:    #0E2630;
  --ink:          #EAF6F8;
  --text:         #DCEDEF;
  --muted:        #8AAAB3;
  --border:       rgba(255, 255, 255, 0.09);
  --border-2:     rgba(255, 255, 255, 0.14);
  --shadow:       24px 40px 80px -34px rgba(0, 0, 0, 0.7);
  --shadow-sm:    0 14px 40px -22px rgba(0, 0, 0, 0.7);
  --glass:        rgba(12, 33, 41, 0.66);
  --glass-brd:    rgba(255, 255, 255, 0.08);
  --brand-soft:   rgba(42, 174, 192, 0.14);
  --gold-soft:    rgba(200, 162, 75, 0.16);
}

/* ----------------------------  BASE  ---------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 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; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600);
  padding: 7px 14px; border-radius: 999px; background: var(--brand-soft);
  border: 1px solid var(--border-2);
}
.section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 1.1rem 0 1rem; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.lead { color: var(--muted); font-size: 1.15rem; }

.text-grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-400) 40%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------  BUTTONS  ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 14px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(120deg, var(--brand-600), var(--brand)); color: #fff; box-shadow: 0 14px 30px -12px rgba(42,174,192,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(42,174,192,.7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand-600); box-shadow: var(--shadow-sm); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); }

/* ----------------------------  ANNOUNCEMENT BAR  ---------------------------- */
.announce {
  background: linear-gradient(90deg, var(--brand-700), var(--brand-600), var(--brand));
  color: #fff; font-size: .86rem; font-weight: 600; text-align: center;
  padding: 9px 16px; position: relative; z-index: 60;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.announce .star { color: var(--gold); }

/* ----------------------------  NAVBAR  ---------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; transition: all .35s ease;
  background: transparent;
}
.nav.scrolled {
  background: var(--glass); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-brd); box-shadow: 0 8px 30px -18px rgba(11,51,61,.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a { padding: 9px 11px; border-radius: 10px; font-weight: 600; font-size: .91rem; color: var(--text); transition: all .2s; white-space: nowrap; }
.nav-prod { margin-inline-start: 18px; margin-inline-end: 4px; }
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: all .25s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); transform: rotate(15deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; }

/* Language toggle */
.lang-toggle {
  height: 44px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .25s;
  font-family: var(--font-display); font-weight: 700; font-size: .86rem; letter-spacing: .01em;
}
.lang-toggle:hover { color: var(--brand-600); border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.lang-toggle svg { width: 18px; height: 18px; flex: none; }
.lang-toggle .lt-label { line-height: 1; }
html[lang="ar"] .lang-toggle .lt-label { font-family: var(--font-display); }

/* ----------------------------  ARABIC / RTL  ---------------------------- */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .btn, html[lang="ar"] .eyebrow, html[lang="ar"] .brand,
html[lang="ar"] .nav-links a, html[lang="ar"] .hero-badge, html[lang="ar"] .fpill,
html[lang="ar"] .faris-tab, html[lang="ar"] .team-tab, html[lang="ar"] .chip-industry,
html[lang="ar"] .lt-label { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
html[lang="ar"] { letter-spacing: 0 !important; }
html[lang="ar"] .text-grad, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }

/* RTL layout corrections */
html[dir="rtl"] .hero-meta .stat + .stat { border-left: none; border-right: 1px solid var(--border); }
html[dir="rtl"] svg.lucide-arrow-right, html[dir="rtl"] svg.lucide-arrow-left,
html[dir="rtl"] svg.lucide-corner-down-right, html[dir="rtl"] svg.lucide-move-right { transform: scaleX(-1); }
html[dir="rtl"] .announce a, html[dir="rtl"] .testi-progress { direction: rtl; }
html[dir="rtl"] .team-tabs { direction: rtl; }
html[dir="rtl"] .fc-msg.user { flex-direction: row-reverse; }
html[dir="rtl"] .marquee-track { animation-name: scroll-x-rtl; }
@keyframes scroll-x-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
html[dir="rtl"] .stories-deck::before, html[dir="rtl"] .stories-deck::after { left: 50%; }

/* ----------------------------  HERO  ---------------------------- */
.hero { position: relative; padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); overflow: hidden; }
@media (min-width: 1025px) {
  .hero { display: flex; align-items: center; min-height: calc(100vh - 130px); padding-top: 1.5rem; padding-bottom: 2rem; }
  .hero > .container { width: 100%; }
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.hero-glow {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero-glow.g1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--brand) 0%, transparent 68%); top: -120px; right: -60px; opacity: .30; }
.hero-glow.g2 { width: 420px; height: 420px; background: radial-gradient(circle, var(--violet) 0%, transparent 66%); bottom: -210px; left: -150px; opacity: .12; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .82rem; color: var(--ink); font-family: var(--font-display);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #21c47a; box-shadow: 0 0 0 4px rgba(33,196,122,.18); }
.hero h1 { font-size: clamp(2.1rem, 3.5vw, 3.15rem); font-weight: 800; line-height: 1.07; margin: 1rem 0 1rem; }
.hero p.sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-meta { display: inline-flex; gap: 0; margin-top: 1.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.hero-meta .stat { padding: 13px 22px; }
.hero-meta .stat + .stat { border-left: 1px solid var(--border); }
.hero-meta .stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--ink); line-height: 1; }
.hero-meta .stat .l { font-size: .78rem; color: var(--muted); margin-top: 5px; }

.hero-media { position: relative; }
/* Hero video */
.hero-video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: #04141a;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.hero-video:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-6px); }
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-video .vframe-top {
  position: absolute; top: 0; left: 0; right: 0; height: 38px; z-index: 3;
  background: rgba(4,20,26,.7); backdrop-filter: blur(4px); display: flex; align-items: center; gap: 7px; padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-video .vframe-top i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.vframe-top i:nth-child(1){ background:#ff5f57 } .vframe-top i:nth-child(2){ background:#febc2e } .vframe-top i:nth-child(3){ background:#28c840 }
.hero-video .muted-tag {
  position: absolute; bottom: 14px; right: 14px; z-index: 4; display: flex; align-items: center; gap: 6px;
  background: rgba(4,20,26,.66); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
}
.hero-video .muted-tag svg { width: 14px; height: 14px; }
.vframe-url { margin-left: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.6); font-family: var(--font-body); }
/* Video facade poster (robust fallback + no embed-error box) */
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #04141a; display: block; overflow: hidden; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,20,26,.12), rgba(4,20,26,.6)); }
.video-poster:hover img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; z-index: 2; box-shadow: 0 18px 44px -14px rgba(0,0,0,.55); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.play-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: pulse-ring 2.4s ease-out infinite; }
.video-poster:hover .play-btn { transform: translate(-50%,-50%) scale(1.09); }
.play-btn svg { width: 30px; height: 30px; color: var(--brand-700); margin-left: 4px; }
@keyframes pulse-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .play-btn::before { animation: none; } }
.play-cap { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 2; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .88rem; text-shadow: 0 2px 10px rgba(0,0,0,.55); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.float-card {
  position: absolute; z-index: 5; background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-brd); border-radius: 16px; padding: 13px 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
}
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.float-card .ttl { font-weight: 800; font-size: .92rem; color: var(--ink); line-height: 1.1; }
.float-card .desc { font-size: .73rem; color: var(--muted); }
.float-card.fc1 { top: 10%; right: -26px; }
.float-card.fc2 { bottom: 8%; left: -26px; }

/* ----------------------------  MARQUEE (Industries)  ---------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll-x 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.chip-industry {
  display: inline-flex; align-items: center; gap: 11px; padding: 15px 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); white-space: nowrap;
}
.chip-industry .ci { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-600); }
.chip-industry .ci svg { width: 19px; height: 19px; }

/* ----------------------------  TRUSTED BY (flip wall)  ---------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.logo-flip { perspective: 1200px; aspect-ratio: 3 / 2; }
.logo-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45,.05,.2,1); }
.logo-flip.flipped .logo-flip-inner { transform: rotateY(180deg); }
.logo-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  display: grid; place-items: center; padding: 20px; box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .logo-face { background: #f3f8f9; }
.logo-face.back { transform: rotateY(180deg); }
.logo-face img { max-height: 64px; max-width: 86%; object-fit: contain; filter: saturate(1); transition: transform .3s; }
.logo-flip:hover .logo-face img { transform: scale(1.06); }
.trusted-count { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2.2rem; color: var(--muted); font-weight: 600; }

/* ----------------------------  CARDS / BENTO  ---------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card .ic-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand-600); }
.card .ic-box svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.28rem; margin-bottom: 9px; font-weight: 800; }
.card p { color: var(--muted); font-size: .98rem; }
.card.glow::before {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand), transparent 70%); opacity: .12; top: -70px; right: -50px; pointer-events: none;
}

/* tilt cards (feature showcase) */
.tilt { transform-style: preserve-3d; transition: transform .2s ease; }
.tilt .tilt-inner { transform: translateZ(40px); }

/* ----------------------------  PROBLEM / VALUE  ---------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prob-list { display: grid; gap: 16px; }
.prob-item { display: flex; gap: 15px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.prob-item .x { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(232,80,80,.12); color: #e85050; }
.prob-item.good .x { background: rgba(33,196,122,.14); color: #18a865; }
.prob-item h4 { font-size: 1.02rem; margin-bottom: 3px; }
.prob-item p { color: var(--muted); font-size: .9rem; margin: 0; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-item { display: flex; gap: 14px; }
.value-item .vi { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; }
.value-item h4 { font-size: 1.08rem; margin-bottom: 5px; }
.value-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ----------------------------  POSITIONING band  ---------------------------- */
.position-band {
  background: linear-gradient(135deg, var(--ink), #0a2f3b 60%, var(--brand-700));
  border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 4rem); color: #fff; position: relative; overflow: hidden;
}
html[data-theme="dark"] .position-band { background: linear-gradient(135deg, #08222b, #0a3340 60%, var(--brand-700)); border: 1px solid var(--border-2); }
.position-band h2 { color: #fff; }
.position-band .pb-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; position: relative; z-index: 2; }
.pb-point { display: flex; gap: 13px; margin-bottom: 16px; }
.pb-point .pc { flex: none; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: var(--brand-400); }
.pb-point p { margin: 0; color: rgba(255,255,255,.86); }
.pb-point b { color: #fff; }
.integrations { display: flex; flex-wrap: wrap; gap: 14px; }
.intg-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 18px; font-family: var(--font-display); font-weight: 700; backdrop-filter: blur(6px); }
.intg-chip .il { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #fff; }
.intg-chip .il svg { width: 18px; height: 18px; }

/* ----------------------------  WHO IS IT FOR (personas)  ---------------------------- */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persona {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: all .4s; position: relative; overflow: hidden;
}
.persona:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.persona .pn { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.persona h3 { font-size: 1.2rem; margin-bottom: 8px; }
.persona p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.persona ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.persona li { display: flex; gap: 9px; font-size: .9rem; color: var(--text); }
.persona li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 2px; }

/* ----------------------------  STATS / SOCIAL PROOF  ---------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-box .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat-box .lab { color: var(--muted); margin-top: 10px; font-weight: 600; font-size: .92rem; }

/* ----------------------------  TESTIMONIALS  ---------------------------- */
.testi-stage { position: relative; }
.testi-track { display: flex; transition: transform .7s cubic-bezier(.65,0,.35,1); }
.testi-slide { min-width: 100%; padding: 6px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.4rem); box-shadow: var(--shadow); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.testi-card .quote-mark { position: absolute; top: -10px; right: 30px; font-family: var(--font-display); font-size: 11rem; line-height: 1; color: var(--brand); opacity: .08; font-weight: 800; }
.testi-stars { display: flex; gap: 4px; color: var(--gold); }
.testi-stars svg { width: 20px; height: 20px; fill: currentColor; }
.testi-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--ink); line-height: 1.45; letter-spacing: -.01em; position: relative; z-index: 2; }
.testi-author { display: flex; align-items: center; gap: 16px; }
.testi-avatar { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; flex: none; }
.testi-author .an { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.testi-author .ar { color: var(--muted); font-size: .9rem; }
.testi-logo { margin-left: auto; height: 40px; opacity: .85; }
.testi-logo img { height: 100%; width: auto; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 2.2rem; }
.testi-btn { width: 50px; height: 50px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: all .25s; }
.testi-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--border-2); cursor: pointer; transition: all .3s; }
.testi-dot.active { width: 30px; background: var(--brand); }

/* ----------------------------  PROBLEM → SOLUTION  ---------------------------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ps-card { border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; overflow: hidden; }
.ps-card.problem { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ps-card.solution { background: linear-gradient(155deg, var(--ink), #0a2f3b 52%, var(--brand-700)); color: #fff; box-shadow: var(--shadow); }
html[data-theme="dark"] .ps-card.solution { background: linear-gradient(155deg, #08222b, #0a3340 52%, var(--brand-700)); border: 1px solid var(--border-2); }
.ps-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ps-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ps-ic svg { width: 22px; height: 22px; }
.ps-ic.bad { background: rgba(224,99,99,.14); color: #e06363; }
.ps-ic.good { background: rgba(255,255,255,.18); color: #fff; }
.ps-card h3 { font-size: 1.3rem; }
.ps-card.solution h3 { color: #fff; }
.ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.ps-list li { display: flex; gap: 12px; align-items: flex-start; }
.ps-list li b { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }
.ps-list li span { font-size: .92rem; line-height: 1.5; }
.ps-card.problem .ps-list b { color: var(--ink); }
.ps-card.problem .ps-list span { color: var(--muted); }
.ps-list.light li b { color: #fff; }
.ps-list.light li span { color: rgba(255,255,255,.82); }
.ps-x, .ps-check { width: 27px; height: 27px; border-radius: 8px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.ps-x { background: rgba(224,99,99,.14); color: #e06363; }
.ps-check { background: rgba(255,255,255,.2); color: #fff; }
.ps-x svg, .ps-check svg { width: 15px; height: 15px; }
.ps-illus { border-radius: 16px; overflow: hidden; margin-bottom: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.ps-illus svg { display: block; width: 100%; height: auto; }
.ps-sol-lead { color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 20px; }
.ps-card.solution .btn-white { margin-top: 22px; }
@media (max-width: 880px) { .ps-grid { grid-template-columns: 1fr; } }

/* ----------------------------  FARIS AI (interactive chat console)  ---------------------------- */
.faris-section { position: relative; overflow: hidden; }
.faris-section .grid-bg { opacity: .4; }
.faris-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1.15rem; }
.faris-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .75rem; color: var(--brand-700); background: var(--brand-soft); border: 1px solid var(--border-2); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.faris-badge svg { width: 15px; height: 15px; }

.faris-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 940px; margin: 0 auto 24px; }
.faris-tab {
  text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px; transition: all .3s; position: relative; overflow: hidden;
}
.faris-tab:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.faris-tab.active { border-color: transparent; box-shadow: 0 0 0 2px var(--fa, var(--brand)), var(--shadow-sm); }
.faris-tab .ft-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.faris-tab .ft-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.faris-tab .ft-ic svg { width: 21px; height: 21px; }
.faris-tab .ft-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.1; }
.faris-tab .ft-q { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.faris-tab .ft-flag { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); transition: all .3s; }
.faris-tab.active .ft-flag { background: var(--fa, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fa, var(--brand)) 25%, transparent); }

.faris-console {
  max-width: 940px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-2); box-shadow: var(--shadow); background: var(--surface);
  position: relative; z-index: 2;
}
.fc-bar { display: flex; align-items: center; gap: 9px; padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.fc-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.fc-bar .dot:nth-child(1){ background:#ff5f57 } .fc-bar .dot:nth-child(2){ background:#febc2e } .fc-bar .dot:nth-child(3){ background:#28c840 }
.fc-bar .fc-url { margin-left: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.fc-bar .fc-url b { color: var(--brand-600); font-weight: 700; }
.fc-bar .fc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); font-family: var(--font-display); }
.fc-bar .fc-live i { width: 7px; height: 7px; border-radius: 50%; background: #21c47a; box-shadow: 0 0 0 3px rgba(33,196,122,.18); }

.fc-body { padding: 26px 22px; min-height: 430px; display: flex; flex-direction: column; gap: 16px; background:
  radial-gradient(var(--border-2) 1px, transparent 1px) 0 0 / 26px 26px; background-blend-mode: normal; position: relative; }
html[data-theme="dark"] .fc-body { background-color: rgba(255,255,255,.012); }
.fc-msg { display: flex; gap: 11px; max-width: 100%; opacity: 0; transform: translateY(12px); animation: fcIn .45s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes fcIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fc-msg { animation: none; opacity: 1; transform: none; } }
.fc-msg.user { justify-content: flex-end; }
.fc-av { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .fc-av { background: rgba(56,88,255,.12); border-color: rgba(56,88,255,.3); }
.fc-av svg { width: 20px; height: 20px; color: var(--brand-600); }
.fc-av .fc-spark { width: 21px; height: 21px; display: block; }
.fc-av.twinkle .fc-spark { animation: fcTwinkle 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes fcTwinkle { 0%,100% { transform: scale(1) rotate(0); opacity: .92; } 50% { transform: scale(1.16) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fc-av.twinkle .fc-spark { animation: none; } }
.fc-bubble { padding: 13px 16px; border-radius: 16px; font-size: .95rem; line-height: 1.55; max-width: 76%; }
.fc-msg.user .fc-bubble { background: linear-gradient(135deg, #103039, #16596d); color: #eaf7f9; border-bottom-right-radius: 5px; box-shadow: 0 10px 24px -14px rgba(16,80,100,.7); }
.fc-msg.faris .fc-bubble { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 5px; }
html[data-theme="dark"] .fc-msg.faris .fc-bubble { background: rgba(255,255,255,.04); }
.fc-bubble .fc-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.fc-metric { display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 11px; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--border-2); }
.fc-metric .mk { font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fc-metric .mv { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--brand-700); line-height: 1; }
.fc-metric.warn .mv { color: #d98a3a; } .fc-metric.bad .mv { color: #e06363; } .fc-metric.good .mv { color: #18a865; }
.fc-verdict { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; font-family: var(--font-display); font-weight: 800; font-size: .85rem; padding: 7px 13px; border-radius: 999px; background: rgba(33,196,122,.12); color: #18a865; border: 1px solid rgba(33,196,122,.28); }
.fc-verdict svg { width: 15px; height: 15px; }

.fc-typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.fc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: fcBlink 1.2s infinite ease-in-out; }
.fc-typing span:nth-child(2){ animation-delay: .2s } .fc-typing span:nth-child(3){ animation-delay: .4s }
@keyframes fcBlink { 0%,60%,100%{ transform: translateY(0); opacity:.35 } 30%{ transform: translateY(-5px); opacity:.9 } }

.fc-foot { border-top: 1px solid var(--border); padding: 16px 18px; background: var(--surface-2); }
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.fc-chip { font-size: .82rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-2); padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.fc-chip svg { width: 13px; height: 13px; color: var(--brand-600); }
.fc-input { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 14px; }
.fc-input .fi-spark { width: 22px; height: 22px; color: var(--brand); flex: none; display: block; }
.fc-input .fi-ph { flex: 1; color: var(--muted); font-size: .92rem; }
.fc-input .fi-send { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; display: grid; place-items: center; flex: none; }
.fc-input .fi-send svg { width: 18px; height: 18px; }
.fc-replay { display: inline-flex; align-items: center; gap: 7px; margin: 1.8rem auto 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--brand-600); background: var(--surface); border: 1px solid var(--border-2); padding: 10px 18px; border-radius: 999px; transition: all .25s; }
.fc-replay:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fc-replay svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .faris-tabs { grid-template-columns: 1fr; }
  .fc-bubble { max-width: 84%; }
  .fc-body { padding: 20px 14px; }
}

/* ----------------------------  BUILT FOR EVERY TEAM (ClickUp-inspired tabs)  ---------------------------- */
.teams-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.team-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 96px; }
.team-tab {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  padding: 15px 16px; border-radius: 16px; border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: all .25s; color: var(--text); font-family: var(--font-body);
}
.team-tab:hover { background: var(--surface); border-color: var(--border); }
.team-tab.active { background: var(--surface); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.team-tab .tt-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-600); flex: none; transition: all .25s; }
.team-tab .tt-ic svg { width: 21px; height: 21px; }
.team-tab.active .tt-ic { background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; }
.team-tab .tt-txt { display: flex; flex-direction: column; line-height: 1.2; }
.team-tab .tt-label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.team-tab .tt-sub { font-size: .78rem; color: var(--muted); }
.team-tab .tt-arrow { margin-left: auto; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: all .25s; }
.team-tab .tt-arrow svg { width: 18px; height: 18px; }
.team-tab.active .tt-arrow { opacity: 1; transform: none; }

.team-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.4vw, 2.8rem); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; min-height: 440px;
}
.team-panel::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--brand), transparent 70%); opacity: .08; top: -90px; right: -70px; pointer-events: none; }
.tp-inner { position: relative; z-index: 2; transition: opacity .35s ease, transform .35s ease; }
.tp-inner.fade { opacity: 0; transform: translateY(10px); }
.tp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-soft); padding: 7px 13px; border-radius: 999px; }
.tp-headline { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin: 16px 0 12px; }
.tp-desc { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.tp-replaces-wrap { margin: 22px 0 26px; }
.tp-replaces-lbl { font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.tp-replaces { display: flex; flex-wrap: wrap; gap: 9px; }
.replace-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); padding: 8px 13px; border-radius: 999px; }
.replace-chip svg { width: 14px; height: 14px; color: #e07b7b; flex: none; }
.replace-chip .rt { text-decoration: line-through; text-decoration-color: var(--border-2); }
.tp-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-cap { display: flex; gap: 13px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: all .3s; }
.tp-cap:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tp-cap .ci { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-600); flex: none; }
.tp-cap .ci svg { width: 20px; height: 20px; }
.tp-cap h4 { font-size: .98rem; margin-bottom: 3px; }
.tp-cap p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.45; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.tp-insight { display: flex; align-items: center; gap: 14px; }
.tp-insight .iv { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.tp-insight .il { font-size: .85rem; color: var(--muted); max-width: 240px; line-height: 1.35; }
.tp-cta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; color: var(--brand-600); }
.tp-cta svg { width: 18px; height: 18px; transition: transform .25s; }
.tp-cta:hover svg { transform: translateX(4px); }

@media (max-width: 1024px) {
  .teams-wrap { grid-template-columns: 1fr; }
  .team-tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 10px; -webkit-overflow-scrolling: touch; }
  .team-tab { flex: 0 0 auto; min-width: 210px; }
}
@media (max-width: 600px) { .tp-caps { grid-template-columns: 1fr; } .team-tab .tt-arrow { display: none; } }

/* ----------------------------  CUSTOMER STORIES (Atlassian-inspired)  ---------------------------- */
.stories-featured {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface);
  position: relative; min-height: 360px;
}
.sf-left { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; position: relative; }
.sf-left .quote-mark { position: absolute; top: 8px; left: 26px; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: var(--brand); opacity: .08; font-weight: 800; pointer-events: none; }
.sf-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-soft); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.sf-stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: 16px; }
.sf-stars svg { width: 18px; height: 18px; fill: currentColor; }
.sf-quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 600; color: var(--ink); line-height: 1.42; letter-spacing: -.01em; position: relative; z-index: 2; transition: opacity .4s ease, transform .4s ease; }
.sf-author { display: flex; align-items: center; gap: 15px; margin-top: 26px; }
.sf-avatar { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #fff; flex: none; box-shadow: var(--shadow-sm); }
.sf-author .an { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.sf-author .ar { color: var(--muted); font-size: .9rem; }
.sf-metric {
  position: relative; overflow: hidden; color: #fff; padding: clamp(1.8rem,3vw,2.6rem);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: linear-gradient(150deg, var(--brand-700), var(--brand-600) 55%, var(--brand));
}
.sf-metric::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 45%), radial-gradient(circle at 10% 90%, rgba(108,92,231,.5), transparent 50%); }
.sf-metric .mlabel { position: relative; z-index: 2; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.sf-metric .mnum { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; transition: opacity .4s ease, transform .4s ease; }
.sf-metric .mdesc { position: relative; z-index: 2; color: rgba(255,255,255,.86); font-size: .96rem; margin-top: 8px; }
.sf-metric .mlogo { position: relative; z-index: 2; margin-top: 22px; background: #fff; border-radius: 12px; padding: 10px 14px; align-self: flex-start; max-width: 170px; }
.sf-metric .mlogo img { max-height: 38px; width: auto; object-fit: contain; }
.sf-fade { opacity: 0; transform: translateY(8px); }

.stories-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 2.6rem 0 2.2rem; }
.fpill {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; gap: 7px;
}
.fpill:hover { border-color: var(--brand); color: var(--brand-600); transform: translateY(-2px); }
.fpill.active { background: linear-gradient(120deg, var(--brand-600), var(--brand)); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -12px rgba(42,174,192,.6); }
.fpill .cnt { font-size: .72rem; opacity: .7; background: rgba(0,0,0,.08); padding: 1px 7px; border-radius: 999px; }
.fpill.active .cnt { background: rgba(255,255,255,.22); opacity: 1; }

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .25s, opacity .35s;
  display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-2); }
.story-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(42,174,192,.25), var(--shadow-sm); }
.story-card .sc-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.sc-head { display: flex; align-items: center; gap: 13px; }
.sc-avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; flex: none; }
.sc-meta .n { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: .98rem; line-height: 1.15; }
.sc-meta .r { color: var(--muted); font-size: .82rem; }
.sc-quote { color: var(--text); font-size: .96rem; line-height: 1.55; flex: 1; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.sc-metric { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.sc-metric .v { font-weight: 800; font-size: 1.15rem; color: var(--brand-600); }
.sc-metric .l { font-size: .76rem; color: var(--muted); font-weight: 600; }
.sc-read { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--brand-600); }
.sc-read svg { width: 15px; height: 15px; transition: transform .25s; }
.story-card:hover .sc-read svg { transform: translateX(4px); }
.stories-scale { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px dashed var(--border-2); }
.stories-scale .ss { text-align: center; }
.stories-scale .ss .v { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }
.stories-scale .ss .l { color: var(--muted); font-size: .85rem; font-weight: 600; }

@media (max-width: 1024px) { .stories-featured { grid-template-columns: 1fr; } .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .stories-grid { grid-template-columns: 1fr; } }

/* ---- Testimonials: deck (implies more behind) + avatar-strip navigation ---- */
.stories-deck { position: relative; }
.stories-deck::before, .stories-deck::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); z-index: 0;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
}
.stories-deck::before { width: 95%; height: 46px; bottom: -13px; box-shadow: var(--shadow-sm); }
.stories-deck::after  { width: 88%; height: 46px; bottom: -25px; opacity: .55; }
.stories-deck .stories-featured { position: relative; z-index: 2; transition: opacity .3s ease, transform .3s ease; }

.testi-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 2.8rem; }
.testi-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: all .25s; flex: none; }
.testi-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(42,174,192,.6); }
.testi-arrow svg { width: 20px; height: 20px; }
.testi-strip { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.strip-av {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: #fff; cursor: pointer;
  opacity: .5; transform: scale(.88); transition: all .3s cubic-bezier(.34,1.56,.64,1); border: 0; position: relative;
}
.strip-av:hover { opacity: .9; transform: scale(1); }
.strip-av.active { opacity: 1; transform: scale(1.14); box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--brand); }
.strip-av.active::after {
  content: ""; position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

.testi-progress { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 1.6rem; color: var(--muted); font-weight: 600; font-size: .9rem; font-family: var(--font-display); flex-wrap: wrap; }
.testi-progress .cnum { color: var(--brand-600); font-weight: 800; }
.testi-bar { width: 150px; height: 5px; border-radius: 999px; background: var(--border-2); overflow: hidden; }
.testi-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-600), var(--brand)); border-radius: 999px; }
.testi-hint { display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
@keyframes barfill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .testi-bar > div { width: 100%; } }
@media (max-width: 760px) { .testi-strip { max-width: 100%; gap: 9px; } .strip-av { width: 42px; height: 42px; } }

/* ----------------------------  FINAL CTA  ---------------------------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); text-align: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 45%, var(--brand) 100%); color: #fff;
}
.cta-banner::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%), radial-gradient(circle at 80% 80%, rgba(108,92,231,.4), transparent 45%); }
.cta-banner h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); position: relative; z-index: 2; font-weight: 800; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 600px; margin: 1.1rem auto 2.2rem; position: relative; z-index: 2; font-size: 1.15rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-mini { margin-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.8); position: relative; z-index: 2; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.cta-mini span { display: inline-flex; align-items: center; gap: 6px; }

/* ----------------------------  FOOTER  ---------------------------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 3rem; }
.footer .brand { margin-bottom: 16px; }
.footer p.fdesc { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer h5 { font-family: var(--font-display); font-weight: 800; color: var(--ink); margin: 0 0 16px; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer ul a:hover { color: var(--brand-600); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fbadge { font-size: .72rem; font-weight: 700; padding: 6px 11px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-700); border: 1px solid var(--border-2); }
.footer-bottom { padding: 8px 0 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted); transition: all .25s; }
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* ----------------------------  REVEAL ANIMATIONS  ---------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s } .reveal.d5 { transition-delay: .4s }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ----------------------------  SAUDI PAGE  ---------------------------- */
.saudi-hero { position: relative; overflow: hidden; padding-top: clamp(3.5rem,7vw,6rem); padding-bottom: clamp(3rem,6vw,5rem); background: linear-gradient(160deg, var(--bg) 0%, var(--brand-soft) 100%); }
html[data-theme="dark"] .saudi-hero { background: linear-gradient(160deg, var(--bg) 0%, #08222a 100%); }
.saudi-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
.flag-accent { display: inline-block; width: 54px; height: 5px; border-radius: 4px; background: #1a7a3d; margin-bottom: 22px; }
.compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.comp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: all .4s; position: relative; overflow: hidden; }
.comp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.comp-card .badge-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.comp-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.comp-card p { color: var(--muted); }
.comp-card .pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .82rem; color: var(--brand-700); background: var(--brand-soft); padding: 7px 13px; border-radius: 999px; }
.iso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.iso-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 18px; transition: all .4s; }
.iso-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.iso-card .iso-seal { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #e0c478); color: #fff; font-family: var(--font-display); font-weight: 800; box-shadow: 0 10px 24px -10px rgba(200,162,75,.6); }
.iso-card h4 { font-size: 1.05rem; }
.iso-card p { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ----------------------------  RESPONSIVE  ---------------------------- */
@media (max-width: 1024px) {
  .hero-inner, .split, .pb-grid { grid-template-columns: 1fr; }
  .hero-video { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .float-card.fc1 { left: 6px } .float-card.fc2 { left: 6px }
}
@media (max-width: 760px) {
  :root { --section-y: clamp(3.5rem, 12vw, 5rem); }
  .nav-links { display: none; }
  .burger { display: grid; place-items: center; }
  .nav-actions .btn-primary { display: none; }
  .stat-band, .value-grid, .persona-grid, .iso-grid, .compliance-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 12 !important; }
  .testi-logo { display: none; }
  .mobile-menu.open { display: flex; }

  /* --- Compact, above-the-fold hero on phones --- */
  .hero { padding-top: 1.1rem; padding-bottom: 2rem; }
  .hero-inner { gap: 22px; }
  .hero-badge { font-size: .74rem; padding: 6px 12px; }
  .hero h1 { font-size: 2rem; line-height: 1.12; margin: .8rem 0 .7rem; }
  .hero p.sub { font-size: .98rem; max-width: 100%; }
  .hero-cta { margin-top: 1.2rem; gap: 10px; }
  .hero-cta .btn { flex: 1 1 46%; padding: 12px 16px; font-size: .9rem; }
  .hero-meta { margin-top: 1.4rem; gap: 14px 26px; }
  .hero-meta .stat .n { font-size: 1.45rem; }
  .hero-meta .stat .l { font-size: .76rem; }
  .float-card { display: none; }           /* declutter the muted video on small screens */
  .hero-video { aspect-ratio: 16 / 10; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.78rem; }
  .hero-meta { gap: 12px 20px; }
}

/* Mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 80; background: var(--bg); flex-direction: column; padding: 28px 24px; gap: 8px; }
.mobile-menu a { padding: 16px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mm-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; }

/* ----------------------------  UTILITY LAYER  ---------------------------- */
.flex { display: flex; } .grid { display: grid; } .hidden { display: none; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; } .flex-col { flex-direction: column; }
.text-center { text-align: center; } .text-left { text-align: left; }
.gap-2{gap:.5rem} .gap-3{gap:.75rem} .gap-4{gap:1rem} .gap-5{gap:1.25rem} .gap-6{gap:1.5rem}
.mt-2{margin-top:.5rem} .mt-3{margin-top:.75rem} .mt-4{margin-top:1rem} .mt-6{margin-top:1.5rem} .mt-8{margin-top:2rem} .mt-10{margin-top:2.5rem}
.mb-3{margin-bottom:.75rem} .mb-4{margin-bottom:1rem} .mb-6{margin-bottom:1.5rem} .mb-8{margin-bottom:2rem}
.muted{ color: var(--muted); } .strong{ font-weight: 800; } .relative{ position: relative; } .w-full{ width: 100%; }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
@media (max-width: 1024px){ .g3{grid-template-columns:repeat(2,1fr)} .g4{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 760px){ .g3,.g4{grid-template-columns:1fr} .col-4,.col-6,.col-8{grid-column:span 12} .hide-sm{display:none !important} }

/* utility */
.grid-bg { background-image: radial-gradient(var(--border-2) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; position: absolute; inset: 0; z-index: 0; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); pointer-events: none; }
.rel { position: relative; z-index: 2; }

/* =====================================================================
   BATCH REFINEMENTS (hero zoom, KSA flag, ps2, testimonial wall, logos)
   ===================================================================== */

/* --- Hero: zoomed out (more breathing room, smaller copy + video) --- */
@media (min-width: 1025px){ .hero{ min-height: calc(100vh - 250px); } }
.hero-inner{ gap: 64px; }
.hero-badge{ font-size: .76rem; padding: 6px 13px; }
.hero h1{ font-size: clamp(1.65rem, 2.5vw, 2.3rem); margin: .85rem 0 .85rem; }
.hero p.sub{ font-size: .96rem; max-width: 460px; }
.hero-cta{ margin-top: 1.35rem; }
.hero-meta{ margin-top: 1.55rem; }
.hero-meta .stat{ padding: 11px 18px; }
.hero-meta .stat .n{ font-size: 1.28rem; }
.hero-meta .stat .l{ font-size: .74rem; }
.hero-media{ max-width: 452px; margin-inline: auto; width: 100%; }
.hero-glow.g1{ width: 340px; height: 340px; } .hero-glow.g2{ width: 300px; height: 300px; }

/* --- Saudi flag chip (announcement) --- */
.ksa-flag{ display:inline-block; width:22px; height:15px; border-radius:3px; vertical-align:-3px; box-shadow:0 0 0 1px rgba(255,255,255,.3); }

/* --- Problem -> Solution v2 (Before -> With P+) --- */
.ps2{ display:grid; grid-template-columns:1fr auto 1.12fr; gap:24px; align-items:center; margin-top:clamp(2.5rem,5vw,3.5rem); }
.ps2-side{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:clamp(24px,2.6vw,34px); box-shadow:var(--shadow-sm); height:100%; display:flex; flex-direction:column; transition:transform .3s cubic-bezier(.22,1,.36,1), border-color .3s; }
.ps2-side:hover{ transform:translateY(-4px); }
.ps2-after{ border-color:color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow:0 30px 70px -28px color-mix(in srgb, var(--brand) 38%, transparent); }
.ps2-label{ display:inline-flex; align-items:center; gap:8px; align-self:flex-start; font-family:var(--font-display); font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; padding:6px 13px; border-radius:999px; margin-bottom:16px; }
.ps2-label.before{ color:#d9573c; background:rgba(224,99,99,.12); }
.ps2-label.after{ color:#fff; background:linear-gradient(120deg,var(--brand-600),var(--brand)); }
.ps2-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.ps2-side h3{ font-size:clamp(1.2rem,2vw,1.5rem); line-height:1.25; margin-bottom:18px; color:var(--ink); }
.ps2-fragments{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; padding:4px 0; }
.frag{ display:inline-block; transform:rotate(var(--r)); background:var(--bg-2); border:1px dashed var(--border-2); color:var(--muted); font-size:.84rem; font-weight:600; padding:9px 14px; border-radius:10px; box-shadow:0 6px 16px -10px rgba(0,0,0,.22); }
html[dir="rtl"] .frag{ transform:rotate(calc(var(--r) * -1)); }
.ps2-list{ list-style:none; padding:0; margin:auto 0 0; display:flex; flex-direction:column; gap:13px; }
.ps2-list li{ display:flex; align-items:flex-start; gap:11px; color:var(--text); font-weight:500; font-size:.95rem; line-height:1.5; }
.ps2-list .pdot{ width:7px; height:7px; border-radius:50%; background:var(--muted); flex:none; margin-top:8px; opacity:.65; }
.ps2-list .pchk{ flex:none; margin-top:1px; color:var(--brand); width:19px; height:19px; }
.ps2-shot{ margin:0 0 22px; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--border-2); line-height:0; background:linear-gradient(150deg,var(--ink),#0a2f3b 55%,var(--brand-700)); padding:14px; }
html[data-theme="dark"] .ps2-shot{ background:linear-gradient(150deg,#08222b,#0a3340 55%,var(--brand-700)); }
.ps2-shot svg{ width:100%; display:block; height:auto; }
.ps2-mid{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.ps2-badge{ width:58px; height:58px; border-radius:50%; display:grid; place-items:center; background:var(--surface); border:1px solid var(--border-2); box-shadow:var(--shadow-sm); }
.ps2-badge img{ width:30px; height:30px; }
.ps2-arrow{ color:var(--brand); font-size:1.7rem; font-weight:800; line-height:1; }
html[dir="rtl"] .ps2-arrow{ transform:scaleX(-1); }
@media(max-width:920px){ .ps2{ grid-template-columns:1fr; gap:16px; } .ps2-mid{ flex-direction:row; justify-content:center; gap:14px; } .ps2-arrow, html[dir="rtl"] .ps2-arrow{ transform:rotate(90deg); } }

/* --- Testimonials: auto-scrolling wall of love (ported from S+) --- */
.testi-wall{ display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:var(--container); margin:clamp(2rem,4vw,3rem) auto 0; padding:0 24px; height:560px; overflow:hidden; position:relative; -webkit-mask-image:linear-gradient(180deg,transparent,#000 11%,#000 89%,transparent); mask-image:linear-gradient(180deg,transparent,#000 11%,#000 89%,transparent); }
.t-col{ overflow:hidden; }
.t-col-inner{ display:flex; flex-direction:column; gap:14px; animation:tscroll 58s linear infinite; will-change:transform; }
.t-col.reverse .t-col-inner{ animation-direction:reverse; animation-duration:68s; }
.testi-wall:hover .t-col-inner{ animation-play-state:paused; }
@keyframes tscroll{ from{ transform:translateY(0); } to{ transform:translateY(-50%); } }
@media (prefers-reduced-motion: reduce){ .t-col-inner{ animation:none; } }
.t-card{ margin:0; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:19px 22px; box-shadow:var(--shadow-sm); transition:border-color .3s, transform .3s cubic-bezier(.22,1,.36,1); }
.t-card:hover{ border-color:color-mix(in srgb, var(--brand) 45%, var(--border)); transform:translateY(-3px); }
.t-stars{ color:var(--gold); letter-spacing:3px; font-size:.86rem; margin-bottom:8px; }
.t-quote{ font-family:var(--font-body); font-size:.95rem; line-height:1.45; color:var(--text); margin-bottom:13px; display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.t-by{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.t-logo{ width:46px; height:46px; border-radius:11px; background:#fff; border:1px solid var(--border); display:grid; place-items:center; padding:7px; flex:none; }
.t-logo img{ max-width:100%; max-height:100%; object-fit:contain; }
.t-meta{ display:flex; flex-direction:column; min-width:0; }
.t-meta strong{ font-family:var(--font-display); font-size:.95rem; color:var(--ink); }
.t-meta span{ color:var(--muted); font-size:.83rem; }
.t-badge{ margin-inline-start:auto; font-family:var(--font-display); font-weight:600; font-size:.74rem; color:var(--brand-600); background:var(--brand-soft); padding:5px 11px; border-radius:999px; white-space:nowrap; }
@media(max-width:760px){ .testi-wall{ grid-template-columns:1fr; height:520px; } .t-col.reverse{ display:none; } }

/* --- Compliance logo tiles (sub page) --- */
.comp-logo{ height:62px; width:auto; max-width:230px; border-radius:14px; background:#fff; border:1px solid var(--border); display:inline-flex; align-items:center; justify-content:center; padding:11px 18px; margin-bottom:20px; box-shadow:var(--shadow-sm); }
.comp-logo img{ height:38px; width:auto; max-width:190px; object-fit:contain; display:block; }
.comp-logo.g{ padding:11px; }
.comp-logo.g img{ height:40px; width:40px; }

/* --- Support band + WhatsApp button --- */
.support-band{ padding-top: clamp(1.5rem,3vw,2.5rem); }
.support-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); padding:clamp(1.8rem,3.5vw,2.6rem); display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.support-text h2{ font-size:clamp(1.35rem,2.6vw,1.85rem); margin:.7rem 0 .5rem; font-weight:800; }
.support-text p{ color:var(--muted); margin:0; }
.support-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.btn-wa{ background:#25D366; color:#fff; border-color:transparent; box-shadow:0 12px 26px -14px rgba(37,211,102,.6); }
.btn-wa:hover{ background:#1ebe5b; transform:translateY(-3px); box-shadow:0 18px 34px -14px rgba(37,211,102,.7); }
.btn-wa svg{ width:20px; height:20px; }
@media(max-width:760px){ .support-card{ flex-direction:column; align-items:stretch; text-align:center; } .support-text .eyebrow{ align-self:center; } .support-actions{ justify-content:center; } .support-actions .btn{ flex:1 1 auto; } }

/* --- Problem -> Solution v3: "The shift" transformation cards --- */
.shift-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:clamp(2.5rem,5vw,3.5rem); }
.shift-card{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:30px 28px; box-shadow:var(--shadow-sm); overflow:hidden; transition:transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .3s; }
.shift-card:hover{ transform:translateY(-7px); box-shadow:var(--shadow); border-color:var(--border-2); }
.shift-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--brand-400), var(--brand) 70%); }
.shift-card::after{ content:""; position:absolute; width:150px; height:150px; border-radius:50%; right:-50px; top:-50px; background:radial-gradient(circle, var(--brand), transparent 70%); opacity:.08; pointer-events:none; }
.shift-before{ display:flex; align-items:center; gap:10px; width:100%; font-size:.9rem; font-weight:600; color:var(--muted); background:var(--bg-2); border:1px dashed var(--border-2); padding:9px 12px; border-radius:13px; }
.shift-before .blbl{ font-family:var(--font-display); font-weight:800; font-size:.58rem; letter-spacing:.09em; text-transform:uppercase; color:var(--brand-600); background:var(--brand-soft); padding:4px 9px; border-radius:7px; flex:none; }
.shift-before .bt{ color:var(--muted); }
.shift-arrow{ display:flex; align-items:center; gap:12px; margin:20px 0; }
.shift-arrow .line{ flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--border-2),transparent); }
.shift-arrow .ic{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(135deg,var(--brand-600),var(--brand)); color:#fff; box-shadow:0 10px 20px -8px rgba(42,174,192,.6); flex:none; }
.shift-arrow .ic svg{ width:19px; height:19px; }
.shift-ic{ width:54px; height:54px; border-radius:15px; display:grid; place-items:center; color:#fff; margin-bottom:16px; box-shadow:var(--shadow-sm); }
.shift-ic svg{ width:26px; height:26px; }
.shift-card h3{ font-family:var(--font-display); font-weight:800; font-size:1.22rem; color:var(--ink); margin-bottom:9px; }
.shift-card .shift-desc{ color:var(--muted); font-size:.97rem; line-height:1.55; margin:0; }
@media(max-width:900px){ .shift-grid{ grid-template-columns:1fr; } }

/* ============================ BOOK A DEMO MODAL ============================ */
.demo-modal{ position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:14px; }
.demo-modal.open{ display:flex; }
body.demo-open{ overflow:hidden; }
.demo-overlay{ position:absolute; inset:0; background:rgba(6,22,28,.55); backdrop-filter:blur(6px); opacity:0; transition:opacity .3s ease; }
.demo-modal.open .demo-overlay{ opacity:1; }
.demo-dialog{ position:relative; z-index:2; display:flex; flex-direction:column; width:min(500px,100%); max-height:calc(100dvh - 28px); background:var(--surface); border:1px solid var(--border-2); border-radius:24px; overflow:hidden; box-shadow:0 40px 100px -30px rgba(6,22,28,.6); transform:translateY(18px) scale(.98); opacity:0; transition:transform .42s cubic-bezier(.22,1,.36,1), opacity .42s; }
.demo-modal.open .demo-dialog{ transform:none; opacity:1; }
.demo-x{ position:absolute; top:14px; right:14px; z-index:6; width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:var(--surface); border:1px solid var(--border-2); color:var(--ink); cursor:pointer; transition:all .25s; }
.demo-x:hover{ color:var(--brand-600); border-color:var(--brand); transform:rotate(90deg); }
.demo-x svg{ width:18px; height:18px; }

.demo-aside{ position:relative; padding:34px 30px; color:#fff; overflow:hidden; background:linear-gradient(160deg,#0A2530,#15788a 58%,#2AAEC0); display:flex; }
.demo-aside-bg{ position:absolute; inset:0; background:radial-gradient(circle at 82% 8%, rgba(255,255,255,.20), transparent 45%), radial-gradient(circle at 6% 92%, rgba(108,92,231,.40), transparent 52%); pointer-events:none; }
.demo-aside-in{ position:relative; z-index:2; display:flex; flex-direction:column; height:100%; }
.demo-brand{ display:flex; align-items:center; gap:9px; font-family:var(--font-display); font-weight:800; font-size:1.25rem; }
.demo-brand img{ height:28px; filter:brightness(0) invert(1); }
.demo-aside h3{ font-family:var(--font-display); font-weight:800; font-size:1.5rem; line-height:1.2; margin:22px 0 10px; color:#fff; }
.demo-aside p{ color:rgba(255,255,255,.82); font-size:.92rem; line-height:1.5; margin:0 0 22px; }
.demo-points{ list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.demo-points li{ display:flex; align-items:flex-start; gap:10px; font-size:.9rem; color:rgba(255,255,255,.94); }
.demo-points li svg{ width:18px; height:18px; flex:none; margin-top:1px; padding:3px; background:rgba(255,255,255,.18); border-radius:50%; }
.demo-aside-foot{ margin-top:auto; padding-top:24px; }
.da-badge{ display:inline-flex; align-items:center; gap:7px; font-size:.74rem; font-weight:600; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); padding:7px 12px; border-radius:999px; }
.da-badge svg{ width:14px; height:14px; }

.demo-form-wrap{ flex:1 1 auto; min-height:0; padding:30px 30px 26px; overflow-y:auto; }
.demo-eyebrow{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-display); font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-700); background:var(--brand-soft); padding:6px 12px; border-radius:999px; }
.demo-eyebrow svg{ width:14px; height:14px; }
.demo-head h2{ font-family:var(--font-display); font-weight:800; font-size:1.5rem; color:var(--ink); margin:12px 0 6px; }
.demo-head p{ color:var(--muted); font-size:.92rem; margin:0 0 18px; }
.demo-form{ display:grid; gap:14px; }
.demo-form[hidden], .demo-form-wrap[hidden], .demo-success[hidden]{ display:none; }
.df-opt{ font-weight:600; font-size:.72rem; color:var(--muted); }
.df-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.df-field{ display:flex; flex-direction:column; gap:6px; }
.df-field label{ font-family:var(--font-display); font-weight:700; font-size:.82rem; color:var(--ink); }
.df-field input, .df-field textarea, .df-cc select{ font-family:var(--font-body); font-size:.92rem; color:var(--ink); background:var(--bg-2); border:1px solid var(--border-2); border-radius:12px; padding:11px 13px; width:100%; transition:border-color .2s, box-shadow .2s, background .2s; }
.df-field input::placeholder, .df-field textarea::placeholder{ color:var(--muted); opacity:.7; }
.df-field input:focus, .df-field textarea:focus, .df-cc select:focus{ outline:none; border-color:var(--brand); background:var(--surface); box-shadow:0 0 0 3px var(--brand-soft); }
.df-field textarea{ resize:vertical; min-height:72px; }
.df-err{ display:none; font-size:.76rem; color:#cf5743; font-weight:600; }
.df-field.invalid input, .df-field.invalid textarea{ border-color:#e0857a; background:rgba(224,99,99,.06); }
.df-field.invalid .df-err{ display:block; }

.df-phone{ display:grid; grid-template-columns:minmax(120px,150px) 1fr; gap:10px; }
.df-cc{ position:relative; }
.df-cc select{ appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:30px; }
.df-cc svg{ position:absolute; right:10px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--muted); pointer-events:none; }
.df-numwrap{ position:relative; display:flex; align-items:center; }
.df-code{ position:absolute; left:13px; font-family:var(--font-display); font-weight:700; font-size:.92rem; color:var(--brand-700); pointer-events:none; }
.df-numwrap input{ padding-left:54px; }
.df-submit{ width:100%; justify-content:center; margin-top:4px; }
.df-fineprint{ font-size:.74rem; color:var(--muted); text-align:center; margin:10px 0 0; }

.demo-success{ display:flex; flex-direction:column; }
.ds-head{ background:linear-gradient(135deg,#0A2530,#15788a 58%,#2AAEC0); color:#fff; padding:24px 28px; text-align:start; }
.ds-head .ds-logo{ height:30px; display:inline-block; filter:brightness(0) invert(1); margin-bottom:12px; }
.ds-head .ds-tag{ margin:0; font-size:.92rem; line-height:1.5; color:rgba(255,255,255,.9); }
.ds-body{ padding:32px 24px 30px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.ds-body .ds-ic{ width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:rgba(33,196,122,.14); color:#18a865; margin-bottom:16px; }
.ds-body .ds-ic svg{ width:30px; height:30px; }
.ds-body h2{ font-family:var(--font-display); font-weight:800; font-size:1.4rem; color:var(--ink); margin:0 0 8px; }
.ds-body p{ color:var(--muted); font-size:.94rem; max-width:340px; margin:0 0 20px; }

html[dir="rtl"] .demo-x{ right:auto; left:14px; }
html[dir="rtl"] .df-code{ left:auto; right:13px; }
html[dir="rtl"] .df-numwrap input{ padding-left:13px; padding-right:54px; }
html[dir="rtl"] .df-cc select{ padding-right:13px; padding-left:30px; }
html[dir="rtl"] .df-cc svg{ right:auto; left:10px; }

@media (max-width:760px){
  .demo-dialog{ grid-template-columns:1fr; max-height:calc(100vh - 24px); }
  .demo-aside{ display:none; }
  .df-grid{ grid-template-columns:1fr; }
  .df-phone{ grid-template-columns:minmax(110px,135px) 1fr; }
  .demo-form-wrap{ padding:26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce){
  .demo-overlay, .demo-dialog, .demo-x{ transition:none; }
}

/* ============================ HERO VIDEO: click-to-expand + lightbox ============================ */
.hv-expand{ position:absolute; inset:30px 0 0; z-index:4; border:0; background:transparent; cursor:pointer; transition:background .3s; }
.hv-expand:hover{ background:rgba(4,20,26,.16); }
.hv-ico{ position:absolute; bottom:12px; left:12px; width:34px; height:34px; border-radius:9px; background:rgba(4,20,26,.62); color:#fff; display:grid; place-items:center; border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(6px); transition:background .2s, transform .2s; }
.hv-expand:hover .hv-ico{ background:rgba(4,20,26,.85); transform:scale(1.06); }
.hv-ico svg{ width:17px; height:17px; }
html[dir="rtl"] .hv-ico{ left:auto; right:12px; }

.video-modal{ position:fixed; inset:0; z-index:1100; display:none; align-items:center; justify-content:center; padding:24px; }
.video-modal.open{ display:flex; }
.vm-overlay{ position:absolute; inset:0; background:rgba(4,14,18,.82); backdrop-filter:blur(8px); }
.vm-dialog{ position:relative; z-index:2; width:min(1100px,94vw); }
.vm-frame{ position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:16px; overflow:hidden; box-shadow:0 40px 120px -30px rgba(0,0,0,.85); }
.vm-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.vm-close{ position:absolute; top:-46px; right:0; width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff; cursor:pointer; display:grid; place-items:center; transition:all .2s; }
.vm-close:hover{ background:rgba(255,255,255,.22); transform:rotate(90deg); }
.vm-close svg{ width:20px; height:20px; }
html[dir="rtl"] .vm-close{ right:auto; left:0; }
@media(max-width:600px){ .vm-close{ top:-44px; } }

/* ============================ HERO "by MasterTeam" lockup ============================ */
.hero-by{ display:inline-flex; align-items:center; gap:10px; margin-top:1.5rem; font-family:var(--font-display); font-weight:600; font-size:.8rem; color:var(--muted); }
.hero-by.hero-by-top{ margin-top:0; margin-bottom:1.15rem; }
.hero-by .hero-mt{ height:24px; width:auto; }
html[data-theme="dark"] .hero-by .hero-mt{ filter:brightness(0) invert(1); opacity:.92; }

/* ============================ FARIS prominent header ============================ */
.faris-head .faris-eyebrow{ display:inline-flex; align-items:center; gap:9px; font-family:var(--font-display); font-weight:700; font-size:.8rem; letter-spacing:.04em; color:#fff; background:linear-gradient(135deg,#6E86F0,#B07BD6); padding:9px 18px; border-radius:999px; box-shadow:0 14px 34px -12px rgba(110,134,240,.7); }
.faris-head .fe-spark{ width:18px; height:18px; }
.faris-title{ font-size:clamp(2.4rem,5.5vw,4rem); line-height:1.04; margin-top:18px; }
.faris-title .text-grad{ background:linear-gradient(120deg,#6E86F0 0%,#9b7ce0 50%,#B07BD6 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.faris-head .faris-lead{ font-size:1.06rem; max-width:680px; margin-inline:auto; }
.faris-head{ margin-bottom: 2rem; }
.faris-head .faris-logo{ display:block; width:78px; height:78px; margin:16px auto 0; filter:drop-shadow(0 12px 26px rgba(110,134,240,.45)); }

/* ============================ Header products switcher ============================ */
.nav-prod{ position:relative; display:flex; align-items:center; }
.np-trigger{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-display); font-weight:700; font-size:.92rem; color:var(--ink); background:var(--brand-soft); border:1px solid var(--border-2); padding:8px 13px; border-radius:11px; cursor:pointer; transition:all .2s; }
.np-trigger:hover, .nav-prod.open .np-trigger{ border-color:var(--brand); color:var(--brand-700); }
.np-caret{ transition:transform .25s; }
.nav-prod.open .np-caret{ transform:rotate(180deg); }
.np-menu{ position:absolute; top:calc(100% + 12px); left:0; width:320px; background:var(--surface); border:1px solid var(--border-2); border-radius:18px; box-shadow:0 30px 70px -24px rgba(6,22,28,.5); padding:12px; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .22s, transform .22s, visibility .22s; z-index:60; }
.nav-prod.open .np-menu, .nav-prod:hover .np-menu{ opacity:1; visibility:visible; transform:none; }
.np-head{ display:block; font-family:var(--font-display); font-weight:700; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:6px 10px 10px; }
.np-item{ display:flex; align-items:center; gap:12px; padding:11px 10px; border-radius:12px; transition:background .2s; }
.np-item:hover{ background:var(--bg-2); }
.np-ic{ width:40px; height:40px; border-radius:11px; display:grid; place-items:center; flex:none; background:var(--surface); border:1px solid var(--border); padding:7px; }
.np-ic img{ width:100%; height:100%; object-fit:contain; display:block; }
.np-txt{ display:flex; flex-direction:column; min-width:0; }
.np-txt strong{ font-family:var(--font-display); font-size:.96rem; color:var(--ink); }
.np-txt span{ font-size:.8rem; color:var(--muted); }
.np-tag{ margin-inline-start:auto; font-size:.66rem; font-weight:700; color:var(--brand-700); background:var(--brand-soft); padding:4px 8px; border-radius:999px; white-space:nowrap; }
.np-go{ margin-inline-start:auto; width:16px; height:16px; color:var(--muted); flex:none; }
.np-item.is-current{ background:var(--brand-soft); }
/* "Soon" — products/features not yet available from this landing */
.soon-tag{ margin-inline-start:auto; font-size:.66rem; font-weight:700; color:var(--muted); background:var(--bg-2); border:1px solid var(--border); padding:4px 8px; border-radius:999px; white-space:nowrap; letter-spacing:.02em; }
.is-soon{ opacity:.6; pointer-events:none; cursor:default; }
html[dir="rtl"] .np-menu{ left:auto; right:0; }

/* ============================ Footer products strip ============================ */
.foot-products{ padding:8px 0 36px; }
.fp-label{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:700; font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:16px; }
.fp-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.fp-card{ position:relative; display:flex; align-items:center; gap:13px; padding:16px 18px; border:1px solid var(--border); border-radius:16px; background:var(--surface); transition:transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s; }
.fp-card:hover{ transform:translateY(-3px); border-color:var(--brand); box-shadow:var(--shadow-sm); }
.fp-card.current{ background:var(--brand-soft); border-color:var(--border-2); }
.fp-badge{ width:46px; height:46px; border-radius:12px; display:grid; place-items:center; flex:none; background:var(--surface); border:1px solid var(--border); padding:8px; }
.fp-badge img{ width:100%; height:100%; object-fit:contain; display:block; }
.fp-meta{ display:flex; flex-direction:column; }
.fp-meta strong{ font-family:var(--font-display); font-size:1rem; color:var(--ink); }
.fp-meta span{ font-size:.82rem; color:var(--muted); }
.fp-go{ margin-inline-start:auto; width:17px; height:17px; color:var(--muted); }
@media(max-width:760px){ .fp-cards{ grid-template-columns:1fr; } }

/* ============================ Footer contact ============================ */
.foot-contact a, .foot-contact > li > span{ display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:.92rem; }
.foot-contact a:hover{ color:var(--brand-600); }
.foot-contact svg{ width:15px; height:15px; flex:none; color:var(--brand); }

/* ============================ Footer MasterTeam / MasterWorks ============================ */
.foot-brands{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; padding:26px 0; border-top:1px solid var(--border); }
.foot-brands .fb-mt{ height:34px; width:auto; }
.foot-brands .fb-sep{ width:1px; height:34px; background:var(--border-2); }
.fb-mw{ display:inline-flex; flex-direction:column; gap:3px; }
.fb-mw .fb-sublbl{ font-family:var(--font-display); font-weight:600; font-size:.66rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.fb-mw img{ height:42px; width:auto; }
html[data-theme="dark"] .foot-brands .fb-mt, html[data-theme="dark"] .fb-mw img{ filter:brightness(0) invert(1); opacity:.9; }

/* ============================ Mobile menu products ============================ */
.mm-products{ margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.mm-plabel{ display:block; font-family:var(--font-display); font-weight:700; font-size:.68rem; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; padding:0 4px; }
.mm-prod{ display:flex !important; align-items:center; gap:11px; padding:10px 4px !important; font-size:.95rem !important; border-bottom:0 !important; }
.mm-prod .np-ic{ width:34px; height:34px; font-size:.85rem; }
.mm-prod > i{ margin-inline-start:auto; width:16px; height:16px; color:var(--muted); }

/* ============================ SCROLL PROGRESS BAR ============================ */
.scroll-progress{ position:fixed; top:0; left:0; height:3px; width:0; z-index:2000; background:linear-gradient(90deg, var(--brand-600), var(--brand) 55%, var(--brand-400)); box-shadow:0 0 8px rgba(42,174,192,.55); border-radius:0 2px 2px 0; transition:width .08s linear; will-change:width; }
html[dir="rtl"] .scroll-progress{ left:auto; right:0; border-radius:2px 0 0 2px; }
@media (prefers-reduced-motion: reduce){ .scroll-progress{ transition:none; } }
