:root {
  --lab-bg: #020710;
  --lab-bg-soft: #06101d;
  --lab-panel: rgba(8, 19, 33, .82);
  --lab-panel-strong: #0a1727;
  --lab-line: rgba(123, 181, 222, .16);
  --lab-line-bright: rgba(55, 220, 255, .5);
  --lab-text: #f5f9fc;
  --lab-muted: #93a5b9;
  --lab-cyan: #2adfff;
  --lab-teal: #4ff0d1;
  --lab-amber: #ffb35c;
  --lab-orange: #ff8057;
  --lab-radius: 28px;
}

html { scroll-padding-top: 148px; }
.ai-lab-page { color: var(--lab-text); background: var(--lab-bg); }
.ai-lab-page-en { font-family: Inter, Vazirmatn, sans-serif; }
.ai-lab-page .section { padding-block: clamp(90px, 10vw, 150px); }
.ai-lab-page .section-kicker { color: var(--lab-teal); }
.ai-lab-page .section-heading { max-width: 820px; }
.ai-lab-page .section-heading h2,
.lab-premise-copy h2,
.lab-scanner-heading h2,
.lab-matrix-copy h2,
.lab-journey-heading h2,
.lab-gate-copy h2,
.lab-deliverable-copy h2,
.lab-faq-copy h2 {
  margin: 12px 0 20px;
  color: #fff;
  font-size: clamp(2.25rem, 4.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.052em;
}
.ai-lab-page-fa .section-heading h2,
.ai-lab-page-fa .lab-premise-copy h2,
.ai-lab-page-fa .lab-scanner-heading h2,
.ai-lab-page-fa .lab-matrix-copy h2,
.ai-lab-page-fa .lab-journey-heading h2,
.ai-lab-page-fa .lab-gate-copy h2,
.ai-lab-page-fa .lab-deliverable-copy h2,
.ai-lab-page-fa .lab-faq-copy h2 { line-height: 1.28; letter-spacing: -.035em; }
.ai-lab-page .section-heading p,
.lab-premise-copy > p,
.lab-scanner-heading > p,
.lab-matrix-copy > p,
.lab-journey-heading > p,
.lab-gate-copy > p,
.lab-deliverable-copy > p,
.lab-faq-copy > p { margin: 0; color: var(--lab-muted); line-height: 1.95; }

/* Hero */
.lab-hero {
  position: relative;
  min-height: 930px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #01050c;
}
.lab-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(83, 160, 210, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 160, 210, .055) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  content: "";
}
.lab-hero::after {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 5%;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(39, 196, 255, .08);
  filter: blur(100px);
  pointer-events: none;
  content: "";
}
.lab-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.lab-hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #01050c 2%, rgba(1, 5, 12, .97) 28%, rgba(1, 5, 12, .45) 61%, rgba(1, 5, 12, .08)),
    linear-gradient(0deg, #020710 0%, transparent 28%, rgba(1, 5, 12, .05));
  content: "";
}
[dir="rtl"] .lab-hero-media::after {
  background:
    linear-gradient(270deg, #01050c 2%, rgba(1, 5, 12, .97) 28%, rgba(1, 5, 12, .45) 61%, rgba(1, 5, 12, .08)),
    linear-gradient(0deg, #020710 0%, transparent 28%, rgba(1, 5, 12, .05));
}
.lab-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translate3d(var(--lab-x, 0), var(--lab-y, 0), 0) scale(1.035);
  transition: transform .25s ease-out;
}
[dir="rtl"] .lab-hero-media img { transform: translate3d(var(--lab-x, 0), var(--lab-y, 0), 0) scale(1.035) scaleX(-1); }
.lab-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  padding-top: 90px;
}
.lab-hero-copy { max-width: 730px; padding-block: 72px; }
.lab-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 22px;
  color: #b2c5d7;
  font: 750 .65rem/1 Inter, sans-serif;
  letter-spacing: .17em;
}
.lab-signature i { width: 35px; height: 1px; background: linear-gradient(90deg, var(--lab-amber), var(--lab-cyan)); }
.lab-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lab-teal);
  box-shadow: 0 0 0 6px rgba(79, 240, 209, .09), 0 0 20px rgba(79, 240, 209, .75);
  animation: lab-pulse 2s ease-in-out infinite;
}
.lab-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.25rem, 6.1vw, 6.3rem);
  line-height: .98;
  letter-spacing: -.072em;
}
.ai-lab-page-fa .lab-hero h1 { font-size: clamp(3.15rem, 5.8vw, 5.9rem); line-height: 1.16; letter-spacing: -.05em; }
.lab-hero h1 em { color: transparent; background: linear-gradient(115deg, #fff 5%, #72ecff 45%, #ffc06d 95%); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.lab-hero-lead { max-width: 660px; margin: 28px 0 0; color: #a9b9ca; font-size: 1.05rem; line-height: 2; }
.lab-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lab-hero-actions .button { min-height: 52px; padding-inline: 23px; }
.lab-hero-proof { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.lab-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bac7d6;
  font-size: .76rem;
}
.lab-hero-proof span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--lab-cyan); box-shadow: 0 0 10px var(--lab-cyan); content: ""; }
.lab-hero-index {
  align-self: end;
  justify-self: end;
  width: min(100%, 410px);
  margin-block-end: 44px;
  border: 1px solid rgba(115, 183, 225, .18);
  border-radius: 21px;
  background: rgba(4, 12, 21, .53);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .25);
  backdrop-filter: blur(15px);
  overflow: hidden;
}
.lab-index-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--lab-line); color: #d6e3ef; font: 750 .64rem/1.2 Inter, sans-serif; letter-spacing: .14em; }
.lab-index-head span:last-child { color: var(--lab-teal); }
.lab-index-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.lab-index-step { position: relative; min-height: 105px; padding: 20px 16px; border-inline-end: 1px solid var(--lab-line); }
.lab-index-step:last-child { border-inline-end: 0; }
.lab-index-step small { display: block; color: var(--lab-amber); font: 750 .6rem/1 Inter, sans-serif; letter-spacing: .12em; }
.lab-index-step strong { display: block; margin-top: 12px; color: #fff; font-size: .83rem; line-height: 1.55; }
.lab-index-step::after { position: absolute; inset-inline: 16px; inset-block-end: 13px; height: 2px; border-radius: 9px; background: linear-gradient(90deg, var(--lab-cyan), var(--lab-amber)); opacity: .55; content: ""; }
.lab-scroll-cue { position: absolute; inset-inline-start: 50%; inset-block-end: 25px; z-index: 3; display: grid; justify-items: center; gap: 7px; color: #6d8196; font: 700 .57rem/1 Inter, sans-serif; letter-spacing: .15em; transform: translateX(-50%); }
[dir="rtl"] .lab-scroll-cue { transform: translateX(50%); }
.lab-scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--lab-cyan), transparent); animation: lab-scroll 1.8s ease-in-out infinite; }

