/* ==========================================================================
   Ravixops — Design System (RTL / Persian)
   ========================================================================== */

@font-face {
  font-family: 'Estedad Variable';
  src: url('/fonts/estedad-arabic-wght-normal.woff2') format('woff2-variations'),
       url('/fonts/estedad-arabic-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: 'Estedad Variable';
  src: url('/fonts/estedad-latin-wght-normal.woff2') format('woff2-variations'),
       url('/fonts/estedad-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #06070d;
  --navy-900: #0b0d16;
  --navy-850: #10121e;
  --navy-800: #171a2b;
  --navy-700: #212540;
  --navy-600: #2c3156;
  --teal-300: #a9d8ff;
  --teal-400: #5fb2f5;
  --teal-500: #2f8fe0;
  --teal-600: #1c6fb8;
  --ink: #101827;
  --slate-600: #4b5567;
  --slate-500: #5b6478;
  --slate-400: #8891a5;
  --slate-300: #c7cedb;
  --slate-100: #eef1f7;
  --paper: #f7f8fc;
  --white: #ffffff;
  --danger: #ff6b57;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(10, 19, 48, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 19, 48, 0.10);
  --shadow-lg: 0 30px 60px -15px rgba(10, 19, 48, 0.35);
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gradient-accent: linear-gradient(135deg, var(--teal-400), var(--teal-500));
  --focus-ring: 0 0 0 3px rgba(95, 178, 245, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Estedad Variable', Tahoma, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

::selection { background: var(--teal-400); color: var(--navy-950); }

a, button, [tabindex] { outline: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reveal-on-scroll (only hides content once JS confirms it can reveal it again) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* Reveal variants — used selectively for rhythm, not everywhere */
.js .reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.js .reveal-side { opacity: 0; transform: translateX(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[dir="ltr"] .js .reveal-side { transform: translateX(-32px); }
.js .reveal-side.is-visible { opacity: 1; transform: translateX(0); }
.js .reveal-side.reverse { transform: translateX(-32px); }
[dir="ltr"] .js .reveal-side.reverse { transform: translateX(32px); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  background: var(--gradient-accent);
  z-index: 200; pointer-events: none;
  transition: width .1s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--navy-950);
  box-shadow: 0 10px 25px -8px rgba(47, 143, 224, 0.55);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(47, 143, 224, 0.65); }
.btn-outline {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 30%,
    rgba(255,255,255,0) 50%, rgba(255,255,255,.12) 75%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; }
.btn-arrow { transform: scaleX(-1); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--slate-300);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 22px; }
.topbar-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { width: 14px; height: 14px; opacity: .8; flex-shrink: 0; }
.topbar-social { display: none; gap: 14px; }
@media (min-width: 640px) { .topbar-social { display: flex; } }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); transition: background .2s, transform .2s; }
.topbar-social a:hover { background: var(--teal-500); transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: none; align-items: center; gap: 2px; }
@media (min-width: 900px) { .lang-switch { display: flex; } }
.lang-switch a {
  font-size: 0.78rem; font-weight: 600; color: var(--slate-400);
  padding: 4px 9px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-switch a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.lang-switch a:hover { color: var(--white); }
.mobile-lang-switch { display: flex !important; gap: 8px; padding: 14px 4px 4px !important; border-bottom: none !important; }
.mobile-lang-switch a {
  flex: 1; text-align: center; font-size: 0.85rem; padding: 9px 6px !important;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}
.mobile-lang-switch a.active { background: rgba(255,255,255,0.1); color: var(--teal-400); border-color: var(--teal-500); }
.topbar-alert { display: none; }

@media (min-width: 900px) {
  .topbar-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
  }
  .topbar-alert::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(95,178,245,.25); }
}

/* ---------- Skip link (keyboard a11y) ---------- */
.skip-link {
  position: fixed; z-index: 1000; top: 10px; inset-inline-start: 10px;
  background: var(--white); color: var(--ink);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-150%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--teal-600); outline-offset: 2px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 19, 48, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 40px; height: auto; }
.brand-word { font-size: 1.28rem; font-weight: 800; letter-spacing: 0; color: var(--white); }
.brand-word span { color: var(--teal-400); }

.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--slate-300);
  font-weight: 600;
  font-size: 0.91rem;
  padding: 10px 13px;
  border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--navy-950); background: var(--teal-400); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn-primary.btn-sm { display: none; }
