/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */

/* Fade in on page load */
body {
  animation: pageEnter 0.28s ease-out both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade out on navigation — class added by JS before following link */
body.app-navigating {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease-in, transform 0.18s ease-in;
  pointer-events: none;
}

/* ============================================================
   TASKATY DESIGN SYSTEM — CUSTOM CSS
   ============================================================

   RULES:
   - All classes prefixed with app- or ui-
   - NEVER override Bootstrap core classes
   - Bootstrap utilities used as-is
   - RTL block at bottom: html[dir="rtl"] {}

   TABLE OF CONTENTS
   01. DESIGN TOKENS
   02. BASE & BODY
   03. TYPOGRAPHY
   04. NAVIGATION
   05. HERO SECTION
   06. PROOF STRIP
   07. PROBLEM / SOLUTION
   08. LIFECYCLE
   09. FEATURES
   10. CLIENT PORTAL
   11. SAUDI / REGIONAL
   12. TESTIMONIALS
   13. CTA DARK
   14. FOOTER
   15. COMPONENTS — Badges & Tags
   16. COMPONENTS — Cards
   17. COMPONENTS — Buttons
   18. COMPONENTS — UI Mockups
   19. ANIMATIONS
   20. CUSTOM BREAKPOINTS
   21. RTL SCAFFOLD

   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
  /* Brand */
  --app-color-primary:          #1D4ED8;
  --app-color-primary-dark:     #1E3A8A;
  --app-color-primary-light:    #3B82F6;
  --app-color-primary-bg:       #EEF2FF;
  --app-color-primary-bg-soft:  #F5F7FF;

  /* Semantic */
  --app-color-success:          #059669;
  --app-color-success-bg:       #ECFDF5;
  --app-color-success-border:   #A7F3D0;
  --app-color-danger:           #DC2626;
  --app-color-danger-bg:        #FEF2F2;
  --app-color-danger-border:    #FCA5A5;
  --app-color-warning:          #D97706;
  --app-color-warning-bg:       #FFFBEB;

  /* Neutrals */
  --app-color-ink:              #0F172A;
  --app-color-ink-soft:         #1E293B;
  --app-color-text:             #111827;
  --app-color-text-secondary:   #374151;
  --app-color-text-muted:       #6B7280;
  --app-color-text-faint:       #9CA3AF;
  --app-color-border:           #E5E7EB;
  --app-color-border-light:     #F3F4F6;

  /* Backgrounds */
  --app-color-bg-white:         #FFFFFF;
  --app-color-bg-off:           #FAFAFA;
  --app-color-bg-subtle:        #F9FAFB;

  /* Typography */
  --app-font-body:              'Inter', sans-serif;
  --app-font-display:           'Sora', sans-serif;

  /* Font Sizes */
  --app-text-xs:    0.6875rem;
  --app-text-sm:    0.8125rem;
  --app-text-base:  0.9375rem;
  --app-text-md:    1rem;
  --app-text-lg:    1.125rem;
  --app-text-xl:    1.25rem;
  --app-text-2xl:   1.5rem;
  --app-text-3xl:   1.875rem;
  --app-text-4xl:   2.25rem;
  --app-text-5xl:   3rem;
  --app-text-6xl:   3.75rem;

  /* Font Weights */
  --app-weight-regular:   400;
  --app-weight-medium:    500;
  --app-weight-semibold:  600;
  --app-weight-bold:      700;
  --app-weight-extrabold: 800;
  --app-weight-black:     900;

  /* Line Heights */
  --app-leading-tight:    1.1;
  --app-leading-snug:     1.3;
  --app-leading-normal:   1.6;
  --app-leading-relaxed:  1.75;

  /* Letter Spacing */
  --app-tracking-tight:   -0.03em;
  --app-tracking-snug:    -0.02em;
  --app-tracking-wide:    0.05em;
  --app-tracking-wider:   0.1em;

  /* Border Radius */
  --app-radius-sm:    4px;
  --app-radius-md:    8px;
  --app-radius-lg:    12px;
  --app-radius-xl:    16px;
  --app-radius-2xl:   24px;
  --app-radius-full:  9999px;

  /* Shadows */
  --app-shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --app-shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --app-shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --app-shadow-lg:    0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --app-shadow-xl:    0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
  --app-shadow-2xl:   0 40px 80px rgba(0,0,0,0.14), 0 16px 24px rgba(0,0,0,0.08);
  --app-shadow-blue:  0 8px 30px rgba(29,78,216,0.25);
  --app-shadow-glow:  0 0 40px rgba(29,78,216,0.12);

  /* Transitions */
  --app-ease-fast:    150ms ease-out;
  --app-ease-normal:  220ms ease-out;
  --app-ease-slow:    350ms ease-out;
  --app-ease-spring:  300ms cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --app-nav-height:   72px;
}


/* ============================================================
   02. BASE & BODY
   ============================================================ */

body {
  font-family: var(--app-font-body);
  font-size: var(--app-text-base);
  color: var(--app-color-text);
  background: var(--app-color-bg-white);
  line-height: var(--app-leading-normal);
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.app-sticky-active {
  padding-bottom: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Section spacing helpers */
.app-section {
  padding: 5rem 0;
}

.app-section--lg {
  padding: 7rem 0;
}

.app-section--sm {
  padding: 3rem 0;
}

.app-section--white   { background: var(--app-color-bg-white); }
.app-section--off     { background: var(--app-color-bg-off); }
.app-section--subtle  { background: var(--app-color-bg-subtle); }
.app-section--ink     { background: var(--app-color-ink); }

/* Section header */
.app-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.app-section-header .app-display-md,
.app-section-header .app-display-lg {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.app-section-header .app-body-lg {
  max-width: 560px;
  margin: 1rem auto 0;
}

/* Divider */
.app-divider {
  height: 1px;
  background: var(--app-color-border);
  border: none;
}


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */

.app-display-xl {
  font-family: var(--app-font-display);
  font-size: clamp(var(--app-text-4xl), 6vw, var(--app-text-6xl));
  font-weight: var(--app-weight-extrabold);
  letter-spacing: var(--app-tracking-tight);
  line-height: var(--app-leading-tight);
}

.app-display-lg {
  font-family: var(--app-font-display);
  font-size: clamp(var(--app-text-3xl), 4vw, var(--app-text-5xl));
  font-weight: var(--app-weight-extrabold);
  letter-spacing: var(--app-tracking-tight);
  line-height: var(--app-leading-tight);
}

.app-display-md {
  font-family: var(--app-font-display);
  font-size: clamp(var(--app-text-2xl), 3vw, var(--app-text-4xl));
  font-weight: var(--app-weight-bold);
  letter-spacing: var(--app-tracking-snug);
  line-height: var(--app-leading-snug);
}

.app-heading {
  font-size: var(--app-text-xl);
  font-weight: var(--app-weight-bold);
  letter-spacing: var(--app-tracking-snug);
  line-height: var(--app-leading-snug);
  color: var(--app-color-text);
}

.app-subheading {
  font-size: var(--app-text-lg);
  font-weight: var(--app-weight-semibold);
  line-height: var(--app-leading-normal);
  color: var(--app-color-text);
}

.app-body-lg {
  font-size: var(--app-text-lg);
  line-height: var(--app-leading-relaxed);
  color: var(--app-color-text-secondary);
}

.app-body {
  font-size: var(--app-text-base);
  line-height: var(--app-leading-relaxed);
  color: var(--app-color-text-secondary);
}

.app-small {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  line-height: var(--app-leading-relaxed);
}

.app-label {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-bold);
  letter-spacing: var(--app-tracking-wider);
  text-transform: uppercase;
}

/* Color utilities */
.app-text-primary   { color: var(--app-color-primary); }
.app-text-success   { color: var(--app-color-success); }
.app-text-danger    { color: var(--app-color-danger); }
.app-text-muted     { color: var(--app-color-text-muted); }
.app-text-white     { color: #ffffff; }
.app-text-ink       { color: var(--app-color-ink); }


/* ============================================================
   04. NAVIGATION
   ============================================================ */

.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--app-color-border);
  z-index: 1050;
  transition: box-shadow var(--app-ease-normal), background var(--app-ease-normal);
}

.app-nav--scrolled {
  background: rgba(255,255,255,0.99);
  box-shadow: var(--app-shadow-md);
}

.app-nav__inner {
  height: var(--app-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.app-nav__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.app-nav__logo-wordmark {
  font-family: var(--app-font-display);
  font-weight: var(--app-weight-extrabold);
  font-size: var(--app-text-xl);
  color: var(--app-color-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.app-nav__logo-wordmark span {
  color: var(--app-color-primary);
}

.app-nav__logo-tagline {
  font-size: 0.6rem;
  color: var(--app-color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--app-weight-medium);
}

/* Nav links */
.app-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.app-nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--app-radius-md);
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-medium);
  color: var(--app-color-text-secondary);
  cursor: pointer;
  transition: all var(--app-ease-fast);
  white-space: nowrap;
  background: none;
  border: none;
  font-family: var(--app-font-body);
  line-height: 1;
}

.app-nav__link:hover {
  color: var(--app-color-text);
  background: var(--app-color-bg-subtle);
}

.app-nav__link--active {
  color: var(--app-color-primary);
  background: var(--app-color-primary-bg);
}

.app-nav__chevron {
  font-size: 10px;
  color: var(--app-color-text-faint);
  transition: transform var(--app-ease-fast);
  display: inline-block;
}

/* Dropdown */
.app-nav__dropdown {
  position: relative;
}

.app-nav__dropdown:hover .app-nav__chevron {
  transform: rotate(180deg);
}

.app-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-xl);
  border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-xl);
  min-width: 270px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--app-ease-normal);
  z-index: 200;
}

.app-nav__dropdown:hover .app-nav__dropdown-menu,
.app-nav__dropdown:focus-within .app-nav__dropdown-menu,
.app-nav__dropdown--open .app-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.app-nav__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--app-radius-lg);
  cursor: pointer;
  transition: background var(--app-ease-fast);
  text-decoration: none;
  color: inherit;
}

