/* =========================================================
   Minwel Page-Level Styles
   Home page refinements for EN / AR / FR
   ========================================================= */

[data-page="home"] .hero-section {
  position: relative;
  min-height: calc(100svh - var(--mw-header-height));
  display: flex;
  align-items: center;
  isolation: isolate;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(36rem 22rem at 4% 12%, rgba(36, 211, 181, 0.09), transparent 72%),
    radial-gradient(34rem 18rem at 96% 12%, rgba(15, 108, 108, 0.07), transparent 74%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.80));
}

[data-page="home"] .hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 108, 108, 0.16), transparent);
}

.hero-pattern {
  position: absolute;
  inset: -8% -8% -8% -8%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-pattern-layer,
.hero-pattern-flow {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  will-change: transform;
}

.hero-pattern-layer.layer-a {
  background-image: url('../assets/brand/minwel-mark-teal.png');
  background-size: 126px auto;
  opacity: 0.038;
  animation: heroDrift 46s linear infinite;
}

.hero-pattern-layer.layer-b {
  inset: -12% -6%;
  background-image: url('../assets/brand/mark-mint.png');
  background-size: 166px auto;
  opacity: 0.03;
  transform: rotate(-7deg) scale(1.06);
  animation: heroDriftReverse 58s linear infinite;
}

.hero-pattern-flow {
  background-image: url('../assets/brand/pattern-flow.webp');
  background-size: 760px auto;
  opacity: 0.16;
  mix-blend-mode: multiply;
  animation: heroFloat 34s ease-in-out infinite alternate;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.24;
  background: radial-gradient(circle at 35% 35%, rgba(36, 211, 181, 0.9), rgba(15, 108, 108, 0.0) 72%);
}

.hero-orb.orb-a {
  width: 18rem;
  height: 18rem;
  top: 6%;
  right: 6%;
  animation: heroPulse 11s ease-in-out infinite;
}

.hero-orb.orb-b {
  width: 15rem;
  height: 15rem;
  bottom: 8%;
  left: 46%;
  opacity: 0.18;
  animation: heroPulse 13s ease-in-out infinite reverse;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  max-width: 40rem;
  padding-block: clamp(1rem, 2vw, 1.5rem);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto 16% -8%;
  width: clamp(12rem, 18vw, 18rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 108, 108, 0.18), transparent);
}

[data-page="home"] #top .display-5,
[data-page="home"] #top .display-4 {
  max-width: 10ch;
  margin-bottom: 1rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-size: clamp(2.9rem, 6vw, 5.8rem);
}

[data-page="home"] #top .lead {
  max-width: 34ch;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.32rem);
}

.hero-support {
  max-width: 42ch;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
}

.hero-proof-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.42rem 0.78rem;
  border-radius: var(--mw-radius-pill);
  border: 1px solid rgba(15, 108, 108, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--mw-primary);
  font-size: var(--mw-text-sm);
  font-weight: 600;
  line-height: 1.2;
  box-shadow: var(--mw-shadow-xs);
  backdrop-filter: blur(4px);
}

.section-pattern-surface,
.preview-stack,
.process-shell,
.contact-meta-card {
  position: relative;
  overflow: hidden;
}

.section-pattern-surface::before,
.preview-stack::before,
.process-shell::before,
.contact-meta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/brand/pattern-flow-2.webp');
  background-size: 640px auto;
  opacity: 0.08;
  pointer-events: none;
}

#solutions {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12)),
    var(--mw-bg);
}

.suite-showcase--minimal {
  padding: clamp(1rem, 1vw + 0.7rem, 1.35rem);
}


.suite-showcase--minimal .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.suite-showcase--minimal .row > * {
  margin: 0;
  width: 100%;
}

suite-showcase--minimal .module-card:last-child {
  grid-column: 1 / -1;
}

