/* ==========================================================================
   HOME PAGE STYLES — Mobile-First
   Base = mobile (< 640px), scale up via min-width queries
   ========================================================================== */


/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: auto;
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.15) 60%, var(--bg-primary) 100%);
  z-index: 1;
}

[data-theme="dark"] .hero__bg::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(6,6,16,0.03) 30%, rgba(6,6,16,0.15) 60%, var(--bg-primary) 100%);
}

.hero__vanta {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Line mask + char animation — mobile: inline flow, tablet+: block masks */
.hero__title br {
  display: none;
}

.hero-line-mask {
  display: inline;
  overflow: visible;
  padding-bottom: 0;
}

.hero-line {
  display: inline;
}

.hero-word {
  display: inline;
  white-space: nowrap;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

/* Gradient chars — replicate text-gradient on each char */
.hero-title--split .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: inherit;
}

.char--gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

/* Light mode hero — stronger text + buttons */
[data-theme="light"] .hero__title {
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero__subtitle {
  color: var(--text-primary);
}

/* --- Hero Primary: vivid gradient + subtle glass depth ------------------ */
.hero .btn--primary {
  --glass-reflex-light: 0;
  --glass-reflex-dark: 1;
  background: var(--gradient-text);
  color: var(--text-on-primary);
  -webkit-text-fill-color: var(--text-on-primary);
  border: none;
  box-shadow: var(--glass-shadow),
              0 2px 10px rgba(81, 112, 255, 0.15);
}

.hero .btn--primary::after { display: none; }

.hero .btn--primary:hover {
  --glass-reflex-dark: 1.4;
  transform: translateY(-1px) scale(1.02);
  color: var(--text-on-primary);
  -webkit-text-fill-color: var(--text-on-primary);
  box-shadow: var(--glass-shadow),
              0 6px 20px rgba(81, 112, 255, 0.22);
}

.hero .btn--primary:active {
  transform: translateY(0) scale(0.98);
  --glass-reflex-dark: 0.8;
}

/* Dark: violet→rose gradient + subtle glass depth */
[data-theme="dark"] .hero .btn--primary {
  --glass-reflex-light: 0;
  --glass-reflex-dark: 1.2;
  background: var(--gradient-text);
  color: var(--text-on-primary);
  -webkit-text-fill-color: var(--text-on-primary);
  box-shadow: var(--glass-shadow),
              0 2px 10px rgba(206, 50, 255, 0.12);
}

[data-theme="dark"] .hero .btn--primary:hover {
  --glass-reflex-dark: 1.6;
  color: var(--text-on-primary);
  -webkit-text-fill-color: var(--text-on-primary);
  box-shadow: var(--glass-shadow),
              0 6px 20px rgba(206, 50, 255, 0.20);
}

/* --- Hero Secondary: clean glass + vivid hover ------------------------- */
[data-theme="light"] .hero .btn--secondary {
  --glass-reflex-light: 1.4;
  background-color: color-mix(in srgb, var(--glass-color) 18%, transparent);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--glass-shadow);
}

[data-theme="light"] .hero .btn--secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    transparent 55%
  );
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

[data-theme="light"] .hero .btn--secondary:hover {
  --glass-reflex-light: 2.4;
  transform: translateY(-2px) scale(1.04);
  background-color: color-mix(in srgb, var(--glass-color) 25%, transparent);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: var(--glass-shadow),
              0 8px 28px rgba(81, 112, 255, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.20);
}

/* Dark secondary: translucent glass + gradient-hinted hover */
[data-theme="dark"] .hero .btn--secondary {
  --glass-reflex-light: 0.4;
  --glass-reflex-dark: 1.4;
  background-color: color-mix(in srgb, var(--glass-color) 10%, transparent);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .hero .btn--secondary:hover {
  --glass-reflex-light: 0.7;
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(206, 50, 255, 0.10), rgba(255, 62, 137, 0.10));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--glass-shadow),
              0 8px 28px rgba(206, 50, 255, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Mobile: single column, centered */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  text-align: center;
}