.app-nav__dropdown-item:hover {
  background: var(--app-color-bg-subtle);
}

.app-nav__dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--app-radius-md);
  background: var(--app-color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.app-nav__dropdown-title {
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-semibold);
  color: var(--app-color-text);
  display: block;
  line-height: 1.3;
}

.app-nav__dropdown-desc {
  font-size: var(--app-text-xs);
  color: var(--app-color-text-muted);
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

/* Nav right area */
.app-nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.app-nav__login {
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-medium);
  color: var(--app-color-text-secondary);
  cursor: pointer;
  transition: color var(--app-ease-fast);
  background: none;
  border: none;
  font-family: var(--app-font-body);
  padding: 0;
}

.app-nav__login:hover {
  color: var(--app-color-primary);
}

/* Language Toggle */
.app-lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--app-color-border);
  border-radius: var(--app-radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.app-lang-btn {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-bold);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all var(--app-ease-fast);
  background: none;
  border: none;
  font-family: var(--app-font-body);
  color: var(--app-color-text-muted);
  letter-spacing: 0.04em;
  line-height: 1;
}

.app-lang-btn--active {
  background: var(--app-color-primary);
  color: #ffffff;
}

.app-lang-btn:not(.app-lang-btn--active):hover {
  background: var(--app-color-bg-subtle);
  color: var(--app-color-text);
}

/* Mobile menu toggle */
.app-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.app-nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--app-color-text);
  border-radius: var(--app-radius-full);
  transition: all var(--app-ease-normal);
}

/* Mobile menu overlay */
.app-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--app-ease-slow);
  padding: 2rem;
}

.app-mobile-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.app-mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: var(--app-text-xl);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.25rem;
}

.app-mobile-menu__link {
  font-family: var(--app-font-display);
  font-size: var(--app-text-2xl);
  font-weight: var(--app-weight-bold);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: color var(--app-ease-fast);
  text-align: center;
  background: none;
  border: none;
}

.app-mobile-menu__link:hover {
  color: #ffffff;
}

.app-mobile-menu__divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0.5rem 0;
}

.app-mobile-menu__lang {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Mobile menu language buttons — styled via CSS, not inline */
.app-mobile-menu__lang .app-lang-btn {
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--app-radius-sm);
  color: rgba(255,255,255,0.6);
  padding: 0.4rem 1rem;
}

.app-mobile-menu__lang .app-lang-btn--active {
  color: #ffffff;
  background: rgba(29,78,216,0.5);
  border-color: rgba(255,255,255,0.5);
}


/* ============================================================
   05. HERO SECTION
   ============================================================ */

.app-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--app-nav-height);
  background: var(--app-color-bg-white);
  position: relative;
  overflow: hidden;
}

.app-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(238,242,255,0.7) 0%, transparent 65%);
  pointer-events: none;
}

.app-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  height: 55%;
  background: radial-gradient(ellipse at bottom left, rgba(238,242,255,0.35) 0%, transparent 65%);
  pointer-events: none;
}

.app-hero__inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  width: 100%;
}

.app-hero__eyebrow {
  margin-bottom: 1.25rem;
}

.app-hero__headline {
  margin-bottom: 1.5rem;
  max-width: 580px;
  color: var(--app-color-text);
}

.app-hero__subline {
  margin-bottom: 2rem;
  max-width: 520px;
}

.app-hero__trust {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
}

.app-hero__trust-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--app-radius-full);
  background: var(--app-color-border);
  flex-shrink: 0;
}

/* Hero platform pills */
.app-hero__platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.app-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--app-radius-full);
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-semibold);
  background: var(--app-color-bg-white);
  border: 1.5px solid var(--app-color-border);
  color: var(--app-color-text-secondary);
  box-shadow: var(--app-shadow-xs);
  transition: all var(--app-ease-fast);
  animation: appPillPop 500ms cubic-bezier(0.34,1.56,0.64,1) both;
}
.app-platform-pill:nth-child(1)  { animation-delay: 400ms; }
.app-platform-pill:nth-child(2)  { animation-delay: 470ms; }
.app-platform-pill:nth-child(3)  { animation-delay: 540ms; }
.app-platform-pill:nth-child(4)  { animation-delay: 610ms; }
.app-platform-pill:nth-child(5)  { animation-delay: 680ms; }
.app-platform-pill:nth-child(6)  { animation-delay: 750ms; }
.app-platform-pill:nth-child(7)  { animation-delay: 820ms; }
.app-platform-pill:nth-child(8)  { animation-delay: 890ms; }

.app-platform-pill:hover {
  border-color: var(--app-color-primary);
  color: var(--app-color-primary);
  background: var(--app-color-primary-bg);
}

.app-platform-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--app-radius-full);
  background: var(--app-color-primary);
  flex-shrink: 0;
}

/* Hero mockup */
.app-hero__mockup {
  position: relative;
  z-index: 2;
}

.app-hero__mockup-float {
  animation: appMockupFloat 4s ease-in-out infinite;
}

.app-hero__mockup-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse, rgba(29,78,216,0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Accent cards floating */
.app-hero__accent {
  position: absolute;
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--app-shadow-lg);
  border: 1px solid var(--app-color-border);
  z-index: 3;
  white-space: nowrap;
}

.app-hero__accent--tl {
  top: -18px;
  left: -44px;
  animation: appAccentFloat1 3.5s ease-in-out infinite;
}

.app-hero__accent--br {
  bottom: -18px;
  right: -24px;
  animation: appAccentFloat2 4s ease-in-out infinite;
}

.app-hero__accent-value {
  font-family: var(--app-font-display);
  font-size: var(--app-text-lg);
  font-weight: var(--app-weight-extrabold);
  display: block;
  line-height: 1.1;
}

.app-hero__accent-label {
  font-size: var(--app-text-xs);
  color: var(--app-color-text-muted);
  display: block;
  margin-top: 2px;
}


/* ============================================================
   06. PROOF STRIP
   ============================================================ */

.app-proof-strip {
  padding: 4rem 0;
  background: var(--app-color-bg-subtle);
  border-top: 1px solid var(--app-color-border);
  border-bottom: 1px solid var(--app-color-border);
}

.app-proof-metric {
  text-align: center;
  padding: 1.5rem;
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-xl);
  border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-xs);
  height: 100%;
}

.app-proof-metric__number {
  font-family: var(--app-font-display);
  font-size: var(--app-text-4xl);
  font-weight: var(--app-weight-extrabold);
  color: var(--app-color-primary);
  display: block;
  line-height: 1;
}

.app-proof-metric__label {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  margin-top: 0.5rem;
  display: block;
  line-height: 1.4;
}

.app-proof-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  background: var(--app-color-border-light);
  border-radius: var(--app-radius-md);
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-bold);
  color: var(--app-color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--app-ease-normal), filter var(--app-ease-normal);
  white-space: nowrap;
}

.app-proof-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.app-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  border: 1.5px solid var(--app-color-border);
  border-radius: var(--app-radius-full);
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-semibold);
  color: var(--app-color-text-muted);
}


/* ============================================================
   07. PROBLEM / SOLUTION
   ============================================================ */

.app-problem-stat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--app-color-danger-bg);
  border: 1px solid var(--app-color-danger-border);
  border-radius: var(--app-radius-lg);
  margin-bottom: 0.75rem;
  transition: transform var(--app-ease-normal);
}

.app-problem-stat:hover {
  transform: translateX(4px);
}

.app-problem-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--app-radius-full);
  background: var(--app-color-danger);
  flex-shrink: 0;
  margin-top: 5px;
}

.app-problem-stat__text {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-secondary);
  line-height: var(--app-leading-relaxed);
}

.app-problem-stat__highlight {
  font-weight: var(--app-weight-bold);
  color: var(--app-color-text);
}

/* Compare visual */
.app-compare {
  border-radius: var(--app-radius-xl);
  overflow: hidden;
  border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-md);
}

.app-compare__before {
  padding: 1.5rem;
  background: var(--app-color-bg-subtle);
  border-bottom: 1px solid var(--app-color-border);
}

.app-compare__after {
  padding: 1.5rem;
  background: var(--app-color-primary-bg-soft);
}

.app-compare__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--app-color-bg-white);
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-extrabold);
  letter-spacing: var(--app-tracking-wider);
  text-transform: uppercase;
  color: var(--app-color-text-faint);
}

.app-compare__divider::before,
.app-compare__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--app-color-border);
}

.app-compare__label {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-extrabold);
  letter-spacing: var(--app-tracking-wider);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.app-compare__label--before { color: var(--app-color-danger); }
.app-compare__label--after  { color: var(--app-color-success); }

.app-flow-boxes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-flow-box {
  padding: 0.35rem 0.65rem;
  border-radius: var(--app-radius-md);
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-semibold);
  border: 1.5px solid;
}

.app-flow-box--muted   { border-color: var(--app-color-border); color: var(--app-color-text-muted); background: var(--app-color-bg-white); }
.app-flow-box--primary { border-color: var(--app-color-primary); color: var(--app-color-primary); background: var(--app-color-bg-white); }

.app-flow-sep { font-size: var(--app-text-md); font-weight: var(--app-weight-extrabold); }
.app-flow-sep--danger  { color: var(--app-color-danger); }
.app-flow-sep--primary { color: var(--app-color-primary); }


/* ============================================================
   08. LIFECYCLE
   ============================================================ */

.app-lifecycle-track {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  overflow-x: auto;
  padding: 2.5rem 0;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}

.app-lifecycle-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  cursor: pointer;
}

.app-lifecycle-node__circle {
  width: 52px;
  height: 52px;
  border-radius: var(--app-radius-full);
  border: 2px solid var(--app-color-primary);
  background: var(--app-color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--app-ease-spring);
  box-shadow: var(--app-shadow-sm);
  font-size: 20px;
  position: relative;
}

.app-lifecycle-node__circle:hover {
  background: var(--app-color-primary);
  transform: scale(1.15);
  box-shadow: var(--app-shadow-blue);
}

