/* Info EG 2026 Redesign — unique section compositions + product mockups */
/* Depends on design tokens from infoeg-premium.css */

/* ---- Section shells ---- */
.rx-section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.rx-section--tint {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(175, 87, 171, 0.08), transparent 55%),
    linear-gradient(180deg, #F3EDF8, #F8F5FC 40%, #FFFFFF);
}

.rx-section--mesh {
  background: var(--ie-gradient-mesh), var(--ie-bg);
}

.rx-center-head {
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}

.rx-split-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-items: end;
}

@media (min-width: 768px) {
  .rx-split-head {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* ---- HERO ---- */
.rx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--ie-header-h) + 2.5rem) 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.rx-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 50% at 85% 20%, rgba(175, 87, 171, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 45% at 10% 80%, rgba(81, 54, 133, 0.2), transparent 50%),
    linear-gradient(165deg, #F8F5FC 0%, #EDE4F5 45%, #FFFFFF 100%);
}

.rx-geo {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(81, 54, 133, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(175,87,171,0.08));
  backdrop-filter: blur(8px);
  animation: ie-float 10s ease-in-out infinite;
  pointer-events: none;
}

.rx-geo.geo-a { width: 120px; height: 120px; top: 18%; inset-inline-start: 6%; rotate: 12deg; }
.rx-geo.geo-b { width: 70px; height: 70px; bottom: 22%; inset-inline-end: 8%; border-radius: 50%; animation-delay: -3s; }
.rx-geo.geo-c { width: 160px; height: 40px; top: 72%; inset-inline-start: 28%; rotate: -8deg; animation-delay: -5s; opacity: 0.5; }

.rx-hero-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--ie-container));
  margin-inline: auto;
}

@media (min-width: 992px) {
  .rx-hero-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
  }
}

.rx-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.rx-trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ie-secondary);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(81, 54, 133, 0.14);
  backdrop-filter: blur(10px);
}

.rx-brand-mark {
  font-family: var(--ie-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 0 0 0.85rem;
  background: linear-gradient(118deg, #2B1B4E, #513685 40%, #AF57AB 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ie-gradient-shift 8s ease infinite;
}

.rx-hero-title {
  font-family: var(--ie-display);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ie-primary);
  margin: 0 0 1rem;
  max-width: 32ch;
}

.rx-hero-lead {
  color: var(--ie-muted);
  font-size: 1.08rem;
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.rx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.rx-hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 420px;
}

.rx-hero-mini-stats div {
  padding: 0.85rem 0.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(81, 54, 133, 0.12);
  backdrop-filter: blur(12px);
}

.rx-hero-mini-stats strong {
  display: block;
  font-family: var(--ie-display);
  font-size: 1.35rem;
  color: var(--ie-primary);
}

.rx-hero-mini-stats span {
  font-size: 0.72rem;
  color: var(--ie-muted);
  font-weight: 600;
}

/* Hero product stage */
.rx-hero-stage {
  position: relative;
  min-height: 420px;
  perspective: 1200px;
}

.rx-float-layer {
  position: absolute;
  transition: transform 0.4s ease-out;
}

.rx-float-layer.main {
  inset-inline-start: 4%;
  top: 8%;
  width: min(100%, 380px);
  z-index: 2;
  animation: ie-float 8s ease-in-out infinite;
}

.rx-float-layer.crm {
  inset-inline-end: 0;
  bottom: 18%;
  width: min(72%, 280px);
  z-index: 3;
  animation: ie-float 7s ease-in-out infinite;
  animation-delay: -2s;
}

.rx-float-layer.phone {
  inset-inline-start: 0;
  bottom: 0;
  width: 140px;
  z-index: 4;
  animation: ie-float 6.5s ease-in-out infinite;
  animation-delay: -1s;
}

.rx-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(175, 87, 171, 0.25);
  box-shadow: var(--ie-shadow);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ie-primary);
  backdrop-filter: blur(12px);
  animation: ie-float 6s ease-in-out infinite;
}

.rx-chip i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ie-gradient);
  color: #fff;
  font-size: 0.75rem;
}

.rx-chip.ai { top: 0; inset-inline-end: 8%; }
.rx-chip.secure { bottom: 8%; inset-inline-end: 12%; animation-delay: -2.5s; }