.hero__text {
  max-width: 100%;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.hero__subtitle {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.15em 0.6em;
  font-weight: 700;
  font-size: 0.9em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: -0.01em;

  /* Liquid Glass — brand-tinted, keeping the light visual feel */
  --glass-color: #8b9fff;
  background-color: color-mix(in srgb, var(--glass-color) 18%, transparent);
  backdrop-filter: var(--glass-backdrop-soft) url(#glass-distort);
  -webkit-backdrop-filter: var(--glass-backdrop-soft);
  border: none;
  box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .hero__highlight {
  --glass-color: #9a50cc;
}

.hero__highlight span,
.hero__highlight i {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__highlight svg {
  color: var(--color-primary);
}

[data-theme="dark"] .hero__highlight svg {
  color: var(--color-secondary);
}

.hero__actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__actions .btn {
  padding: var(--space-3) var(--space-5);
  min-height: 2.75rem;
  font-size: var(--text-sm);
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__trust-text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 500;
}

.hero__trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__trust-logos img {
  height: 22px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--duration-normal) var(--ease-smooth),
              filter var(--duration-normal) var(--ease-smooth);
}

.hero__trust-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  z-index: 2;
}



/* ── Features Cards — Apple-style, horizontal swiper ── */
.features-cards {
  padding-block: 0 var(--space-4);
  overflow: hidden;
}

/* Breaks out of container so cards reach page edges */
.features-cards__swiper {
  position: relative;
  margin-inline: calc(-1 * var(--space-6));
}

/* Nav buttons right-aligned like modules */
.features-cards .glass-swiper__nav {
  justify-content: flex-end;
  margin-top: var(--space-5);
}

.features-cards__item {
  position: relative;
  flex: 0 0 clamp(260px, 78vw, 380px);
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.12),
      0 1px 4px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth);
}

.features-cards__item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.18),
      0 4px 12px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .features-cards__item {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.07),
      0 1px 4px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .features-cards__item:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.1),
      0 4px 12px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Background image — full bleed */
.features-cards__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.features-cards__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.features-cards__item:hover .features-cards__img-wrap img {
  transform: scale(1.05);
}

/* Dark gradient overlay — text readability, no blur */
.features-cards__item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.50) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Text — always white, above overlay, pinned to bottom */
.features-cards__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-5);
}

.features-cards__label {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: #fff;
  margin-bottom: var(--space-2);
  padding: 0.25em 0.75em;
  background: var(--glass-bg);
  border-radius: var(--radius-full);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

.features-cards__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.features-cards__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient fallback for cards without image */
.features-cards__img-wrap--gradient {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(81, 112, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(206, 50, 255, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 62, 137, 0.15) 0%, transparent 70%),
    linear-gradient(160deg, #0a0a1a 0%, #12122a 50%, #0d0d20 100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.features-cards__item:hover .features-cards__img-wrap--gradient {
  transform: scale(1.05);
}

[data-theme="light"] .features-cards__img-wrap--gradient {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(81, 112, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(206, 50, 255, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 62, 137, 0.10) 0%, transparent 70%),
    linear-gradient(160deg, #e8eaff 0%, #f0e6ff 50%, #ffe8f0 100%);
}


/* ── Showcase ─────────────────────────────────────────── */
.showcase {
  padding-top: var(--space-8);
  padding-bottom: 0;
}

.showcase .section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.showcase__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

.showcase__block:last-child {
  margin-bottom: 0;
}

.showcase__text .badge {
  margin-bottom: var(--space-3);
  background: var(--gradient-fill);
  color: #fff;
  border-color: transparent;
}

.showcase__text .badge svg {
  color: #fff;
}

.showcase__text h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.showcase__text p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.showcase__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.showcase__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.showcase__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase__feature-icon svg,
.showcase__feature-icon svg * {
  stroke: url(#gradient-active);
}

[data-theme="dark"] .showcase__feature-icon svg,
[data-theme="dark"] .showcase__feature-icon svg * {
  stroke: var(--glass-btn-color);
}

.showcase__feature-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.showcase__visual {
  width: 100%;
}

.showcase__devices {
  display: flex;
  justify-content: center;
}


/* ── Stats ────────────────────────────────────────────── */
.stats {
  padding-block: var(--space-8);
}


/* ── Modules Preview — Bento Grid ────────────────────── */
.modules-preview .section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Mobile: horizontal swiper */
.modules-preview__swiper {
  position: relative;
  margin-bottom: var(--space-8);
  margin-inline: calc(-1 * var(--space-6));
}

.modules-preview__viewport {
  overflow: hidden;
}

.modules-preview__bento {
  position: relative;
  display: flex;
  gap: var(--space-4);
  padding-inline: var(--space-6);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.modules-preview__nav {
  justify-content: flex-end;
  padding-inline: var(--space-6);
  margin-top: var(--space-5);
}

/* Cell — Liquid Glass card */
.modules-preview__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 0 clamp(260px, 72vw, 320px);
  min-height: 340px;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop-soft);
  -webkit-backdrop-filter: var(--glass-backdrop-soft);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.modules-preview__cell:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--glass-shadow),
              0 8px 32px rgba(81, 112, 255, 0.08),
              0 0 0 1px rgba(81, 112, 255, 0.06);
  transform: translateY(-3px);
}

[data-theme="dark"] .modules-preview__cell:hover {
  box-shadow: var(--glass-shadow),
              0 8px 32px rgba(206, 50, 255, 0.06),
              0 0 0 1px rgba(206, 50, 255, 0.08);
}

/* Content — pinned to bottom, above illustration */
.modules-preview__cell-content {
  position: relative;
  z-index: 2;
}

.modules-preview__cell-count {
  position: relative;
  z-index: 2;
}

/* Gradient overlay — text readability on ALL cells */
.modules-preview__cell::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.65) 25%,
    transparent 45%
  );
  pointer-events: none;
}