@media (min-width: 460px) { .nav-actions .btn-primary.btn-sm { display: inline-flex; } }
.nav-search {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  align-items: center; justify-content: center;
  color: var(--slate-300);
  transition: background .2s, color .2s;
}
.nav-search:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-search svg { width: 16px; height: 16px; }

.nav-burger {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.nav-burger svg { width: 20px; height: 20px; }

@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-search { display: flex; }
  .nav-burger { display: none; }
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--navy-900);
  transition: max-height .35s var(--ease);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { max-height: 520px; }
.mobile-menu ul { padding: 10px 24px 22px; display: flex; flex-direction: column; }
.mobile-menu a { color: var(--slate-300); font-weight: 600; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a.active { color: var(--teal-400); }

@media (min-width: 1080px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 550px at 82% -10%, #12294d 0%, transparent 60%),
              radial-gradient(900px 500px at 0% 10%, #0d1f38 0%, transparent 55%),
              linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 108px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 45%, rgba(6,7,13,0.55) 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  z-index: 1;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,178,245,.35), transparent 70%);
  top: -180px; left: -120px;
  filter: blur(10px);
  pointer-events: none;
  animation: driftGlow 16s ease-in-out infinite;
}
@keyframes driftGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-25px, 15px) scale(0.96); }
}

/* Cinematic looping aurora — a CSS-only stand-in for a video backplate,
   built from Ravix's own navy/teal palette instead of a foreign asset. */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-aurora i {
  position: absolute;
  border-radius: 50%;
  font-style: normal;
  filter: blur(70px);
  opacity: .6;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero-aurora i:nth-child(1) {
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(47,143,224,.62), transparent 70%);
  top: -240px; inset-inline-end: -180px;
  animation: auroraDrift1 28s ease-in-out infinite;
}
.hero-aurora i:nth-child(2) {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(95,178,245,.46), transparent 70%);
  bottom: -240px; inset-inline-start: -140px;
  animation: auroraDrift2 34s ease-in-out infinite;
}
.hero-aurora i:nth-child(3) {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(169,216,255,.36), transparent 70%);
  top: 28%; inset-inline-start: 42%;
  animation: auroraDrift3 22s ease-in-out infinite;
}
.hero-aurora i:nth-child(4) {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(44,49,86,.7), transparent 72%);
  top: 8%; inset-inline-end: 20%;
  animation: auroraDrift2 24s ease-in-out infinite reverse;
}
@keyframes auroraDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 60px) scale(1.15); }
}
@keyframes auroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.12); }
}
@keyframes auroraDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .4; }
  50% { transform: translate(30px, 30px) scale(1.3); opacity: .68; }
}
@media (prefers-reduced-motion: reduce) { .hero-aurora i { animation: none; } }
@media (max-width: 720px) { .hero-aurora i { filter: blur(46px); } .hero-aurora i:nth-child(4) { display: none; } }

/* Fine film-grain — barely visible, adds cinematic texture instead of a flat gradient */
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .55; pointer-events: none; }
.hero-network .edge { stroke: var(--teal-400); stroke-width: 1; opacity: .18; }
.hero-network .edge-flow {
  stroke-dasharray: 3 7;
  animation: edgeFlow 3.5s linear infinite;
  opacity: .38;
}
.hero-network .node {
  fill: var(--teal-300);
  animation: nodePulse 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes edgeFlow { to { stroke-dashoffset: -20; } }
@keyframes nodePulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-network .edge-flow { animation: none; }
  .hero-network .node { animation: none; opacity: .5; }
}
@media (max-width: 720px) { .hero-network { opacity: .35; } }