.suite-showcase-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.72rem;
  border-radius: var(--mw-radius-pill);
  border: 1px solid rgba(15, 108, 108, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: var(--mw-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}

.service-title-row .service-icon {
  margin-bottom: 0;
}

.service-title-row .h4,
.service-title-row .h5,
.service-title-row h3 {
  margin-bottom: 0;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-card p {
  line-height: 1.65;
}

.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
}

.project-link i {
  transition: transform var(--mw-duration-fast) var(--mw-ease);
}

.project-link:hover i {
  transform: translateX(2px);
}

[dir="rtl"] .project-link:hover i {
  transform: translateX(-2px);
}

.founder-quote-wrap {
  max-width: 860px;
  margin-inline: auto;
}

.contact-panel {
  background:
    radial-gradient(30rem 16rem at 0% 0%, rgba(36, 211, 181, 0.09), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
}

.contact-meta-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(15, 108, 108, 0.10);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--mw-shadow-xs);
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.contact-actions .btn {
  justify-content: center;
}

.contact-phones {
  display: grid;
  gap: 0.8rem;
}

.contact-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer.footer-dark {
  position: relative;
  background:
    radial-gradient(30rem 14rem at 15% 0%, rgba(36,211,181,0.09), transparent 72%),
    linear-gradient(180deg, #0c161e, #0a1118 72%);
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

.site-footer.footer-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/brand/pattern-flow-2.webp');
  background-size: 760px auto;
  opacity: 0.06;
  pointer-events: none;
}

.site-footer.footer-dark .container {
  position: relative;
  z-index: 1;
}

.site-footer.footer-dark .brand-word,
.site-footer.footer-dark .h4,
.site-footer.footer-dark .h6,
.site-footer.footer-dark p,
.site-footer.footer-dark a,
.site-footer.footer-dark li,
.site-footer.footer-dark .small {
  color: inherit;
}

.site-footer.footer-dark .footer-links a,
.site-footer.footer-dark .footer-brand,
.site-footer.footer-dark .lang-pill {
  color: rgba(255,255,255,0.82);
}

.site-footer.footer-dark .footer-links a:hover,
.site-footer.footer-dark .footer-brand:hover,
.site-footer.footer-dark .lang-pill:hover,
.site-footer.footer-dark .lang-pill[aria-current="page"] {
  color: #fff;
}

.site-footer.footer-dark .lang-pill {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}

.site-footer.footer-dark .lang-pill[aria-current="page"],
.site-footer.footer-dark .lang-pill.active {
  background: rgba(36,211,181,0.16);
  border-color: rgba(36,211,181,0.18);
}

.site-footer.footer-dark .footer-bottom,
.site-footer.footer-dark .border-top {
  border-top-color: rgba(255,255,255,0.08) !important;
}

@keyframes heroDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3.5rem, -2.2rem, 0) scale(1.03); }
}

@keyframes heroDriftReverse {
  from { transform: rotate(-7deg) translate3d(0, 0, 0) scale(1.06); }
  to { transform: rotate(-7deg) translate3d(4.2rem, 2.2rem, 0) scale(1.09); }
}

@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(2rem, -1rem, 0); }
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(1.08); opacity: 0.3; }
}

@media (min-width: 992px) {
  [data-page="home"] .hero-section {
    min-height: calc(100svh - var(--mw-header-height));
  }

  [data-page="home"] #top .container {
    min-height: calc(100svh - var(--mw-header-height));
    display: flex;
    align-items: center;
  }

  .hero-copy {
    padding-inline-end: 1rem;
  }
}

@media (max-width: 991.98px) {
  .suite-showcase--minimal .row {
    grid-template-columns: 1fr;
  }

  [data-page="home"] .hero-section,
  [data-page="home"] #top .container {
    min-height: calc(100svh - var(--mw-header-height));
  }

  .hero-copy::before {
    width: 8rem;
    inset: auto auto 10% 0;
  }

  .suite-showcase--minimal {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  [data-page="home"] #top .display-5,
  [data-page="home"] #top .display-4 {
    font-size: clamp(2.55rem, 12vw, 4rem);
    max-width: 9ch;
  }

  .hero-proof-grid {
    gap: 0.55rem;
  }

  .proof-chip {
    font-size: 0.8rem;
  }

  .hero-pattern-layer.layer-a {
    background-size: 92px auto;
  }

  .hero-pattern-layer.layer-b {
    background-size: 122px auto;
  }

  .hero-pattern-flow {
    background-size: 520px auto;
    opacity: 0.13;
  }

  .hero-orb.orb-a {
    width: 12rem;
    height: 12rem;
  }

  .hero-orb.orb-b {
    width: 10rem;
    height: 10rem;
    left: 18%;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding-block: 2.75rem;
  }

  [data-page="home"] .hero-section {
    padding-block: 1rem 1.5rem;
  }

  [data-page="home"] #top .display-5,
  [data-page="home"] #top .lead,
  .hero-support {
    max-width: 100%;
  }

  .hero-copy {
    padding-block: 1.35rem 0.65rem;
  }

  .contact-meta-card,
  .ceo-quote-card,
  .project-card,
  .service-card,
  .cta-panel,
  .feature-panel {
    border-radius: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pattern-layer,
  .hero-pattern-flow,
  .hero-orb {
    animation: none !important;
  }
}