[data-theme="dark"] .modules-preview__cell::before {
  background: linear-gradient(
    to top,
    rgba(6, 6, 16, 0.95) 0%,
    rgba(6, 6, 16, 0.65) 25%,
    transparent 45%
  );
}

/* Cell d — darker gradient for its gradient bg */
.modules-preview__cell--d::before {
  background: linear-gradient(
    to top,
    rgba(10, 15, 46, 0.95) 0%,
    rgba(10, 15, 46, 0.7) 35%,
    rgba(10, 15, 46, 0.15) 65%,
    transparent 100%
  );
}

[data-theme="dark"] .modules-preview__cell--d::before {
  background: linear-gradient(
    to top,
    rgba(6, 6, 16, 0.95) 0%,
    rgba(6, 6, 16, 0.7) 35%,
    rgba(6, 6, 16, 0.15) 65%,
    transparent 100%
  );
}

.modules-preview__cell-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.modules-preview__cell-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Module count badge — top-left absolute */
.modules-preview__cell-count {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.75em;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  color: #fff;
  background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
  border: 1px solid rgba(81, 112, 255, 0.25);
  border-radius: var(--radius-full);
  width: fit-content;
  backdrop-filter: var(--glass-backdrop-soft);
  box-shadow: 0 2px 8px rgba(81, 112, 255, 0.15);
}

[data-theme="dark"] .modules-preview__cell-count {
  color: #fff;
  background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
  border-color: rgba(81, 112, 255, 0.3);
  box-shadow: 0 2px 12px rgba(81, 112, 255, 0.2);
}

/* Illustration — absolute, centered top */
.modules-preview__cell-illustration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 85%;
  height: 65%;
  object-fit: contain;
  object-position: top center;
  opacity: 1;
  pointer-events: none;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.modules-preview__cell:hover .modules-preview__cell-illustration {
  transform: scale(1.05);
}

/* Big cell (d) — gradient background + prominent illustration */
.modules-preview__cell--d {
  background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
}

.modules-preview__cell--d .modules-preview__cell-illustration {
  left: 72%;
  width: 75%;
  height: 75%;
  object-position: top center;
  opacity: 0.9;
}

.modules-preview__cell--d .modules-preview__cell-title,
.modules-preview__cell--d .modules-preview__cell-desc {
  color: #fff;
}

