/* ============================================
   VARIABLES
   ============================================ */
:root {
  /* Primary palette */
  --color-primary-400: #3C89CD;
  --color-primary-500: #2A7AC4;
  --color-primary-600: #0364B1;
  --gradient-primary: linear-gradient(135deg, #3C89CD, #0364B1);

  /* Neutrals */
  --color-bg-dark: #0A0F1A;
  --color-bg-dark-alt: #111827;
  --color-bg-light: #F8FAFC;
  --color-bg-white: #FFFFFF;
  --color-surface: #1E293B;
  --color-border: #334155;

  /* Text */
  --color-text-primary: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-text-dark: #1E293B;
  --color-text-dark-secondary: #64748B;

  /* Accents */
  --color-danger: #EF4444;
  --color-success: #10B981;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 40px rgba(60,137,205,0.15);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary-500);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-sm);
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ============================================
   BASE / UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-dark-secondary);
  margin-top: var(--space-4);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(3,100,177,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(3,100,177,0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-lg);
  border-radius: var(--border-radius-lg);
}

.btn--pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(3,100,177,0.3); }
  50% { box-shadow: 0 4px 30px rgba(3,100,177,0.6); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(10,15,26,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-2) 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  color: white;
  flex-shrink: 0;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switch {
  position: relative;
}

.lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-switch__flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  object-fit: cover;
  vertical-align: middle;
}

.lang-switch__flag-emoji {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[dir="rtl"] .lang-switch__menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .lang-switch__option {
  text-align: right;
}

html[dir="rtl"] .testimonials__flag,
html[dir="rtl"] .lang-switch__flag {
  margin-left: 0;
  margin-right: 0.5em;
}

html[dir="rtl"] .platform__integration-sync svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .blog-article__back,
html[dir="rtl"] .blog-nav-titles__item--prev {
  /* arrow chars stay LTR; flip the surrounding flow */
  direction: rtl;
}

html[dir="rtl"] .footer__col,
html[dir="rtl"] .platform__content,
html[dir="rtl"] .chaos__card {
  text-align: right;
}

/* Chinese — use Noto Sans SC for proper character coverage */
html[lang="zh-CN"] body,
html[lang="zh-cn"] body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lang-switch__current:hover {
  background: rgba(255,255,255,0.18);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  list-style: none;
  margin: 0;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 200;
}

.lang-switch.is-open .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-sm);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-switch__option:hover {
  background: rgba(255,255,255,0.06);
}

.lang-switch__option.is-active {
  background: rgba(60,137,205,0.18);
  color: var(--color-primary-400);
  font-weight: 600;
}

.lang-switch__label {
  font-size: var(--font-size-sm);
}

/* Light blog navs */
.blog-page .lang-switch__current {
  background: rgba(15,23,42,0.06);
  border-color: rgba(15,23,42,0.15);
  color: var(--color-text-dark);
}

.blog-page .lang-switch__current:hover {
  background: rgba(15,23,42,0.1);
}

.blog-page .lang-switch__menu {
  background: white;
  border-color: #E2E8F0;
}

.blog-page .lang-switch__option {
  color: var(--color-text-dark);
}

.blog-page .lang-switch__option:hover {
  background: #F1F5F9;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: white;
}

.nav__link--login {
  color: #FBBF24;
}

.nav__link--login:hover {
  color: #FDE68A;
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-open .nav__hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-open .nav__hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav__hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-open .nav__links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(10,15,26,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  justify-content: center;
  gap: var(--space-8);
  z-index: 100;
}

.nav-open .nav__link {
  font-size: var(--font-size-2xl);
  color: white;
}

.nav-open .nav__link--login {
  color: #FBBF24;
}

.nav-open .nav__cta {
  font-size: var(--font-size-lg);
  padding: 0.75rem 2rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  padding: calc(var(--space-32) + var(--space-8)) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 700px;
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-6);
}