.app-lifecycle-node__circle--end {
  border-color: var(--app-color-success);
}

.app-lifecycle-node__circle--end:hover {
  background: var(--app-color-success);
}

.app-lifecycle-node__label {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-semibold);
  color: var(--app-color-text-secondary);
  text-align: center;
  white-space: nowrap;
}

.app-lifecycle-connector {
  flex: 1;
  min-width: 24px;
  max-width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--app-color-primary), rgba(29,78,216,0.25));
  position: relative;
  flex-shrink: 0;
  margin-top: 25px;
}

.app-lifecycle-connector::after {
  content: '';
  position: absolute;
  /* right: -4px; */
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--app-color-primary);
  border-right: 2px solid var(--app-color-primary);
  transform: rotate(45deg);
}

.app-lifecycle-connector--end {
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-success));
}

.app-lifecycle-connector--end::after {
  border-color: var(--app-color-success);
}

/* Inheritance card */
.app-inheritance-card {
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--app-shadow-lg);
  border: 1px solid var(--app-color-border);
  max-width: 500px;
  margin: 0 auto;
}

.app-inheritance-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
}

.app-inheritance-row + .app-inheritance-row {
  border-top: 1px dashed var(--app-color-border);
}

.app-inheritance-row__stage {
  flex: 1;
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  font-weight: var(--app-weight-medium);
}

.app-inheritance-row__arrow {
  font-size: var(--app-text-md);
  color: var(--app-color-primary);
}

.app-inheritance-row__value {
  font-family: var(--app-font-display);
  font-size: var(--app-text-xl);
  font-weight: var(--app-weight-extrabold);
  color: var(--app-color-primary);
  text-align: right;
  min-width: 90px;
}

.app-inheritance-row__value--final {
  color: var(--app-color-success);
  font-size: var(--app-text-2xl);
}


/* ============================================================
   09. FEATURES
   ============================================================ */

.app-feature-row {
  padding: 4rem 0;
  border-bottom: 1px solid var(--app-color-border);
}

.app-feature-row:last-child {
  border-bottom: none;
}

.app-feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.app-feature-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--app-text-sm);
  color: var(--app-color-text-secondary);
}

.app-feature-checklist__check {
  width: 18px;
  height: 18px;
  border-radius: var(--app-radius-full);
  background: var(--app-color-success-bg);
  border: 1.5px solid var(--app-color-success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
  color: var(--app-color-success);
}


/* ============================================================
   10. CLIENT PORTAL
   ============================================================ */

.app-portal-section {
  background: linear-gradient(135deg, var(--app-color-ink) 0%, var(--app-color-ink-soft) 100%);
  position: relative;
  overflow: hidden;
}

.app-portal-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(29,78,216,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.app-portal-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at bottom left, rgba(59,130,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.app-portal-section__inner {
  position: relative;
  z-index: 1;
}

.app-portal-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--app-radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--app-ease-normal);
  margin-bottom: 0.75rem;
}

.app-portal-feature:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.app-portal-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--app-radius-md);
  background: rgba(29,78,216,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.app-portal-feature__title {
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-semibold);
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.app-portal-feature__desc {
  font-size: var(--app-text-xs);
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Portal mockup */
.app-portal-mockup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--app-radius-xl);
  overflow: hidden;
}

.app-portal-mockup__header {
  background: rgba(29,78,216,0.5);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.app-portal-mockup__title {
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-semibold);
  color: #ffffff;
}

.app-portal-mockup__body {
  padding: 1.25rem;
}

.app-portal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--app-radius-md);
  margin-bottom: 0.5rem;
  font-size: var(--app-text-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.app-portal-row__label {
  color: rgba(255,255,255,0.75);
  font-weight: var(--app-weight-medium);
}

.app-portal-row__value {
  font-weight: var(--app-weight-bold);
  color: #ffffff;
}

.app-portal-row__badge {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-bold);
  padding: 0.2rem 0.6rem;
  border-radius: var(--app-radius-full);
}

.app-portal-row__badge--active  { background: rgba(5,150,105,0.3); color: #6EE7B7; }
.app-portal-row__badge--pending { background: rgba(217,119,6,0.3); color: #FCD34D; }
.app-portal-row__badge--done    { background: rgba(29,78,216,0.3); color: #93C5FD; }

/* Chat preview */
.app-portal-chat {
  background: rgba(255,255,255,0.04);
  border-radius: var(--app-radius-lg);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.75rem;
}

.app-portal-chat__msg {
  padding: 0.5rem 0.75rem;
  border-radius: var(--app-radius-md);
  font-size: var(--app-text-xs);
  margin-bottom: 0.5rem;
  max-width: 85%;
  line-height: 1.5;
}

.app-portal-chat__msg--client {
  background: rgba(29,78,216,0.35);
  color: #ffffff;
  margin-left: auto;
  border-radius: var(--app-radius-md) var(--app-radius-sm) var(--app-radius-md) var(--app-radius-md);
}

.app-portal-chat__msg--pm {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-radius: var(--app-radius-sm) var(--app-radius-md) var(--app-radius-md) var(--app-radius-md);
}


/* ============================================================
   11. SAUDI / REGIONAL SECTION
   ============================================================ */

.app-regional-section {
  background: var(--app-color-bg-subtle);
}

.app-regional-card {
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-xl);
  padding: 2rem;
  border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-sm);
  height: 100%;
  transition: all var(--app-ease-normal);
}

.app-regional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-lg);
  border-color: var(--app-color-primary);
}

.app-regional-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--app-radius-lg);
  background: var(--app-color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1.25rem;
}

.app-regional-card__title {
  font-size: var(--app-text-base);
  font-weight: var(--app-weight-bold);
  color: var(--app-color-text);
  margin-bottom: 0.5rem;
}

.app-regional-card__desc {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  line-height: var(--app-leading-relaxed);
}

/* ZATCA badge */
.app-zatca-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #006C35, #00A550);
  color: #ffffff;
  border-radius: var(--app-radius-full);
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-bold);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0,108,53,0.3);
}


/* ============================================================
   12. TESTIMONIALS
   ============================================================ */

.app-testimonial-card {
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-xl);
  padding: 2rem;
  border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-sm);
  transition: transform var(--app-ease-normal), box-shadow var(--app-ease-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.app-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-lg);
}

.app-testimonial-card--featured {
  border-color: var(--app-color-primary);
  border-width: 2px;
  background: var(--app-color-primary-bg-soft);
  box-shadow: var(--app-shadow-blue);
}

.app-testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: var(--app-text-sm);
}

.app-testimonial-card__quote {
  font-size: var(--app-text-base);
  color: var(--app-color-text-secondary);
  line-height: var(--app-leading-relaxed);
  font-style: italic;
  flex: 1;
}

.app-testimonial-card__quote::before {
  content: '\201C';
  font-size: var(--app-text-4xl);
  color: var(--app-color-primary);
  font-family: var(--app-font-display);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 2px;
}

.app-testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--app-radius-full);
  background: var(--app-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-bold);
  color: #ffffff;
  flex-shrink: 0;
}

.app-testimonial-card__name {
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-bold);
  color: var(--app-color-text);
  display: block;
  line-height: 1.3;
}

.app-testimonial-card__role {
  font-size: var(--app-text-xs);
  color: var(--app-color-text-muted);
  display: block;
  margin-top: 2px;
}


/* ============================================================
   13. CTA DARK
   ============================================================ */

.app-cta-section {
  background: var(--app-color-ink);
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}

.app-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(29,78,216,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.app-cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.app-cta-section__headline {
  color: #ffffff;
  max-width: 620px;
  margin: 1.25rem auto 1rem;
}

.app-cta-section__body {
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: var(--app-text-lg);
  line-height: var(--app-leading-relaxed);
}

.app-cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.app-cta-trust__item {
  font-size: var(--app-text-xs);
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-cta-trust__dot {
  width: 3px;
  height: 3px;
  border-radius: var(--app-radius-full);
  background: rgba(255,255,255,0.2);
}


/* ============================================================
   14. FOOTER
   ============================================================ */

.app-footer {
  background: var(--app-color-bg-white);
  border-top: 1px solid var(--app-color-border);
}

.app-footer__enterprise {
  background: var(--app-color-bg-subtle);
  border-bottom: 1px solid var(--app-color-border);
  padding: 1.5rem 0;
  text-align: center;
}

.app-footer__enterprise-headline {
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-bold);
  color: var(--app-color-text);
  letter-spacing: 0.03em;
}

.app-footer__enterprise-sub {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  margin-top: 0.25rem;
}

.app-footer__main {
  padding: 4rem 0 3rem;
}

.app-footer__wordmark {
  font-family: var(--app-font-display);
  font-size: var(--app-text-xl);
  font-weight: var(--app-weight-extrabold);
  color: var(--app-color-text);
  letter-spacing: -0.02em;
}

.app-footer__wordmark span {
  color: var(--app-color-primary);
}

.app-footer__desc {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  line-height: var(--app-leading-relaxed);
  margin-top: 0.75rem;
}

.app-footer__copy {
  font-size: var(--app-text-xs);
  color: var(--app-color-text-faint);
  margin-top: 1.25rem;
}

.app-footer__col-title {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-extrabold);
  letter-spacing: var(--app-tracking-wider);
  text-transform: uppercase;
  color: var(--app-color-text);
  margin-bottom: 1.25rem;
}

.app-footer__link {
  font-size: var(--app-text-sm);
  color: var(--app-color-text-muted);
  cursor: pointer;
  transition: color var(--app-ease-fast);
  display: block;
  margin-bottom: 0.75rem;
  background: none;
  border: none;
  text-align: start; /* logical property: auto-flips for RTL — no override needed */
  padding: 0;
  font-family: var(--app-font-body);
}

.app-footer__link:hover {
  color: var(--app-color-primary);
}

.app-footer__bottom {
  background: var(--app-color-bg-subtle);
  border-top: 1px solid var(--app-color-border);
  padding: 1.25rem 0;
}