.modules-preview__cell--d .modules-preview__cell-desc {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .modules-preview__cell--d {
  background: linear-gradient(155deg, #0d0620 0%, #2a1050 40%, #8B2FC9 100%);
}

/* Talent cell (e) — portrait image, pull up */
.modules-preview__cell--e .modules-preview__cell-illustration {
  top: -3%;
  width: 95%;
  height: 95%;
}

/* Access cell (g) — full background cover */
.modules-preview__cell--g .modules-preview__cell-illustration {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center;
}

.modules-preview__cell--g::before {
  background: linear-gradient(
    to top,
    rgba(6, 6, 16, 0.85) 0%,
    rgba(6, 6, 16, 0.3) 30%,
    transparent 55%
  );
}

.modules-preview__cell--g .modules-preview__cell-title,
.modules-preview__cell--g .modules-preview__cell-desc {
  color: #fff;
}

.modules-preview__cell--g .modules-preview__cell-desc {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .modules-preview__cell--g::before {
  background: linear-gradient(
    to top,
    rgba(6, 6, 16, 0.9) 0%,
    rgba(6, 6, 16, 0.35) 30%,
    transparent 55%
  );
}

/* Innovation cell (f) — top-right aligned with content */
.modules-preview__cell--f .modules-preview__cell-illustration {
  left: auto;
  right: var(--space-8);
  top: -12%;
  transform: none;
  width: 90%;
  height: 80%;
  object-position: top right;
}

/* Wide cells (b, h) — limit desc width so it wraps to 2 lines */
.modules-preview__cell--b .modules-preview__cell-desc,
.modules-preview__cell--h .modules-preview__cell-desc {
  max-width: 360px;
}

/* Operations cell (h) — less offset */
.modules-preview__cell--h .modules-preview__cell-illustration {
  right: -4%;
}

/* Wide cells (b, h) — overlay from left, not top, to keep image vibrant */
.modules-preview__cell--b::before,
.modules-preview__cell--h::before {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 40%,
    transparent 60%
  );
}

[data-theme="dark"] .modules-preview__cell--b::before,
[data-theme="dark"] .modules-preview__cell--h::before {
  background: linear-gradient(
    to right,
    rgba(6, 6, 16, 0.95) 0%,
    rgba(6, 6, 16, 0.6) 40%,
    transparent 60%
  );
}

/* ── Mobile swiper cards — all cells look like cell-d ──── */
/* Gradient bg + dark overlay + white text on all cards.
   Undone at 1024px where bento grid restores per-cell styles. */
.modules-preview__cell {
  background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
}

[data-theme="dark"] .modules-preview__cell {
  background: linear-gradient(155deg, #0d0620 0%, #2a1050 40%, #8B2FC9 100%);
}

.modules-preview__cell::before {
  background: linear-gradient(
    to top,
    rgba(10, 15, 46, 0.95) 0%,
    rgba(10, 15, 46, 0.7) 35%,
    rgba(10, 15, 46, 0.15) 65%,
    transparent 100%
  );
}

[data-theme="dark"] .modules-preview__cell::before {
  background: linear-gradient(
    to top,
    rgba(6, 6, 16, 0.85) 0%,
    rgba(6, 6, 16, 0.6) 30%,
    rgba(6, 6, 16, 0.15) 60%,
    transparent 100%
  );
}

[data-theme="dark"] .modules-preview__cell {
  border-color: rgba(255, 255, 255, 0.15);
}

.modules-preview__cell-title {
  color: #fff;
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}

.modules-preview__cell-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* Title line break — visible only on mobile swiper */
.modules-preview__br {
  display: inline;
}

/* Badge — liquid glass on mobile */
.modules-preview__cell-count {
  background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
  border: 1px solid rgba(81, 112, 255, 0.25);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .modules-preview__cell-count {
  background: linear-gradient(155deg, #0d0620 0%, #2a1050 40%, #8B2FC9 100%);
  border-color: rgba(139, 47, 201, 0.3);
  box-shadow: var(--glass-shadow), 0 2px 12px rgba(139, 47, 201, 0.2);
}

/* Illustration — bigger and centered on mobile (reset all per-cell overrides) */
.modules-preview__cell .modules-preview__cell-illustration {
  left: 0;
  right: 0;
  top: 0;
  transform: none;
  margin-inline: auto;
  width: 80%;
  height: 85%;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
}

/* Innovation cell — keep centered on hover (match others) */
.modules-preview__cell--f:hover .modules-preview__cell-illustration {
  transform: scale(1.05);
}

/* Access cell — full cover image on mobile */
.modules-preview__cell--g .modules-preview__cell-illustration {
  left: 0;
  top: 0;
  transform: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.modules-preview__cell--g:hover .modules-preview__cell-illustration {
  transform: scale(1.05);
}


/* ── Bento Category Modal — Expands over bento grid ──── */
/* ── Bento Category Modal — Fixed Fullscreen Overlay ─── */
.bento-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-spring),
              visibility var(--duration-slow) var(--ease-spring);
}

.bento-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop — fullscreen scrim */
.bento-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .bento-modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* Dialog — centered card */
.bento-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 88dvh;
  background: #fff;
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05),
              0 1px 1px rgba(50, 50, 93, 0.04),
              0 2px 4px rgba(50, 50, 93, 0.04),
              0 8px 16px rgba(50, 50, 93, 0.06),
              0 16px 48px rgba(50, 50, 93, 0.08),
              0 50px 100px -20px rgba(50, 50, 93, 0.15);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-spring),
              opacity var(--duration-normal) var(--ease-smooth);
}

[data-theme="dark"] .bento-modal__dialog {
  background: #0f0f1e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 1px 1px rgba(0, 0, 0, 0.12),
              0 2px 4px rgba(0, 0, 0, 0.12),
              0 8px 16px rgba(0, 0, 0, 0.15),
              0 16px 48px rgba(0, 0, 0, 0.2),
              0 50px 100px -20px rgba(0, 0, 0, 0.4);
}

.bento-modal.is-open .bento-modal__dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close button — liquid glass (same system as float-controls) */
.bento-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.bento-modal__close:hover {
  background-color: var(--glass-bg-hover);
  transform: scale(1.08);
}

/* Hero — dark navy/indigo bg matching access city aesthetic */
.bento-modal__hero {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(155deg, #0d0620 0%, #2a1050 40%, #8B2FC9 100%);
}

[data-theme="light"] .bento-modal__hero {
  background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
}

.bento-modal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Portrait group — taller hero for vertical illustrations */
.bento-modal[data-img="platform"] .bento-modal__hero,
.bento-modal[data-img="compliance"] .bento-modal__hero,
.bento-modal[data-img="innovation"] .bento-modal__hero {
  height: 300px;
}

.bento-modal[data-img="platform"] .bento-modal__img,
.bento-modal[data-img="compliance"] .bento-modal__img,
.bento-modal[data-img="innovation"] .bento-modal__img {
  padding: var(--space-2) var(--space-6);
}

/* Talent — extra tall, image is small and needs more room */
.bento-modal[data-img="talent"] .bento-modal__hero {
  height: 320px;
}

.bento-modal[data-img="talent"] .bento-modal__img,
.bento-modal[data-img="training"] .bento-modal__img,
.bento-modal[data-img="innovation"] .bento-modal__img {
  transform: scale(1.15);
}

/* Landscape group — taller hero so images aren't tiny */
.bento-modal[data-img="prevention"] .bento-modal__hero,
.bento-modal[data-img="training"] .bento-modal__hero,
.bento-modal[data-img="operations"] .bento-modal__hero {
  height: 240px;
}

.bento-modal[data-img="prevention"] .bento-modal__img,
.bento-modal[data-img="training"] .bento-modal__img,
.bento-modal[data-img="operations"] .bento-modal__img {
  padding: var(--space-2) var(--space-3);
}

/* Full-cover group — access image fills the hero */
.bento-modal[data-img="access"] .bento-modal__hero {
  background: none;
}

.bento-modal[data-img="access"] .bento-modal__img {
  object-fit: cover;
  padding: 0;
}


.bento-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 40, 0.85) 0%,
    rgba(10, 15, 40, 0.3) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.bento-modal__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-3);
  z-index: 2;
}