/* =========================================================
   Minwel v4 hero motion overhaul
   ========================================================= */

[data-page="home"] .hero-section.hero-section--immersive {
  position: relative;
  min-height: calc(100svh - var(--mw-header-height));
  display: flex;
  align-items: stretch;
  padding-block: 0;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(44rem 26rem at 8% 16%, rgba(36, 211, 181, 0.10), transparent 70%),
    radial-gradient(42rem 24rem at 92% 12%, rgba(15, 108, 108, 0.09), transparent 74%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
}

[data-page="home"] .hero-section.hero-section--immersive::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 108, 108, 0.18), transparent);
}

.hero-motion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-motion-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 249, 244, 0.88) 0%, rgba(251, 249, 244, 0.72) 32%, rgba(251, 249, 244, 0.18) 58%, rgba(251, 249, 244, 0.38) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.hero-glow,
.hero-focal {
  position: absolute;
  border-radius: 999px;
}

.hero-glow {
  filter: blur(14px);
  opacity: 0.22;
  background: radial-gradient(circle at 50% 50%, rgba(36, 211, 181, 0.62), rgba(15, 108, 108, 0) 72%);
  animation: heroGlowPulse 15s ease-in-out infinite;
}

.hero-glow-a {
  width: 20rem;
  height: 20rem;
  inset: 12% auto auto 62%;
}

.hero-glow-b {
  width: 16rem;
  height: 16rem;
  inset: auto auto 12% 48%;
  animation-duration: 19s;
  animation-delay: -4s;
}

.hero-glow-c {
  width: 13rem;
  height: 13rem;
  inset: 38% auto auto 82%;
  opacity: 0.16;
  animation-duration: 17s;
  animation-delay: -7s;
}

.hero-rail-shell {
  position: absolute;
  inset-inline-start: -18%;
  width: 150%;
  opacity: 0.66;
  filter: saturate(0.96);
}

.hero-rail-shell.rail-1 { top: 10%; transform: rotate(-11deg); }
.hero-rail-shell.rail-2 { top: 34%; transform: rotate(7deg); opacity: 0.54; }
.hero-rail-shell.rail-3 { top: 68%; transform: rotate(-8deg); opacity: 0.48; }

.hero-rail {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hero-rail--move-a { animation: heroRailMoveA 34s linear infinite; }
.hero-rail--move-b { animation: heroRailMoveB 42s linear infinite; }
.hero-rail--move-c { animation: heroRailMoveA 38s linear infinite reverse; }

.hero-rail-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.85rem);
  padding-inline-end: clamp(1rem, 1.8vw, 1.85rem);
}

.hero-mark-item {
  --mark-size: 4rem;
  position: relative;
  flex: 0 0 auto;
  width: var(--mark-size);
  aspect-ratio: 1;
  animation: heroMarkFloat 8.6s ease-in-out infinite;
}

.hero-mark-item::before,
.hero-mark-item::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-mark-item::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 108, 108, 0.08));
}

.hero-mark-item::after {
  inset: 18%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(36, 211, 181, 0.36), rgba(15, 108, 108, 0) 72%);
  filter: blur(12px);
  opacity: 0.54;
  transform: scale(0.92);
}

.hero-mark-item.tone-teal::before {
  background-image: url('../assets/brand/minwel-mark-teal.png');
}

.hero-mark-item.tone-mint::before {
  background-image: url('../assets/brand/mark-mint.png');
  opacity: 0.9;
}

.hero-mark-item.size-sm { --mark-size: clamp(2.5rem, 2.1vw, 3.15rem); }
.hero-mark-item.size-md { --mark-size: clamp(3.3rem, 3vw, 4.5rem); }
.hero-mark-item.size-lg { --mark-size: clamp(4.4rem, 4.2vw, 6rem); }

.hero-rail-track .hero-mark-item:nth-child(2n) { animation-duration: 10.4s; animation-delay: -2.2s; }
.hero-rail-track .hero-mark-item:nth-child(3n) { animation-duration: 9.4s; animation-delay: -4.6s; }
.hero-rail-track .hero-mark-item:nth-child(4n) { animation-duration: 11.2s; animation-delay: -1.6s; }

.hero-focal {
  width: clamp(10rem, 18vw, 16rem);
  aspect-ratio: 1;
  opacity: 0.16;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.08));
  animation: heroFocalDrift 17s ease-in-out infinite;
}

