/* ==========================================================================
   McCoy IQ Page (B2B) - Light Theme
   Design inspired by seline.so: clean, white, professional SaaS
   Minimalist with plenty of whitespace, subtle borders, calm & structured
   ========================================================================== */

/* --- Page Base (Light Theme Override) --- */
.iq-page {
  background: #fafaf9;
  color: var(--iq-dark-gray);
}


/* --- Hero --- */
.iq-hero {
  padding: 160px 0 100px;
  background: #ffffff;
  text-align: center;
}

.iq-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-hero__headline {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--iq-dark-gray);
  margin-bottom: 24px;
}

.iq-hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lavender-purple), var(--azure-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.iq-hero__body {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(42, 44, 52, 0.7);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.iq-hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.iq-hero__legal {
  font-size: 13px;
  color: var(--iq-gray);
}

.iq-hero__legal a {
  text-decoration: underline;
  color: var(--iq-gray);
}

/* Hero visual placeholder */
.iq-hero__visual {
  max-width: var(--container-max);
  margin: 60px auto 0;
  padding: 0 var(--container-padding);
}

.iq-hero__visual-inner {
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* --- Problem Section --- */
.iq-problem {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-problem__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iq-problem__text {
  max-width: 520px;
}

.iq-problem__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 20px;
}

.iq-problem__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-problem__visual {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--iq-gray);
  font-size: 14px;
}

/* --- Core Idea (3 callout boxes + teaser) --- */
.iq-core {
  padding: 120px 0;
  background: #ffffff;
}

.iq-core__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-core__header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.iq-core__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 16px;
}

.iq-core__sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-core__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.iq-core__card {
  background: #fafaf9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.iq-core__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.iq-core__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(128, 53, 202, 0.1), rgba(65, 179, 217, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.iq-core__card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--lavender-purple);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iq-core__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--iq-dark-gray);
  margin-bottom: 10px;
}

.iq-core__card-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(42, 44, 52, 0.65);
}

/* Challenge page preview image */
.iq-core__preview {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.iq-core__preview-img {
  max-width: 100%;
  width: 800px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* Card composite: shell PNG floats over autoplay video */
.iq-core__card-composite {
  position: relative;
  width: 800px;
  max-width: 100%;
  cursor: pointer;
}

.iq-core__card-shell {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.iq-core__card-video {
  position: absolute;
  left: 6%;
  top: 17%;
  width: 35%;
  height: 70%;
  object-fit: cover;
  z-index: 0;
}

/* Video placeholder spinner */
@keyframes lazy-spin {
  to { transform: rotate(360deg); }
}
.video-lazy-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(128, 53, 202, 0.06) 0%, rgba(65, 179, 217, 0.06) 100%);
}
.video-lazy-spinner::after {
  content: '';
  width: 22px;
  height: 22px;
  border: 2px solid rgba(128, 53, 202, 0.2);
  border-top-color: #8035CA;
  border-radius: 50%;
  animation: lazy-spin 0.75s linear infinite;
}
.video-lazy-spinner.hidden {
  display: none;
}
/* Hero card: full-cover */
.iq-hero-card video + .video-lazy-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Card-composite slot: match video's absolute position */
.iq-core__card-video + .video-lazy-spinner {
  position: absolute;
  left: 6%;
  top: 17%;
  width: 35%;
  height: 70%;
  z-index: 0;
  border-radius: 4px;
}
/* iqrm full-cover */
#iqrm-vid-el + .video-lazy-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Candidate teleprompter phone: full-cover */
.iq2p-tp-video + .video-lazy-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 3-column grid (no teaser) */
.iq-core__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* --- How It Works (Timeline) --- */
.iq-how {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-how__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-how__header {
  text-align: center;
  margin-bottom: 72px;
}

.iq-how__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 12px;
}

/* --- Review Experience --- */
.iq-review {
  padding: 120px 0;
  background: #ffffff;
}

.iq-review__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iq-review__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 20px;
}

.iq-review__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-review__visual {
  height: auto;
  font-family: 'Inter', sans-serif;
}