.hero-slider { position: relative; z-index: 2; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: heroSlideIn .5s var(--ease); }
@keyframes heroSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none; } }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.hero-dot { width: 34px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,0.18); cursor: pointer; transition: background .3s, width .3s; }
.hero-dot:hover { background: rgba(255,255,255,0.32); }
.hero-dot.is-active { width: 54px; background: var(--teal-400); }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 52px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0;
  color: var(--teal-300);
  background: rgba(95, 178, 245, 0.1);
  border: 1px solid rgba(95, 178, 245, 0.28);
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal-300), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(95,178,245,.35));
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--slate-300);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

/* Cinematic entrance — plays once on load/slide-in, not scroll-triggered */
@keyframes heroFadeRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-slide.is-active .eyebrow { animation: heroFadeRise .75s var(--ease) both; }
.hero-slide.is-active h1 { animation: heroFadeRise .75s var(--ease) .12s both; }
.hero-slide.is-active p.lead { animation: heroFadeRise .75s var(--ease) .24s both; }
.hero-slide.is-active .hero-ctas { animation: heroFadeRise .75s var(--ease) .36s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .eyebrow, .hero-slide.is-active h1,
  .hero-slide.is-active p.lead, .hero-slide.is-active .hero-ctas { animation: none; }
}

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
}
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  backdrop-filter: blur(6px);
}
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--white); letter-spacing: 0; direction: ltr; display: inline-block; }
.stat-num span { color: var(--teal-400); }
.stat-label { font-size: 0.82rem; color: var(--slate-300); margin-top: 4px; }

/* ---------- Section basics ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.section-dark .kicker { color: var(--teal-400); }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: 0; margin-bottom: 16px; }
.section-head p { color: var(--slate-500); font-size: 1.03rem; }
.section-dark .section-head p { color: var(--slate-300); }

/* ---------- Icon badges ---------- */
.icon-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent);
  color: var(--navy-950);
  flex-shrink: 0;
  transition: transform .35s var(--ease-spring);
}
.icon-badge svg { width: 26px; height: 26px; }
.service-card:hover .icon-badge,
.why-card:hover .why-icon,
.role-card:hover .role-avatar,
.feature-block:hover .icon-badge,
.contact-row:hover .icon-badge { transform: rotate(-8deg) scale(1.08); }
[dir="ltr"] .service-card:hover .icon-badge,
[dir="ltr"] .why-card:hover .why-icon,
[dir="ltr"] .role-card:hover .role-avatar,
[dir="ltr"] .feature-block:hover .icon-badge,
[dir="ltr"] .contact-row:hover .icon-badge { transform: rotate(8deg) scale(1.08); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx, 30%) var(--my, 20%), rgba(95,178,245,.16), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(95,178,245,0.4); background: rgba(255,255,255,0.06); }
a.service-card { display: block; color: inherit; text-decoration: none; }
.service-card:hover::after { opacity: 1; }
.service-num { position: absolute; top: 22px; left: 26px; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.25); direction: ltr; }
.service-card h3 { font-size: 1.12rem; font-weight: 700; margin: 20px 0 10px; color: var(--white); letter-spacing: 0; }
.service-card p { color: var(--slate-300); font-size: 0.92rem; }
.service-card .tag { display: inline-block; margin-top: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--teal-400); }

.service-card.light {
  background: var(--white);
  border-color: var(--slate-100);
  box-shadow: var(--shadow-sm);
}
.service-card.light h3 { color: var(--ink); }
.service-card.light p { color: var(--slate-600); }
.service-card.light .service-num { color: var(--slate-300); }
.service-card.light:hover { box-shadow: var(--shadow-md); border-color: rgba(22,184,174,0.35); }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card.featured {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.why-card.featured .why-icon { background: var(--gradient-accent); color: var(--navy-950); }
.why-card.featured p { color: var(--slate-300); }
.why-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--slate-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform .35s var(--ease-spring);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--slate-500); font-size: 0.93rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 46px 40px;
  background: linear-gradient(120deg, var(--teal-600), var(--navy-800) 65%, var(--navy-900));
  color: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.12;
}
.cta-banner-text { position: relative; z-index: 1; max-width: 560px; }
.cta-banner-text h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 8px; }
.cta-banner-text p { color: rgba(255,255,255,0.85); font-size: 0.98rem; }
.cta-banner-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .about-hero-grid { grid-template-columns: 1fr 1fr; } }
.about-art {
  position: relative;
  aspect-ratio: 1/0.95;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.about-art .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(95,178,245,.35);
}
.about-art .r1 { width: 62%; aspect-ratio:1; top: 50%; left: 46%; transform: translate(-50%,-50%); }
.about-art .r2 { width: 84%; aspect-ratio:1; top: 50%; left: 46%; transform: translate(-50%,-50%); border-color: rgba(95,178,245,.16); }
.about-badge {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 44%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--navy-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px -10px rgba(22,184,174,.55);
  text-align: center;
}
.about-badge .num { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; line-height: 1; direction: ltr; }
.about-badge .lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0; margin-top: 6px; max-width: 90px; }
.about-chip {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: 0.82rem; font-weight: 700;
}
.about-chip svg { width: 18px; height: 18px; color: var(--teal-400); }
.chip-a { top: 8%; right: 6%; }
.chip-b { bottom: 9%; left: 6%; }