.rx-live-metrics {
  position: absolute;
  bottom: -0.5rem;
  inset-inline-start: 20%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 5;
}

.rx-live-metrics span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--ie-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(175, 87, 171, 0.3);
}

/* ---- Product mockups ---- */
.ie-mock {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(81, 54, 133, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(43, 27, 78, 0.16);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.ie-mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, rgba(81,54,133,0.08), rgba(175,87,171,0.08));
  border-bottom: 1px solid rgba(81, 54, 133, 0.1);
}

.ie-mock-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E4D9EF;
}

.ie-mock-chrome span:nth-child(1) { background: #F87171; }
.ie-mock-chrome span:nth-child(2) { background: #FBBF24; }
.ie-mock-chrome span:nth-child(3) { background: #34D399; }

.ie-mock-chrome em {
  margin-inline-start: auto;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ie-gradient);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.ie-mock-body { display: flex; min-height: 200px; }
.ie-mock-side {
  width: 44px;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(180deg, #2B1B4E, #513685);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.ie-mock-side i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255,255,255,0.15);
  display: block;
}

.ie-mock-side i.on { background: linear-gradient(135deg, #AF57AB, #fff); }

.ie-mock-main { flex: 1; padding: 0.85rem; }
.ie-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ie-mock-kpis div {
  background: var(--ie-neutral-50, #FBF9FD);
  border: 1px solid rgba(81,54,133,0.1);
  border-radius: 10px;
  padding: 0.5rem;
}

.ie-mock-kpis b {
  display: block;
  font-family: var(--ie-display);
  font-size: 0.95rem;
  color: var(--ie-primary);
}

.ie-mock-kpis s {
  text-decoration: none;
  font-size: 0.62rem;
  color: var(--ie-muted);
}

.ie-mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 72px;
  margin-bottom: 0.65rem;
}

.ie-mock-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: var(--ie-gradient);
  opacity: 0.85;
  display: block;
  animation: rx-bar 2.8s ease-in-out infinite alternate;
}

.ie-mock-bars i:nth-child(odd) { animation-delay: -1s; opacity: 0.65; }

@keyframes rx-bar {
  from { transform: scaleY(0.85); }
  to { transform: scaleY(1.08); }
}

.ie-mock-table { display: grid; gap: 0.35rem; }
.ie-mock-table div {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(81,54,133,0.12), rgba(175,87,171,0.08));
}

.ie-mock-table div:nth-child(2) { width: 85%; }
.ie-mock-table div:nth-child(3) { width: 70%; }
.ie-mock-table div:nth-child(4) { width: 92%; }

/* CRM pipeline */
.ie-mock--crm .ie-mock-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0.75rem;
  min-height: 160px;
}

.ie-pipe-col {
  background: rgba(81,54,133,0.04);
  border-radius: 10px;
  padding: 0.45rem;
}

.ie-pipe-col strong {
  display: block;
  font-size: 0.62rem;
  margin-bottom: 0.4rem;
  color: var(--ie-muted);
}

.ie-pipe-card {
  height: 28px;
  border-radius: 7px;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, rgba(175,87,171,0.35), rgba(81,54,133,0.25));
}

.ie-pipe-card.short { height: 20px; opacity: 0.7; width: 80%; }

/* AI */
.ie-mock--ai {
  padding: 0.75rem;
  background: linear-gradient(160deg, #1A1230, #513685 80%);
  border: none;
}

.ie-neural { width: 100%; height: auto; display: block; }
.ie-ai-chat { display: grid; gap: 0.45rem; margin-top: 0.5rem; }
.ie-ai-bubble {
  font-size: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  max-width: 92%;
  font-weight: 600;
}

.ie-ai-bubble.bot {
  background: rgba(255,255,255,0.12);
  color: #F5F0FA;
  border: 1px solid rgba(255,255,255,0.15);
}

.ie-ai-bubble.user {
  margin-inline-start: auto;
  background: linear-gradient(135deg, #AF57AB, #7A4199);
  color: #fff;
}

.ie-pulse-ring { animation: rx-pulse 2.4s ease-out infinite; transform-origin: center; }
@keyframes rx-pulse {
  0% { opacity: 0.6; }
  100% { opacity: 0; stroke-width: 1; }
}

/* Phone */
.ie-mock--phone { background: transparent; border: 0; box-shadow: none; }
.ie-phone {
  width: 140px;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #2B1B4E, #513685);
  box-shadow: 0 28px 50px rgba(43, 27, 78, 0.35);
}

.ie-phone-notch {
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  margin: 4px auto 8px;
}

.ie-phone-screen {
  background: #F8F5FC;
  border-radius: 20px;
  padding: 0.65rem;
  min-height: 220px;
}

.ie-phone-header { height: 10px; width: 50%; border-radius: 4px; background: rgba(81,54,133,0.2); margin-bottom: 0.65rem; }
.ie-phone-card {
  height: 64px;
  border-radius: 12px;
  background: var(--ie-gradient);
  margin-bottom: 0.5rem;
}
.ie-phone-card.glow { box-shadow: 0 10px 24px rgba(175,87,171,0.4); }
.ie-phone-row { height: 10px; border-radius: 4px; background: rgba(81,54,133,0.12); margin-bottom: 0.35rem; }
.ie-phone-row.short { width: 65%; }
.ie-phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-top: 0.55rem; }
.ie-phone-grid i { display: block; height: 36px; border-radius: 10px; background: rgba(175,87,171,0.18); }

.ie-mock--cloud,
.ie-mock--security {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.5rem;
}

.ie-mock--cloud svg,
.ie-mock--security svg { width: 100%; height: auto; display: block; }

.ie-float-dot { animation: ie-float 5s ease-in-out infinite; }

.ie-mock--analytics { padding-bottom: 0.75rem; }
.ie-ana-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
  padding: 0.75rem;
  align-items: center;
}

.ie-ana-chart {
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(175,87,171,0.08), transparent);
  overflow: hidden;
}

.ie-ana-chart svg { width: 100%; height: 100%; }
.ie-ana-donut { position: relative; width: 88px; margin-inline: auto; }
.ie-ana-donut svg { width: 100%; height: auto; }
.ie-ana-donut strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ie-display);
  font-size: 0.95rem;
  color: var(--ie-primary);
}