/* === Responses Layered Mockup === */
.iq-rm { position: relative; font-family: 'Inter', sans-serif; display: flex; min-height: 520px; overflow: hidden; }

/* Layer 1: Mudbrick challenge card (background, decorative) */
.iq-rm__mudbrick {
  position: absolute;
  bottom: -15px;
  left: -10px;
  width: 300px;
  height: 240px;
  opacity: 0.45;
  transform: rotate(-10deg);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.iq-rm__mudbrick-img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 160%;
  max-width: none;
  display: block;
}

/* Layer 2: Foreground — table + video panel */
.iq-rm__foreground {
  flex: 1;
  display: flex;
  position: relative;
  z-index: 2;
  margin-left: 55px;
  margin-bottom: 20px;
  gap: 0;
}

/* Responses table card */
.iq-rm__table-card {
  width: 50%;
  flex-shrink: 0;
  background: white;
  padding: 24px 20px;
  position: relative;
  border-right: 1px solid #f0f0f0;
  z-index: 2;
}
.iq-rm__table-title { font-size: 24px; font-weight: 300; color: #1a1a2e; margin-bottom: 16px; letter-spacing: -0.3px; }
.iq-rm__table { width: 100%; }
.iq-rm__cols { display: grid; grid-template-columns: 32px 1fr 1.4fr 64px; gap: 8px; padding: 6px 4px; font-size: 9px; font-weight: 600; color: #bbb; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #eee; margin-bottom: 2px; }
.iq-rm__row { display: grid; grid-template-columns: 32px 1fr 1.4fr 64px; gap: 8px; padding: 8px 4px; align-items: center; border-bottom: 1px solid #f5f5f5; transition: background 0.3s ease; cursor: pointer; position: relative; }
.iq-rm__row.active { background: rgba(124, 58, 237, 0.06); }
.iq-rm__row.active .iq-rm__row-link { color: #7c3aed; font-weight: 500; }
.iq-rm__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #e8e0d8, #d0c8c0); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #888; flex-shrink: 0; }
.iq-rm__row-name { font-size: 12px; font-weight: 500; color: #1a1a2e; }
.iq-rm__row-link { font-size: 11px; color: #999; transition: color 0.3s; }
.iq-rm__row-time { font-size: 10px; color: #bbb; text-align: right; }

/* Animated cursor */
.iq-rm__cursor {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1), left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  will-change: top, left, transform;
}
.iq-rm__cursor.click {
  animation: cursorClick 0.25s ease;
}
@keyframes cursorClick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.75); }
}

/* Video response panel */
.iq-rm__vidpanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  min-width: 0;
  transition: opacity 0.25s ease;
}
.iq-rm__vidpanel.fading { opacity: 0; }
.iq-rm__vp-bar {
  padding: 10px 14px;
  font-size: 11px;
  color: #666;
  background: white;
  border-bottom: 1px solid #eee;
}
.iq-rm__vp-bar strong { color: #1a1a2e; }
.iq-rm__vp-label {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f3ff;
  border-bottom: 1px solid #ede9fe;
}
.iq-rm__vp-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #e8e0d8, #d0c8c0); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #777; flex-shrink: 0; }
.iq-rm__vp-sub { font-size: 10px; color: #888; display: block; }
.iq-rm__vp-label strong { font-size: 14px; color: #1a1a2e; }

/* Video area — hero size */
.iq-rm__vp-video {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.iq-rm__vp-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Person animation scene */
.iq-rm__person-scene { width: 100%; height: 100%; position: absolute; inset: 0; background: linear-gradient(180deg, #e8ebe0, #d0cfc8); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.iq-rm__bg-blur { position: absolute; border-radius: 50%; filter: blur(20px); opacity: 0.4; }
.iq-rm__bg-blur--1 { width: 200px; height: 200px; background: #c8d4e0; top: -40px; left: -40px; }
.iq-rm__bg-blur--2 { width: 140px; height: 140px; background: #e0d8c8; top: 40px; right: -20px; }
.iq-rm__person { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 320px; animation: iqRmSway 4s ease-in-out infinite; }
@keyframes iqRmSway { 0%, 100% { transform: translateX(-50%) rotate(0deg); } 30% { transform: translateX(-50%) rotate(0.3deg); } 70% { transform: translateX(-50%) rotate(-0.3deg); } }
.iq-rm__torso { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 160px; height: 170px; background: linear-gradient(160deg, #c8b8a8, #b8a898); border-radius: 80px 80px 0 0; }
.iq-rm__torso::after { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 38px; height: 80px; background: #f0ede6; clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%); }
.iq-rm__neck { position: absolute; bottom: 155px; left: 50%; transform: translateX(-50%); width: 28px; height: 24px; background: linear-gradient(160deg, #d4956c, #c47a55); border-radius: 5px 5px 0 0; }
.iq-rm__head { position: absolute; bottom: 172px; left: 50%; transform: translateX(-50%); width: 84px; height: 98px; background: linear-gradient(160deg, #e8b08a, #d4956c); border-radius: 50% 50% 46% 46%; animation: iqRmNod 3.5s ease-in-out infinite; transform-origin: bottom center; }
@keyframes iqRmNod { 0%, 100% { transform: translateX(-50%) rotate(-0.5deg); } 25% { transform: translateX(-50%) rotate(1deg) translateY(-1px); } 60% { transform: translateX(-50%) rotate(-1deg); } 80% { transform: translateX(-50%) rotate(0.5deg) translateY(-1px); } }
.iq-rm__head::before { content: ''; position: absolute; top: -7px; left: 5px; right: 5px; height: 42px; background: #1a1008; border-radius: 50% 50% 0 0; }
.iq-rm__eyes { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; }
.iq-rm__eye { width: 7px; height: 7px; background: #2d1a0e; border-radius: 50%; animation: iqRmBlink 5s ease-in-out infinite; }
@keyframes iqRmBlink { 0%, 94%, 100% { transform: scaleY(1); } 96%, 98% { transform: scaleY(0.1); } }
.iq-rm__mouth { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 30px; height: 12px; overflow: hidden; }
.iq-rm__mouth-shape { width: 30px; height: 18px; border-radius: 0 0 15px 15px; background: #8b3a2a; animation: iqRmSpeak 0.4s ease-in-out infinite alternate; transform-origin: top; }
@keyframes iqRmSpeak { 0% { transform: scaleY(0.15); } 100% { transform: scaleY(1); } }
.iq-rm__hand { position: absolute; right: 8px; bottom: 125px; width: 34px; height: 46px; background: linear-gradient(160deg, #e8b08a, #d4956c); border-radius: 50% 50% 40% 40%; animation: iqRmHand 2.8s ease-in-out infinite; transform-origin: bottom center; }
@keyframes iqRmHand { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(15deg) translateY(-10px); } }

/* Challenge question overlay on video */
.iq-rm__vp-question {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  padding: 10px 14px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 10px;
  line-height: 1.5;
  backdrop-filter: blur(4px);
}

/* Video controls bar */
.iq-rm__vp-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5px 10px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}
.iq-rm__play { width: 16px; height: 16px; border-radius: 50%; background: white; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.iq-rm__play::after { content: ''; width: 0; height: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 5px solid #1e1b4b; margin-left: 1px; }
.iq-rm__vid-time { font-size: 9px; color: rgba(255,255,255,0.8); white-space: nowrap; }
.iq-rm__progress { flex: 1; height: 2px; background: rgba(255,255,255,0.25); border-radius: 2px; overflow: hidden; }
.iq-rm__progress-fill { height: 100%; background: #7c3aed; border-radius: 2px; animation: iqRmProgress 7s linear infinite; }
@keyframes iqRmProgress { 0% { width: 0; } 100% { width: 100%; } }

/* --- Use Cases --- */
.iq-usecases {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-usecases__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-usecases__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 48px;
  text-align: center;
}

.iq-usecases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.iq-usecase {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.iq-usecase:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.iq-usecase__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender-purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.iq-usecase__body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

/* Challenge page thumbnails */
.iq-usecases__thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.iq-usecases__thumb {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.iq-usecases__thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.iq-usecases__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Composite card inside a thumbnail (Excel with shell + video) */
.iq-usecases__thumb .iq-core__card-composite {
  width: 100%;
  cursor: pointer;
}

.iq-usecases__thumb .iq-core__card-shell {
  box-shadow: none; /* thumbnail already has shadow */
  border-radius: 0; /* thumbnail's overflow:hidden + border-radius handles clipping */
}

/* --- Candidate Experience --- */
.iq-candidate {
  padding: 120px 0;
  background: #ffffff;
}

.iq-candidate__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iq-candidate__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 20px;
}

.iq-candidate__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-candidate__visual {
  height: auto;
  border-radius: var(--border-radius-lg);
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--iq-gray);
  font-size: 14px;
  gap: 8px;
}

.iq-candidate__stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--lavender-purple);
  margin-top: 8px;
}

/* --- Pricing --- */
.iq-pricing {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-pricing__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-pricing__header {
  text-align: center;
  margin-bottom: 48px;
}

.iq-pricing__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 12px;
}

/* --- Pricing Toggle (pill style) --- */
.iq-pricing .v2-pricing-toggle__pill {
  display: inline-flex;
  background: #eeeef0;
  border-radius: 50px;
  padding: 4px;
}

.iq-pricing .v2-pricing-toggle__option {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--iq-dark-gray);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}

.iq-pricing .v2-pricing-toggle__option.active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.iq-pricing .v2-pricing-toggle__option:hover:not(.active) {
  color: var(--lavender-purple);
}

/* --- FAQ (IQ-specific light theme overrides) --- */
.iq-faq {
  padding: 120px 0;
  background: #ffffff;
}

.iq-faq__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-faq__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender-purple);
  margin-bottom: 12px;
  border: 1.5px solid var(--lavender-purple);
  border-radius: 20px;
  display: inline-block;
  padding: 6px 16px;
}

.iq-faq__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 0;
}

.iq-faq .v2-faq__item {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.iq-faq .v2-faq__question {
  color: var(--iq-dark-gray);
}

.iq-faq .v2-faq__icon {
  color: var(--iq-gray);
}

.iq-faq .v2-faq__answer-inner {
  color: rgba(42, 44, 52, 0.7);
}

/* --- Responsive (Tablet) --- */
@media (max-width: 1280px) {
  .iq-problem__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .iq-core__grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .iq-candidate__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .iq-pricing__inner .v2-pricing-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .iq-problem__headline,
  .iq-core__headline,
  .iq-how__headline,
  .iq-review__headline,
  .iq-usecases__headline,
  .iq-candidate__headline,
  .iq-pricing__headline,
  .iq-faq__headline {
    font-size: 36px;
  }
}

/* --- Responsive (Mobile) --- */
@media (max-width: 800px) {
  .iq-hero {
    padding: 120px 0 80px;
  }

  .iq-hero__headline {
    font-size: 38px;
  }

  .iq-hero__body {
    font-size: 17px;
  }

  .iq-hero__visual-inner {
    height: 320px;
  }

  .iq-problem__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iq-problem__headline,
  .iq-core__headline,
  .iq-how__headline,
  .iq-review__headline,
  .iq-usecases__headline,
  .iq-candidate__headline,
  .iq-pricing__headline,
  .iq-faq__headline {
    font-size: 32px;
  }

  .iq-core__grid {
    grid-template-columns: 1fr;
  }

  .iq-core__grid--3col {
    grid-template-columns: 1fr;
  }

  .iq-review__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iq-usecases__grid {
    grid-template-columns: 1fr;
  }

  .iq-usecases__thumbnails {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .iq-candidate__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iq-problem__visual {
    height: 250px;
  }

  .iq-rm { flex-direction: column; min-height: auto; }
  .iq-rm__mudbrick {
    display: block;
    width: 160px;
    height: 120px;
    top: -20px;
    left: -30px;
    bottom: auto;
    opacity: 0.3;
    transform: rotate(-12deg);
    filter: blur(3px);
  }
  .iq-rm__foreground { flex-direction: column; margin-left: 0; margin-bottom: 0; margin-top: 25px; }
  .iq-rm__table-card { width: 100%; }
  .iq-rm__vidpanel { min-height: 280px; }
  .iq-rm__vp-video { min-height: 240px; }

  .iq-pricing__inner .v2-pricing-grid--4col {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .iq-pricing__inner .v2-pricing-enterprise {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    max-width: 400px;
    margin: 20px auto 0;
  }

  .iq-pricing__inner .v2-pricing-enterprise__info {
    flex: none;
  }
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */

/* Dot grid — inside scene, z-index 1 so cards (z-index 5) overlap it */
.iq-hero-dot-grid {
  position: absolute;
  left: -10px;
  top: 0px;
  display: grid;
  grid-template-columns: repeat(10, 6px);
  gap: 20px;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
}

.iq-hero-dot-grid span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 130, 246, 0.65);
}

/* Scene */
.iq-hero-scene {
  position: relative;
  width: 700px;
  height: 520px;
  flex-shrink: 0;
  z-index: 1;
}

/* Cards — all same base size, positioned via transform only (compositor-accelerated) */
.iq-hero-card {
  position: absolute;
  width: 240px;
  height: 300px;
  left: 50%;
  top: 50%;
  margin-left: -120px;
  margin-top: -150px;
  border-radius: 22px;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Center position */
.iq-hero-card[data-pos="center"] {
  transform: translate(0, 0) scale(1);
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

/* Elevated after transition completes */
.iq-hero-card.elevated {
  z-index: 10;
}

/* Satellite positions — translate to offset from scene center, then scale down */
.iq-hero-card[data-pos="left-top"] {
  transform: translate(-235px, -140px) scale(0.46) rotate(-2deg);
  z-index: 5;
}

.iq-hero-card[data-pos="left-bottom"] {
  transform: translate(-250px, 90px) scale(0.5) rotate(1deg);
  z-index: 5;
}

.iq-hero-card[data-pos="right-top"] {
  transform: translate(218px, -155px) scale(0.48) rotate(2deg);
  z-index: 5;
}

.iq-hero-card[data-pos="right-mid"] {
  transform: translate(252px, 10px) scale(0.46) rotate(-1deg);
  z-index: 5;
}

.iq-hero-card[data-pos="left-mid"] {
  transform: translate(208px, 155px) scale(0.44) rotate(2deg);
  z-index: 5;
}

/* Video fill */
.iq-hero-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

/* Pulsing ring on center card */
@keyframes iq-hero-pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.06); opacity: 0; }
}

.iq-hero-card[data-pos="center"]::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  border: 2.5px solid rgba(139, 130, 246, 0.6);
  animation: iq-hero-pulse-ring 1.8s ease-out infinite;
  pointer-events: none;
  z-index: 11;
}

/* Badge */
.iq-hero-card__badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 12;
}

.iq-hero-card[data-pos="center"] .iq-hero-card__badge {
  opacity: 1;
}

/* Talking wave */
.iq-hero-card__talking-wave {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 12;
}

.iq-hero-card[data-pos="center"] .iq-hero-card__talking-wave {
  opacity: 1;
}

@keyframes iq-hero-wave-bar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

.iq-hero-card__talking-wave span {
  display: block;
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: iq-hero-wave-bar 0.8s ease-in-out infinite;
}

.iq-hero-card__talking-wave span:nth-child(1) { animation-delay: 0s; }
.iq-hero-card__talking-wave span:nth-child(2) { animation-delay: 0.1s; }
.iq-hero-card__talking-wave span:nth-child(3) { animation-delay: 0.2s; }
.iq-hero-card__talking-wave span:nth-child(4) { animation-delay: 0.3s; }
.iq-hero-card__talking-wave span:nth-child(5) { animation-delay: 0.4s; }


/* Mobile */
@media (max-width: 768px) {
  .iq-hero-scene {
    transform: scale(0.55);
    transform-origin: center center;
  }
}