.app-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--app-text-xs);
  color: var(--app-color-text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

.app-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--app-radius-md);
  border: 1px solid var(--app-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--app-color-text-muted);
  cursor: pointer;
  transition: all var(--app-ease-fast);
}

.app-footer__social-link:hover {
  border-color: var(--app-color-primary);
  color: var(--app-color-primary);
  background: var(--app-color-primary-bg);
}


/* ============================================================
   15. COMPONENTS — Badges & Tags
   ============================================================ */

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--app-radius-full);
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-bold);
  letter-spacing: var(--app-tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}

.app-badge--primary { background: var(--app-color-primary-bg); color: var(--app-color-primary); }
.app-badge--success { background: var(--app-color-success-bg); color: var(--app-color-success); }
.app-badge--danger  { background: var(--app-color-danger-bg);  color: var(--app-color-danger); }
.app-badge--neutral { background: var(--app-color-bg-subtle); color: var(--app-color-text-muted); border: 1px solid var(--app-color-border); }
.app-badge--ink     { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.app-badge--warning { background: var(--app-color-warning-bg); color: var(--app-color-warning); border: 1px solid rgba(217,119,6,0.25); }

.app-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: var(--app-radius-full);
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-semibold);
  border: 1.5px solid var(--app-color-border);
  color: var(--app-color-text-secondary);
  background: var(--app-color-bg-white);
  cursor: pointer;
  transition: all var(--app-ease-fast);
  white-space: nowrap;
}

.app-tag-pill:hover,
.app-tag-pill--active {
  border-color: var(--app-color-primary);
  color: var(--app-color-primary);
  background: var(--app-color-primary-bg);
}

.app-star-rating {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
  font-size: var(--app-text-sm);
}


/* ============================================================
   16. COMPONENTS — Cards
   ============================================================ */

.app-card {
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-xl);
  border: 1px solid var(--app-color-border);
  padding: 2rem;
  box-shadow: var(--app-shadow-sm);
  transition: transform var(--app-ease-normal), box-shadow var(--app-ease-normal), border-color var(--app-ease-normal);
  height: 100%;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-lg);
}

.app-card--featured {
  border-color: var(--app-color-primary);
  border-width: 2px;
  background: var(--app-color-primary-bg-soft);
  box-shadow: var(--app-shadow-blue);
}

.app-card--flat {
  box-shadow: none;
}

.app-card--flat:hover {
  box-shadow: var(--app-shadow-md);
}

.app-card--ink {
  background: var(--app-color-ink-soft);
  border-color: rgba(255,255,255,0.08);
}


/* ============================================================
   17. COMPONENTS — Buttons
   ============================================================ */

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--app-radius-md);
  font-size: var(--app-text-base);
  font-weight: var(--app-weight-semibold);
  line-height: 1;
  transition: all var(--app-ease-normal);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--app-font-body);
  text-decoration: none;
}

.app-btn--lg {
  padding: 1rem 2rem;
  font-size: var(--app-text-md);
}

.app-btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--app-text-sm);
}

.app-btn--primary {
  background: var(--app-color-primary);
  color: #ffffff;
  border-color: var(--app-color-primary);
  box-shadow: var(--app-shadow-blue);
}

.app-btn--primary:hover {
  background: var(--app-color-primary-dark);
  border-color: var(--app-color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(29,78,216,0.32);
}

.app-btn--outline {
  background: transparent;
  color: var(--app-color-primary);
  border-color: var(--app-color-primary);
}

.app-btn--outline:hover {
  background: var(--app-color-primary-bg);
  transform: translateY(-1px);
}

.app-btn--ghost {
  background: transparent;
  color: var(--app-color-text-secondary);
  border-color: var(--app-color-border);
}

.app-btn--ghost:hover {
  background: var(--app-color-bg-subtle);
  color: var(--app-color-text);
}

.app-btn--white {
  background: #ffffff;
  color: var(--app-color-ink);
  border-color: #ffffff;
  font-weight: var(--app-weight-bold);
}

.app-btn--white:hover {
  background: #F0F4FF;
  transform: translateY(-1px);
}

.app-btn--ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

.app-btn--ghost-white:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}


/* ============================================================
   18. COMPONENTS — UI Mockups
   ============================================================ */

.ui-card {
  background: var(--app-color-bg-white);
  border-radius: var(--app-radius-xl);
  overflow: hidden;
  border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-xl);
}

.ui-card__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--app-color-bg-subtle);
  border-bottom: 1px solid var(--app-color-border);
}

.ui-card__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--app-radius-full);
}

.ui-card__dot--red    { background: #FF5F57; }
.ui-card__dot--yellow { background: #FEBC2E; }
.ui-card__dot--green  { background: #28C840; }

.ui-card__url {
  flex: 1;
  text-align: center;
  font-size: var(--app-text-xs);
  color: var(--app-color-text-muted);
  background: var(--app-color-bg-white);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-sm);
  padding: 0.2rem 0.75rem;
}

.ui-card__body {
  padding: 1.5rem;
}

.ui-section-label {
  font-size: var(--app-text-xs);
  font-weight: var(--app-weight-bold);
  letter-spacing: var(--app-tracking-wider);
  text-transform: uppercase;
  color: var(--app-color-text-muted);
  margin-bottom: 0.75rem;
}

.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--app-color-bg-off);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-md);
  margin-bottom: 0.5rem;
  font-size: var(--app-text-sm);
  transition: all var(--app-ease-fast);
}

.ui-row--highlight {
  border-color: var(--app-color-primary);
  background: var(--app-color-primary-bg-soft);
  box-shadow: 0 0 0 2px rgba(29,78,216,0.07);
}

.ui-row--success {
  border-color: var(--app-color-success-border);
  background: var(--app-color-success-bg);
}

.ui-row__label {
  font-weight: var(--app-weight-semibold);
  color: var(--app-color-text);
}

.ui-row__value         { font-weight: var(--app-weight-bold); color: var(--app-color-primary); }
.ui-row__value--success{ color: var(--app-color-success); }
.ui-row__value--muted  { color: var(--app-color-text-muted); font-weight: var(--app-weight-regular); }

/* Dashboard mockup specific */
.ui-dash-metric {
  background: var(--app-color-bg-subtle);
  border-radius: var(--app-radius-lg);
  padding: 0.875rem;
  border: 1px solid var(--app-color-border);
}

.ui-dash-metric__value {
  font-family: var(--app-font-display);
  font-size: var(--app-text-xl);
  font-weight: var(--app-weight-extrabold);
  color: var(--app-color-primary);
  display: block;
  line-height: 1.1;
}

.ui-dash-metric__label {
  font-size: var(--app-text-xs);
  color: var(--app-color-text-muted);
  margin-top: 2px;
  display: block;
}

.ui-progress-bar {
  height: 5px;
  background: var(--app-color-border);
  border-radius: var(--app-radius-full);
  overflow: hidden;
  margin-top: 0.4rem;
}

.ui-progress-bar__fill {
  height: 100%;
  border-radius: var(--app-radius-full);
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-light));
}

.ui-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  border-radius: var(--app-radius-lg);
  margin-bottom: 0.375rem;
  border: 1px solid transparent;
  font-size: var(--app-text-sm);
  opacity: 0;
  animation: appRowSlideIn 0.4s ease-out forwards;
}

.ui-invoice-row--a { background: var(--app-color-bg-subtle); border-color: var(--app-color-border); animation-delay: 0.5s; }
.ui-invoice-row--b { background: var(--app-color-bg-subtle); border-color: var(--app-color-border); animation-delay: 0.9s; }
.ui-invoice-row--c { background: var(--app-color-success-bg); border-color: var(--app-color-success-border); animation-delay: 1.3s; }

.ui-invoice-row__client { font-weight: var(--app-weight-semibold); color: var(--app-color-text); }
.ui-invoice-row__amount { font-weight: var(--app-weight-extrabold); color: var(--app-color-primary); font-family: var(--app-font-display); }
.ui-invoice-row__amount--success { color: var(--app-color-success); }


/* ============================================================
   19. ANIMATIONS
   ============================================================ */

@keyframes appMockupFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes appAccentFloat1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

@keyframes appAccentFloat2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes appRowSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ENHANCED ANIMATION SYSTEM
   ============================================================ */

/* Base reveal — fade + rise */
.app-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(0.16,1,0.3,1), transform 600ms cubic-bezier(0.16,1,0.3,1);
}
.app-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay tokens */
.app-reveal--d1 { transition-delay: 90ms; }
.app-reveal--d2 { transition-delay: 180ms; }
.app-reveal--d3 { transition-delay: 270ms; }
.app-reveal--d4 { transition-delay: 360ms; }
.app-reveal--d5 { transition-delay: 450ms; }

/* Slide from left */
.app-reveal--left {
  transform: translateX(-32px);
}
.app-reveal--left.app-reveal--visible {
  transform: translateX(0);
}

/* Slide from right */
.app-reveal--right {
  transform: translateX(32px);
}
.app-reveal--right.app-reveal--visible {
  transform: translateX(0);
}

/* Scale up */
.app-reveal--scale {
  transform: scale(0.93) translateY(16px);
}
.app-reveal--scale.app-reveal--visible {
  transform: scale(1) translateY(0);
}

/* Hero entrance — immediate, no scroll needed */
@keyframes appHeroEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-hero-enter { animation: appHeroEnter 700ms cubic-bezier(0.16,1,0.3,1) both; }
.app-hero-enter--d1 { animation-delay: 100ms; }
.app-hero-enter--d2 { animation-delay: 200ms; }
.app-hero-enter--d3 { animation-delay: 300ms; }
.app-hero-enter--d4 { animation-delay: 420ms; }
.app-hero-enter--d5 { animation-delay: 540ms; }
.app-hero-enter--d6 { animation-delay: 660ms; }