.ie-mock--support {
  background: linear-gradient(160deg, #fff, #F3EDF8);
  padding: 1rem;
}

.ie-support-panel { display: grid; gap: 0.65rem; }
.ie-support-agent {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ie-avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ie-gradient);
  box-shadow: 0 0 0 3px rgba(175,87,171,0.2);
}

.ie-support-agent b { display: block; font-size: 0.85rem; color: var(--ie-primary); }
.ie-support-agent s { text-decoration: none; font-size: 0.7rem; color: var(--ie-success); }

.ie-support-status { display: flex; gap: 0.35rem; height: 8px; }
.ie-support-status i {
  flex: 1;
  border-radius: 999px;
  background: rgba(81,54,133,0.15);
  display: block;
}
.ie-support-status i.mid { background: rgba(175,87,171,0.45); }
.ie-support-status i.hi { background: var(--ie-gradient); }

/* ---- Trust ---- */
.rx-trust {
  padding: 1.75rem 0;
  border-block: 1px solid rgba(81,54,133,0.1);
  background: rgba(255,255,255,0.55);
}

.rx-trust-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ie-muted);
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rx-partner {
  font-weight: 800;
  color: var(--ie-secondary);
  opacity: 0.55;
  white-space: nowrap;
  font-family: var(--ie-display);
  font-size: 1.05rem;
}

/* ---- Why — equal cards ---- */
.rx-why-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .rx-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .rx-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rx-why-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  padding: 1.5rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(81, 54, 133, 0.12);
  background: #fff;
  box-shadow: var(--ie-shadow);
  transition: transform var(--ie-transition), box-shadow var(--ie-transition), border-color var(--ie-transition);
}

