/* ============================================
   Flexiware Landing Page — Design System
   ============================================ */

:root {
  --color-primary: #2563EB;
  --color-primary-light: #3B82F6;
  --color-primary-dark: #1D4ED8;
  --color-primary-darker: #1E3A8A;
  --color-navy: #0F172A;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F8FAFC;
  --color-bg-muted: #F1F5F9;
  --color-border: #E2E8F0;
  --color-green: #10B981;
  --color-teal: #14B8A6;
  --color-brown: #92400E;
  --color-purple: #7C3AED;

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Cairo', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 112px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

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

ul {
  list-style: none;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) - 8px);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: rgba(37, 99, 235, 0.06);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: none;
  padding: 8px 0;
  font-size: 0.875rem;
}
.btn--ghost:hover { color: var(--color-primary-dark); }

.btn--white {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---- Glass ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  transition: opacity var(--transition);
}
.logo:hover {
  opacity: 0.85;
}

.logo__img {
  display: block;
  height: 96px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo--footer {
  display: inline-flex;
  margin-bottom: 4px;
}

.logo--footer .logo__img {
  height: 80px;
  max-width: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.lang-switch__btn {
  min-width: 40px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch__btn--active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.lang-switch__btn:hover:not(.lang-switch__btn--active) {
  color: var(--color-navy);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 50%, #F8FAFC 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #BFDBFE, transparent 70%);
  top: -100px;
  left: -100px;
}
.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #DDD6FE, transparent 70%);
  bottom: 0;
  right: -50px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.hero__title-accent {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-sub {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
}

.hero__desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.hero__badge-icon {
  font-size: 1.125rem;
}

/* ---- Device Mockups ---- */
.hero__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.device-mockup {
  position: absolute;
}

.device-mockup--laptop {
  width: 88%;
  top: 0;
  left: 0;
  z-index: 2;
}

.device-mockup--phone {
  width: 28%;
  bottom: -8%;
  right: 0;
  z-index: 3;
}

.device-mockup--monitor {
  width: 75%;
  top: 10%;
  left: 0;
}

.device-mockup__frame {
  background: #1E293B;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-xl);
}

.device-mockup__frame--phone {
  border-radius: 20px;
  padding: 6px;
}

.device-mockup__frame--monitor {
  border-radius: var(--radius-md);
  padding: 10px 10px 20px;
}

.device-mockup__frame--monitor::after {
  content: '';
  display: block;
  width: 40%;
  height: 8px;
  background: #334155;
  border-radius: 0 0 4px 4px;
  margin: 8px auto 0;
}

/* ---- Dashboard ---- */
.dashboard {
  background: linear-gradient(145deg, #F8FAFC, #EFF6FF);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 16px;
  min-height: 200px;
}

.dashboard--mobile {
  min-height: 140px;
  padding: 12px;
}

.dashboard--compact {
  min-height: 160px;
}

.dashboard__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard__dots {
  display: flex;
  gap: 4px;
}
.dashboard__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}
.dashboard__dots span:first-child { background: #EF4444; }
.dashboard__dots span:nth-child(2) { background: #F59E0B; }
.dashboard__dots span:nth-child(3) { background: #10B981; }

.dashboard__title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

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

.stat-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.stat-card--sm {
  padding: 8px;
}

.stat-card__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.stat-card--sm .stat-card__value {
  font-size: 1rem;
}

.stat-card__label {
  display: block;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.stat-card__ring {
  width: 28px;
  height: 28px;
  margin: 4px auto 0;
}
.stat-card__ring svg { width: 100%; height: 100%; }

.dashboard__chart {
  border-radius: var(--radius-sm);
  padding: 8px;
  height: 80px;
  overflow: hidden;
}

.dashboard__chart--mobile {
  height: 50px;
}

.dashboard__line-chart {
  width: 100%;
  height: 100%;
}

/* ============================================
   Sectors
   ============================================ */
.sectors {
  padding: 80px 0;
  background: var(--color-bg-subtle);
}

.sectors__wrapper {
  position: relative;
  margin-bottom: 40px;
  padding-inline: 44px;
}

.sectors:not(.sectors--expanded) .sectors__wrapper {
  overflow: hidden;
  touch-action: pan-y;
}

.sectors--expanded .sectors__wrapper {
  overflow: visible;
  padding-inline: 0;
}

.sectors__grid {
  display: flex;
  gap: 16px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sectors--expanded .sectors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  transform: none !important;
  will-change: auto;
}

.sector-card {
  --card-accent: var(--color-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--sector-card-width, calc((100% - 64px) / 5));
  min-width: 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.sector-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 35%, var(--color-border));
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.sectors--expanded .sector-card {
  flex: unset;
  min-width: unset;
}

.sector-card__image {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}

.sector-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.42) 100%);
  z-index: 1;
  pointer-events: none;
}

.sector-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.sector-card:hover .sector-card__image img {
  transform: scale(1.07);
}

.sector-card__icon {
  position: absolute;
  bottom: -18px;
  inset-inline-start: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  z-index: 3;
  border: 1px solid var(--color-border);
  color: var(--card-accent);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sector-card:hover .sector-card__icon {
  transform: translateY(-3px) rotate(-4deg);
}
.sector-card__icon svg {
  width: 20px;
  height: 20px;
}
.sector-card__icon span {
  font-weight: 800;
  font-size: 1rem;
}

.sector-card:has(.sector-card__icon--green) { --card-accent: var(--color-green); }
.sector-card:has(.sector-card__icon--brown) { --card-accent: var(--color-brown); }
.sector-card:has(.sector-card__icon--teal) { --card-accent: var(--color-teal); }
.sector-card:has(.sector-card__icon--blue) { --card-accent: var(--color-primary); }
.sector-card:has(.sector-card__icon--purple) { --card-accent: var(--color-purple); }
.sector-card:has(.sector-card__icon--indigo) { --card-accent: #4F46E5; }
.sector-card:has(.sector-card__icon--orange) { --card-accent: #EA580C; }
.sector-card:has(.sector-card__icon--rose) { --card-accent: #E11D48; }
.sector-card:has(.sector-card__icon--odoo) { --card-accent: #714B67; }

/* fallback if :has() unsupported */
.sector-card__icon--green { color: var(--color-green); }
.sector-card__icon--brown { color: var(--color-brown); }
.sector-card__icon--teal { color: var(--color-teal); }
.sector-card__icon--blue { color: var(--color-primary); }
.sector-card__icon--purple { color: var(--color-purple); }
.sector-card__icon--indigo { color: #4F46E5; }
.sector-card__icon--orange { color: #EA580C; }
.sector-card__icon--rose { color: #E11D48; }
.sector-card__icon--odoo { color: #714B67; }

.sector-card__body {
  padding: 26px 14px 16px;
  text-align: start;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sector-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.sector-card__desc {
  font-size: 0.78125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.sectors__cta {
  text-align: center;
}

.sector-card .btn--ghost {
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--card-accent);
}

.sector-card .btn--ghost::after {
  content: '←';
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

html[dir="ltr"] .sector-card .btn--ghost::after {
  content: '→';
}

.sector-card:hover .btn--ghost::after {
  transform: translateX(-4px);
}

html[dir="ltr"] .sector-card:hover .btn--ghost::after {
  transform: translateX(4px);
}

.sector-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.sector-card__actions .btn--sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.sector-card[data-service-modal] {
  cursor: pointer;
}

.sector-card[data-service-modal] .sector-card__image img {
  pointer-events: none;
}

/* ============================================
   Latest Projects Showcase
   ============================================ */
.projects {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(165deg, #0B1220 0%, #111827 45%, #0F172A 100%);
}

.projects__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.projects__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.projects__glow--1 {
  width: 420px;
  height: 420px;
  background: #2563EB;
  top: -80px;
  inset-inline-end: -60px;
}

.projects__glow--2 {
  width: 360px;
  height: 360px;
  background: #7C3AED;
  bottom: -100px;
  inset-inline-start: -40px;
}

.projects .section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #93C5FD;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.projects .section-title {
  color: #F8FAFC;
}

.projects .section-desc {
  color: #94A3B8;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
}

.project-card__visual {
  position: relative;
  min-height: 180px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.project-card--hr .project-card__visual {
  background: linear-gradient(160deg, #F8FAFC 0%, #F0F9FF 45%, #F5F3FF 100%);
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.project-card--hr .project-card__badge {
  background: linear-gradient(135deg, #00B4FF, #7030A0);
  color: #fff;
  border: none;
}

.project-card--hr .project-card__pattern {
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(0, 180, 255, 0.4) 0, transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(112, 48, 160, 0.35) 0, transparent 40%);
}

.project-card__brand-logo--hr {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.project-card--jaras .project-card__visual {
  background: linear-gradient(160deg, #F8FAFC 0%, #EEF2FF 55%, #E2E8F0 100%);
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.project-card--jaras .project-card__badge {
  background: rgba(15, 23, 42, 0.85);
  color: #F8FAFC;
}

.project-card--jaras .project-card__pattern {
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(30, 58, 138, 0.35) 0, transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(233, 177, 36, 0.35) 0, transparent 40%);
}

.project-card--mizan .project-card__visual {
  background: linear-gradient(160deg, #F8FAFC 0%, #EEF2FF 55%, #E2E8F0 100%);
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.project-card__visual--logo {
  padding: 32px 24px 20px;
}

.project-card__brand-logo {
  position: relative;
  z-index: 1;
  width: min(220px, 78%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

.project-card--mizan .project-card__badge {
  background: rgba(15, 23, 42, 0.85);
  color: #F8FAFC;
}

.project-card--mizan .project-card__pattern {
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(30, 58, 138, 0.35) 0, transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(180, 140, 90, 0.3) 0, transparent 40%);
}

.project-card__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0, transparent 35%),
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.12) 42%, transparent 42%);
  animation: projectShimmer 8s ease-in-out infinite;
}

@keyframes projectShimmer {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(8px) scale(1.03); }
}

.project-card__badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-card__logo-mark {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.project-card__name {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.project-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.project-card__tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #93C5FD;
}

.project-card__slogan {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-top: -4px;
}

.project-card--jaras .project-card__tag { color: #E9B124; }
.project-card--mizan .project-card__tag { color: #C4A574; }
.project-card--hr .project-card__tag { color: #7C3AED; }
.project-card--hr .project-card__slogan { color: #00B4FF; }

.project-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #CBD5E1;
}

.project-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
}

.project-card__features li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 0.8125rem;
  color: #94A3B8;
  line-height: 1.5;
}

.project-card__features li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.project-card--hr .project-card__features li { color: #A78BFA; }
.project-card--jaras .project-card__features li { color: #E9B124; }
.project-card--mizan .project-card__features li { color: #C4A574; }

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.project-card__actions .btn {
  font-size: 0.875rem;
  padding: 10px 18px;
}

.project-card__actions .btn--outline {
  border-color: rgba(148, 163, 184, 0.45);
  color: #E2E8F0;
}

.project-card__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(226, 232, 240, 0.7);
  color: #fff;
}

/* ============================================
   Service Modal
   ============================================ */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}

.service-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.service-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.service-modal__close:hover {
  background: #fff;
  color: var(--color-primary);
}

.service-modal__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-modal__media {
  min-height: 320px;
}

.service-modal__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.service-modal__content {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-modal__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.3;
}

.service-modal__lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.6;
}

.service-modal__full {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.service-modal__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}

.service-modal__features li {
  font-size: 0.875rem;
  color: var(--color-text);
  padding-right: 20px;
  position: relative;
  line-height: 1.5;
}
.service-modal__features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--color-green);
  font-weight: 700;
}

.service-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .service-modal {
    padding: 0;
    align-items: flex-end;
  }

  .service-modal__dialog {
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: sheetIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .service-modal__dialog::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
    z-index: 3;
  }

  .service-modal__layout {
    grid-template-columns: 1fr;
  }

  .service-modal__image {
    min-height: 220px;
    max-height: 240px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .service-modal__content {
    padding: 24px 20px 32px;
  }

  .service-modal__title {
    font-size: 1.375rem;
  }
}

.sectors__wrapper:not(.sectors__wrapper--expanded) {
  /* overflow on parent .sectors__wrapper */
}

.sectors__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.sectors__nav:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--color-primary-dark);
}
.sectors__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sectors__nav svg {
  width: 20px;
  height: 20px;
}
.sectors__nav--prev { right: 0; }
.sectors__nav--next { left: 0; }

.sectors--expanded .sectors__nav,
.sectors--expanded .sectors__dots {
  display: none !important;
}

.sectors__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.sectors__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.sectors__dot--active {
  background: var(--color-primary);
  width: 24px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .sectors__wrapper {
    padding-inline: 0;
  }

  .sectors__nav {
    display: none !important;
  }

  .sectors--expanded .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sector-card__body {
    padding: 24px 14px 14px;
  }
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 96px 0;
  background: var(--color-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.feature-item__icon svg {
  width: 36px;
  height: 36px;
}

.feature-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.feature-item__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 96px 0;
  background: var(--color-bg);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-header--left {
  text-align: right;
  margin-bottom: 24px;
}

.section-desc--left {
  margin-inline: 0;
  max-width: none;
}

.about__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about__highlights {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__highlights li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding-right: 22px;
  position: relative;
  line-height: 1.6;
}
.about__highlights li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.about__email {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 8px;
}
.about__email:hover {
  color: var(--color-primary-dark);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 32px;
}

.about__stat {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.04);
}

.about__stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.about__stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ============================================
   Trial Form
   ============================================ */
.trial {
  padding: 96px 0;
  background: var(--color-bg-subtle);
}

.trial__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.trial__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.trial__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.trial__benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.trial__benefits li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding-right: 22px;
  position: relative;
}
.trial__benefits li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--color-green);
  font-weight: 700;
}

.trial__contact {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.trial__contact a {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 6px;
}

.trial-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trial-form__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.trial-form__field input,
.trial-form__field select,
.trial-form__field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.trial-form__field input:focus,
.trial-form__field select:focus,
.trial-form__field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.trial-form__field textarea {
  resize: vertical;
  min-height: 88px;
}

.trial-form__status {
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}
.trial-form__status--success {
  color: var(--color-green);
  font-weight: 600;
}
.trial-form__status--error {
  color: #DC2626;
  font-weight: 600;
}

.footer__email {
  margin: 8px 0 16px;
}
.footer__email a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}
.footer__email a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #2563EB 100%);
  z-index: 0;
}

.cta-banner__waves {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(96, 165, 250, 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(147, 197, 253, 0.2), transparent);
  opacity: 0.8;
}

.cta-banner__waves::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='w' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 100 Q50 50 100 100 T200 100' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23w)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-banner__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.cta-banner__phone {
  bottom: 0;
  right: 5%;
}

.cta-banner__content {
  color: #fff;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.cta-banner__desc {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg-muted);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__about {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 16px 0 20px;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.footer__social a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}
.footer__links a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer__links a:hover {
  color: var(--color-primary);
}

.footer__newsletter-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.875rem;
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus {
  border-color: var(--color-primary);
}
.newsletter-form .btn {
  flex-shrink: 0;
  padding: 10px 20px;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   Mobile App Tab Bar
   ============================================ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  min-height: 52px;
  border-radius: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}

.tabbar__item svg {
  width: 22px;
  height: 22px;
}

.tabbar__item--active {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.tabbar__item:active {
  background: rgba(37, 99, 235, 0.1);
}

.tabbar__item--cta {
  color: var(--color-primary);
  position: relative;
}

.tabbar__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  border: 3px solid #fff;
}

.tabbar__cta-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- LTR (English) ---- */
html[dir="ltr"] {
  font-family: 'Inter', system-ui, sans-serif;
}

html[dir="ltr"] .section-header--left,
html[dir="ltr"] .section-desc--left {
  text-align: left;
  margin-inline: 0;
}

html[dir="ltr"] .about__highlights li,
html[dir="ltr"] .trial__benefits li {
  padding-right: 0;
  padding-left: 22px;
}

html[dir="ltr"] .about__highlights li::before,
html[dir="ltr"] .trial__benefits li::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .service-modal__close {
  right: 16px;
  left: auto;
}

html[dir="ltr"] .service-modal__image {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

html[dir="ltr"] .service-modal__features li {
  padding-right: 0;
  padding-left: 20px;
}

html[dir="ltr"] .service-modal__features li::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .sectors__nav--prev {
  right: auto;
  left: 0;
}

html[dir="ltr"] .sectors__nav--next {
  left: auto;
  right: 0;
}

html[dir="ltr"] .whatsapp-float {
  left: auto;
  right: 24px;
}

/* ---- Legal / Privacy Page ---- */
.legal-page {
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: var(--color-bg-subtle);
  min-height: 100vh;
}

.legal-page__inner {
  max-width: 820px;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: opacity var(--transition);
}
.legal-page__back:hover {
  opacity: 0.8;
}

.legal-page__header {
  margin-bottom: 32px;
}

.legal-page__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.legal-page__updated {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.legal-page__intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.legal-page__content {
  padding: 40px 36px;
}

.legal-section {
  margin-bottom: 32px;
}
.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.legal-section a {
  color: var(--color-primary);
  font-weight: 600;
}
.legal-section a:hover {
  text-decoration: underline;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.legal-list li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  padding-inline-start: 22px;
  position: relative;
}

.legal-list li::before {
  content: '•';
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.legal-section--contact {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer--compact {
  padding-top: 0;
}

.footer__legal-link {
  color: var(--color-text-light);
  font-weight: 500;
  transition: color var(--transition);
}
.footer__legal-link:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .legal-page__content {
    padding: 28px 20px;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .logo__img {
    height: 68px;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav--open { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .header__cta { display: none; }
  .header__actions .lang-switch { display: flex; }
  .menu-toggle { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__badges { justify-content: center; }
  .hero__visual {
    order: -1;
    max-width: 560px;
    margin-inline: auto;
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-banner__visual {
    order: -1;
    max-width: 480px;
    margin-inline: auto;
  }

  .about__inner,
  .trial__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects {
    padding: 72px 0;
  }

  .section-header--left {
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: none;
  }

  .feature-item {
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
  }

  .feature-item:last-child {
    grid-column: 1 / -1;
  }

  .feature-item__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }
  .feature-item__icon svg {
    width: 28px;
    height: 28px;
  }

  .feature-item__title {
    font-size: 0.9375rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__about { margin-inline: auto; }
  .footer__social { justify-content: center; }
  .newsletter-form {
    flex-direction: column;
  }

  .hero__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: start;
  }

  .hero__badge {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-border);
    justify-content: center;
  }

  .device-mockup--phone {
    width: 32%;
  }

  .hero__visual {
    order: 2;
    margin-top: 12px;
    max-width: 420px;
  }

  .about__stats {
    padding: 20px;
    gap: 12px;
  }

  .trial-form {
    padding: 22px 18px;
  }

  .sectors--expanded .sectors__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- App-like mobile experience ---- */
@media (max-width: 768px) {
  :root {
    --header-h: 76px;
  }

  body:has(.tabbar) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .tabbar {
    display: flex;
  }

  .logo__img {
    height: 52px;
  }

  .header__actions .header__cta { display: none; }

  .section-header {
    margin-bottom: 32px;
  }

  .sectors,
  .features,
  .about,
  .trial {
    padding: 56px 0;
  }

  .projects {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }

  .btn--lg {
    padding: 14px 24px;
    width: auto;
  }

  .hero__actions .btn {
    flex: 1;
    min-width: 150px;
  }

  .btn,
  .trial-form__field input,
  .trial-form__field select {
    min-height: 46px;
  }

  .whatsapp-float {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    width: 50px;
    height: 50px;
  }

  html[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 16px;
  }

  .projects__grid {
    gap: 20px;
  }

  .project-card__body {
    padding: 20px;
  }

  .project-card__actions .btn {
    flex: 1;
    text-align: center;
  }

  .cta-banner {
    padding: 56px 0;
  }

  .footer {
    padding-top: 44px;
  }
}