/* Pill stagger animation */
@keyframes appPillPop {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.app-platform-pill {
  animation: appPillPop 500ms cubic-bezier(0.34,1.56,0.64,1) both;
}
.app-platform-pill:nth-child(1) { animation-delay: 420ms; }
.app-platform-pill:nth-child(2) { animation-delay: 470ms; }
.app-platform-pill:nth-child(3) { animation-delay: 520ms; }
.app-platform-pill:nth-child(4) { animation-delay: 570ms; }
.app-platform-pill:nth-child(5) { animation-delay: 620ms; }
.app-platform-pill:nth-child(6) { animation-delay: 670ms; }
.app-platform-pill:nth-child(7) { animation-delay: 720ms; }
.app-platform-pill:nth-child(8) { animation-delay: 770ms; }

/* Counter number pulse when it finishes */
@keyframes appCounterFinish {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.app-proof-metric__number--done {
  animation: appCounterFinish 400ms var(--app-ease-spring);
}

/* Lifecycle node sequential entrance */
@keyframes appNodeEnter {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.app-lifecycle-node--animated .app-lifecycle-node__circle {
  animation: appNodeEnter 500ms cubic-bezier(0.34,1.56,0.64,1) both;
}
.app-lifecycle-node:nth-child(1) .app-lifecycle-node__circle { animation-delay: 0ms; }
.app-lifecycle-node:nth-child(3) .app-lifecycle-node__circle { animation-delay: 120ms; }
.app-lifecycle-node:nth-child(5) .app-lifecycle-node__circle { animation-delay: 240ms; }
.app-lifecycle-node:nth-child(7) .app-lifecycle-node__circle { animation-delay: 360ms; }
.app-lifecycle-node:nth-child(9) .app-lifecycle-node__circle { animation-delay: 480ms; }
.app-lifecycle-node:nth-child(11) .app-lifecycle-node__circle { animation-delay: 600ms; }
.app-lifecycle-node:nth-child(13) .app-lifecycle-node__circle { animation-delay: 720ms; }

/* Connector line draw */
@keyframes appConnectorDraw {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
.app-lifecycle-connector--animated {
  animation: appConnectorDraw 300ms ease-out both;
}
.app-lifecycle-connector:nth-child(2)  { animation-delay: 60ms; }
.app-lifecycle-connector:nth-child(4)  { animation-delay: 180ms; }
.app-lifecycle-connector:nth-child(6)  { animation-delay: 300ms; }
.app-lifecycle-connector:nth-child(8)  { animation-delay: 420ms; }
.app-lifecycle-connector:nth-child(10) { animation-delay: 540ms; }
.app-lifecycle-connector:nth-child(12) { animation-delay: 660ms; }

/* Shimmer effect for mockup rows */
@keyframes appShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.app-shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(29,78,216,0.06) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: appShimmer 2s ease-in-out infinite;
}

/* Pulsing dot for "Live" badge */
@keyframes appLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(5,150,105,0); }
}
.app-live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--app-color-success);
  animation: appLivePulse 2s ease-in-out infinite;
  margin-right: 5px;
  vertical-align: middle;
}

/* Card hover lift — augments base .app-card */
.app-card {
  transition: transform 280ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 280ms ease-out, border-color 220ms ease-out !important;
}

/* Feature row slide-in alternation */
.app-feature-row .row .col-12:first-child .app-reveal { }

/* Testimonial card stagger on scroll */
.app-testimonial-card {
  transition: transform 280ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 280ms ease-out !important;
}

/* Section header underline accent */
.app-section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-light));
  border-radius: var(--app-radius-full);
  margin: 1rem auto 0;
}

/* Gradient text for key headlines */
.app-gradient-text {
  background: linear-gradient(135deg, var(--app-color-primary) 0%, var(--app-color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Proof metric hover */
.app-proof-metric {
  transition: transform 250ms var(--app-ease-spring), box-shadow 250ms ease-out, border-color 220ms ease-out;
  cursor: default;
}
.app-proof-metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-md);
  border-color: var(--app-color-primary);
}

/* Regional card icon bounce */
.app-regional-card:hover .app-regional-card__icon {
  animation: appNodeEnter 400ms cubic-bezier(0.34,1.56,0.64,1);
}

/* Inheritance row highlight animation */
@keyframes appRowHighlight {
  0%   { background: transparent; }
  30%  { background: rgba(29,78,216,0.06); }
  100% { background: transparent; }
}
.app-inheritance-row--flash {
  animation: appRowHighlight 1s ease-out;
}

/* Portal chat message entrance */
@keyframes appChatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.app-portal-chat__msg {
  animation: appChatIn 400ms ease-out both;
}
.app-portal-chat__msg:nth-child(1) { animation-delay: 0.3s; }
.app-portal-chat__msg:nth-child(2) { animation-delay: 0.7s; }
.app-portal-chat__msg:nth-child(3) { animation-delay: 1.1s; }

/* Floating grid background for hero (subtle) */
.app-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,78,216,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* CTA section glow pulse */
@keyframes appGlowPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.app-cta-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
  animation: appGlowPulse 3s ease-in-out infinite;
}

/* Button ripple */
.app-btn {
  position: relative;
  overflow: hidden;
}
.app-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 300ms ease-out;
  border-radius: inherit;
}
.app-btn:active::after {
  background: rgba(255,255,255,0.15);
}

/* Inner page hero entrance */
@keyframes appPageHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-page-hero-enter {
  animation: appPageHeroIn 600ms cubic-bezier(0.16,1,0.3,1) both;
}
.app-page-hero-enter--d1 { animation-delay: 80ms; }
.app-page-hero-enter--d2 { animation-delay: 180ms; }
.app-page-hero-enter--d3 { animation-delay: 300ms; }

/* Reason card hover */
.app-reason {
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out;
}

/* Pain card border pulse on hover */
.app-pain-card {
  position: relative;
  overflow: hidden;
}
.app-pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--app-color-danger), rgba(220,38,38,0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease-out;
}
.app-pain-card:hover::before { transform: scaleX(1); }

/* Use case tab active indicator */
.app-usecase-tab {
  transition: all 220ms cubic-bezier(0.34,1.56,0.64,1);
}
.app-usecase-tab--active {
  transform: translateY(-1px);
}

/* Workflow step counter */
.app-workflow-step__num {
  transition: transform 220ms var(--app-ease-spring), background 220ms ease-out;
}
.app-workflow-step:hover .app-workflow-step__num {
  transform: scale(1.2);
  background: var(--app-color-primary);
  color: white;
}

/* Principle card number reveal */
.app-principle-card:hover .app-principle-card__num {
  opacity: 0.22;
  transition: opacity 300ms ease-out;
}

/* Team card avatar shimmer */
.app-team-card__avatar {
  transition: transform 280ms cubic-bezier(0.34,1.56,0.64,1);
}
.app-team-card:hover .app-team-card__avatar {
  transform: scale(1.1) rotate(-3deg);
}

/* Milestone year highlight */
.app-milestone {
  transition: background 220ms ease-out;
  border-radius: var(--app-radius-md);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
}
.app-milestone:hover {
  background: var(--app-color-primary-bg-soft);
}
.app-milestone__year {
  transition: transform 220ms var(--app-ease-spring);
}
.app-milestone:hover .app-milestone__year {
  transform: scale(1.05);
}

/* Value row */
.app-value-row {
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1), border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.app-value-row:hover {
  transform: translateX(6px);
  box-shadow: var(--app-shadow-sm);
}

/* Compare table row highlight */
.app-compare-table__row {
  transition: background 150ms ease-out;
}

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


/* ============================================================
   22. STICKY CTA BAR
   ============================================================ */

.app-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 1040;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}

.app-sticky-cta--visible {
  transform: translateY(0);
}

.app-sticky-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sticky-cta__headline {
  font-family: var(--app-font-display);
  font-size: var(--app-text-sm);
  font-weight: var(--app-weight-bold);
  color: #ffffff;
  line-height: 1.2;
}

.app-sticky-cta__sub {
  font-size: var(--app-text-xs);
  color: rgba(255,255,255,0.45);
}

.app-sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.app-sticky-cta__dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: var(--app-text-lg);
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--app-ease-fast);
  flex-shrink: 0;
}

.app-sticky-cta__dismiss:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 540px) {
  .app-sticky-cta { flex-wrap: wrap; }
  .app-sticky-cta__copy { flex: 1; min-width: 0; }
  .app-sticky-cta__sub { display: none; }
}


/* ============================================================
   23. SCROLL TO TOP
   ============================================================ */

.app-scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: var(--app-radius-full);
  background: var(--app-color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--app-text-base);
  box-shadow: var(--app-shadow-blue);
  z-index: 1039;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.85);
  transition: opacity 300ms ease-out, visibility 300ms ease-out, transform 300ms cubic-bezier(0.34,1.56,0.64,1), background var(--app-ease-fast);
}

.app-scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.app-scroll-top:hover {
  background: var(--app-color-primary-dark);
  transform: translateY(-2px) scale(1.05);
}

html[dir="rtl"] .app-scroll-top {
  right: auto;
  left: 1.5rem;
}


/* ============================================================
   24. SCROLL PROGRESS BAR
   ============================================================ */

.app-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-light));
  z-index: 1100;
  width: 0%;
  transition: width 100ms linear;
  pointer-events: none;
}


/* ============================================================
   20. CUSTOM BREAKPOINTS
   (Bootstrap covers: 576, 768, 992, 1200, 1400)
   Custom additions below
   ============================================================ */

/* 1680px */
@media (min-width: 1680px) {
  .app-hero__headline { max-width: 640px; }
  .app-hero__subline  { max-width: 580px; }
}

/* 1600px */
@media (max-width: 1600px) {
  .app-hero__accent--tl { left: -24px; }
}

/* 1520px */
@media (max-width: 1520px) {
  /* no critical changes at this breakpoint */
}

/* 1440px */
@media (max-width: 1440px) {
  .app-hero__accent--br { right: -8px; }
}

/* 1366px */
@media (max-width: 1366px) {
  .app-hero__accent--tl { display: none; }
}

/* 1280px */
@media (max-width: 1280px) {
  .app-nav__link { padding: 0.4rem 0.55rem; font-size: 0.75rem; }
}