.rx-why-card.t-1 { background: linear-gradient(165deg, #fff 0%, #F8F0FA 100%); }
.rx-why-card.t-2 { background: linear-gradient(165deg, #fff 0%, #F0ECF8 100%); }
.rx-why-card.t-3 { background: linear-gradient(165deg, #FBF5FC 0%, #fff 100%); }
.rx-why-card.t-4 { background: linear-gradient(165deg, #F4EFFA 0%, #fff 100%); }

.rx-why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ie-shadow-lg);
  border-color: rgba(175, 87, 171, 0.3);
}

.rx-why-card h3 {
  margin: 1rem 0 0.5rem;
  font-family: var(--ie-display);
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ie-primary);
}

.rx-why-card p {
  margin: 0;
  color: var(--ie-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

[data-theme="dark"] .rx-why-card {
  background: var(--ie-card);
}

/* ---- Bento (legacy / other) ---- */
.rx-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.rx-bento-hero {
  grid-column: span 12;
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(243,237,248,0.9));
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow-lg);
  overflow: hidden;
}

@media (min-width: 900px) {
  .rx-bento-hero {
    grid-column: span 7;
    grid-row: span 2;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.rx-bento-visual .ie-mock--security { max-width: 240px; margin-inline: auto; }

.rx-bento-tile {
  grid-column: span 12;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(81,54,133,0.12);
  background: #fff;
  box-shadow: var(--ie-shadow);
  transition: transform var(--ie-transition), box-shadow var(--ie-transition);
}

.rx-bento-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--ie-shadow-lg);
}

@media (min-width: 640px) {
  .rx-bento-tile { grid-column: span 6; }
}

@media (min-width: 900px) {
  .rx-bento-tile { grid-column: span 5; }
  .rx-bento-tile.t-1 { background: linear-gradient(160deg, #fff, #F8F0FA); }
  .rx-bento-tile.t-2 { background: linear-gradient(160deg, #fff, #F0ECF8); }
  .rx-bento-tile.t-3 { background: linear-gradient(160deg, #FBF5FC, #fff); }
  .rx-bento-tile.t-4 { background: linear-gradient(160deg, #F4EFFA, #fff); }
}

.rx-bento-tile h3,
.rx-bento-copy h3 {
  margin: 0.75rem 0 0.4rem;
  font-family: var(--ie-display);
  font-size: 1.1rem;
  color: var(--ie-primary);
}

.rx-bento-tile p,
.rx-bento-copy p {
  margin: 0;
  color: var(--ie-muted);
  font-size: 0.92rem;
}

/* Icons */
.rx-icon-glow {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ie-gradient);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 12px 28px rgba(175, 87, 171, 0.35);
}

.rx-icon-glow.sm { width: 44px; height: 44px; font-size: 1rem; border-radius: 14px; }
.rx-icon-glow.xs { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 12px; }

/* ---- Solutions showcase ---- */
.rx-showcases { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }

.rx-showcase {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rx-showcase {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .rx-showcase.is-flip .rx-showcase-visual { order: 2; }
  .rx-showcase.is-flip .rx-showcase-copy { order: 1; }
}

.rx-showcase-visual {
  position: relative;
  padding: 1.25rem;
}

.rx-showcase-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(175,87,171,0.35), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.rx-showcase-visual .ie-mock { position: relative; z-index: 1; }

.rx-showcase-copy .rx-index {
  font-family: var(--ie-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--ie-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.35;
}

.rx-showcase-copy h3 {
  margin: 0.75rem 0 0.65rem;
  font-family: var(--ie-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ie-primary);
}

.rx-showcase-copy p {
  color: var(--ie-muted);
  margin: 0 0 1.25rem;
  max-width: 42ch;
}

/* ---- Magazine services ---- */
.rx-magazine {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .rx-magazine {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }
}

.rx-magazine-art {
  margin-top: 1.5rem;
  position: sticky;
  top: calc(var(--ie-header-h) + 1rem);
}

.rx-mag-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(81,54,133,0.12);
  transition: padding var(--ie-transition), background var(--ie-transition);
}

.rx-mag-row:hover {
  padding-inline: 0.75rem;
  background: linear-gradient(90deg, rgba(175,87,171,0.06), transparent);
  border-radius: 14px;
}

.rx-mag-num {
  font-family: var(--ie-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ie-accent);
}

.rx-mag-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--ie-primary);
}

.rx-mag-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ie-muted);
}

.rx-mag-row > i {
  color: var(--ie-secondary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--ie-transition), transform var(--ie-transition);
}

body.rtl .rx-mag-row > i { transform: translateX(6px); }

.rx-mag-row:hover > i {
  opacity: 1;
  transform: none;
}

/* ---- Industries constellation ---- */
.rx-constellation {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rx-constellation {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.rx-industry-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.rx-industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(81,54,133,0.14);
  box-shadow: var(--ie-shadow);
  transition: transform var(--ie-transition), box-shadow var(--ie-transition);
}

.rx-industry-chip:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--ie-shadow-lg);
}

.rx-industry-chip strong {
  font-size: 0.9rem;
  color: var(--ie-primary);
}

/* ---- Impact stats ---- */
.rx-impact {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(175,87,171,0.45), transparent 50%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(81,54,133,0.55), transparent 50%),
    linear-gradient(135deg, #1A1230, #513685 55%, #AF57AB);
  color: #fff;
  overflow: hidden;
}

.rx-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .rx-impact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .rx-impact-grid { grid-template-columns: repeat(6, 1fr); }
}

.rx-impact-item {
  text-align: center;
  padding: 0.5rem;
}

.rx-impact-item strong {
  display: block;
  font-family: var(--ie-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.rx-impact-item span {
  opacity: 0.8;
  font-size: 0.88rem;
}

/* ---- Portfolio ---- */
.rx-portfolio {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .rx-portfolio {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.rx-port-feature {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow-lg);
}

.rx-port-media {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.rx-port-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.rx-port-feature:hover .rx-port-media img { transform: scale(1.06); }

.rx-port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,18,48,0.55));
}

.rx-port-body { padding: 1.5rem; }
.rx-port-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--ie-display);
  font-size: 1.4rem;
  color: var(--ie-primary);
}

.rx-port-body p { color: var(--ie-muted); margin: 0 0 1rem; }

.rx-port-stack { display: grid; gap: 1rem; }

.rx-port-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow);
  transition: transform var(--ie-transition);
}

.rx-port-card:hover { transform: translateX(4px); }
body.rtl .rx-port-card:hover { transform: translateX(-4px); }

.rx-port-card img {
  width: 110px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.rx-port-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--ie-primary);
}

.rx-port-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ie-muted);
}

.rx-port-fallback {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rx-port-card.tall {
  grid-template-columns: 1fr;
  padding: 1rem;
}

/* ---- AI section ---- */
.rx-ai {
  background:
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(175,87,171,0.15), transparent 50%),
    linear-gradient(180deg, #120C22, #1E1538);
  color: #F5F0FA;
}

.rx-ai .ie-title,
.rx-ai .ie-eyebrow { color: #F5F0FA; }
.rx-ai .ie-eyebrow { color: #E8A8E4; }
.rx-ai .ie-lead { color: #B7A9CC; }

.rx-ai-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rx-ai-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.rx-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 1.5rem;
}

.rx-tag {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(175,87,171,0.35);
  background: rgba(255,255,255,0.06);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform var(--ie-transition), background var(--ie-transition);
}

.rx-tag:hover {
  transform: translateY(-3px);
  background: rgba(175,87,171,0.25);
}

/* ---- Timeline ---- */
.rx-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.rx-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #AF57AB, #513685);
  opacity: 0.35;
}

@media (min-width: 900px) {
  .rx-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .rx-timeline::before {
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 22px;
    bottom: auto;
    height: 2px;
    width: auto;
  }
}

.rx-timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}

@media (min-width: 900px) {
  .rx-timeline-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0;
  }
}

.rx-timeline-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--ie-gradient);
  box-shadow: 0 10px 24px rgba(175,87,171,0.35);
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .rx-timeline-node { margin-inline: auto  auto; margin-bottom: 1rem; }
}