.hero__title--accent {
  color: #94cfff;
  font-size: 0.7em;
  display: inline-block;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.hero__subtext {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.hero__device {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero__device--laptop {
  background: #1a1a2e;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2);
}

.hero__device--tablet {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 35%;
  background: #1a1a2e;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-1);
}

.hero__device--phone {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 22%;
  background: #1a1a2e;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-1);
}

.hero__screen {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 16/10;
}

.hero__device--tablet .hero__screen {
  aspect-ratio: 3/4;
}

.hero__device--phone .hero__screen {
  aspect-ratio: 9/16;
}

.hero__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__gradient-blur {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(60,137,205,0.15) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Animations */
.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   PAIN STRIP
   ============================================ */
.pain-strip {
  background: var(--color-bg-dark-alt);
  padding: var(--space-10) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pain-strip__text {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}

.pain-strip__text strong {
  color: white;
}

.pain-strip__logos {
  text-align: center;
}

.pain-strip__trust {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* ============================================
   COST OF CHAOS
   ============================================ */
.chaos {
  background: var(--color-bg-dark);
  padding: var(--space-24) 0;
}

.chaos .section-title {
  color: white;
}

.chaos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.chaos__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.chaos__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-400);
}

.chaos__icon {
  color: var(--color-primary-400);
  margin-bottom: var(--space-4);
}

.chaos__stat {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.chaos__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.chaos__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.chaos__cta {
  text-align: center;
}

.chaos__cta-text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}

/* ============================================
   THE SHIFT
   ============================================ */
.shift {
  background: var(--color-bg-light);
  padding: var(--space-24) 0;
}

.shift__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.shift__old {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.shift__tool {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-weight: 700;
}

.shift__tool--dead {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  color: #991B1B;
  border: 1px solid #F87171;
  box-shadow: 0 4px 14px rgba(239,68,68,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Crescendo: each old tool gets progressively redder, signaling escalating badness */
.shift__old .shift__tool--dead:nth-child(1) {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: #FBBF24;
  color: #78350F;
  box-shadow: 0 4px 14px rgba(251,191,36,0.25), inset 0 1px 0 rgba(255,255,255,0.7);
}
.shift__old .shift__tool--dead:nth-child(2) {
  background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
  border-color: #FB923C;
  color: #7C2D12;
  box-shadow: 0 4px 14px rgba(251,146,60,0.25), inset 0 1px 0 rgba(255,255,255,0.7);
}
.shift__old .shift__tool--dead:nth-child(3) {
  background: linear-gradient(135deg, #FECACA 0%, #FCA5A5 100%);
  border-color: #F87171;
  color: #991B1B;
  box-shadow: 0 4px 14px rgba(248,113,113,0.28), inset 0 1px 0 rgba(255,255,255,0.6);
}
.shift__old .shift__tool--dead:nth-child(4) {
  background: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
  border-color: #B91C1C;
  color: white;
  box-shadow: 0 6px 18px rgba(220,38,38,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

.shift__arrow {
  color: var(--color-primary-500);
  transform: rotate(90deg);
}

.shift__new {
  display: flex;
  justify-content: center;
}

.shift__vava {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: var(--gradient-primary);
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 700;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 40px rgba(60,137,205,0.3);
}

/* ============================================
   PLATFORM SHOWCASE
   ============================================ */
.platform {
  background: var(--color-bg-white);
  padding: var(--space-24) 0;
}

.platform__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-20);
  align-items: center;
}

.platform__content {
  flex: 1;
}

.platform__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(60,137,205,0.1);
  color: var(--color-primary-600);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-4);
}

.platform__heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

.platform__text {
  font-size: var(--font-size-base);
  color: var(--color-text-dark-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.platform__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.platform__device--laptop {
  background: var(--color-bg-dark);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.platform__device--laptop img {
  border-radius: var(--border-radius-sm);
}

.platform__device--tablet {
  background: var(--color-bg-dark);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 350px;
}

.platform__device--tablet img {
  border-radius: var(--border-radius-sm);
}

.platform__device--phone {
  background: var(--color-bg-dark);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 250px;
}

.platform__device--phone img {
  border-radius: var(--border-radius-md);
}

.platform__integrations {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-6) 0;
}

.platform__integration-logo {
  padding: var(--space-8) var(--space-12);
  margin: var(--space-3);
  background: linear-gradient(135deg, #DBEAFE 0%, #93C5FD 100%);
  border: 1px solid #60A5FA;
  border-radius: var(--border-radius-lg);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: #1E3A8A;
  box-shadow: 0 6px 20px rgba(60,137,205,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
  min-width: 140px;
  text-align: center;
}

/* Stacked hub layout: Vava on top, integrations underneath */
.platform__integrations--stacked {
  flex-direction: column;
  gap: var(--space-4);
}

.platform__integration-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.platform__integration-sync--vertical svg {
  transform: rotate(90deg);
}

/* Hub variant — Vava (subtle radial glow, draws the eye without competing) */
.platform__integration-logo--hub {
  position: relative;
  background:
    radial-gradient(circle at center, rgba(96,165,250,0.18) 0%, rgba(96,165,250,0.06) 60%, transparent 100%),
    linear-gradient(135deg, #F0F7FF 0%, #E0EEFF 100%);
  border: 1px solid rgba(96,165,250,0.35);
  padding: var(--space-10) var(--space-16);
  border-radius: var(--border-radius-xl);
  box-shadow:
    0 0 0 6px rgba(96,165,250,0.08),
    0 16px 40px rgba(60,137,205,0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.platform__integration-logo--hub svg,
.platform__integration-hub-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 260px;
}

/* Alt variant — accounting integrations (clean cloud-style, no colored bg) */
.platform__integration-logo--alt {
  background: white;
  border: none;
  color: #1E293B;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.06);
  padding: var(--space-4) var(--space-6);
  min-width: 110px;
  border-radius: var(--border-radius-xl);
}

.platform__integration-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.platform__integration-text {
  display: block;
  font-weight: 800;
  font-size: var(--font-size-xl);
  letter-spacing: -0.01em;
}

.platform__integration-sync {
  color: var(--color-primary-500);
}

.platform__cta {
  text-align: center;
  margin-top: var(--space-8);
}

/* ============================================
   METRICS STRIP
   ============================================ */
.metrics {
  background: var(--gradient-primary);
  padding: var(--space-16) 0;
}

.metrics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

.metrics__item {
  padding: var(--space-4);
}

.metrics__number {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.metrics__label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: white;
  margin-top: var(--space-2);
}

.metrics__sub {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-1);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--color-bg-light);
  padding: var(--space-24) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.testimonials__card {
  position: relative;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #DBEAFE;
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.testimonials__flag {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 28px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.8);
}

.testimonials__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonials__quote-icon {
  color: var(--color-primary-400);
  opacity: 0.4;
  margin-bottom: var(--space-4);
}

.testimonials__quote p {
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  line-height: 1.7;
  font-style: italic;
}

.testimonials__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid #E2E8F0;
}

.testimonials__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.testimonials__name {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: var(--font-size-sm);
}

.testimonials__role {
  color: var(--color-text-dark-secondary);
  font-size: var(--font-size-xs);
}

.testimonials__cta {
  text-align: center;
}

.testimonials__cta-text {
  color: var(--color-text-dark-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--color-bg-white);
  padding: var(--space-24) 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  border: 1px solid #93C5FD;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(60,137,205,0.15);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq__item:hover {
  box-shadow: 0 6px 20px rgba(60,137,205,0.25);
}

.faq__item--open {
  border-color: var(--color-primary-400);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary-600);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--color-text-dark-secondary);
  transition: transform var(--transition-base);
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
  color: var(--color-primary-500);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq__answer p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-dark-secondary);
  line-height: 1.7;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: var(--color-bg-dark);
  padding: var(--space-24) 0;
}

.final-cta__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.final-cta__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.final-cta__subtext {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
}

.final-cta__trust {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-8);
  opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark-alt);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.footer__tagline {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: var(--space-3);
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer__heading {
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer__link {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: white;
}

.footer__location {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 90;
  transition: all var(--transition-base);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.chaos__grid .chaos__card:nth-child(2) { transition-delay: 100ms; }
.chaos__grid .chaos__card:nth-child(3) { transition-delay: 200ms; }
.chaos__grid .chaos__card:nth-child(4) { transition-delay: 300ms; }
.chaos__grid .chaos__card:nth-child(5) { transition-delay: 400ms; }
.chaos__grid .chaos__card:nth-child(6) { transition-delay: 500ms; }

.testimonials__grid .testimonials__card:nth-child(2) { transition-delay: 100ms; }
.testimonials__grid .testimonials__card:nth-child(3) { transition-delay: 200ms; }
.testimonials__grid .testimonials__card:nth-child(4) { transition-delay: 300ms; }
.testimonials__grid .testimonials__card:nth-child(5) { transition-delay: 400ms; }
.testimonials__grid .testimonials__card:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--space-20) + var(--space-8));
    padding-bottom: var(--space-10);
    min-height: auto;
  }

  .hero__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
  }

  .hero__mockup {
    max-width: 100%;
  }

  .hero__device--tablet,
  .hero__device--phone {
    display: none;
  }

  /* Sections — tighter padding on mobile */
  .chaos,
  .shift,
  .platform,
  .testimonials,
  .faq,
  .final-cta {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .section-subtitle {
    font-size: var(--font-size-lg);
  }

  /* Pain strip */
  .pain-strip {
    padding: var(--space-6) 0;
  }

  .pain-strip__text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
  }

  /* Chaos cards */
  .chaos__card {
    padding: var(--space-6);
  }

  .chaos__stat {
    font-size: var(--font-size-2xl);
  }

  /* Shift */
  .shift__tool {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
  }

  .shift__old {
    gap: var(--space-2);
  }

  .shift__arrow svg {
    width: 32px;
    height: 32px;
  }

  .shift__vava {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
  }

  /* Platform blocks */
  .platform__block {
    margin-bottom: var(--space-12);
    gap: var(--space-6);
  }

  .platform__heading {
    font-size: var(--font-size-xl);
  }

  .platform__text {
    font-size: var(--font-size-sm);
  }

  /* Metrics */
  .metrics {
    padding: var(--space-10) 0;
  }

  .metrics__number {
    font-size: var(--font-size-3xl);
  }

  .metrics__label {
    font-size: var(--font-size-base);
  }

  .metrics__grid {
    gap: var(--space-4);
  }

  /* Testimonials */
  .testimonials__card {
    padding: var(--space-6);
  }

  .testimonials__quote p {
    font-size: var(--font-size-sm);
  }

  /* FAQ */
  .faq__question {
    padding: var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 48px;
  }

  .faq__answer p {
    padding: 0 var(--space-4) var(--space-4);
    font-size: var(--font-size-sm);
  }

  /* Final CTA */
  .final-cta__title {
    font-size: var(--font-size-2xl);
  }

  .final-cta__text {
    font-size: var(--font-size-base);
  }

  /* Footer */
  .footer {
    padding: var(--space-10) 0 var(--space-6);
  }

  /* Buttons */
  .btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--font-size-base);
    width: 100%;
    text-align: center;
  }

  /* WhatsApp — higher to avoid bottom browser chrome */
  .whatsapp-btn {
    bottom: var(--space-20);
    right: var(--space-4);
    width: 48px;
    height: 48px;
  }

  .whatsapp-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ============================================
   RESPONSIVE — TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-4xl);
  }

  .hero__title {
    font-size: var(--font-size-5xl);
  }

  .chaos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__links {
    grid-template-columns: repeat(3, 1fr);
  }

  .shift__visual {
    flex-direction: row;
  }

  .shift__arrow {
    transform: rotate(0deg);
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .section-title {
    font-size: var(--font-size-5xl);
  }

  .hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }

  .hero__content {
    flex: 1;
  }

  .hero__visual {
    flex: 1;
  }

  .hero__title {
    font-size: var(--font-size-6xl);
  }

  .chaos__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform__block {
    flex-direction: row;
    gap: var(--space-16);
    align-items: center;
  }

  .platform__block--reverse {
    flex-direction: row-reverse;
  }

  .platform__heading {
    font-size: var(--font-size-3xl);
  }

  .metrics__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta__title {
    font-size: var(--font-size-5xl);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer__brand {
    flex: 0 0 250px;
  }

  .footer__links {
    flex: 1;
    max-width: 600px;
  }

  .footer__bottom {
    flex: 0 0 100%;
  }
}

/* ============================================
   RESPONSIVE — WIDE (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  .hero__title {
    font-size: 4.25rem;
  }
}

/* ============================================
   DEMO VIDEO SECTION
   ============================================ */
.demo-video {
  padding: var(--space-16) 150px;
  background: var(--color-bg-dark);
}

.demo-video__wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), var(--shadow-glow);
  cursor: pointer;
  background: #000;
  text-decoration: none;
  border: none;
  /* iOS Safari adds button defaults that can collapse dimensions */
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  font: inherit;
}