/* 1024px — Bootstrap lg starts at 992, this fills the gap */
@media (max-width: 1024px) {
  .app-hero__accent--br { display: none; }
  .app-hero__inner      { padding: 3rem 0; }
  .app-section          { padding: 4rem 0; }
  .app-section--lg      { padding: 5rem 0; }
}

/* 820px */
@media (max-width: 820px) {
  .app-nav__links       { display: none; }
  .app-nav__hamburger   { display: flex; }
  /* .app-nav__login       { display: none; } */
  .app-nav__cta-desktop { display: none; }
  .app-lifecycle-track  { justify-content: flex-start; padding: 2rem 0; }
}

/* 768px — aligns with Bootstrap md */
@media (max-width: 768px) {
  .app-section       { padding: 3.5rem 0; }
  .app-section--lg   { padding: 4.5rem 0; }
  .app-hero__inner   { padding: 2.5rem 0; }
  .app-hero          { min-height: auto; padding-top: var(--app-nav-height); }
  .app-footer__main  { padding: 3rem 0 2rem; }
}

/* 430px */
@media (max-width: 430px) {
  .app-display-xl   { font-size: 2rem; }
  .app-display-lg   { font-size: 1.75rem; }
  .app-display-md   { font-size: 1.5rem; }
  .app-btn--lg      { padding: 0.875rem 1.5rem; font-size: var(--app-text-base); }
  .app-hero__trust  { gap: 0.5rem; }
  .app-hero__trust-dot { display: none; }
}

/* 414px */
@media (max-width: 414px) {
  .container { padding-left: 1.125rem; padding-right: 1.125rem; }
}

/* 390px */
@media (max-width: 390px) {
  .app-display-xl { font-size: 1.875rem; }
}

/* 384px */
@media (max-width: 384px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* 375px */
@media (max-width: 375px) {
  .app-display-xl { font-size: 1.75rem; }
  .app-display-lg { font-size: 1.625rem; }
}

/* 353px */
@media (max-width: 353px) {
  .app-display-xl { font-size: 1.625rem; }
  .app-display-lg { font-size: 1.5rem; }
  .app-display-md { font-size: 1.375rem; }
  .container      { padding-left: 0.875rem; padding-right: 0.875rem; }
}


/* ============================================================
   21. RTL SCAFFOLD
   All Arabic/RTL overrides go here when bilingual pass begins
   ============================================================ */

html[dir="rtl"] {

  /* Body & base */
  /* Arabic font: swap --app-font-body to an Arabic typeface here when bilingual pass begins */

  /* Navigation */
  .app-nav__inner      { flex-direction: row-reverse; }
  .app-nav__links      { flex-direction: row-reverse; }
  .app-nav__right      { flex-direction: row-reverse; }
  .app-nav__dropdown-menu { left: auto; right: 0; }

  /* Flow boxes */
  .app-flow-sep--danger,
  .app-flow-sep--primary { transform: scaleX(-1); }

  /* Portal features */
  .app-portal-feature:hover { transform: translateX(-4px); }

  /* Problem stats */
  .app-problem-stat:hover { transform: translateX(-4px); }

  /* Lifecycle connector arrows */
  .app-lifecycle-connector::after {
    right: auto;
    left: -4px;
    border-top: 2px solid var(--app-color-primary);
    border-right: none;
    border-left: 2px solid var(--app-color-primary);
    transform: rotate(-45deg);
  }

  /* Footer */
  .app-footer__bottom-inner { flex-direction: row-reverse; }
  /* .app-footer__link text-align handled by logical property (text-align: start) in base rule */

  /* Mobile menu */
  .app-mobile-menu__close { right: auto; left: 1.5rem; }

  /* Text alignment helpers */
  .app-hero__headline,
  .app-hero__subline,
  .app-hero__trust,
  .app-hero__platform-pills { margin-left: 0; margin-right: 0; }

}

/* ── INNER PAGE SHARED ── */
/* pages are separate files — no display toggling needed */


.app-page-hero {
  padding-top: calc(var(--app-nav-height) + 4.5rem);
  padding-bottom: 4.5rem;
  background: var(--app-color-bg-white);
  position: relative; overflow: hidden;
}
.app-page-hero::before {
  content: '';
  position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(238,242,255,0.65) 0%, transparent 65%);
  pointer-events: none;
}
.app-page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29,78,216,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,216,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}
.app-page-hero__inner { position: relative; z-index: 1; }

/* ── WHY TASKATY — Pain Cards ── */
.app-pain-card {
  background: var(--app-color-bg-white);
  border: 1px solid var(--app-color-danger-border);
  border-radius: var(--app-radius-xl); padding: 1.75rem; height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out;
  position: relative; overflow: hidden;
}
.app-pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--app-color-danger), rgba(220,38,38,0.3));
  transform: scaleX(0); transform-origin: left; transition: transform 300ms ease-out;
}
.app-pain-card:hover::before { transform: scaleX(1); }
.app-pain-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); }
.app-pain-card__icon { font-size: 1.75rem; margin-bottom: 1rem; }
.app-pain-card__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.5rem; }
.app-pain-card__desc  { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }
.app-pain-card__stat  { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--app-color-danger-border); font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); color: var(--app-color-danger); }

/* ── WHY TASKATY — Reason cards ── */
.app-reason {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.75rem; border-radius: var(--app-radius-xl);
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  box-shadow: var(--app-shadow-sm); margin-bottom: 1rem;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out;
}
.app-reason:hover { transform: translateX(8px); box-shadow: var(--app-shadow-md); border-color: var(--app-color-primary); }
.app-reason__number {
  width: 40px; height: 40px; border-radius: var(--app-radius-full);
  background: var(--app-color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--app-font-display); font-weight: var(--app-weight-extrabold);
  font-size: var(--app-text-base); flex-shrink: 0;
  transition: transform 220ms var(--app-ease-spring);
}
.app-reason:hover .app-reason__number { transform: scale(1.15) rotate(-5deg); }
.app-reason__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.375rem; }
.app-reason__desc  { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

/* ── COMPARISON TABLE ── */
.app-compare-table { border-radius: var(--app-radius-xl); overflow: hidden; border: 1px solid var(--app-color-border); box-shadow: var(--app-shadow-md); }
.app-compare-table__head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; background: var(--app-color-ink); }
.app-compare-table__head-cell { padding: 1rem 1.25rem; font-size: var(--app-text-xs); font-weight: var(--app-weight-extrabold); letter-spacing: var(--app-tracking-wider); text-transform: uppercase; color: rgba(255,255,255,0.45); }
.app-compare-table__head-cell--highlight { color: #fff; font-size: var(--app-text-sm); text-transform: none; letter-spacing: 0; font-family: var(--app-font-display); background: rgba(29,78,216,0.4); }
.app-compare-table__row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-top: 1px solid var(--app-color-border); transition: background 150ms ease-out; }
.app-compare-table__row:hover { background: var(--app-color-bg-subtle); }
.app-compare-table__row--alt { background: var(--app-color-bg-subtle); }
.app-compare-table__row--alt:hover { background: var(--app-color-border-light); }
.app-compare-table__cell { padding: 0.875rem 1.25rem; font-size: var(--app-text-sm); display: flex; align-items: center; }
.app-compare-table__cell--feature { font-weight: var(--app-weight-semibold); color: var(--app-color-text); }
.app-compare-table__cell--yes     { color: var(--app-color-success); font-size: 1.1rem; }
.app-compare-table__cell--no      { color: var(--app-color-text-faint); font-size: 1.1rem; }
.app-compare-table__cell--partial { color: var(--app-color-warning); font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); }
.app-compare-table__cell--highlight { background: var(--app-color-primary-bg-soft); border-left: 2px solid var(--app-color-primary); border-right: 2px solid var(--app-color-primary); }

/* ── USE CASES — tab bar ── */
.app-usecase-tab-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.app-usecase-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: var(--app-radius-full);
  font-size: var(--app-text-sm); font-weight: var(--app-weight-semibold);
  border: 1.5px solid var(--app-color-border); background: var(--app-color-bg-white);
  color: var(--app-color-text-muted); cursor: pointer;
  transition: all 250ms cubic-bezier(0.34,1.56,0.64,1);
}
.app-usecase-tab:hover { border-color: var(--app-color-primary); color: var(--app-color-primary); transform: translateY(-1px); }
.app-usecase-tab--active { background: var(--app-color-primary); border-color: var(--app-color-primary); color: #fff; box-shadow: var(--app-shadow-blue); transform: translateY(-2px); }
.app-usecase-panel { display: none; animation: appPageHeroIn 400ms cubic-bezier(0.16,1,0.3,1) both; }
.app-usecase-panel--active { display: block; }

/* Stat cards */
.app-usecase-stat {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-xl); padding: 1.5rem; text-align: center;
  box-shadow: var(--app-shadow-sm); height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out;
}
.app-usecase-stat:hover { transform: translateY(-4px); box-shadow: var(--app-shadow-md); border-color: var(--app-color-primary); }
.app-usecase-stat__value { font-family: var(--app-font-display); font-size: var(--app-text-4xl); font-weight: var(--app-weight-extrabold); color: var(--app-color-primary); display: block; line-height: 1; }
.app-usecase-stat__label { font-size: var(--app-text-sm); color: var(--app-color-text-muted); margin-top: 0.5rem; display: block; }