.bento-modal__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.7em;
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
}

.bento-modal__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.15;
  color: #fff;
}

.bento-modal__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-1);
}

/* Body — module cards */
.bento-modal__body {
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.bento-modal__modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

/* Module card — liquid glass */
.bento-modal__module {
  --glass-reflex-light: 0.8;
  --glass-reflex-dark: 0.6;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop-soft);
  -webkit-backdrop-filter: var(--glass-backdrop-soft);
  box-shadow: var(--glass-shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.bento-modal__module:hover {
  --glass-reflex-light: 1.2;
  background-color: color-mix(in srgb, #3D5CE5 10%, transparent);
  box-shadow: var(--glass-shadow),
              0 2px 8px rgba(61, 92, 229, 0.08);
  transform: translateY(-1px);
}

[data-theme="dark"] .bento-modal__module:hover {
  --glass-reflex-light: 0.5;
  background-color: color-mix(in srgb, #b820e6 12%, transparent);
  box-shadow: var(--glass-shadow),
              0 2px 8px rgba(184, 32, 230, 0.08);
}

.bento-modal__module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background-color: color-mix(in srgb, #3D5CE5 8%, transparent);
  border: 1px solid rgba(61, 92, 229, 0.15);
  backdrop-filter: var(--glass-backdrop-soft);
  -webkit-backdrop-filter: var(--glass-backdrop-soft);
  box-shadow: var(--glass-shadow);
  color: #3D5CE5;
  transition: background-color var(--duration-fast) var(--ease-smooth),
              border-color var(--duration-fast) var(--ease-smooth),
              color var(--duration-fast) var(--ease-smooth);
}

[data-theme="dark"] .bento-modal__module-icon {
  background-color: color-mix(in srgb, #b820e6 10%, transparent);
  border-color: rgba(184, 32, 230, 0.2);
  color: #b820e6;
}

.bento-modal__module:hover .bento-modal__module-icon {
  background-color: color-mix(in srgb, #3D5CE5 16%, transparent);
  border-color: rgba(61, 92, 229, 0.28);
}

[data-theme="dark"] .bento-modal__module:hover .bento-modal__module-icon {
  background-color: color-mix(in srgb, #b820e6 18%, transparent);
  border-color: rgba(184, 32, 230, 0.3);
}

.bento-modal__module-info {
  flex: 1;
  min-width: 0;
}

.bento-modal__module-name {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--text-primary);
}

.bento-modal__module-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-modal__module-arrow {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.bento-modal__module-arrow svg {
  width: 22px;
  height: 22px;
}

.bento-modal__module:hover .bento-modal__module-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #3D5CE5;
}

[data-theme="dark"] .bento-modal__module:hover .bento-modal__module-arrow {
  color: #b820e6;
}

/* Footer — CTA */
.bento-modal__footer {
  padding: var(--space-4) var(--space-3) var(--space-5);
  text-align: center;
  flex-shrink: 0;
}

/* Button reset for cells (now buttons instead of links) */
.modules-preview__cell {
  appearance: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  align-items: flex-start;
}


/* ── Plans Preview ────────────────────────────────────── */
.plans-preview .section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.plans-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto var(--space-8);
}


/* ── Testimonials ─────────────────────────────────────── */
.testimonials .section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}


/* ── Section CTA (shared) ─────────────────────────────── */
.section__cta {
  text-align: center;
  margin-top: var(--space-6);
}


/* ── Clients Logos ────────────────────────────────────── */
.clients-logos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-8);
}

.clients-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
  aspect-ratio: 3 / 2;
}

.clients-logos__item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.clients-logos__img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.clients-logos__item:hover .clients-logos__img {
  opacity: 1;
}

/* Theme-aware client logos */
.clients-logos__img--dark {
  display: none;
}

[data-theme="light"] .clients-logos__img {
  filter: none;
  opacity: 0.5;
}

[data-theme="light"] .clients-logos__item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .clients-logos__item:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .clients-logos__item:hover .clients-logos__img {
  opacity: 0.8;
}

/* --- ARLs sub-block inside Clients Logos --- */
.clients-logos__arls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.clients-logos__arls-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.clients-logos__arls-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.clients-logos__arls-logos img {
  height: 24px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity var(--duration-normal) var(--ease-smooth),
              filter var(--duration-normal) var(--ease-smooth);
}

.clients-logos__arls-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

[data-theme="light"] .clients-logos__arls-logos img {
  filter: grayscale(1) brightness(0.4);
  opacity: 0.5;
}

[data-theme="light"] .clients-logos__arls-logos img:hover {
  filter: none;
  opacity: 0.85;
}


/* ==========================================================================
   TABLET (>= 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .bento-modal {
    padding: var(--space-6);
  }

  .bento-modal__dialog {
    border-radius: 1.75rem;
  }

  .bento-modal__body {
    padding: var(--space-5) var(--space-6);
  }

  .bento-modal__hero-content {
    padding: var(--space-5) var(--space-6);
  }

  .bento-modal__footer {
    padding: var(--space-5) var(--space-6) var(--space-6);
  }

  .bento-modal__module {
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }

  .bento-modal__module-icon {
    width: 40px;
    height: 40px;
  }

  .bento-modal__module-arrow {
    display: flex;
  }

  /* Restore curated line breaks on tablet+ */
  .hero__title br {
    display: block;
  }

  .hero-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
  }

  .hero-line {
    display: block;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero__actions .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-md);
  }

  .features-cards__swiper {
    margin-inline: calc(-1 * var(--space-8));
  }

  .features-cards .glass-swiper__track,
  .features-cards .glass-swiper__nav {
    padding-inline: var(--space-8);
  }

  .features-cards__item {
    flex: 0 0 clamp(320px, 48vw, 400px);
    min-height: 500px;
  }

  .plans-preview__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .clients-logos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .clients-logos__img {
    max-height: 44px;
  }

  .clients-logos__arls {
    flex-direction: row;
    gap: var(--space-4);
  }

  .clients-logos__arls-logos img {
    height: 28px;
  }



  .showcase {
    padding-top: var(--space-10);
  }

}