.rx-timeline-card {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow);
}

.rx-timeline-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ie-primary);
}

.rx-timeline-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ie-muted);
}

/* ---- Testimonials ---- */
.rx-quote-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .rx-quote-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

.rx-quote-feature blockquote {
  margin: 1.5rem 0 0;
  padding: 1.75rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), #F3EDF8);
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow-lg);
  position: relative;
}

.rx-quote-feature blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 1.25rem;
  font-size: 4rem;
  font-family: var(--ie-display);
  background: var(--ie-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.4;
  line-height: 1;
}

.rx-quote-feature blockquote p {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ie-primary);
  margin: 0 0 1.5rem;
  position: relative;
}

.rx-quote-feature footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rx-quote-feature footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.rx-quote-feature footer span {
  display: block;
  font-size: 0.85rem;
  color: var(--ie-muted);
}

.rx-quote-rail { display: grid; gap: 1rem; }

.rx-quote-mini {
  padding: 1.15rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow);
}

.rx-quote-mini p {
  margin: 0 0 0.85rem;
  color: var(--ie-muted);
  font-size: 0.9rem;
}

/* ---- Tech ---- */
.rx-tech-orbit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.rx-tech-node {
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ie-primary);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(81,54,133,0.14);
  box-shadow: var(--ie-shadow);
  transition: transform var(--ie-transition), color var(--ie-transition), border-color var(--ie-transition);
}