.about-copy h2 { font-size: clamp(1.6rem,3.6vw,2.3rem); font-weight: 800; letter-spacing: 0; margin-bottom: 18px; }
.about-copy p { color: var(--slate-600); margin-bottom: 20px; }
.check-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--teal-600); margin-top: 1px; }

.feature-blocks { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 90px; }
@media (min-width: 760px) { .feature-blocks { grid-template-columns: 1fr 1fr; } }
.feature-block { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); padding: 32px; }
.feature-block .icon-badge { margin-bottom: 20px; }
.feature-block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-block p { color: var(--slate-500); font-size: 0.94rem; }

.quote-block {
  margin-top: 90px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 46px;
  color: var(--white);
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .quote-block { grid-template-columns: auto 1fr; align-items: center; } }
.quote-mark { font-size: 4rem; line-height: 1; color: var(--teal-400); font-weight: 800; font-family: Georgia, serif; }
.quote-block p.quote-text { font-size: 1.15rem; font-weight: 500; color: var(--slate-100); margin-bottom: 18px; }
.quote-person { display: flex; align-items: center; gap: 14px; }
.quote-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-accent); display:flex; align-items:center; justify-content:center; font-weight: 800; color: var(--navy-950); }
.quote-name { font-weight: 700; }
.quote-role { color: var(--slate-300); font-size: 0.85rem; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before { content:""; position:absolute; right: 19px; top:6px; bottom:6px; width:2px; background: var(--slate-100); }
.timeline-item { position: relative; padding-right: 56px; margin-bottom: 30px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position:absolute; right: 6px; top: 2px; width: 28px; height:28px; border-radius:50%; background: var(--white); border: 2px solid var(--teal-500); display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:800; color: var(--teal-600); direction: ltr; }
.timeline-item h4 { font-weight: 700; margin-bottom: 4px; }
.timeline-item p { color: var(--slate-500); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-lg);
}
.contact-card h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 8px; }
.contact-card > p { color: var(--slate-300); font-size: 0.92rem; margin-bottom: 28px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.contact-row:first-of-type { border-top: none; }
.contact-row .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.contact-row .icon-badge svg { width: 20px; height: 20px; }
.contact-row .lbl { font-size: 0.78rem; color: var(--slate-300); }
.contact-row .val { font-weight: 700; }
.contact-map {
  margin-top: 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 16/10;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0/28px 28px,
    var(--navy-800);
}
.contact-map .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%);
  display:flex; flex-direction:column; align-items:center;
}
.contact-map .pin-dot { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--teal-500); display:flex; align-items:center; justify-content:center; box-shadow: 0 8px 18px rgba(22,184,174,.5);}
.contact-map .pin-dot svg { transform: rotate(45deg); width: 18px; height: 18px; color: var(--navy-950); }
.contact-map .pin-label { margin-top: 8px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  padding: 38px 34px;
}
.contact-form-card h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 8px; }
.contact-form-card > p { color: var(--slate-500); margin-bottom: 26px; font-size: 0.94rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--slate-600); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--slate-100);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
}
.field.full { grid-column: 1 / -1; }
.form-note { font-size: 0.8rem; color: var(--slate-500); margin-top: 6px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.form-alert.success { background: #e3f0ff; color: var(--teal-600); }
.form-alert.error { background: #fdeceb; color: #c8402e; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--slate-100); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-weight: 700; }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal-600); transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); color: var(--slate-500); font-size: 0.94rem; }
.faq-a-inner { padding: 0 4px 22px; max-width: 92%; }
.faq-item.open .faq-a { max-height: 220px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1020px) { .post-grid { grid-template-columns: repeat(3,1fr); } }
.post-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/10; position: relative; display:block; overflow:hidden; background: var(--navy-900); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px; }
.post-meta { display:flex; gap:14px; font-size:0.78rem; color: var(--slate-500); margin-bottom:12px; font-weight:600; }
.post-meta span { display:flex; align-items:center; gap:5px; }
.post-body h3 { font-size:1.06rem; font-weight:700; margin-bottom:10px; }
.post-body p { color: var(--slate-500); font-size:0.92rem; margin-bottom: 16px; }
.post-link { font-weight: 700; font-size: 0.88rem; color: var(--teal-600); display:inline-flex; align-items:center; gap:6px; }
.post-link svg { width:15px; height:15px; transition: transform .2s; }
.post-card:hover .post-link svg { transform: translateX(-3px); }

/* Rendered markdown body for imported Dadenevesht posts */
.post-content h1, .post-content h2, .post-content h3 { color: var(--ink); font-weight: 700; margin: 32px 0 14px; line-height: 1.4; }
.post-content h1 { font-size: 1.5rem; }
.post-content h2 { font-size: 1.3rem; }
.post-content h3 { font-size: 1.12rem; }
.post-content p { margin-bottom: 18px; line-height: 1.9; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-inline-start: 22px; }
.post-content li { margin-bottom: 8px; line-height: 1.8; }
.post-content img { max-width: 100%; border-radius: var(--radius-md); margin: 18px 0; }
.post-content a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { border-inline-start: 3px solid var(--teal-300); padding-inline-start: 16px; color: var(--slate-500); margin: 0 0 18px; }
.post-content code { background: var(--paper); border-radius: 4px; padding: 2px 6px; font-size: 0.9em; }
.post-content pre { background: var(--paper); border-radius: var(--radius-md); padding: 16px; overflow-x: auto; margin-bottom: 18px; }

/* Dadenevesht source badge (blog header + post meta) */
.source-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 8px 16px 8px 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 0.82rem; font-weight: 600; color: var(--slate-300);
  transition: border-color .2s, background .2s, transform .2s;
}
.source-badge:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.source-badge img { height: 22px; width: 22px; display: block; border-radius: 6px; background: #fff; object-fit: cover; object-position: left center; padding: 3px; }
.page-header .source-badge { position: relative; z-index: 1; }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: radial-gradient(900px 400px at 85% 0%, #12294d, transparent 60%), var(--navy-950);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content:"";
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, black 20%, transparent 70%);
}
.breadcrumb { position:relative; z-index:1; display:flex; align-items:center; gap:8px; font-size:0.85rem; color: var(--slate-300); margin-bottom: 16px; }
.breadcrumb svg { width:14px; height:14px; }
.page-header h1 { position:relative; z-index:1; font-size: clamp(1.7rem,4vw,2.4rem); font-weight:800; letter-spacing:0; }
.page-header p { position:relative; z-index:1; color: var(--slate-300); margin-top:14px; max-width:600px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--teal-500); transform: translateY(-3px); color: var(--navy-950); }
.footer-social svg { width: 15px; height: 15px; }
.footer-col h4 { color: var(--white); font-size: 0.92rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color .2s, padding-right .2s; }
.footer-col a:hover { color: var(--teal-400); padding-right: 4px; }
.footer-col .contact-mini { display:flex; gap:10px; font-size:0.88rem; margin-bottom: 4px; align-items:flex-start; }
.footer-col .contact-mini svg { width:16px; height:16px; margin-top:3px; color: var(--teal-400); flex-shrink:0; }
.newsletter-form { display:flex; margin-top: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); padding: 5px; }
.newsletter-form input { flex:1; background:transparent; border:none; color:var(--white); padding: 9px 14px; font-size:0.85rem; }
.newsletter-form input:focus { outline:none; }
.newsletter-form button { background: var(--gradient-accent); color: var(--navy-950); border:none; border-radius:999px; padding: 9px 18px; font-weight:700; font-size:0.85rem; }
.footer-bottom { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; padding: 26px 0; font-size:0.82rem; color: var(--slate-500); }
.footer-bottom a:hover { color: var(--teal-400); }
.footer-bottom-links { display:flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(22,184,174,.6);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 90px; }
.grid-2 { display:grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Redesign additions — dashboard mock, marquee, bento grid, feature rows,
   role cards, impact highlights, pricing
   ========================================================================== */

/* ---------- Hero dashboard mock ---------- */
.hero-panel-wrap { position: relative; perspective: 1200px; }
.dash-mock {
  position: relative; z-index: 2;
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.dash-mock::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.5) 0%, rgba(255,255,255,.15) 22%,
    rgba(255,255,255,0) 42%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,.15) 80%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-panel-wrap:hover .dash-mock,