.hero-focal::before,
.hero-focal::after {
  content: "";
  position: absolute;
}

.hero-focal::before {
  inset: 0;
  background: center / contain no-repeat url('../assets/brand/minwel-mark-teal.png');
}

.hero-focal::after {
  inset: 24%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(36, 211, 181, 0.36), rgba(15, 108, 108, 0) 72%);
  filter: blur(24px);
}

.hero-focal.focal-a { inset: 20% 8% auto auto; }
.hero-focal.focal-b {
  width: clamp(7rem, 12vw, 10rem);
  inset: auto 18% 13% auto;
  opacity: 0.11;
  animation-duration: 21s;
  animation-delay: -5s;
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--mw-header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(2.4rem, 4vw, 4.5rem);
}

.hero-copy {
  position: relative;
  max-width: min(30rem, 100%);
  padding-block: 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -1.35rem -1.5rem -1.35rem -1.1rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(251, 249, 244, 0.92), rgba(251, 249, 244, 0.74) 56%, rgba(251, 249, 244, 0));
  filter: blur(8px);
  z-index: -1;
}

[data-page="home"] #top .display-4 {
  max-width: 10ch;
  margin-bottom: 1rem;
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-size: clamp(3rem, 6.4vw, 6rem);
}

[data-page="home"] #top .lead {
  max-width: 31ch;
  font-size: clamp(1.02rem, 1rem + 0.48vw, 1.28rem);
  line-height: 1.72;
}

.hero-cta-group {
  align-items: flex-start;
}

.hero-cta-group .btn-lg {
  min-width: 13rem;
  justify-content: center;
}

#solutions .feature-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86));
}

@keyframes heroRailMoveA {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes heroRailMoveB {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes heroMarkFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -0.35rem, 0) scale(1.03); }
}

@keyframes heroGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.08); opacity: 0.28; }
}

@keyframes heroFocalDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0.65rem, -0.45rem, 0) rotate(3deg); }
}

@media (max-width: 991.98px) {
  .hero-rail-shell {
    inset-inline-start: -38%;
    width: 196%;
  }

  .hero-rail-shell.rail-1 { top: 14%; }
  .hero-rail-shell.rail-2 { top: 44%; }
  .hero-rail-shell.rail-3 { top: 74%; }

  .hero-glow-a { inset-inline-start: 56%; top: 10%; }
  .hero-glow-b { inset-inline-start: 20%; bottom: 10%; }

  .hero-copy {
    max-width: 27rem;
  }

  .hero-copy::before {
    inset: -1rem -1rem -1rem -0.8rem;
  }
}

@media (max-width: 767.98px) {
  .hero-motion-wash {
    background:
      linear-gradient(180deg, rgba(251, 249, 244, 0.9) 0%, rgba(251, 249, 244, 0.72) 42%, rgba(251, 249, 244, 0.82) 100%),
      linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  }

  .hero-shell {
    justify-content: center;
    padding-block: clamp(1.8rem, 7vw, 3rem);
  }

  .hero-copy {
    max-width: 24rem;
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy::before {
    inset: -0.9rem -0.8rem -0.9rem -0.8rem;
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.92), rgba(251, 249, 244, 0.82));
  }

  .hero-copy .eyebrow,
  .hero-cta-group {
    justify-content: center;
    align-items: center;
  }

  [data-page="home"] #top .display-4 {
    max-width: 9ch;
    margin-inline: auto;
    font-size: clamp(2.65rem, 12vw, 4.1rem);
  }

  [data-page="home"] #top .lead {
    max-width: 26ch;
    margin-inline: auto;
    font-size: 1.05rem;
    line-height: 1.68;
  }

  .hero-cta-group .btn-lg {
    min-width: min(100%, 19rem);
    width: 100%;
  }

  .hero-rail-shell {
    inset-inline-start: -56%;
    width: 232%;
  }

  .hero-rail-shell.rail-1 { top: 16%; }
  .hero-rail-shell.rail-2 { top: 48%; }
  .hero-rail-shell.rail-3 { top: 78%; }

  .hero-focal.focal-a { inset: 16% -6% auto auto; }
  .hero-focal.focal-b { inset: auto auto 11% -4%; }
}