.demo-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.demo-video__wrap:hover .demo-video__thumb {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.demo-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 48px rgba(60,137,205,0.6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.demo-video__play::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  animation: demo-pulse 2s infinite;
}

.demo-video__play svg {
  margin-left: 4px;
}

.demo-video__wrap:hover .demo-video__play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(60,137,205,0.7);
}

.demo-video__wrap--playing .demo-video__thumb,
.demo-video__wrap--playing .demo-video__play {
  display: none;
}

.demo-video__iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes demo-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.demo-video__wrap {
  padding: 0;
}

@media (max-width: 768px) {
  .demo-video {
    padding: var(--space-10) var(--space-8);
  }
  .demo-video__wrap {
    border-radius: var(--border-radius-lg);
    /* Fallback in case aspect-ratio doesn't compute on some mobile browsers */
    min-height: 200px;
  }
  .demo-video__play {
    width: 64px;
    height: 64px;
  }
  .demo-video__play svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .demo-video {
    padding: var(--space-8) var(--space-6);
  }
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.video-modal.is-open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: video-fade 200ms ease;
}

.video-modal__content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  animation: video-scale 250ms ease;
}

.video-modal__frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.video-modal__frame iframe,
.video-modal__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.video-modal__close:hover {
  background: rgba(255,255,255,0.2);
}

@keyframes video-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes video-scale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

body.video-modal-open {
  overflow: hidden;
}