.hero-panel-wrap.is-flat .dash-mock { transform: rotateY(0deg) rotateX(0deg); }
.dash-titlebar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dash-titlebar span { margin-right: auto; font-size: 0.78rem; color: var(--slate-300); font-weight: 700; }
.dash-status {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px; padding: 13px 15px; margin-bottom: 14px;
}
.dash-status .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(95,178,245,.25); flex-shrink: 0;
  animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
  0%, 100% { box-shadow: 0 0 0 4px rgba(95,178,245,.25); }
  50% { box-shadow: 0 0 0 9px rgba(95,178,245,.08); }
}
.dash-status span { font-size: 0.86rem; font-weight: 700; color: #fff; }
.dash-chart { margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.dash-chart svg { display: block; width: 100%; height: auto; }
.dash-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-mini { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 8px; text-align: center; }
.dash-mini b { display: block; font-size: 1.15rem; color: #fff; direction: ltr; }
.dash-mini span { font-size: 0.68rem; color: var(--slate-300); }
.dash-rows { display: flex; flex-direction: column; gap: 8px; }
.dash-row { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 13px; font-size: 0.78rem; color: var(--slate-300); }
.dash-row b { color: #fff; font-weight: 600; font-size: 0.82rem; }
.dash-badge { font-size: 0.66rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dash-badge.ok { background: rgba(95,178,245,.18); color: var(--teal-300); }
.dash-badge.warn { background: rgba(255,166,64,.18); color: #ffb454; }
.hero-panel-glow {
  position: absolute; z-index: 1; inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(95,178,245,.28), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-chip {
  position: absolute; z-index: 4;
  background: rgba(20,16,40,0.85);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 9px;
  color: var(--white); font-size: 0.8rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero-chip svg { width: 17px; height: 17px; color: var(--teal-400); flex-shrink: 0; }
.hero-chip.pos-top { top: -16px; right: 28px; }
.hero-chip.pos-bottom { bottom: -16px; left: 28px; }
@media (max-width: 520px) {
  .hero-chip { font-size: 0.72rem; padding: 8px 12px; }
  .hero-chip.pos-top { right: 12px; }
  .hero-chip.pos-bottom { left: 12px; }
}

/* ---------- Marquee (industries served) ---------- */
.marquee-section {
  background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 30px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marqueeScroll 32s linear infinite; }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--slate-300); font-weight: 700; font-size: 0.95rem; white-space: nowrap; opacity: .85; }
.marquee-item svg { width: 20px; height: 20px; color: var(--teal-400); flex-shrink: 0; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Bento services grid ---------- */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bento-grid .service-card.row-2 { display: flex; flex-direction: column; justify-content: space-between; }
.bento-grid .service-card .icon-badge { width: 60px; height: 60px; border-radius: 18px; }
.bento-grid .service-card.row-2 .icon-badge { width: 70px; height: 70px; margin-bottom: 12px; }
.bento-grid .service-card.row-2 h3 { font-size: 1.35rem; margin-top: 0; }
.bento-grid .service-card.row-2 p { font-size: 1rem; }
@media (min-width: 720px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); grid-auto-flow: dense; }
  .bento-grid .service-card.span-2 { grid-column: span 2; }
  .bento-grid .service-card.row-2 { grid-row: span 2; }
}

/* ---------- Feature rows (alternating) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; margin-bottom: 76px; }
.feature-row:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.reverse .feature-row-visual { order: 2; }
  .feature-row.reverse .feature-row-copy { order: 1; }
}
.feature-row-visual { position: relative; }
.visual-panel {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.visual-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.visual-panel .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(95,178,245,.3); }
.visual-panel .r1 { width: 55%; aspect-ratio: 1; }
.visual-panel .r2 { width: 78%; aspect-ratio: 1; border-color: rgba(95,178,245,.14); }
.visual-panel .icon-badge { position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 20px 40px -12px rgba(47,143,224,.5); }
.visual-panel .icon-badge svg { width: 40px; height: 40px; }
.feature-row-copy .kicker { margin-bottom: 10px; }
.feature-row-copy h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin-bottom: 14px; }
.feature-row-copy > p { color: var(--slate-500); margin-bottom: 22px; }
.feature-row-list { display: grid; gap: 13px; }
.feature-row-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; font-size: 0.93rem; }
.feature-row-list svg { width: 21px; height: 21px; color: var(--teal-600); flex-shrink: 0; margin-top: 1px; }

/* ---------- Role / specialist cards ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.role-card { background: var(--white); color: var(--ink); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.role-avatar { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--gradient-accent); color: #fff; transition: transform .35s var(--ease-spring); }
.role-avatar svg { width: 26px; height: 26px; }
.role-card h4 { font-weight: 700; margin-bottom: 6px; font-size: 1rem; }
.role-card p { color: var(--slate-500); font-size: 0.85rem; }

/* ---------- Impact / illustrative highlights ---------- */
.impact-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .impact-grid { grid-template-columns: repeat(3, 1fr); } }
.impact-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 32px 26px; position: relative; overflow: hidden; }
.impact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px 140px at 100% 0%, rgba(95,178,245,.16), transparent 70%); pointer-events: none; }
.impact-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 4px 11px; border-radius: 999px; color: var(--slate-300); margin-bottom: 18px; }
.impact-num { font-size: 2.3rem; font-weight: 800; color: var(--teal-400); margin-bottom: 8px; direction: ltr; display: block; }
.impact-card h4 { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.impact-card p { color: var(--slate-300); font-size: 0.88rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.price-card { background: var(--white); color: var(--ink); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--teal-500); box-shadow: 0 24px 50px -18px rgba(47,143,224,.4); }
@media (min-width: 860px) { .price-card.featured { transform: scale(1.04); } .price-card.featured:hover { transform: scale(1.04) translateY(-6px); } }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-accent); color: var(--navy-950); font-size: 0.72rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.price-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.price-desc { color: var(--slate-500); font-size: 0.87rem; margin-bottom: 22px; min-height: 42px; }
.price-list { display: grid; gap: 12px; margin-bottom: 26px; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.88rem; color: var(--slate-600); }
.price-list svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- Tilt hover (JS-driven) ---------- */
.tilt-card { transition: transform .25s var(--ease); transform-style: preserve-3d; }