/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .bento-modal__dialog {
    max-width: 720px;
    max-height: 85vh;
  }

  .bento-modal__body {
    padding: var(--space-5) var(--space-6);
  }

  /* Portrait — taller on desktop */
  .bento-modal[data-img="platform"] .bento-modal__hero,
  .bento-modal[data-img="compliance"] .bento-modal__hero,
  .bento-modal[data-img="innovation"] .bento-modal__hero {
    height: 340px;
  }

  /* Talent — extra room on desktop */
  .bento-modal[data-img="talent"] .bento-modal__hero {
    height: 360px;
  }

  /* Landscape + Access — taller on desktop */
  .bento-modal[data-img="prevention"] .bento-modal__hero,
  .bento-modal[data-img="training"] .bento-modal__hero,
  .bento-modal[data-img="operations"] .bento-modal__hero,
  .bento-modal[data-img="access"] .bento-modal__hero {
    height: 280px;
  }

  .bento-modal__modules {
    grid-template-columns: repeat(2, minmax(0, 332px));
  }

  .bento-modal__title {
    font-size: var(--text-3xl);
  }

  .hero {
    min-height: 100vh;
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    text-align: center;
    align-items: center;
  }

  .hero__text {
    max-width: 720px;
    margin-inline: auto;
  }

  .hero__subtitle {
    font-size: var(--text-lg);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
  }

  .hero__title {
    margin-bottom: var(--space-3);
  }

  .hero__actions {
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
  }

  .hero__trust {
    justify-content: center;
    gap: var(--space-4);
  }

  .hero__trust-text {
    font-size: var(--text-sm);
  }

  .hero__trust-logos {
    gap: var(--space-4);
  }

  .hero__trust-logos img {
    height: 28px;
  }

  .hero__visual {
    max-width: none;
    width: 100%;
  }

  .showcase {
    padding-top: var(--space-12);
  }

  .features-cards {
    padding-block: var(--space-12) var(--space-4);
  }

  .features-cards__swiper {
    margin-inline: calc(-1 * var(--space-12));
  }

  .features-cards .glass-swiper__track,
  .features-cards .glass-swiper__nav {
    padding-inline: var(--space-12);
  }

  .features-cards__item {
    flex: 0 0 clamp(320px, 30vw, 380px);
    min-height: 500px;
  }

  .features-cards__title {
    font-size: var(--text-3xl);
  }

  .showcase .section__header {
    margin-bottom: var(--space-16);
  }

  .showcase__block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-20);
  }

  .showcase__block--left .showcase__visual {
    order: -1;
  }

  .showcase__text .badge {
    margin-bottom: var(--space-4);
  }

  .showcase__text h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
  }

  .showcase__text p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
  }

  .stats {
    padding-block: var(--space-12);
  }

  .modules-preview .section__header {
    margin-bottom: var(--space-12);
  }

  /* Desktop: restore bento grid, hide swiper nav */
  .modules-preview__swiper {
    margin-bottom: var(--space-10);
    margin-inline: 0;
  }

  .modules-preview__viewport {
    overflow: visible;
  }

  .modules-preview__bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 160px);
    gap: var(--space-5);
    padding-inline: 0;
    transform: none !important;
    grid-template-areas:
      "a  b  b  c"
      "a  d  d  c"
      "e  d  d  f"
      "e  g  h  h";
  }

  .modules-preview__nav {
    display: none;
  }

  .modules-preview__cell {
    flex: none;
    min-height: 0;
    background: var(--glass-bg);
  }

  [data-theme="dark"] .modules-preview__cell {
    background: var(--glass-bg);
  }

  .modules-preview__cell::before {
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.65) 25%,
      transparent 45%
    );
  }

  [data-theme="dark"] .modules-preview__cell::before {
    background: linear-gradient(
      to top,
      rgba(6, 6, 16, 0.95) 0%,
      rgba(6, 6, 16, 0.65) 25%,
      transparent 45%
    );
  }

  .modules-preview__cell-title {
    color: var(--text-primary);
    font-size: var(--text-lg);
    letter-spacing: normal;
    line-height: 1.2;
  }

  .modules-preview__cell-desc {
    color: var(--text-secondary);
  }

  /* Hide mobile line break in bento titles */
  .modules-preview__br {
    display: none;
  }

  /* Restore badge to original gradient */
  .modules-preview__cell-count {
    background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
    border: 1px solid rgba(81, 112, 255, 0.25);
    backdrop-filter: var(--glass-backdrop-soft);
    box-shadow: 0 2px 8px rgba(81, 112, 255, 0.15);
  }

  /* Restore illustration — undo mobile 2-class override */
  .modules-preview__cell .modules-preview__cell-illustration {
    left: 0;
    right: 0;
    top: 0;
    transform: none;
    margin-inline: auto;
    width: 55%;
    height: 60%;
    object-fit: contain;
    object-position: top center;
    opacity: 1;
  }

  /* Per-cell overrides restored */
  .modules-preview__cell--d {
    background: linear-gradient(155deg, #0f1a4d 0%, #1e2e7a 40%, #5170FF 100%);
  }

  [data-theme="dark"] .modules-preview__cell--d {
    background: linear-gradient(155deg, #0d0620 0%, #2a1050 40%, #8B2FC9 100%);
  }

  .modules-preview__cell--d::before {
    background: linear-gradient(
      to top,
      rgba(10, 15, 46, 0.95) 0%,
      rgba(10, 15, 46, 0.7) 35%,
      rgba(10, 15, 46, 0.15) 65%,
      transparent 100%
    );
  }

  [data-theme="dark"] .modules-preview__cell--d::before {
    background: linear-gradient(
      to top,
      rgba(6, 6, 16, 0.95) 0%,
      rgba(6, 6, 16, 0.7) 35%,
      rgba(6, 6, 16, 0.15) 65%,
      transparent 100%
    );
  }

  .modules-preview__cell--d .modules-preview__cell-title,
  .modules-preview__cell--d .modules-preview__cell-desc {
    color: #fff;
  }

  .modules-preview__cell--d .modules-preview__cell-desc {
    color: rgba(255, 255, 255, 0.75);
  }

  .modules-preview__cell--g .modules-preview__cell-title,
  .modules-preview__cell--g .modules-preview__cell-desc {
    color: #fff;
  }

  .modules-preview__cell--g .modules-preview__cell-desc {
    color: rgba(255, 255, 255, 0.8);
  }

  .modules-preview__cell--g::before {
    background: linear-gradient(
      to top,
      rgba(6, 6, 16, 0.85) 0%,
      rgba(6, 6, 16, 0.3) 30%,
      transparent 55%
    );
  }

  [data-theme="dark"] .modules-preview__cell--g::before {
    background: linear-gradient(
      to top,
      rgba(6, 6, 16, 0.9) 0%,
      rgba(6, 6, 16, 0.35) 30%,
      transparent 55%
    );
  }

  .modules-preview__cell--b::before,
  .modules-preview__cell--h::before {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.6) 40%,
      transparent 60%
    );
  }

  [data-theme="dark"] .modules-preview__cell--b::before,
  [data-theme="dark"] .modules-preview__cell--h::before {
    background: linear-gradient(
      to right,
      rgba(6, 6, 16, 0.95) 0%,
      rgba(6, 6, 16, 0.6) 40%,
      transparent 60%
    );
  }

  .modules-preview__cell--a { grid-area: a; }
  .modules-preview__cell--b { grid-area: b; }
  .modules-preview__cell--c { grid-area: c; }
  .modules-preview__cell--d { grid-area: d; }
  .modules-preview__cell--e { grid-area: e; }
  .modules-preview__cell--f { grid-area: f; }
  .modules-preview__cell--g { grid-area: g; }
  .modules-preview__cell--h { grid-area: h; }

  /* Illustrations — larger on desktop */
  .modules-preview__cell .modules-preview__cell-illustration {
    width: 65%;
    height: 70%;
  }

  /* Wide cells (b, h) — right-aligned landscape */
  .modules-preview__cell--b .modules-preview__cell-illustration,
  .modules-preview__cell--h .modules-preview__cell-illustration {
    left: auto;
    margin-inline: 0;
    transform: none;
    width: 75%;
    height: 110%;
    top: -5%;
    object-position: center right;
  }

  .modules-preview__cell--b .modules-preview__cell-illustration {
    right: 0;
  }

  .modules-preview__cell--h .modules-preview__cell-illustration {
    right: -4%;
  }

  .modules-preview__cell--b:hover .modules-preview__cell-illustration,
  .modules-preview__cell--h:hover .modules-preview__cell-illustration {
    transform: scale(1.05);
  }

  /* Talent cell (e) — large portrait restored */
  .modules-preview__cell--e .modules-preview__cell-illustration {
    top: -3%;
    width: 95%;
    height: 95%;
  }

  /* Access cell (g) — full cover restored */
  .modules-preview__cell--g .modules-preview__cell-illustration {
    left: 0;
    top: 0;
    margin-inline: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Big cell (d) */
  .modules-preview__cell--d {
    padding: var(--space-8);
  }

  .modules-preview__cell--d .modules-preview__cell-illustration {
    width: 80%;
    height: 85%;
  }

  .modules-preview__cell--d .modules-preview__cell-title {
    font-size: var(--text-2xl);
  }

  .modules-preview__cell--d .modules-preview__cell-desc {
    -webkit-line-clamp: 4;
    font-size: var(--text-base);
  }

  /* Tall cells (a, c, e) */
  .modules-preview__cell--a .modules-preview__cell-title,
  .modules-preview__cell--c .modules-preview__cell-title,
  .modules-preview__cell--e .modules-preview__cell-title {
    font-size: var(--text-xl);
  }

  .modules-preview__cell--a .modules-preview__cell-desc,
  .modules-preview__cell--c .modules-preview__cell-desc,
  .modules-preview__cell--e .modules-preview__cell-desc {
    -webkit-line-clamp: 3;
    font-size: var(--text-sm);
  }

  .plans-preview .section__header,
  .testimonials .section__header {
    margin-bottom: var(--space-12);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
  }

  .clients-logos__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .clients-logos__img {
    max-height: 48px;
  }

  .clients-logos__arls-logos img {
    height: 32px;
  }

  .section__cta {
    margin-top: var(--space-8);
  }
}


/* ==========================================================================
   WIDE (>= 1440px)
   ========================================================================== */
@media (min-width: 1440px) {
  .features-cards__swiper {
    margin-inline: calc(-1 * var(--space-16));
  }

  .features-cards .glass-swiper__track,
  .features-cards .glass-swiper__nav {
    padding-inline: var(--space-16);
  }

  .clients-logos__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