@media (max-width: 575.98px) {
  [data-page="home"] .hero-section.hero-section--immersive,
  .hero-shell {
    min-height: calc(100svh - var(--mw-header-height));
  }

  .hero-rail-shell {
    opacity: 0.4;
  }

  .hero-mark-item.size-lg { --mark-size: clamp(3.5rem, 16vw, 4.25rem); }
  .hero-mark-item.size-md { --mark-size: clamp(3rem, 13vw, 3.7rem); }
  .hero-mark-item.size-sm { --mark-size: clamp(2.3rem, 10vw, 2.9rem); }

  .hero-glow-a,
  .hero-glow-b,
  .hero-glow-c {
    opacity: 0.14;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rail,
  .hero-mark-item,
  .hero-glow,
  .hero-focal {
    animation: none !important;
  }
}



/* =========================================================
   Minwel v7 hero refinement
   ========================================================= */

.hero-section--logo {
  background:
    radial-gradient(34rem 22rem at 8% 14%, rgba(36, 211, 181, 0.08), transparent 72%),
    radial-gradient(22rem 16rem at 86% 22%, rgba(15, 108, 108, 0.045), transparent 76%),
    linear-gradient(180deg, rgba(255,255,255,0.975), rgba(251,249,244,0.92));
}

.hero-shell.hero-shell--split {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--mw-header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(10rem, 17rem);
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 4.25rem);
  padding-block: clamp(1.5rem, 3vh, 3rem);
}

.hero-copy.hero-copy--minimal {
  position: relative;
  max-width: min(100%, 46rem);
  padding-block: 0;
  align-self: center;
}

.hero-copy.hero-copy--minimal::before {
  content: "";
  position: absolute;
  inset: -0.9rem -1rem -0.9rem -0.8rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(251, 249, 244, 0.84), rgba(251, 249, 244, 0.54) 54%, rgba(251, 249, 244, 0));
  filter: blur(8px);
  z-index: -1;
}

.hero-copy--minimal .hero-accent {
  color: var(--mw-primary);
}

.hero-copy--minimal .display-4 {
  max-width: 11.4ch;
  margin-bottom: 1rem;
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-size: clamp(3.5rem, 7vw, 6.75rem);
}

html[lang="fr"] .hero-copy--minimal .display-4 {
  max-width: 11.8ch;
  font-size: clamp(3rem, 6vw, 5.65rem);
}

html[lang="ar"] .hero-copy--minimal .display-4 {
  max-width: 9.2ch;
  line-height: 1.04;
}

.hero-copy--minimal .lead {
  max-width: 16.5ch;
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  margin-bottom: 1.7rem !important;
}

.hero-cta-group {
  width: min(100%, 33rem);
}

.hero-cta-group > .btn {
  min-width: 12.5rem;
}

.hero-stage {
  position: relative;
  width: clamp(10.5rem, 18vw, 16rem);
  justify-self: end;
  align-self: end;
  margin-inline-start: auto;
  margin-block-end: clamp(0.5rem, 4vh, 2.25rem);
}

.hero-logo-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1.75;
}

.hero-logo-art::before {
  content: "";
  position: absolute;
  inset: 26% 12% 20%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 52%, rgba(36, 211, 181, 0.14), rgba(36, 211, 181, 0) 68%);
  filter: blur(22px);
  opacity: 0.7;
}

.hero-logo-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-logo-main {
  filter: drop-shadow(0 18px 22px rgba(15, 108, 108, 0.11));
}

.hero-logo-under {
  filter: drop-shadow(0 12px 18px rgba(15, 108, 108, 0.08));
}

.hero-logo-guide {
  fill: none;
  stroke: rgba(15, 108, 108, 0.09);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-dasharray: 3 13;
  animation: heroGuideShift 18s linear infinite;
}

.hero-logo-orb {
  transform-origin: center;
  animation: heroOrbFloat 5.8s ease-in-out infinite;
}

.hero-logo-orb-glow {
  opacity: 0.9;
  filter: blur(2px);
}

.hero-logo-orb-body {
  filter: drop-shadow(0 8px 16px rgba(15, 108, 108, 0.17));
}

.hero-logo-orb-swirl {
  fill: none;
  stroke: rgba(255,255,255,0.94);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-logo-orb-pupil {
  fill: rgba(255,255,255,0.97);
}

@keyframes heroGuideShift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -88; }
}

@keyframes heroOrbFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.045) rotate(180deg); }
}

@media (max-width: 1199.98px) {
  .hero-shell.hero-shell--split {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem);
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .hero-copy.hero-copy--minimal {
    max-width: min(100%, 40rem);
  }

  .hero-copy--minimal .display-4 {
    font-size: clamp(3.25rem, 6.3vw, 5.8rem);
    max-width: 10.5ch;
  }

  .hero-stage {
    width: clamp(9rem, 16vw, 12.5rem);
  }
}