/* ---------- Cursor-following spotlight (light cards) ---------- */
.why-card, .product-card, .price-card, .role-card, .post-card, .component-card {
  position: relative;
}
.why-card::before, .product-card::before, .price-card::before, .role-card::before, .post-card::before, .component-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 20%), rgba(47,143,224,.10), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.why-card:hover::before, .product-card:hover::before, .price-card:hover::before,
.role-card:hover::before, .post-card:hover::before, .component-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .why-card::before, .product-card::before, .price-card::before, .role-card::before, .post-card::before, .component-card::before { display: none; }
}

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47,143,224,.35); }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.product-card .icon-badge { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; }
.product-card .icon-badge svg { width: 24px; height: 24px; }
.product-logo { height: 34px; width: auto; max-width: 168px; object-fit: contain; display: block; }
.product-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--slate-500); white-space: nowrap; padding-top: 4px; }
.product-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.18); flex-shrink: 0; }
.product-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); letter-spacing: 0; }
.product-category {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0;
  color: var(--teal-600); background: rgba(47,143,224,.09);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.product-desc { color: var(--slate-600); font-size: 0.9rem; flex: 1; margin-bottom: 18px; }
.product-card-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.product-link-ext { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 700; color: var(--slate-500); transition: color .2s; }
.product-link-ext:hover { color: var(--teal-600); }
.product-link-ext svg { width: 13px; height: 13px; flex-shrink: 0; }
.product-cta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 700; color: var(--teal-600); }
.product-cta svg { width: 14px; height: 14px; transition: transform .2s; }
.product-card:hover .product-cta svg { transform: translateX(-4px); }
[dir="ltr"] .product-card:hover .product-cta svg { transform: translateX(4px); }