/* Section rail */
.lab-section-rail {
  position: sticky;
  inset-block-start: 78px;
  z-index: 900;
  border-block: 1px solid rgba(116, 167, 206, .13);
  background: rgba(2, 9, 17, .86);
  backdrop-filter: blur(18px);
}
.lab-section-rail .container { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.lab-section-rail .container::-webkit-scrollbar { display: none; }
.lab-section-rail a { position: relative; min-width: max-content; padding: 18px 18px 16px; color: #788ca0; font-size: .72rem; font-weight: 750; transition: color .2s ease; }
.lab-section-rail a::after { position: absolute; inset-inline: 18px; inset-block-end: -1px; height: 2px; border-radius: 4px; background: linear-gradient(90deg, var(--lab-cyan), var(--lab-amber)); transform: scaleX(0); transition: transform .2s ease; content: ""; }
.lab-section-rail a:hover,
.lab-section-rail a.is-active { color: #eefaff; }
.lab-section-rail a.is-active::after { transform: scaleX(1); }

/* Premise */
.lab-premise { position: relative; background: linear-gradient(180deg, #020710, #050c15); }
.lab-premise::before { position: absolute; inset-block-start: 12%; inset-inline-end: 0; width: 42%; height: 65%; background: radial-gradient(circle, rgba(45, 220, 255, .09), transparent 66%); pointer-events: none; content: ""; }
.lab-premise-grid { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(55px, 8vw, 115px); align-items: center; }
.lab-premise-copy { position: sticky; inset-block-start: 175px; align-self: start; }
.lab-premise-copy blockquote { margin: 34px 0 0; padding: 21px 0; border-block: 1px solid var(--lab-line); color: #dbe8f2; font-size: 1.05rem; line-height: 1.9; }
.lab-premise-copy blockquote strong { color: var(--lab-amber); }
.lab-diagnostic-stack { display: grid; gap: 16px; }
.lab-diagnostic-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 19px;
  align-items: center;
  min-height: 150px;
  padding: 25px;
  border: 1px solid var(--lab-line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(12, 29, 47, .85), rgba(5, 15, 27, .72));
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.lab-diagnostic-card:hover { border-color: rgba(48, 215, 255, .4); transform: translateY(-3px); }
.lab-diagnostic-card::before { position: absolute; inset-inline-start: 0; inset-block: 25px; width: 2px; background: linear-gradient(var(--lab-cyan), var(--lab-amber)); content: ""; }
.lab-diagnostic-card > span { color: #62798d; font: 700 .68rem/1 Inter, sans-serif; letter-spacing: .12em; }
.lab-diagnostic-card i { width: 51px; height: 51px; display: grid; place-items: center; border: 1px solid rgba(47, 213, 255, .28); border-radius: 15px; color: var(--lab-cyan); background: rgba(39, 196, 255, .07); }
.lab-diagnostic-card i .icon { width: 24px; height: 24px; }
.lab-diagnostic-card h3 { margin: 0 0 7px; font-size: 1.08rem; }
.lab-diagnostic-card p { margin: 0; color: var(--lab-muted); font-size: .84rem; line-height: 1.8; }
.lab-diagnostic-card b { align-self: start; padding: 7px 9px; border: 1px solid rgba(255, 179, 92, .2); border-radius: 8px; color: var(--lab-amber); font: 700 .58rem/1 Inter, sans-serif; letter-spacing: .1em; }

/* Scanner */
.lab-scanner { background: #07101a; }
.lab-scanner-top { display: grid; grid-template-columns: .95fr 1.05fr; gap: 65px; align-items: end; margin-bottom: 55px; }
.lab-scanner-note { padding: 22px 24px; border-inline-start: 2px solid var(--lab-amber); color: #c9d5e0; background: rgba(255, 179, 92, .055); font-size: .88rem; line-height: 1.9; }
.lab-scanner-shell { border: 1px solid var(--lab-line); border-radius: 30px; background: rgba(4, 12, 22, .78); box-shadow: 0 38px 90px rgba(0, 0, 0, .25); overflow: hidden; }
.lab-tablist { display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px; border-bottom: 1px solid var(--lab-line); background: rgba(10, 24, 39, .7); }
.lab-tab {
  position: relative;
  min-height: 100px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 0;
  border-inline-end: 1px solid var(--lab-line);
  color: #8296a9;
  background: transparent;
  cursor: pointer;
  text-align: start;
  transition: color .2s ease, background .2s ease;
}
.lab-tab:last-child { border-inline-end: 0; }
.lab-tab::after { position: absolute; inset-inline: 13px; inset-block-end: 0; height: 2px; border-radius: 5px; background: linear-gradient(90deg, var(--lab-cyan), var(--lab-amber)); transform: scaleX(0); transition: transform .2s ease; content: ""; }
.lab-tab:hover { color: #dce9f3; background: rgba(33, 144, 187, .05); }
.lab-tab[aria-selected="true"] { color: #fff; background: rgba(29, 159, 204, .09); }
.lab-tab[aria-selected="true"]::after { transform: scaleX(1); }
.lab-tab i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 12px; color: var(--lab-cyan); opacity: .8; }
.lab-tab .icon { width: 19px; height: 19px; }
.lab-tab small { display: block; margin-bottom: 8px; color: var(--lab-amber); font: 700 .54rem/1 Inter, sans-serif; letter-spacing: .1em; }
.lab-tab strong { display: block; font-size: .8rem; line-height: 1.55; }
.lab-panel { min-height: 470px; padding: clamp(28px, 4vw, 58px); }
.lab-panel[hidden] { display: none; }
.lab-panel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 6vw, 78px); }
.lab-panel-intro > span { color: var(--lab-teal); font: 750 .62rem/1 Inter, sans-serif; letter-spacing: .13em; }
.lab-panel-intro h3 { margin: 15px 0 17px; color: #fff; font-size: clamp(1.65rem, 2.8vw, 2.6rem); line-height: 1.25; }
.lab-panel-intro > p { margin: 0; color: var(--lab-muted); line-height: 1.9; }
.lab-signal-list { display: grid; gap: 10px; margin-top: 27px; }
.lab-signal-list span { display: flex; align-items: center; gap: 10px; color: #c5d3de; font-size: .82rem; }
.lab-signal-list span::before { width: 6px; height: 6px; border-radius: 50%; background: var(--lab-cyan); box-shadow: 0 0 10px rgba(42, 223, 255, .7); content: ""; }
.lab-candidate-board { display: grid; gap: 12px; }
.lab-candidate-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border: 1px solid rgba(124, 176, 210, .14); border-radius: 17px; background: rgba(11, 27, 43, .72); }
.lab-candidate-card > span { color: #60798e; font: 750 .62rem/1 Inter, sans-serif; letter-spacing: .1em; }
.lab-candidate-card small { display: block; margin-bottom: 6px; color: var(--lab-amber); font: 700 .58rem/1 Inter, sans-serif; letter-spacing: .08em; }
.lab-candidate-card strong { display: block; color: #f1f7fb; font-size: .91rem; line-height: 1.6; }
.lab-candidate-card p { margin: 6px 0 0; color: var(--lab-muted); font-size: .77rem; line-height: 1.7; }

/* Matrix */
.lab-matrix { position: relative; overflow: hidden; background: #030811; }
.lab-matrix::before { position: absolute; inset-inline-start: 45%; inset-block-start: 15%; width: 620px; height: 620px; border-radius: 50%; background: rgba(28, 198, 239, .07); filter: blur(100px); content: ""; }
.lab-matrix-layout { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 8vw, 105px); align-items: center; }
.lab-control-group { margin-top: 30px; }
.lab-control-group > span { display: block; margin-bottom: 11px; color: #d7e3eb; font-size: .78rem; font-weight: 750; }
.lab-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 6px; border: 1px solid var(--lab-line); border-radius: 14px; background: rgba(10, 24, 38, .62); }
.lab-segmented button { min-height: 43px; padding: 8px; border: 0; border-radius: 9px; color: #7f94a7; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 750; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.lab-segmented button:hover { color: #e5f0f7; }
.lab-segmented button[aria-pressed="true"] { color: #061018; background: linear-gradient(110deg, var(--lab-teal), #8eefff); box-shadow: 0 9px 24px rgba(42, 223, 255, .18); }
.lab-matrix-result { margin-top: 22px; padding: 20px 21px; border: 1px solid rgba(255, 179, 92, .19); border-radius: 17px; background: linear-gradient(120deg, rgba(255, 179, 92, .075), rgba(10, 26, 42, .68)); }
.lab-matrix-result small { color: var(--lab-amber); font: 750 .58rem/1 Inter, sans-serif; letter-spacing: .12em; }
.lab-matrix-result h3 { margin: 11px 0 7px; color: #fff; font-size: 1.2rem; }
.lab-matrix-result p { margin: 0; color: var(--lab-muted); font-size: .79rem; line-height: 1.8; }
.lab-matrix-board { padding: clamp(26px, 4vw, 45px); border: 1px solid var(--lab-line); border-radius: 27px; background: linear-gradient(145deg, rgba(12, 29, 46, .9), rgba(5, 14, 24, .93)); box-shadow: 0 35px 80px rgba(0, 0, 0, .3); }
.lab-matrix-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 22px; }
.lab-matrix-status span { color: #7f94a8; font: 700 .59rem/1 Inter, sans-serif; letter-spacing: .13em; }
.lab-matrix-status b { color: var(--lab-teal); font-size: .75rem; }
.lab-matrix-grid-wrap { position: relative; padding: 0 0 30px 34px; direction: ltr; }
.lab-axis-y { position: absolute; left: 0; top: 0; bottom: 30px; display: flex; align-items: center; color: #71879a; font: 700 .55rem/1 Inter, sans-serif; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }
.lab-axis-x { position: absolute; left: 34px; right: 0; bottom: 0; text-align: center; color: #71879a; font: 700 .55rem/1 Inter, sans-serif; letter-spacing: .1em; }
.lab-grid {
  --lab-value: 2;
  --lab-ready: 2;
  position: relative;
  aspect-ratio: 1.16;
  border: 1px solid rgba(111, 169, 206, .26);
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 33.1%, rgba(117, 168, 202, .19) 33.3%, transparent 33.6%, transparent 66.3%, rgba(117, 168, 202, .19) 66.6%, transparent 66.9%),
    linear-gradient(0deg, transparent 33.1%, rgba(117, 168, 202, .19) 33.3%, transparent 33.6%, transparent 66.3%, rgba(117, 168, 202, .19) 66.6%, transparent 66.9%),
    linear-gradient(135deg, rgba(255, 128, 87, .055), rgba(42, 223, 255, .08) 58%, rgba(79, 240, 209, .13));
  overflow: visible;
}
.lab-grid::after { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 80% 20%, rgba(79, 240, 209, .12), transparent 35%); content: ""; }
.lab-grid-zone { position: absolute; z-index: 1; color: rgba(215, 231, 240, .48); font: 700 .58rem/1.3 Inter, sans-serif; letter-spacing: .08em; }
.lab-grid-zone.zone-discover { left: 4%; bottom: 5%; }
.lab-grid-zone.zone-foundation { left: 4%; top: 5%; }
.lab-grid-zone.zone-prototype { right: 4%; bottom: 36%; }
.lab-grid-zone.zone-pilot { right: 4%; top: 5%; color: rgba(166, 255, 226, .72); }
.lab-beacon {
  position: absolute;
  left: calc((var(--lab-value) - 1) * 50%);
  bottom: calc((var(--lab-ready) - 1) * 50%);
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--lab-amber);
  box-shadow: 0 0 0 9px rgba(255, 179, 92, .12), 0 0 34px rgba(255, 179, 92, .8);
  transform: translate(-50%, 50%);
  transition: left .45s cubic-bezier(.22, 1, .36, 1), bottom .45s cubic-bezier(.22, 1, .36, 1);
}
.lab-beacon::after { position: absolute; inset: -13px; border: 1px solid rgba(255, 189, 105, .3); border-radius: 50%; animation: lab-ring 2s ease-out infinite; content: ""; }

/* Journey */
.lab-journey { background: linear-gradient(180deg, #06101b, #030913); }
.lab-journey-heading { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.lab-journey-heading > p { max-width: 550px; justify-self: end; }
.lab-blueprint { position: relative; min-height: 480px; border: 1px solid var(--lab-line); border-radius: 30px; overflow: hidden; background: #04101d; box-shadow: 0 40px 90px rgba(0, 0, 0, .28); }
.lab-blueprint img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
[dir="rtl"] .lab-blueprint img { transform: scaleX(-1); }
.lab-blueprint::after { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(2, 7, 15, .78), transparent 40%); content: ""; }
.lab-blueprint-badge { position: absolute; inset-block-start: 20px; inset-inline-start: 20px; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(77, 230, 255, .25); border-radius: 10px; color: #c7f8ff; background: rgba(3, 12, 22, .72); backdrop-filter: blur(10px); font: 700 .58rem/1 Inter, sans-serif; letter-spacing: .12em; }
.lab-blueprint-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lab-cyan); box-shadow: 0 0 12px var(--lab-cyan); }
.lab-stage-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 18px; border: 1px solid var(--lab-line); border-radius: 22px; overflow: hidden; }
.lab-stage-card { position: relative; min-height: 205px; padding: 24px 20px; border-inline-end: 1px solid var(--lab-line); background: rgba(8, 20, 34, .75); transition: background .2s ease; }
.lab-stage-card:last-child { border-inline-end: 0; }
.lab-stage-card:hover { background: rgba(13, 36, 56, .88); }
.lab-stage-card > span { color: #627b90; font: 750 .59rem/1 Inter, sans-serif; letter-spacing: .11em; }
.lab-stage-card i { width: 40px; height: 40px; display: grid; place-items: center; margin: 18px 0 14px; border: 1px solid rgba(42, 223, 255, .23); border-radius: 12px; color: var(--lab-cyan); background: rgba(42, 223, 255, .055); }
.lab-stage-card:nth-child(n+4) i { border-color: rgba(255, 179, 92, .25); color: var(--lab-amber); background: rgba(255, 179, 92, .05); }
.lab-stage-card .icon { width: 20px; height: 20px; }
.lab-stage-card h3 { margin: 0 0 8px; font-size: .94rem; }
.lab-stage-card p { margin: 0; color: var(--lab-muted); font-size: .72rem; line-height: 1.75; }
.lab-stage-card::after { position: absolute; inset-inline: 20px; inset-block-end: 0; height: 2px; background: var(--lab-cyan); opacity: .2; content: ""; }
.lab-stage-card:nth-child(n+4)::after { background: var(--lab-amber); }

/* Pilot gate */
.lab-gate { background: #02070f; }
.lab-gate-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(55px, 8vw, 105px); align-items: start; }
.lab-gate-copy { position: sticky; inset-block-start: 175px; }
.lab-gate-meter { margin-top: 31px; padding: 19px 20px; border: 1px solid var(--lab-line); border-radius: 16px; background: rgba(10, 25, 39, .58); }
.lab-gate-meter-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.lab-gate-meter-head span { color: #8ea2b4; font-size: .74rem; }
.lab-gate-meter-head strong { color: var(--lab-amber); font: 750 .7rem/1 Inter, sans-serif; }
.lab-gate-track { height: 5px; border-radius: 9px; background: rgba(122, 164, 194, .14); overflow: hidden; }
.lab-gate-track i { --lab-gate-progress: 0%; width: var(--lab-gate-progress); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--lab-cyan), var(--lab-teal), var(--lab-amber)); box-shadow: 0 0 15px rgba(42, 223, 255, .45); transition: width .35s ease; }
.lab-gate-list { display: grid; gap: 14px; }
.lab-gate-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--lab-line);
  border-radius: 20px;
  color: inherit;
  background: linear-gradient(135deg, rgba(11, 26, 42, .82), rgba(5, 14, 24, .78));
  cursor: pointer;
  text-align: start;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.lab-gate-card:hover { border-color: rgba(43, 218, 255, .38); transform: translateY(-2px); }
.lab-gate-card[aria-pressed="true"] { border-color: rgba(79, 240, 209, .43); background: linear-gradient(135deg, rgba(16, 52, 58, .7), rgba(6, 22, 33, .84)); }
.lab-gate-card > i { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid rgba(45, 223, 255, .23); border-radius: 14px; color: var(--lab-cyan); background: rgba(42, 223, 255, .06); }
.lab-gate-card > i .icon { width: 23px; height: 23px; }
.lab-gate-card small { color: var(--lab-amber); font: 700 .56rem/1 Inter, sans-serif; letter-spacing: .11em; }
.lab-gate-card h3 { margin: 8px 0 5px; color: #fff; font-size: 1rem; }
.lab-gate-card p { margin: 0; color: var(--lab-muted); font-size: .77rem; line-height: 1.72; }
.lab-gate-check { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(130, 175, 207, .25); border-radius: 50%; color: transparent; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.lab-gate-check .icon { width: 15px; height: 15px; }
.lab-gate-card[aria-pressed="true"] .lab-gate-check { border-color: var(--lab-teal); color: #05120f; background: var(--lab-teal); }

/* Deliverables */
.lab-deliverables { position: relative; background: linear-gradient(180deg, #07111c, #030911); overflow: hidden; }
.lab-deliverables::after { position: absolute; inset-inline-end: -180px; inset-block-end: -220px; width: 560px; height: 560px; border: 1px solid rgba(54, 216, 255, .09); border-radius: 50%; box-shadow: 0 0 0 65px rgba(54, 216, 255, .025), 0 0 0 130px rgba(54, 216, 255, .015); content: ""; }
.lab-deliverable-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 8vw, 100px); }
.lab-deliverable-copy .button { margin-top: 29px; }
.lab-output-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.lab-output-card { position: relative; min-height: 205px; padding: 24px; border: 1px solid var(--lab-line); border-radius: 20px; background: rgba(9, 23, 38, .74); overflow: hidden; }
.lab-output-card::after { position: absolute; inset-inline-end: -35px; inset-block-end: -35px; width: 100px; height: 100px; border: 1px solid rgba(49, 216, 255, .1); border-radius: 50%; content: ""; }
.lab-output-card > span { color: #60778b; font: 700 .6rem/1 Inter, sans-serif; letter-spacing: .1em; }
.lab-output-card i { width: 39px; height: 39px; display: grid; place-items: center; margin: 18px 0 14px; border: 1px solid rgba(255, 179, 92, .24); border-radius: 11px; color: var(--lab-amber); background: rgba(255, 179, 92, .05); }
.lab-output-card .icon { width: 19px; height: 19px; }
.lab-output-card h3 { margin: 0 0 8px; font-size: .96rem; }
.lab-output-card p { margin: 0; color: var(--lab-muted); font-size: .74rem; line-height: 1.75; }

/* FAQ and CTA */
.lab-faq { background: #020710; }
.lab-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px, 8vw, 105px); align-items: start; }
.lab-faq-copy { position: sticky; inset-block-start: 175px; }
.lab-faq-list { border-top: 1px solid var(--lab-line); }
.lab-faq-item { border-bottom: 1px solid var(--lab-line); }
.lab-faq-item h3 { margin: 0; }
.lab-faq-question { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 25px 3px; border: 0; color: #f1f6fa; background: transparent; cursor: pointer; text-align: start; }
.lab-faq-question > span:first-child { color: var(--lab-amber); font: 700 .61rem/1 Inter, sans-serif; letter-spacing: .1em; }
.lab-faq-question strong { font-size: .94rem; line-height: 1.7; }
.lab-faq-toggle { position: relative; width: 27px; height: 27px; border: 1px solid var(--lab-line); border-radius: 50%; }
.lab-faq-toggle::before,
.lab-faq-toggle::after { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 10px; height: 1px; background: var(--lab-cyan); transform: translate(-50%, -50%); content: ""; }
[dir="rtl"] .lab-faq-toggle::before,
[dir="rtl"] .lab-faq-toggle::after { transform: translate(50%, -50%); }
.lab-faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
[dir="rtl"] .lab-faq-toggle::after { transform: translate(50%, -50%) rotate(90deg); }
.lab-faq-question[aria-expanded="true"] .lab-faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }
[dir="rtl"] .lab-faq-question[aria-expanded="true"] .lab-faq-toggle::after { transform: translate(50%, -50%) rotate(0); }
.lab-faq-answer { padding: 0 48px 24px; }
.lab-faq-answer[hidden] { display: none; }
.lab-faq-answer p { margin: 0; color: var(--lab-muted); font-size: .84rem; line-height: 1.95; }
.lab-cta { background: #020710; }
.lab-cta .cta-card { border-color: rgba(50, 221, 255, .23); background: radial-gradient(circle at 82% 30%, rgba(255, 179, 92, .12), transparent 28%), radial-gradient(circle at 18% 60%, rgba(42, 223, 255, .13), transparent 32%), linear-gradient(130deg, #0a1b2d, #08101c); }
.lab-cta .cta-copy small { color: var(--lab-teal); }
.lab-cta .button-primary { color: #071116; background: linear-gradient(110deg, var(--lab-teal), #68deff 52%, var(--lab-amber)); box-shadow: 0 16px 38px rgba(41, 213, 245, .17); }

@keyframes lab-pulse { 50% { opacity: .55; transform: scale(.82); } }
@keyframes lab-scroll { 0%, 100% { transform: scaleY(.35); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@keyframes lab-ring { from { transform: scale(.65); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }

@media (max-width: 1100px) {
  .lab-hero { min-height: 850px; }
  .lab-hero-layout { grid-template-columns: 1fr .65fr; }
  .lab-hero-index { width: 350px; }
  .lab-tab { grid-template-columns: 1fr; justify-items: start; padding: 15px; }
  .lab-stage-grid { grid-template-columns: repeat(3, 1fr); }
  .lab-stage-card:nth-child(3) { border-inline-end: 0; }
  .lab-stage-card:nth-child(-n+3) { border-bottom: 1px solid var(--lab-line); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 122px; }
  .lab-hero { min-height: 820px; align-items: end; }
  .lab-hero-media img { object-position: 63% center; opacity: .68; }
  [dir="rtl"] .lab-hero-media img { object-position: 63% center; }
  .lab-hero-media::after,
  [dir="rtl"] .lab-hero-media::after { background: linear-gradient(0deg, #01050c 3%, rgba(1, 5, 12, .98) 38%, rgba(1, 5, 12, .55) 75%, rgba(1, 5, 12, .15)); }
  .lab-hero-layout { grid-template-columns: 1fr; padding-top: 95px; }
  .lab-hero-copy { padding-block: 80px 95px; }
  .lab-hero-index { display: none; }
  .lab-scroll-cue { display: none; }
  .lab-section-rail { inset-block-start: 64px; }
  .lab-section-rail a { padding: 16px 14px 14px; }
  .lab-premise-grid,
  .lab-scanner-top,
  .lab-panel-grid,
  .lab-matrix-layout,
  .lab-journey-heading,
  .lab-gate-layout,
  .lab-deliverable-layout,
  .lab-faq-grid { grid-template-columns: 1fr; gap: 42px; }
  .lab-premise-copy,
  .lab-gate-copy,
  .lab-faq-copy { position: static; }
  .lab-journey-heading > p { justify-self: start; }
  .lab-tablist { grid-template-columns: repeat(2, 1fr); }
  .lab-tab { min-height: 90px; grid-template-columns: auto 1fr; }
  .lab-tab:nth-child(2) { border-inline-end: 0; }
  .lab-tab:nth-child(-n+2) { border-bottom: 1px solid var(--lab-line); }
  .lab-blueprint,
  .lab-blueprint img { min-height: 370px; }
  .lab-blueprint img { object-position: center; }
}

@media (max-width: 620px) {
  .ai-lab-page .container { width: min(calc(100% - 30px), 1220px); }
  .ai-lab-page .section { padding-block: 82px; }
  .lab-hero { min-height: 790px; }
  .lab-hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .ai-lab-page-fa .lab-hero h1 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .lab-hero-lead { font-size: .92rem; line-height: 1.9; }
  .lab-hero-actions { display: grid; }
  .lab-hero-actions .button { width: 100%; }
  .lab-hero-proof { display: grid; gap: 7px; }
  .lab-diagnostic-card { grid-template-columns: auto 1fr; padding: 20px; }
  .lab-diagnostic-card > span { display: none; }
  .lab-diagnostic-card b { grid-column: 2; justify-self: start; }
  .lab-tablist { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .lab-tab { min-width: 210px; border-bottom: 0 !important; scroll-snap-align: start; }
  .lab-panel { padding: 26px 20px; }
  .lab-candidate-card { grid-template-columns: 1fr; gap: 9px; }
  .lab-matrix-board { padding: 22px 17px; }
  .lab-matrix-grid-wrap { padding-left: 27px; }
  .lab-axis-x { left: 27px; }
  .lab-grid-zone { font-size: .48rem; }
  .lab-blueprint,
  .lab-blueprint img { min-height: 290px; }
  .lab-blueprint img { object-position: center; }
  .lab-stage-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-stage-card { min-height: 195px; }
  .lab-stage-card:nth-child(2n) { border-inline-end: 0; }
  .lab-stage-card:nth-child(3) { border-inline-end: 1px solid var(--lab-line); }
  .lab-stage-card:nth-child(-n+4) { border-bottom: 1px solid var(--lab-line); }
  .lab-gate-card { grid-template-columns: auto 1fr; }
  .lab-gate-check { grid-column: 2; justify-self: start; }
  .lab-output-grid { grid-template-columns: 1fr; }
  .lab-output-card { min-height: 185px; }
  .lab-faq-question { gap: 12px; }
  .lab-faq-answer { padding-inline: 37px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .lab-live-dot,
  .lab-scroll-cue i,
  .lab-beacon::after { animation: none; }
  .lab-hero-media img,
  .lab-beacon { transition: none; }
}