@media (max-width: 991.98px) {
  .hero-shell.hero-shell--split {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 10.5rem);
    gap: 1.25rem;
    min-height: calc(100dvh - var(--mw-header-height));
  }

  .hero-copy.hero-copy--minimal {
    max-width: min(100%, 34rem);
  }

  .hero-copy--minimal .display-4 {
    max-width: 9.8ch;
    font-size: clamp(3rem, 6.6vw, 5rem);
  }

  .hero-copy--minimal .lead {
    max-width: 16ch;
  }

  .hero-stage {
    width: clamp(7.5rem, 15vw, 9.5rem);
    margin-block-end: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  .hero-shell.hero-shell--split {
    min-height: calc(100dvh - var(--mw-header-height));
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 0.85rem;
    padding-block: clamp(0.85rem, 3.8vh, 1.4rem);
  }

  .hero-stage {
    order: -1;
    width: min(34vw, 7.25rem);
    justify-self: center;
    align-self: start;
    margin: 0;
  }

  .hero-copy.hero-copy--minimal {
    max-width: min(100%, 22rem);
    text-align: center;
  }

  .hero-copy.hero-copy--minimal::before {
    inset: -0.55rem -0.45rem -0.55rem -0.45rem;
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.88), rgba(251, 249, 244, 0.68));
    filter: blur(9px);
  }

  .hero-copy.hero-copy--minimal .display-4 {
    max-width: none;
    font-size: clamp(2.85rem, 12.6vw, 4.4rem);
    margin-bottom: 0.8rem;
  }

  .hero-copy--minimal .lead {
    max-width: 11.8ch;
    font-size: clamp(1rem, 4.8vw, 1.24rem);
    margin-inline: auto;
    margin-bottom: 1.4rem !important;
  }

  .hero-copy .eyebrow,
  .hero-cta-group {
    justify-content: center;
    align-items: center;
  }

  .hero-cta-group {
    width: min(100%, 20rem);
  }

  .hero-cta-group > .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-logo-art::before {
    inset: 24% 10% 20%;
    filter: blur(18px);
  }
}

html[dir="rtl"] .hero-copy.hero-copy--minimal::before {
  inset: -0.9rem -0.8rem -0.9rem -1rem;
}

@media (max-width: 767.98px) {
  html[dir="rtl"] .hero-copy.hero-copy--minimal {
    text-align: center;
  }

  html[dir="rtl"] .hero-copy.hero-copy--minimal::before {
    inset: -0.55rem -0.45rem -0.55rem -0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-guide,
  .hero-logo-orb {
    animation: none !important;
  }
}


/* =========================================================
   Minwel v8 hero image simplification
   ========================================================= */

.hero-section--image {
  position: relative;
  min-height: calc(100svh - var(--mw-header-height));
  display: flex;
  align-items: stretch;
  padding-block: 0;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(180deg, rgba(245, 251, 250, 0.9), rgba(251, 249, 244, 0.98) 58%, rgba(251, 249, 244, 1));
}

.hero-section--image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 108, 108, 0.14), transparent);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 249, 244, 0.98) 0%, rgba(251, 249, 244, 0.96) 28%, rgba(251, 249, 244, 0.84) 44%, rgba(251, 249, 244, 0.44) 62%, rgba(251, 249, 244, 0.14) 78%, rgba(251, 249, 244, 0) 100%);
}

.hero-bg-image {
  position: absolute;
  inset: auto -10vw -16vh auto;
  width: min(88rem, 86vw);
  max-width: none;
  height: auto;
  opacity: 0.96;
  filter: saturate(0.96);
}

.hero-shell.hero-shell--image {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--mw-header-height));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.hero-shell.hero-shell--image .hero-copy.hero-copy--minimal {
  max-width: min(66rem, 72vw);
}

.hero-shell.hero-shell--image .hero-copy.hero-copy--minimal::before {
  inset: -1rem -1rem -1rem -0.8rem;
  background: linear-gradient(135deg, rgba(251, 249, 244, 0.88), rgba(251, 249, 244, 0.64) 52%, rgba(251, 249, 244, 0.08) 82%, rgba(251, 249, 244, 0));
  filter: blur(10px);
}

.hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
  max-width: 11.2ch;
  font-size: clamp(3.65rem, 7vw, 6.7rem);
}