/* Category filter pills (/products) */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.category-filter button {
  background: var(--white); border: 1px solid var(--slate-100); color: var(--slate-600);
  font-size: 0.85rem; font-weight: 700; padding: 9px 18px; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.category-filter button:hover { border-color: rgba(47,143,224,.4); color: var(--teal-600); }
.category-filter button.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* Product detail — hero logo + meta */
.product-hero-logo-card {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  background: var(--white); border-radius: 18px;
  padding: 14px 22px; margin-bottom: 24px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.4);
}
.product-hero-logo-card img { height: 38px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.product-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; position: relative; z-index: 1; }
.product-hero-meta .product-category { margin-bottom: 0; }
.product-hero-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Platform components (Call Intelligence / Facility Assist) */
.component-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .component-grid { grid-template-columns: repeat(2, 1fr); } }
.component-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.component-logo-wrap {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border-radius: 12px; padding: 10px 14px;
}
.component-logo-wrap img { height: 26px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.component-card-text .component-label { font-weight: 800; font-size: 0.98rem; color: var(--ink); margin-bottom: 3px; }
.component-card-text .component-role { font-size: 0.84rem; color: var(--slate-500); }

/* Key capabilities grid */
.capability-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.capability-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--slate-100); border-radius: 14px;
  padding: 15px 16px; font-size: 0.9rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.capability-chip svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; }