/* Workflow steps */
.app-workflow-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--app-color-border);
}
.app-workflow-step:last-child { border-bottom: none; }
.app-workflow-step__num {
  width: 28px; height: 28px; border-radius: var(--app-radius-full);
  background: var(--app-color-primary-bg); color: var(--app-color-primary);
  font-size: var(--app-text-xs); font-weight: var(--app-weight-extrabold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 220ms var(--app-ease-spring), background 220ms ease-out, color 220ms ease-out;
}
.app-workflow-step:hover .app-workflow-step__num { transform: scale(1.2); background: var(--app-color-primary); color: #fff; }
.app-workflow-step__title { font-size: var(--app-text-sm); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.2rem; }
.app-workflow-step__desc  { font-size: var(--app-text-xs); color: var(--app-color-text-muted); line-height: 1.5; }

/* Quote block */
.app-quote-block {
  background: var(--app-color-primary-bg-soft); border: 2px solid var(--app-color-primary);
  border-radius: var(--app-radius-xl); padding: 2rem; position: relative;
}
.app-quote-block__mark { font-size: 4rem; line-height: 1; color: var(--app-color-primary); opacity: 0.18; position: absolute; top: 0.5rem; left: 1.25rem; font-family: var(--app-font-display); }
.app-quote-block__text { font-size: var(--app-text-base); color: var(--app-color-text-secondary); line-height: var(--app-leading-relaxed); font-style: italic; padding-top: 1.5rem; }
.app-quote-block__author { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.app-quote-block__avatar { width: 38px; height: 38px; border-radius: var(--app-radius-full); background: var(--app-color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); flex-shrink: 0; }
.app-quote-block__name { font-size: var(--app-text-sm); font-weight: var(--app-weight-bold); color: var(--app-color-text); display: block; }
.app-quote-block__role { font-size: var(--app-text-xs); color: var(--app-color-text-muted); display: block; }

/* ── ABOUT — dark hero ── */
.app-about-hero {
  padding-top: calc(var(--app-nav-height) + 5rem); padding-bottom: 5rem;
  background: var(--app-color-ink); position: relative; overflow: hidden;
}
.app-about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(29,78,216,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(59,130,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.app-about-hero__inner { position: relative; z-index: 1; }

/* Principle cards */
.app-principle-card {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-xl); padding: 2rem; height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out;
  position: relative; overflow: hidden;
}
.app-principle-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-light));
  transform: scaleX(0); transform-origin: left; transition: transform 350ms ease-out;
}
.app-principle-card:hover::before { transform: scaleX(1); }
.app-principle-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); }
.app-principle-card__num { font-family: var(--app-font-display); font-size: var(--app-text-4xl); font-weight: var(--app-weight-black); color: var(--app-color-primary); opacity: 0.1; line-height: 1; margin-bottom: 0.5rem; transition: opacity 300ms ease-out; }
.app-principle-card:hover .app-principle-card__num { opacity: 0.2; }
.app-principle-card__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.5rem; }
.app-principle-card__desc  { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

/* Team cards */
.app-team-card {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-xl); padding: 1.75rem; text-align: center;
  box-shadow: var(--app-shadow-sm); height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out;
}
.app-team-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); border-color: var(--app-color-primary); }
.app-team-card__avatar {
  width: 72px; height: 72px; border-radius: var(--app-radius-full);
  background: linear-gradient(135deg, var(--app-color-primary), var(--app-color-primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--app-font-display); font-size: var(--app-text-xl); font-weight: var(--app-weight-extrabold);
  margin: 0 auto 1rem; transition: transform 280ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 280ms ease-out;
}
.app-team-card:hover .app-team-card__avatar { transform: scale(1.1) rotate(-4deg); box-shadow: var(--app-shadow-blue); }
.app-team-card__name { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.25rem; }
.app-team-card__role { font-size: var(--app-text-sm); color: var(--app-color-primary); font-weight: var(--app-weight-semibold); margin-bottom: 0.5rem; }
.app-team-card__bio  { font-size: var(--app-text-xs); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

/* Milestones */
.app-milestone { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0.75rem; border-bottom: 1px solid var(--app-color-border); border-radius: var(--app-radius-md); transition: background 220ms ease-out; }
.app-milestone:last-child { border-bottom: none; }
.app-milestone:hover { background: var(--app-color-primary-bg-soft); }
.app-milestone__year { font-family: var(--app-font-display); font-size: var(--app-text-2xl); font-weight: var(--app-weight-extrabold); color: var(--app-color-primary); min-width: 70px; line-height: 1.1; transition: transform 220ms var(--app-ease-spring); }
.app-milestone:hover .app-milestone__year { transform: scale(1.06); }
.app-milestone__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.25rem; }
.app-milestone__desc  { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

/* Value rows */
.app-value-row {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-lg); margin-bottom: 0.75rem;
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1), border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.app-value-row:hover { transform: translateX(8px); border-color: var(--app-color-primary); box-shadow: var(--app-shadow-sm); }
.app-value-row__icon { font-size: 1.5rem; flex-shrink: 0; width: 44px; height: 44px; background: var(--app-color-primary-bg); border-radius: var(--app-radius-md); display: flex; align-items: center; justify-content: center; }
.app-value-row__title { font-size: var(--app-text-sm); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.125rem; }
.app-value-row__desc  { font-size: var(--app-text-xs); color: var(--app-color-text-muted); }

/* Section header underline */
.app-section-header h2::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-light));
  border-radius: var(--app-radius-full); margin: 1rem auto 0;
}

/* RTL inner pages */
html[dir="rtl"] .app-reason:hover { transform: translateX(-8px); }
html[dir="rtl"] .app-value-row:hover { transform: translateX(-8px); }

/* Responsive */
@media (max-width: 820px) {
  .app-compare-table { overflow-x: auto; }
  .app-compare-table__head, .app-compare-table__row { min-width: 520px; }
}

/* ── PLATFORM — Module Cards ── */
.app-platform-module-card {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-xl); padding: 2rem; height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out;
  position: relative; overflow: hidden;
}
.app-platform-module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-light));
  transform: scaleX(0); transform-origin: left; transition: transform 350ms ease-out;
}
.app-platform-module-card:hover::before { transform: scaleX(1); }
.app-platform-module-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); border-color: var(--app-color-primary); }
.app-platform-module-card--featured { border-color: var(--app-color-primary); border-width: 2px; background: var(--app-color-primary-bg-soft); box-shadow: var(--app-shadow-blue); }
.app-platform-module-card--featured::before { transform: scaleX(1); }
.app-platform-module-card__num { font-family: var(--app-font-display); font-size: var(--app-text-xs); font-weight: var(--app-weight-extrabold); color: var(--app-color-text-faint); letter-spacing: var(--app-tracking-wider); margin-bottom: 0.75rem; }
.app-platform-module-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.app-platform-module-card__title { font-size: var(--app-text-lg); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.5rem; }
.app-platform-module-card__desc { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); margin-bottom: 1rem; }
.app-platform-module-card__list { list-style: none; padding: 0; margin: 0; }
.app-platform-module-card__list li { font-size: var(--app-text-xs); color: var(--app-color-text-secondary); padding: 0.3rem 0; border-bottom: 1px solid var(--app-color-border-light); display: flex; align-items: center; gap: 0.5rem; }
.app-platform-module-card__list li::before { content: '✓'; color: var(--app-color-success); font-weight: var(--app-weight-bold); font-size: 10px; flex-shrink: 0; }
.app-platform-module-card__list li:last-child { border-bottom: none; }

/* ── PLATFORM — Dark flow visual ── */
.app-flow-visual { padding: 2rem; }
.app-flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--app-radius-xl); min-width: 80px; text-align: center;
  transition: all var(--app-ease-spring);
}
.app-flow-node:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.app-flow-node--active { background: rgba(29,78,216,0.35); border-color: rgba(29,78,216,0.6); }
.app-flow-node--end { background: rgba(5,150,105,0.25); border-color: rgba(5,150,105,0.5); }
.app-flow-node__icon { font-size: 1.5rem; }
.app-flow-node__label { font-size: var(--app-text-xs); font-weight: var(--app-weight-semibold); color: rgba(255,255,255,0.65); }
.app-flow-node__value { font-family: var(--app-font-display); font-size: var(--app-text-sm); font-weight: var(--app-weight-extrabold); color: #fff; }
.app-flow-arrow { font-size: var(--app-text-xl); color: rgba(255,255,255,0.2); padding: 0 0.25rem; align-self: center; }
.app-flow-arrow--end { color: rgba(5,150,105,0.6); }

/* ── PLATFORM — Capability cards ── */
.app-capability-card {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-xl); padding: 1.75rem; height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out;
  text-align: center;
}
.app-capability-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); }
.app-capability-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.app-capability-card__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.5rem; }
.app-capability-card__desc { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

/* ── PRICING ── */
.app-pricing-toggle { display: inline-flex; border: 1.5px solid var(--app-color-border); border-radius: var(--app-radius-full); overflow: hidden; }
.app-pricing-toggle__btn { padding: 0.5rem 1.25rem; font-size: var(--app-text-sm); font-weight: var(--app-weight-semibold); cursor: pointer; background: none; border: none; font-family: var(--app-font-body); color: var(--app-color-text-muted); transition: all var(--app-ease-fast); display: flex; align-items: center; gap: 0.5rem; }
.app-pricing-toggle__btn--active { background: var(--app-color-primary); color: #fff; }
.app-pricing-toggle__save { background: var(--app-color-success-bg); color: var(--app-color-success); font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); padding: 0.1rem 0.4rem; border-radius: var(--app-radius-full); }

.app-pricing-card {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-2xl); padding: 2.5rem; height: 100%;
  box-shadow: var(--app-shadow-sm); position: relative;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out;
}
.app-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--app-shadow-xl); }
.app-pricing-card--featured { border-color: var(--app-color-primary); border-width: 2px; box-shadow: var(--app-shadow-blue); }
.app-pricing-card__popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--app-color-primary); color: #fff; font-size: var(--app-text-xs); font-weight: var(--app-weight-extrabold); letter-spacing: var(--app-tracking-wide); padding: 0.3rem 1rem; border-radius: var(--app-radius-full); white-space: nowrap; text-transform: uppercase; }
.app-pricing-card__tier { font-size: var(--app-text-sm); font-weight: var(--app-weight-extrabold); letter-spacing: var(--app-tracking-wider); text-transform: uppercase; color: var(--app-color-text-muted); margin-bottom: 0.75rem; }
.app-pricing-card__price-row { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.25rem; }
.app-pricing-card__currency { font-size: var(--app-text-lg); font-weight: var(--app-weight-bold); color: var(--app-color-text-muted); }
.app-pricing-card__amount { font-family: var(--app-font-display); font-size: var(--app-text-5xl); font-weight: var(--app-weight-extrabold); color: var(--app-color-text); line-height: 1; transition: all 400ms cubic-bezier(0.16,1,0.3,1); }
.app-pricing-card__period { font-size: var(--app-text-sm); color: var(--app-color-text-muted); }
.app-pricing-card__sub { font-size: var(--app-text-xs); color: var(--app-color-text-faint); margin-bottom: 0.5rem; }
.app-pricing-card__divider { height: 1px; background: var(--app-color-border); margin: 1.25rem 0; }
.app-pricing-card__features-label { font-size: var(--app-text-xs); font-weight: var(--app-weight-extrabold); letter-spacing: var(--app-tracking-wider); text-transform: uppercase; color: var(--app-color-text-muted); margin-bottom: 0.75rem; }
.app-pricing-card__features { list-style: none; padding: 0; margin: 0; }
.app-pricing-card__features li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--app-text-sm); color: var(--app-color-text-secondary); padding: 0.375rem 0; border-bottom: 1px solid var(--app-color-border-light); }
.app-pricing-card__features li:last-child { border-bottom: none; }
.app-pricing-check { color: var(--app-color-success); font-weight: var(--app-weight-bold); font-size: 12px; flex-shrink: 0; width: 16px; }
.app-pricing-x { color: var(--app-color-text-faint); font-size: 12px; flex-shrink: 0; width: 16px; text-align: center; }