.rx-tech-node:hover {
  transform: translateY(-5px) rotate(-1deg);
  color: var(--ie-accent);
  border-color: rgba(175,87,171,0.4);
}

/* ---- Pricing ---- */
.rx-pricing {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.rx-price {
  position: relative;
  padding: 1.75rem 1.4rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--ie-transition);
}

.rx-price:hover { transform: translateY(-8px); }

.rx-price.is-featured {
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ie-gradient) border-box;
  border: 2px solid transparent;
  transform: scale(1.03);
  box-shadow: var(--ie-shadow-lg);
}

.rx-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--ie-gradient);
  color: #fff;
}

.rx-price h3 {
  margin: 0 0 0.35rem;
  font-family: var(--ie-display);
  color: var(--ie-primary);
}

.rx-price > p {
  margin: 0;
  color: var(--ie-muted);
  font-size: 0.9rem;
}

.rx-amount {
  font-family: var(--ie-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--ie-primary);
  margin: 1rem 0;
  line-height: 1.25;
}

.rx-price ul {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  flex: 1;
}

.rx-price li {
  position: relative;
  padding-inline-start: 1.2rem;
  color: var(--ie-muted);
  font-size: 0.9rem;
}

.rx-price li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--ie-success);
  font-weight: 800;
}

.rx-price .ie-btn { width: 100%; }

/* ---- FAQ ---- */
.rx-faq-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .rx-faq-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.rx-faq-visual .ie-mock { margin-bottom: 1.5rem; max-width: 360px; }

/* ---- Blog ---- */
.rx-blog {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .rx-blog {
    grid-template-columns: 1.25fr 0.85fr;
  }
}

.rx-blog-feature {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
  box-shadow: var(--ie-shadow);
}

.rx-blog-feature img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.rx-blog-feature > div { padding: 1.35rem; }
.rx-blog-feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--ie-display);
  font-size: 1.25rem;
}

.rx-blog-feature p { color: var(--ie-muted); margin: 0 0 0.75rem; }

.rx-blog-side { display: grid; gap: 1rem; }

.rx-blog-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(81,54,133,0.12);
}

.rx-blog-row img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.rx-blog-row h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.rx-blog-row p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ie-muted);
}

/* ---- CTA ---- */
.rx-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(ellipse 45% 70% at 90% 20%, rgba(175,87,171,0.4), transparent 50%),
    linear-gradient(135deg, #1A1230, #513685 50%, #AF57AB);
  color: #fff;
  overflow: hidden;
}

.rx-cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rx-cta-inner { grid-template-columns: 1.2fr 0.8fr; }
}

.rx-cta-copy h2 {
  font-family: var(--ie-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.rx-cta-copy p {
  margin: 0 0 1.5rem;
  opacity: 0.88;
  max-width: 46ch;
}

.rx-cta-art {
  justify-self: center;
  transform: rotate(6deg);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3));
}

.rx-cta .rx-hero-actions { margin-bottom: 0; }

/* Footer enrichment */
.rx-footer-top {
  border-bottom: 1px solid rgba(175, 87, 171, 0.18);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
}

.rx-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.rx-footer-cta h3 {
  margin: 0 0 0.35rem;
  font-family: var(--ie-display);
  font-size: 1.35rem;
  color: #fff;
}

.rx-footer-cta p {
  margin: 0;
  color: #B7A9CC;
  font-size: 0.92rem;
}

/* ---- Contact ---- */
.rx-contact {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .rx-contact {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.rx-contact-panel {
  display: grid;
  gap: 0.75rem;
}

.rx-contact-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #F8F5FC);
  border: 1px solid rgba(81,54,133,0.12);
  transition: transform var(--ie-transition), box-shadow var(--ie-transition);
}

.rx-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ie-shadow);
}

.rx-contact-card > i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ie-gradient);
  color: #fff;
  flex-shrink: 0;
}

.rx-contact-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ie-primary);
  margin-bottom: 0.2rem;
}

.rx-contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ie-muted);
}

.rx-form {
  border-radius: 24px !important;
  padding: 1.6rem !important;
}