.section-dark .capability-chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); color: var(--white); box-shadow: none; }
.section-dark .capability-chip svg { color: var(--teal-400); }

/* Architecture / technology pills */
.architecture-list { display: flex; flex-wrap: wrap; gap: 10px; }
.architecture-pill { font-size: 0.82rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--navy-900); color: var(--teal-400); }

/* Real product screenshots */
.screenshot-gallery { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 720px) { .screenshot-gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.screenshot-frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.screenshot-frame img { width: 100%; height: auto; display: block; }

/* Problem / Solution copy blocks */
.ps-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 860px) { .ps-grid { grid-template-columns: 1fr 1fr; } }
.ps-card { background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.ps-card .kicker { margin-bottom: 12px; }
.ps-card p { color: var(--slate-600); font-size: 0.95rem; white-space: pre-line; }
.ps-card.solution { border-color: rgba(47,143,224,.25); box-shadow: 0 12px 30px -14px rgba(47,143,224,.3); }

.product-links-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- LTR overrides (English / Chinese) ---------- */
[dir="ltr"] .btn-arrow { transform: none; }
[dir="ltr"] .footer-col a:hover { padding-right: 0; padding-left: 4px; }
[dir="ltr"] .back-to-top { left: auto; right: 24px; }
[dir="ltr"] .hero-chip.pos-top { right: auto; left: 28px; }
[dir="ltr"] .hero-chip.pos-bottom { left: auto; right: 28px; }
@media (max-width: 720px) {
  [dir="ltr"] .hero-chip.pos-top { left: 12px; }
  [dir="ltr"] .hero-chip.pos-bottom { right: 12px; }
}
[dir="ltr"] .timeline::before { right: auto; left: 19px; }
[dir="ltr"] .timeline-item { padding-right: 0; padding-left: 56px; }
[dir="ltr"] .timeline-dot { right: auto; left: 6px; }