.app-pricing-trust { background: var(--app-color-bg-white); border: 1px solid var(--app-color-border); border-radius: var(--app-radius-xl); padding: 1.5rem; text-align: center; height: 100%; transition: transform 250ms var(--app-ease-spring), border-color 220ms ease-out; }
.app-pricing-trust:hover { transform: translateY(-3px); border-color: var(--app-color-primary); }
.app-pricing-trust__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.app-pricing-trust__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.375rem; }
.app-pricing-trust__desc { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

.app-faq { border: 1px solid var(--app-color-border); border-radius: var(--app-radius-xl); overflow: hidden; }
.app-faq__item { border-bottom: 1px solid var(--app-color-border); padding: 1.5rem; cursor: pointer; transition: background 150ms ease-out; }
.app-faq__item:last-child { border-bottom: none; }
.app-faq__item:hover { background: var(--app-color-bg-subtle); }
.app-faq__q { font-size: var(--app-text-base); font-weight: var(--app-weight-semibold); color: var(--app-color-text); margin-bottom: 0.625rem; }
.app-faq__a { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

/* ── SECURITY ── */
.app-security-card {
  background: var(--app-color-bg-white); border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-xl); padding: 2rem; height: 100%;
  transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out;
}
.app-security-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); border-color: var(--app-color-primary); }
.app-security-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.app-security-card__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.5rem; }
.app-security-card__desc { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); }

.app-cert-card { background: var(--app-color-bg-white); border: 1px solid var(--app-color-border); border-radius: var(--app-radius-xl); padding: 2rem; text-align: center; height: 100%; transition: transform 250ms var(--app-ease-spring), box-shadow 250ms ease-out; }
.app-cert-card:hover { transform: translateY(-4px); box-shadow: var(--app-shadow-md); }
.app-cert-card__badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--app-radius-xl); background: var(--app-color-ink); color: #fff; font-family: var(--app-font-display); font-size: var(--app-text-base); font-weight: var(--app-weight-extrabold); margin: 0 auto 0.75rem; letter-spacing: -0.02em; }
.app-cert-card__type { font-size: var(--app-text-sm); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.25rem; }
.app-cert-card__desc { font-size: var(--app-text-xs); color: var(--app-color-text-muted); }

/* ── CONTACT ── */
.app-contact-form-card { background: var(--app-color-bg-white); border: 1px solid var(--app-color-border); border-radius: var(--app-radius-2xl); padding: 2.5rem; box-shadow: var(--app-shadow-md); }
.app-form-label { display: block; font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); letter-spacing: var(--app-tracking-wide); text-transform: uppercase; color: var(--app-color-text-muted); margin-bottom: 0.5rem; }
.app-form-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--app-color-border); border-radius: var(--app-radius-md); font-size: var(--app-text-base); font-family: var(--app-font-body); color: var(--app-color-text); background: var(--app-color-bg-white); outline: none; transition: border-color 200ms ease-out, box-shadow 200ms ease-out; }
.app-form-input:focus { border-color: var(--app-color-primary); box-shadow: 0 0 0 3px rgba(29,78,216,0.10); }
.app-form-input--error { border-color: var(--app-color-danger) !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.10) !important; }
.app-form-error { display: block; font-size: var(--app-text-xs); color: var(--app-color-danger); margin-top: 0.375rem; font-weight: var(--app-weight-medium); }
@keyframes appFormShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}
.app-form-input:focus { border-color: var(--app-color-primary); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }
.app-form-textarea { min-height: 120px; resize: vertical; }
.app-form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.app-form-option-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-form-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1.5px solid var(--app-color-border); border-radius: var(--app-radius-full); cursor: pointer; font-size: var(--app-text-sm); color: var(--app-color-text-muted); transition: all var(--app-ease-fast); }
.app-form-option:has(input:checked) { border-color: var(--app-color-primary); color: var(--app-color-primary); background: var(--app-color-primary-bg); }
.app-form-option input { display: none; }
.app-contact-method { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--app-color-border-light); }
.app-contact-method:last-child { border-bottom: none; }
.app-contact-method__icon { font-size: 1.25rem; width: 36px; height: 36px; background: var(--app-color-primary-bg); border-radius: var(--app-radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-contact-method__label { font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); color: var(--app-color-text-muted); text-transform: uppercase; letter-spacing: var(--app-tracking-wide); }
.app-contact-method__value { font-size: var(--app-text-sm); color: var(--app-color-text); font-weight: var(--app-weight-medium); margin-top: 2px; line-height: 1.5; }
.app-contact-options-card { background: var(--app-color-bg-subtle); border: 1px solid var(--app-color-border); border-radius: var(--app-radius-xl); padding: 1.75rem; margin-top: 1.5rem; }

/* ── BLOG ── */
.app-blog-filter { padding: 0.5rem 1.1rem; border-radius: var(--app-radius-full); font-size: var(--app-text-sm); font-weight: var(--app-weight-semibold); border: 1.5px solid var(--app-color-border); background: var(--app-color-bg-white); color: var(--app-color-text-muted); cursor: pointer; font-family: var(--app-font-body); transition: all 220ms cubic-bezier(0.34,1.56,0.64,1); }
.app-blog-filter:hover { border-color: var(--app-color-primary); color: var(--app-color-primary); transform: translateY(-1px); }
.app-blog-filter--active { background: var(--app-color-primary); border-color: var(--app-color-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--app-shadow-blue); }

.app-blog-featured { background: var(--app-color-ink); border-radius: var(--app-radius-2xl); overflow: hidden; box-shadow: var(--app-shadow-xl); }
.app-blog-featured__visual { background: linear-gradient(135deg, var(--app-color-primary-dark), var(--app-color-primary)); display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 240px; position: relative; overflow: hidden; gap: 1rem; }
.app-blog-featured__tag { position: absolute; top: 1.25rem; left: 1.25rem; background: rgba(255,255,255,0.15); color: #fff; font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); letter-spacing: var(--app-tracking-wide); text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: var(--app-radius-full); }
.app-blog-featured__illus { text-align: center; }
.app-blog-featured__body { padding: 2.5rem; }
.app-blog-author { display: flex; align-items: center; gap: 0.75rem; }
.app-blog-author__avatar { width: 38px; height: 38px; border-radius: var(--app-radius-full); background: var(--app-color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--app-text-xs); font-weight: var(--app-weight-bold); flex-shrink: 0; }
.app-blog-author__name { font-size: var(--app-text-sm); font-weight: var(--app-weight-semibold); color: var(--app-color-text); }
.app-blog-author__date { font-size: var(--app-text-xs); color: var(--app-color-text-muted); }

.app-blog-card { background: var(--app-color-bg-white); border: 1px solid var(--app-color-border); border-radius: var(--app-radius-xl); padding: 1.75rem; height: 100%; transition: transform 250ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 250ms ease-out, border-color 220ms ease-out; display: flex; flex-direction: column; }
.app-blog-card:hover { transform: translateY(-5px); box-shadow: var(--app-shadow-lg); border-color: var(--app-color-primary); }
.app-blog-card__tag-row { margin-bottom: 0.875rem; }
.app-blog-card__title { font-size: var(--app-text-base); font-weight: var(--app-weight-bold); color: var(--app-color-text); margin-bottom: 0.625rem; line-height: var(--app-leading-snug); flex: 1; }
.app-blog-card__excerpt { font-size: var(--app-text-sm); color: var(--app-color-text-muted); line-height: var(--app-leading-relaxed); margin-bottom: 1rem; }
.app-blog-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--app-color-border-light); margin-top: auto; }
.app-blog-card__read { font-size: var(--app-text-xs); font-weight: var(--app-weight-semibold); color: var(--app-color-primary); }
.app-blog-card__date { font-size: var(--app-text-xs); color: var(--app-color-text-faint); }

/* RTL support for new pages */
html[dir="rtl"] .app-platform-module-card::before { transform-origin: right; }
html[dir="rtl"] .app-principle-card::before { transform-origin: right; }
html[dir="rtl"] .app-security-card { text-align: right; }
html[dir="rtl"] .app-contact-method { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .app-form-option-group { flex-direction: row-reverse; }

/* Responsive */
@media (max-width: 768px) {
  .app-contact-form-card { padding: 1.75rem; }
  .app-pricing-card { padding: 2rem; }
  .app-blog-featured__body { padding: 1.75rem; }
  .app-flow-visual .row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1rem; }
}

/*====== Harsh ======*/
.header_logo {
    width: 100%;
    max-width: 120px;
    max-height: calc(var(--app-nav-height) - 32px);
}
.footer_logo {
    max-width: 200px;
    max-height: calc(var(--app-nav-height) - 10px);
}
/*====== Harsh ======*/