html[lang="fr"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
  max-width: 9.2ch;
  font-size: clamp(3.2rem, 6.5vw, 5.85rem);
}

html[lang="ar"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
  max-width: 8.8ch;
  line-height: 1.02;
}

.hero-shell.hero-shell--image .hero-copy--minimal .lead {
  max-width: 20.5ch;
  font-size: clamp(1.06rem, 0.98rem + 0.46vw, 1.28rem);
  margin-top: 1.15rem;
  margin-bottom: clamp(1.9rem, 2.4vw, 2.5rem) !important;
}

.hero-shell.hero-shell--image .hero-cta-group {
  width: auto;
}

@media (min-width: 992px) {
  .hero-shell.hero-shell--image .hero-copy--minimal .hero-accent {
    white-space: nowrap;
  }
}

@media (max-width: 1199.98px) {
  .hero-bg-image {
    width: min(84rem, 96vw);
    inset: auto -16vw -15vh auto;
  }

  .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal {
    max-width: min(56rem, 70vw);
  }
}

@media (max-width: 991.98px) {
  .hero-bg-media::after {
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.06) 0%, rgba(251, 249, 244, 0.14) 18%, rgba(251, 249, 244, 0.52) 42%, rgba(251, 249, 244, 0.88) 66%, rgba(251, 249, 244, 0.98) 82%, rgba(251, 249, 244, 1) 100%);
  }

  .hero-bg-image {
    width: 128vw;
    inset: -16vw 50% auto auto;
    transform: translateX(50%);
    opacity: 0.9;
  }

  .hero-shell.hero-shell--image {
    justify-content: center;
    text-align: center;
  }

  .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal {
    max-width: min(100%, 39rem);
    margin-inline: auto;
  }

  .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal::before {
    inset: -0.8rem -0.6rem -0.8rem -0.6rem;
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.9), rgba(251, 249, 244, 0.72));
  }

  .hero-shell.hero-shell--image .hero-copy .eyebrow,
  .hero-shell.hero-shell--image .hero-cta-group {
    justify-content: center;
    align-items: center;
  }

  .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    max-width: 8.7ch;
    margin-inline: auto;
    font-size: clamp(3.15rem, 10.8vw, 5.1rem);
  }

  html[lang="fr"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 8.9vw, 4.45rem);
  }

  .hero-shell.hero-shell--image .hero-copy--minimal .lead {
    max-width: 22ch;
    margin-inline: auto;
    margin-top: 1.1rem;
    margin-bottom: 2.15rem !important;
  }

  .hero-shell.hero-shell--image .hero-cta-group {
    width: min(100%, 22rem);
  }

  .hero-shell.hero-shell--image .hero-cta-group > .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section--image,
  .hero-shell.hero-shell--image {
    min-height: calc(100svh - var(--mw-header-height));
  }

  .hero-bg-media picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-bg-media::after {
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.02) 0%, rgba(251, 249, 244, 0.06) 24%, rgba(251, 249, 244, 0.18) 40%, rgba(251, 249, 244, 0.52) 56%, rgba(251, 249, 244, 0.86) 72%, rgba(251, 249, 244, 0.96) 84%, rgba(251, 249, 244, 1) 100%);
  }

  .hero-bg-image {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    transform: none;
    opacity: 1;
  }

  .hero-shell.hero-shell--image {
    align-items: stretch;
    justify-content: center;
    padding-block: clamp(1rem, 2.5vh, 1.5rem) clamp(1.5rem, 3.8vh, 2.2rem);
  }

  .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal {
    max-width: min(100%, 21.5rem);
    min-height: calc(100svh - var(--mw-header-height) - clamp(2.4rem, 6vh, 3.6rem));
    margin-inline: auto;
    padding-top: clamp(12.75rem, 34vh, 16.5rem);
    padding-bottom: clamp(0.75rem, 2vh, 1.25rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal::before {
    inset: -0.65rem -0.7rem -0.9rem -0.7rem;
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.18), rgba(251, 249, 244, 0.58) 18%, rgba(251, 249, 244, 0.9) 38%, rgba(251, 249, 244, 0.98) 100%);
    filter: blur(7px);
  }

  .hero-shell.hero-shell--image .hero-copy .eyebrow,
  .hero-shell.hero-shell--image .hero-cta-group {
    justify-content: center;
    align-items: center;
  }

  .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    margin-bottom: 1.05rem;
  }

  html[lang="en"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    max-width: 100%;
    width: 100%;
    font-size: clamp(1.95rem, 7.1vw, 2.62rem);
    line-height: 1.01;
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }

  html[lang="en"] .hero-shell.hero-shell--image .hero-copy--minimal .hero-accent {
    display: inline-block;
    white-space: nowrap;
  }

  html[lang="fr"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    max-width: 9.4ch;
    font-size: clamp(2.25rem, 8.6vw, 3.45rem);
  }

  html[lang="ar"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    max-width: 9.25ch;
    font-size: clamp(2.3rem, 8.9vw, 3.45rem);
  }

  .hero-shell.hero-shell--image .hero-copy--minimal .lead {
    max-width: 16.5ch;
    font-size: clamp(0.98rem, 3.9vw, 1.12rem);
    line-height: 1.72;
    margin-top: 1.05rem;
    margin-bottom: 2.35rem !important;
  }

  .hero-shell.hero-shell--image .hero-cta-group {
    width: min(100%, 19rem);
    gap: 0.85rem !important;
  }

  .hero-shell.hero-shell--image .hero-cta-group > .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-shell.hero-shell--image {
    padding-inline: 0.35rem;
  }

  .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal {
    max-width: min(100%, 21.5rem);
    padding-top: clamp(12.25rem, 33vh, 15.5rem);
  }

  html[lang="en"] .hero-shell.hero-shell--image .hero-copy--minimal .display-4 {
    font-size: clamp(2.02rem, 7.8vw, 2.72rem);
  }

  .hero-shell.hero-shell--image .hero-copy--minimal .lead {
    max-width: 15.9ch;
    font-size: clamp(0.96rem, 3.75vw, 1.05rem);
  }
}