/* Dark theme tweaks */
[data-theme="dark"] .rx-hero-glow {
  background:
    radial-gradient(ellipse 55% 50% at 85% 20%, rgba(175,87,171,0.25), transparent 55%),
    linear-gradient(165deg, #120C22, #1A1230);
}

[data-theme="dark"] .rx-bento-tile,
[data-theme="dark"] .rx-timeline-card,
[data-theme="dark"] .rx-price,
[data-theme="dark"] .rx-port-card,
[data-theme="dark"] .rx-quote-mini,
[data-theme="dark"] .rx-blog-row,
[data-theme="dark"] .rx-tech-node,
[data-theme="dark"] .rx-industry-chip,
[data-theme="dark"] .rx-contact-card,
[data-theme="dark"] .ie-mock {
  background: var(--ie-card);
}

[data-theme="dark"] .rx-ai {
  background: linear-gradient(180deg, #0A0614, #1A1230);
}

@media (max-width: 991px) {
  .rx-hero-stage { min-height: 360px; margin-top: 1rem; }
  .rx-float-layer.crm { width: 68%; bottom: 12%; }
  .rx-float-layer.phone { width: 110px; }
  .rx-chip.ai { top: -0.5rem; inset-inline-end: 0; }
}

@media (max-width: 640px) {
  .rx-hero-mini-stats { grid-template-columns: 1fr; max-width: none; }
  .rx-float-layer.crm { display: none; }
  .rx-live-metrics { inset-inline-start: 0; }
}

/* ---- Case study / project detail ---- */
.rx-case {
  padding: calc(var(--ie-header-h) + 1.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 50% 40% at 90% 8%, rgba(175, 87, 171, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 5% 60%, rgba(81, 54, 133, 0.07), transparent 50%),
    var(--ie-bg);
}

.rx-case-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--ie-muted);
}

.rx-case-crumb a {
  color: var(--ie-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ie-transition);
}

.rx-case-crumb a:hover { color: var(--ie-accent); }

.rx-case-crumb span:last-child {
  color: var(--ie-primary);
  font-weight: 600;
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rx-case-grid {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: start;
  grid-template-columns: 1fr;
  grid-template-areas:
    "intro"
    "visual"
    "details";
}

@media (min-width: 992px) {
  .rx-case-grid {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    grid-template-areas:
      "intro visual"
      "details visual";
    gap: 1.25rem 2.5rem;
  }
}

.rx-case-intro { grid-area: intro; }
.rx-case-visual { grid-area: visual; position: sticky; top: calc(var(--ie-header-h) + 1rem); }
.rx-case-details { grid-area: details; }

@media (max-width: 991px) {
  .rx-case-visual { position: static; }
}

.rx-case-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ie-secondary);
  background: var(--ie-gradient-soft);
  border: 1px solid var(--ie-border);
  margin-bottom: 0.85rem;
}

.rx-case-title {
  margin: 0;
  font-family: var(--ie-display);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ie-primary);
}

.rx-case-desc,
.rx-case-body {
  margin-bottom: 1.35rem;
}

.rx-case-desc > *:first-child,
.rx-case-body > *:first-child { margin-top: 0; }

.rx-case-desc > *:last-child,
.rx-case-body > *:last-child { margin-bottom: 0; }

.rx-prose {
  color: var(--ie-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.rx-prose p { margin: 0 0 0.9rem; }
.rx-prose ul,
.rx-prose ol { margin: 0 0 1rem; padding-inline-start: 1.2rem; }
.rx-prose li { margin-bottom: 0.35rem; }
.rx-prose a { color: var(--ie-accent); }
.rx-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ie-radius-sm);
}

.rx-case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--ie-radius-sm);
  background: linear-gradient(145deg, #fff, var(--ie-neutral-50));
  border: 1px solid var(--ie-border);
}

.rx-case-meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ie-muted);
}

.rx-case-meta dd {
  margin: 0;
  font-weight: 650;
  color: var(--ie-primary);
  font-size: 0.95rem;
}

.rx-case-block { margin-bottom: 1.4rem; }

.rx-case-h {
  margin: 0 0 0.75rem;
  font-family: var(--ie-display);
  font-size: 1.05rem;
  color: var(--ie-primary);
}

.rx-case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rx-case-chips li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ie-secondary);
  background: rgba(81, 54, 133, 0.08);
  border: 1px solid var(--ie-border);
}

