/* ==========================================================================
   MasarRoute (مسار روت) — Main Stylesheet
   Design Language: High-contrast Minimalist SaaS (Crisp Surface, Carbon Black,
   Electric Lime #B8F33B, Soft Violet #8B75FF) with Full RTL/LTR & Light/Dark
   ========================================================================== */

@font-face {
  font-family: 'Droid Sans Arabic';
  src: url('../fonts/Droid%20Sans%20Arabic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light Theme Tokens */
  --bg-page: #F5F6F8;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F7F8FA;
  --bg-elevated: #FFFFFF;
  --bg-pill: #EFEFF2;
  --bg-carbon: #0F1115;
  --bg-carbon-soft: #181B22;
  --text-primary: #0F1115;
  --text-secondary: #5A606D;
  --text-muted: #88909E;
  --text-on-carbon: #FFFFFF;
  --text-on-carbon-muted: #A1A7B3;
  --border-subtle: #E6E8ED;
  --border-strong: #D4D8E0;
  --grid-line: rgba(15, 17, 21, 0.04);

  /* Brand Accents */
  --accent-lime: #B8F33B;
  --accent-lime-hover: #A8E628;
  --accent-lime-text: #0F1115;
  --accent-violet: #8B75FF;
  --accent-violet-soft: rgba(139, 117, 255, 0.14);

  /* Shadows & Radii */
  --shadow-xs: 0 1px 2px rgba(15, 17, 21, 0.04);
  --shadow-sm: 0 4px 16px rgba(15, 17, 21, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 17, 21, 0.07);
  --shadow-lg: 0 24px 56px rgba(15, 17, 21, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --font-main: 'Droid Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg-page: #090B0E;
  --bg-surface: #12151C;
  --bg-subtle: #171B24;
  --bg-elevated: #1A1F2A;
  --bg-pill: #202531;
  --bg-carbon: #1B202B;
  --bg-carbon-soft: #232A38;
  --text-primary: #F8FAFC;
  --text-secondary: #A1AAB8;
  --text-muted: #707988;
  --text-on-carbon: #FFFFFF;
  --text-on-carbon-muted: #B0B8C5;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.035);

  --accent-lime: #B8F33B;
  --accent-lime-hover: #C6F75C;
  --accent-lime-text: #090B0E;
  --accent-violet: #9B87FF;
  --accent-violet-soft: rgba(155, 135, 255, 0.18);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button,
input,
select,
textarea,
a {
  font-family: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Hugeicons helper alignment */
.hgi,
.hgi-stroke,
[data-hgi] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.svg-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* Subtle Architectural Grid Background */
.page-shell {
  position: relative;
  min-height: 100vh;
}

.bg-grid-pattern {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg-surface) 82%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(184, 243, 59, 0.35);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(184, 243, 59, 0.28);
}

.cascade-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-secondary);
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link span:not([data-hgi]) {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-link .svg-icon {
  width: 14px;
  height: 14px;
  opacity: 0.82;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-link [data-hgi] {
  transform: translateY(0.5px);
}

html[dir="rtl"] .nav-link [data-hgi] {
  transform: translateY(1px);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.nav-link:hover [data-hgi] {
  transform: translateY(0.5px) scale(1.12);
}

html[dir="rtl"] .nav-link:hover [data-hgi] {
  transform: translateY(1px) scale(1.12);
}

.nav-link:hover .svg-icon {
  opacity: 1;
}

.nav-link.active {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  font-weight: 700;
}

.nav-link.active .svg-icon {
  opacity: 1;
  color: var(--accent-lime);
}

html[data-theme="dark"] .nav-link.active {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

html[data-theme="dark"] .nav-link.active .svg-icon {
  color: var(--accent-lime-text);
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-drawer-links a .svg-icon {
  width: 16px;
  height: 16px;
}

.mobile-drawer-links a.active {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-weight: 800;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-locale-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.auto-locale-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(184, 243, 59, 0.25);
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.icon-btn .svg-icon {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.icon-btn:hover [data-hgi] {
  transform: scale(1.1);
}

.lang-switch-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch-btn span:not([data-hgi]) {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.lang-switch-btn .svg-icon {
  width: 13px;
  height: 13px;
}

.lang-switch-btn [data-hgi] {
  transform: translateY(0.5px);
}

.lang-switch-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.lang-switch-btn:hover [data-hgi] {
  transform: translateY(0.5px) rotate(15deg) scale(1.08);
}

.header-pill-cta {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  white-space: nowrap;
}

.header-pill-cta .svg-icon {
  width: 16px;
  height: 16px;
}

.header-pill-cta:hover {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border-color: transparent;
  transform: translateY(-1px);
}

.header-pill-cta:hover [data-hgi] {
  transform: scale(1.12);
}

.header-circle-cta {
  width: 38px;
  height: 38px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.header-circle-cta .svg-icon {
  width: 16px;
  height: 16px;
}

html[data-theme="dark"] .header-circle-cta {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

.header-circle-cta:hover {
  transform: scale(1.06);
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  padding: 16px 24px 22px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin-bottom: 14px;
}

.mobile-drawer-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-drawer-links a:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   BUTTONS & PILLS (FlowUp Signature Pills)
   ========================================================================== */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.eyebrow-pill--lime {
  background: var(--accent-lime);
  border-color: transparent;
  color: var(--accent-lime-text);
  font-weight: 700;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .btn-primary-pill {
  padding: 7px 20px 7px 8px;
}

html[data-theme="dark"] .btn-primary-pill {
  background: #FFFFFF;
  color: #090B0E;
}

.btn-primary-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary-pill .pill-arrow-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary-pill:hover .pill-arrow-circle {
  transform: translateX(3px) scale(1.08);
}

html[dir="rtl"] .btn-primary-pill:hover .pill-arrow-circle {
  transform: translateX(-3px) scale(1.08);
}

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn-secondary-pill .svg-icon {
  width: 17px;
  height: 17px;
}

.btn-secondary-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-pill:hover [data-hgi] {
  transform: translateX(3px) scale(1.1);
}

html[dir="rtl"] .btn-secondary-pill:hover [data-hgi] {
  transform: translateX(-3px) scale(1.1);
}

.btn-violet-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-violet);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(139, 117, 255, 0.35);
  transition: all var(--transition);
}

html[dir="rtl"] .btn-violet-pill {
  padding: 7px 18px 7px 8px;
}

.btn-violet-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-violet-pill .pill-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Flip directional arrow icons automatically in RTL */
html[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

/* ==========================================================================
   HERO SECTION (FlowUp Split Architecture)
   ========================================================================== */
.hero-section {
  padding: 44px 0 56px;
}

.hero-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 48px;
  align-items: center;
}

/* Visual Analytics Card (Left in LTR / Right in RTL or balanced) */
.hero-visual-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
}

.gauge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.gauge-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.gauge-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gauge-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gauge-big-num {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.gauge-fast-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-size: 0.72rem;
  font-weight: 800;
}

.gauge-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.gauge-arc-wrap {
  width: 146px;
  height: 82px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gauge-svg {
  width: 146px;
  height: 82px;
  overflow: visible;
}

.gauge-progress-path {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cascading Nodes (Matching the 4 stepped cards in FlowUp hero) */
.cascade-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.cascade-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  width: fit-content;
  min-width: 225px;
  max-width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cascade-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cascade-node--step1 {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-color: rgba(255, 255, 255, 0.1);
  margin-inline-start: 0;
}

html[data-theme="dark"] .cascade-node--step1 {
  background: #0F1115;
  border-color: rgba(184, 243, 59, 0.35);
}

.cascade-node--step2 {
  margin-inline-start: 48px;
}

.cascade-node--step3 {
  margin-inline-start: 18px;
}

.cascade-node--step4 {
  margin-inline-start: 68px;
}

/* Subtle connector line between cascade nodes */
.cascade-node::before {
  content: '';
  position: absolute;
  top: -14px;
  inset-inline-start: 22px;
  width: 2px;
  height: 14px;
  background: var(--border-strong);
  opacity: 0.65;
}

.cascade-node--step1::before {
  display: none;
}

.cascade-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cascade-node--step1 .cascade-icon {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border-radius: 50%;
}

.cascade-val {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

.cascade-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cascade-node--step1 .cascade-label {
  color: var(--text-on-carbon-muted);
}

/* Hero Text Column */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-title {
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.inline-badge-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92em;
  height: 0.92em;
  border-radius: 50%;
  vertical-align: -0.14em;
  margin-inline: 5px;
}

.inline-badge-circle--lime {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  box-shadow: 0 4px 14px rgba(184, 243, 59, 0.45);
}

.inline-badge-circle--neutral {
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.hero-subtitle {
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-metrics-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.hero-metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-metric-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   SERVICES 8-CARD GRID (Matching "Tools That Work for You Not Against You")
   ========================================================================== */
.section-block {
  padding: 56px 0;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 224px;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card--featured {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .service-card--featured {
  background: #0B0D11;
  border-color: rgba(184, 243, 59, 0.42);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card--featured .service-card-icon {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(184, 243, 59, 0.28);
}

.service-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-card--featured .service-card-desc {
  color: var(--text-on-carbon-muted);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: gap var(--transition);
}

.service-card--featured .service-card-link {
  color: var(--accent-lime);
}

.service-card:hover .service-card-link {
  gap: 10px;
}

/* ==========================================================================
   BIG STATS BANNER (Matching "Less Stress More Success [avatars] with Taskly")
   ========================================================================== */
.stats-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 52px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.inline-avatar-stack {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline: 8px;
}

.inline-avatar-stack img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg-surface);
  background: var(--bg-subtle);
  margin-inline-start: -10px;
  box-shadow: var(--shadow-xs);
}

.inline-avatar-stack img:first-child {
  margin-inline-start: 0;
}

.stats-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 36px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-big-item {
  padding: 32px 24px;
  border-inline-end: 1px solid var(--border-subtle);
}

.stat-big-item:last-child {
  border-inline-end: none;
}

.stat-big-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-big-number {
  font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.stat-big-caption {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.stats-cta-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   INTERACTIVE BROWSER DASHBOARD MOCKUP (Matching "Ease into Productivity")
   ========================================================================== */
.checklist-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.checklist-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.checklist-item svg,
.checklist-item i {
  color: var(--text-primary);
}

.browser-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-dot:nth-child(1) { background: #FF5F56; }
.window-dot:nth-child(2) { background: #FFBD2E; }
.window-dot:nth-child(3) { background: #27C93F; }

.browser-url-bar {
  flex: 1;
  max-width: 440px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 460px;
}

.browser-sidebar {
  background: var(--bg-subtle);
  border-inline-end: 1px solid var(--border-subtle);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.browser-sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px 8px;
}

.browser-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-align: start;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.browser-tab-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.browser-tab-btn.active {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  box-shadow: var(--shadow-xs);
}

html[data-theme="dark"] .browser-tab-btn.active {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

.browser-tab-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.browser-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.browser-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.browser-project-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.browser-project-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  background: #fff;
  padding: 4px;
}

.browser-path-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  direction: ltr;
}

.browser-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 16px;
}

.browser-kpi-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.browser-kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
}

.browser-kpi-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Bar chart matching reference screenshot */
.mini-bars-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 112px;
  padding-top: 12px;
}

.mini-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.mini-bar-track {
  width: 100%;
  max-width: 24px;
  border-radius: 7px;
  background: var(--bg-carbon);
  position: relative;
  overflow: hidden;
  transition: height 0.5s ease;
}

.mini-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent-lime);
  border-radius: 7px 7px 0 0;
}

.mini-bar-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.browser-preview-footer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}

.browser-screen-frame {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-subtle);
  min-height: 200px;
  max-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.browser-screen-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser-features-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.browser-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.browser-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.floating-violet-badge {
  position: relative;
  align-self: flex-start;
}

/* ==========================================================================
   PRODUCTION PROJECTS SHOWCASE GRID
   ========================================================================== */
.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-pill-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pill-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-pill-btn.active {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-color: transparent;
}

html[data-theme="dark"] .filter-pill-btn.active {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.project-cover {
  position: relative;
  height: 210px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-cover-img {
  transform: scale(1.03);
}

/* Rich synthetic architectural cover for projects without standalone screenshot */
.project-cover-blueprint {
  width: 100%;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 243, 59, 0.2), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(139, 117, 255, 0.16), transparent 55%),
    var(--bg-subtle);
}

.blueprint-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blueprint-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.blueprint-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.blueprint-metric-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.blueprint-metric-cell strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
}

.blueprint-metric-cell span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-drive-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(15, 17, 21, 0.84);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  direction: ltr;
  z-index: 2;
}

.project-category-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 2;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.project-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-logo-box {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  padding: 5px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.project-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.project-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.project-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-desc {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tech-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.project-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.project-details-btn:hover {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-color: transparent;
}

html[data-theme="dark"] .project-details-btn:hover {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

.project-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-size: 0.82rem;
  font-weight: 800;
  transition: all var(--transition);
}

.project-wa-btn:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CUSTOMER / ENTERPRISE USE CASE STORIES (Matching "Customer Success Stories")
   ========================================================================== */
.stories-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-xs);
}

.story-quote {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.story-meta img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border-subtle);
}

.story-author {
  font-size: 0.86rem;
  font-weight: 800;
}

.story-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT CTA CARD & FOOTER (967782174050 Call & WhatsApp Only - NO EMAIL)
   ========================================================================== */
.contact-cta-box {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-radius: var(--radius-xl);
  padding: 48px 42px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .contact-cta-box {
  background: #12161F;
  border-color: rgba(184, 243, 59, 0.25);
}

.contact-cta-box::after {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 243, 59, 0.22), transparent 70%);
  pointer-events: none;
}

.contact-cta-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.contact-cta-desc {
  color: var(--text-on-carbon-muted);
  font-size: 0.96rem;
  max-width: 520px;
}

.contact-actions-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.contact-phone-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-phone-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-lime);
  direction: ltr;
  letter-spacing: 0.02em;
}

.contact-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.contact-btn-wa:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-2px);
}

.contact-btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.contact-btn-call:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.site-footer {
  padding: 20px 0 44px;
  margin-top: 12px;
}

.site-footer > .container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 36px 26px;
  box-shadow: var(--shadow-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 310px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-nav-link .svg-icon {
  width: 14px;
  height: 14px;
  opacity: 0.78;
  transition: transform var(--transition), opacity var(--transition);
}

.footer-nav-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

html[dir="rtl"] .footer-nav-link:hover {
  transform: translateX(-3px);
}

.footer-nav-link:hover .svg-icon {
  opacity: 1;
  color: var(--accent-violet);
}

.footer-wa-card {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .footer-wa-card {
  background: #0B0D11;
  border-color: rgba(184, 243, 59, 0.25);
}

.footer-wa-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-wa-sub {
  font-size: 0.81rem;
  color: var(--text-on-carbon-muted);
  line-height: 1.6;
}

.footer-wa-card .contact-btn-wa {
  align-self: flex-start;
  width: auto;
  padding: 10px 18px;
  font-size: 0.86rem;
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROJECT DETAIL MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.modal-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.modal-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}

.modal-feature-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Floating Contact Quick Dock */
.floating-contact-dock {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.dock-btn:hover {
  transform: scale(1.08);
}

.dock-btn--wa {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

.dock-btn--call {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .dock-btn--call {
  background: var(--bg-elevated);
}

/* ==========================================================================
   BESPOKE PAGE HERO WIDGETS & MULTI-PAGE COMPONENTS
   ========================================================================== */
.hero-widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

/* Services Hero: 4-Stage Delivery Pipeline */
.pipeline-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pipeline-step {
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.pipeline-step.active {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-color: transparent;
}

html[data-theme="dark"] .pipeline-step.active {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

.pipeline-step-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.72;
  margin-bottom: 2px;
}

.pipeline-step-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.pipeline-progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.pipeline-progress-fill {
  height: 100%;
  width: 92%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-lime));
}

/* Projects Hero: Logo Matrix & Distribution Bar */
.distribution-bar {
  display: flex;
  height: 12px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  gap: 3px;
  margin: 10px 0 12px;
}

.dist-seg {
  height: 100%;
  border-radius: var(--radius-pill);
}

.dist-seg--lime { background: var(--accent-lime); width: 50%; }
.dist-seg--violet { background: var(--accent-violet); width: 30%; }
.dist-seg--carbon { background: var(--text-primary); width: 20%; }

.distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-inline-end: 5px;
}

.logo-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.logo-matrix-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.logo-matrix-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.logo-matrix-tile img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.logo-matrix-tile span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Projects Search & Filter Toolbar */
.projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.projects-toolbar .filter-pills-bar {
  margin-bottom: 0;
  justify-content: flex-start;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
  flex: 0 1 320px;
}

.search-input-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
}

.search-input {
  width: 100%;
  height: 42px;
  padding-inline-start: 42px;
  padding-inline-end: 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px var(--accent-violet-soft);
}

/* Ecosystem Hero: ROI Before vs After Bars */
.roi-row {
  margin-bottom: 14px;
}

.roi-row:last-child {
  margin-bottom: 0;
}

.roi-label-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.roi-bar-track {
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.roi-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.roi-bar-fill--muted {
  background: var(--border-strong);
  width: 88%;
}

.roi-bar-fill--lime {
  background: var(--accent-lime);
  width: 22%;
}

.roi-bar-fill--violet {
  background: var(--accent-violet);
  width: 96%;
}

/* Contact Hero: Live Line & Interactive WhatsApp Composer */
.live-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(184, 243, 59, 0.2);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.wa-composer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.composer-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.composer-input,
.composer-select,
.composer-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition);
}

.composer-input:focus,
.composer-select:focus,
.composer-textarea:focus {
  border-color: var(--accent-violet);
}

.composer-textarea {
  min-height: 78px;
  resize: vertical;
}

/* Methodology, Tech Matrix, Channels & FAQ Grids */
.methodology-grid,
.tech-matrix-grid,
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.method-card,
.tech-group-card,
.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.service-bullets li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-card--featured .service-bullets {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.service-card--featured .service-bullets li {
  color: var(--text-on-carbon-muted);
}

/* Cross-Page Bridge Cards */
.page-bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.bridge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition);
}

.bridge-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.bridge-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.bridge-card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.bridge-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bridge-card:hover .bridge-arrow {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
}

.faq-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .auto-locale-chip,
  .brand-sub {
    display: none;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.86rem;
  }
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid,
  .methodology-grid,
  .tech-matrix-grid,
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .browser-sidebar {
    border-inline-end: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }

  .browser-sidebar-label {
    display: none;
  }

  .browser-tab-btn {
    width: auto;
    white-space: nowrap;
  }

  .contact-cta-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav-links,
  .header-pill-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-frame {
    padding: 26px 20px;
  }

  .stats-three-col {
    grid-template-columns: 1fr;
  }

  .stat-big-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stat-big-item:last-child {
    border-bottom: none;
  }

  .projects-grid,
  .stories-grid,
  .browser-kpi-grid,
  .browser-preview-footer,
  .modal-features-grid,
  .page-bridge-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .logo-matrix-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid,
  .methodology-grid,
  .tech-matrix-grid,
  .channels-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-steps-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cascade-node--step2,
  .cascade-node--step3,
  .cascade-node--step4 {
    margin-inline-start: 14px;
  }

  .hero-metrics-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .gauge-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Filter Pill & Card Button Icons + Precision Optical Alignment */
.btn-secondary-pill,
.filter-pill-btn,
.project-details-btn,
.project-wa-btn,
.contact-btn-wa,
.contact-btn-call,
.service-card-link,
.footer-nav-link {
  line-height: 1;
}

.btn-secondary-pill span:not([data-hgi]),
.filter-pill-btn span:not([data-hgi]),
.project-details-btn span:not([data-hgi]),
.project-wa-btn span:not([data-hgi]),
.contact-btn-wa span:not([data-hgi]),
.contact-btn-call span:not([data-hgi]),
.service-card-link span:not([data-hgi]),
.footer-nav-link span:not([data-hgi]) {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-secondary-pill [data-hgi],
.filter-pill-btn [data-hgi],
.project-details-btn svg,
.project-wa-btn svg,
.contact-btn-wa [data-hgi],
.contact-btn-call [data-hgi],
.footer-nav-link [data-hgi] {
  transform: translateY(0.5px);
}

html[dir="rtl"] .btn-secondary-pill [data-hgi],
html[dir="rtl"] .filter-pill-btn [data-hgi],
html[dir="rtl"] .project-details-btn svg,
html[dir="rtl"] .project-wa-btn svg,
html[dir="rtl"] .contact-btn-wa [data-hgi],
html[dir="rtl"] .contact-btn-call [data-hgi],
html[dir="rtl"] .footer-nav-link [data-hgi] {
  transform: translateY(1px);
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill-btn .svg-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.filter-pill-btn:hover {
  transform: translateY(-2px);
}

.filter-pill-btn:hover [data-hgi] {
  transform: translateY(0.5px) scale(1.12);
}

html[dir="rtl"] .filter-pill-btn:hover [data-hgi] {
  transform: translateY(1px) scale(1.12);
}

.btn-secondary-pill .svg-icon,
.contact-btn-wa .svg-icon,
.contact-btn-call .svg-icon {
  width: 15px;
  height: 15px;
}

.project-details-btn .svg-icon,
.project-wa-btn .svg-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.project-details-btn:hover .svg-icon,
.project-wa-btn:hover .svg-icon,
.contact-btn-wa:hover .svg-icon,
.contact-btn-call:hover .svg-icon {
  transform: translateY(1px) scale(1.1);
}

/* Redesigned Projects Hero: Spacious Headline + Compact Showcase Card */
.hero-grid--projects {
  grid-template-columns: 1.18fr 0.82fr;
  gap: 40px;
}

.projects-hero-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.projects-avatars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.projects-mini-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-mini-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.projects-mini-cat-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.projects-mini-cat-item--dark {
  background: var(--bg-carbon);
  color: var(--text-on-carbon);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .projects-mini-cat-item--dark {
  background: #0B0D11;
  border-color: rgba(184, 243, 59, 0.35);
}

@media (max-width: 1060px) {
  .hero-grid--projects {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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