html[dir="rtl"] .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal::before {
  inset: -1rem -0.8rem -1rem -1rem;
}

@media (max-width: 991.98px) {
  html[dir="rtl"] .hero-shell.hero-shell--image .hero-copy.hero-copy--minimal::before {
    inset: -0.8rem -0.6rem -0.8rem -0.6rem;
  }
}


/* Applications carousel */
.app-carousel-wrap {
  position: relative;
  z-index: 1;
}

.app-carousel {
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(15, 108, 108, 0.10);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--mw-shadow-sm), var(--mw-shadow-inset);
}

.app-carousel .carousel-inner {
  border-radius: inherit;
}

.app-carousel .carousel-item {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(30rem 18rem at 100% 100%, rgba(36, 211, 181, 0.06), transparent 60%),
    rgba(255,255,255,0.72);
}

.app-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.app-carousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

.app-carousel .carousel-indicators [data-bs-target] {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  background-color: rgba(15,108,108,0.28);
}

.app-carousel .carousel-indicators .active {
  background-color: var(--mw-primary);
}

.app-carousel .carousel-control-prev,
.app-carousel .carousel-control-next {
  width: 2.75rem;
  opacity: 1;
}

.app-carousel .carousel-control-prev-icon,
.app-carousel .carousel-control-next-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.88);
  background-size: 48% 48%;
  box-shadow: var(--mw-shadow-xs);
}

.app-carousel-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.72rem;
  border-radius: var(--mw-radius-pill);
  border: 1px solid rgba(15, 108, 108, 0.10);
  background: rgba(255, 255, 255, 0.78);
  color: var(--mw-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .app-carousel .carousel-item {
    aspect-ratio: 4 / 3;
  }

  .app-carousel .carousel-control-prev,
  .app-carousel .carousel-control-next {
    width: 2.4rem;
  }

  .app-carousel .carousel-control-prev-icon,
  .app-carousel .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Final refinements: founder quote + footer brand */
.ceo-quote-card {
  overflow: hidden;
}

.ceo-quote-block {
  position: relative;
}

.quote-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(36, 211, 181, 0.12), rgba(15, 108, 108, 0.08));
  color: var(--mw-primary);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--mw-shadow-xs);
}

.ceo-signoff {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.ceo-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(15, 108, 108, 0.12);
  box-shadow: var(--mw-shadow-xs);
  background: rgba(255,255,255,0.9);
}

.ceo-meta {
  display: grid;
  gap: 0.15rem;
}

.ceo-meta strong,
.ceo-meta span {
  display: block;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
}

.footer-brand .brand-word {
  font-size: 1.75rem;
}

[dir="rtl"] .ceo-signoff {
  flex-direction: row-reverse;
}

@media (max-width: 575.98px) {
  .quote-visual {
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
  }

  .ceo-signoff {
    align-items: flex-start;
  }
}