.rx-case-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.rx-case-features li {
  position: relative;
  padding-inline-start: 1.55rem;
  color: var(--ie-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rx-case-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ie-gradient);
  box-shadow: 0 0 0 3px rgba(175, 87, 171, 0.15);
}

.rx-case-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0.5rem;
}

.rx-case-ctas .ie-btn i { margin-inline-end: 0.4rem; }

.rx-case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ie-border);
}

.rx-case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--ie-radius-sm);
  border: 1px solid var(--ie-border);
  background: var(--ie-card);
  text-decoration: none;
  color: inherit;
  transition: transform var(--ie-transition), box-shadow var(--ie-transition), border-color var(--ie-transition);
  min-width: 0;
}

.rx-case-nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--ie-shadow);
  border-color: rgba(175, 87, 171, 0.35);
}

.rx-case-nav-link--next { text-align: end; }

.rx-case-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ie-muted);
}

.rx-case-nav-link strong {
  font-size: 0.92rem;
  color: var(--ie-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Browser mockup + gallery */
.rx-case-browser {
  border-radius: 22px;
  overflow: hidden;
  background: var(--ie-card);
  border: 1px solid var(--ie-border);
  box-shadow: var(--ie-shadow-lg);
}

.rx-case-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(90deg, rgba(81, 54, 133, 0.08), rgba(175, 87, 171, 0.08));
  border-bottom: 1px solid rgba(81, 54, 133, 0.1);
}

.rx-case-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E4D9EF;
}

.rx-case-chrome span:nth-child(1) { background: #F87171; }
.rx-case-chrome span:nth-child(2) { background: #FBBF24; }
.rx-case-chrome span:nth-child(3) { background: #34D399; }

.rx-case-chrome em {
  margin-inline-start: auto;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ie-gradient);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rx-case-stage {
  position: relative;
  overflow: hidden;
  background: #1A1230;
  touch-action: pan-y;
  aspect-ratio: 16 / 10;
  direction: ltr;
}

.rx-case-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.rx-case-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  height: 100%;
}

.rx-case-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.rx-case-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-case-zoom:hover img,
.rx-case-zoom:focus-visible img {
  transform: scale(1.05);
}

.rx-case-thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.rx-case-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ie-card);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--ie-transition), border-color var(--ie-transition), transform var(--ie-transition);
}

.rx-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rx-case-thumb.is-active,
.rx-case-thumb:hover {
  opacity: 1;
  border-color: var(--ie-accent);
  transform: translateY(-1px);
}

.rx-case-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.rx-case-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(81, 54, 133, 0.25);
  cursor: pointer;
  transition: transform var(--ie-transition), background var(--ie-transition), width var(--ie-transition);
}

.rx-case-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--ie-gradient);
}

/* Lightbox */
.rx-case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(18, 12, 34, 0.88);
  backdrop-filter: blur(10px);
}

.rx-case-lightbox[hidden] { display: none !important; }

.rx-case-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.rx-case-lightbox-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ie-transition), transform var(--ie-transition);
}

.rx-case-lightbox-close:hover {
  background: var(--ie-accent);
  transform: scale(1.05);
}

/* Related */
.rx-case-related {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ie-border);
}

.rx-case-related-head {
  margin-bottom: 1.35rem;
}

.rx-case-card {
  transition: transform var(--ie-transition), box-shadow var(--ie-transition);
}

.rx-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ie-shadow-lg);
}

.rx-case-card-media {
  display: block;
  overflow: hidden;
}

.rx-case-card .ie-dash-badge {
  margin-bottom: 0.45rem;
  display: inline-block;
}

[data-theme="dark"] .rx-case-meta,
[data-theme="dark"] .rx-case-browser,
[data-theme="dark"] .rx-case-nav-link,
[data-theme="dark"] .rx-case-thumb {
  background: var(--ie-card);
}

[data-theme="dark"] .rx-case-stage {
  background: #0A0614;
}

@media (max-width: 640px) {
  .rx-case-nav { grid-template-columns: 1fr; }
  .rx-case-nav-link--next { text-align: start; }
  .rx-case-thumb { width: 64px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .rx-case-track,
  .rx-case-zoom img,
  .rx-case-nav-link,
  .rx-case-card {
    transition: none;
  }
}
