/* ============================
   Lab Page
   ============================ */

/* ---- Hero ---- */
.lab-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 160px 24px 60px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.lab-hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 32px;
  font-weight: 500;
}
.lab-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.lab-line {
  display: block;
  color: #f5f5f5;
}
.lab-line.lab-dim {
  color: rgba(255,255,255,0.25);
}
.lab-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 640px;
}

/* ---- Sections ---- */
.lab-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ---- Timeline ---- */
.lab-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lab-era {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  position: relative;
}
.lab-era:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 80px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
}
.lab-era-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 40px;
  padding-top: 4px;
}
.lab-era-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
}
.lab-era-dot.now {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.lab-era-dot.next {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}
.lab-era-dot.future {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.lab-era-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}
.lab-era-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.lab-era-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 16px;
}
.lab-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lab-cap {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.02);
}

/* ---- Beliefs ---- */
.lab-beliefs-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.lab-belief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lab-belief {
  background: #161616;
  border-radius: 14px;
  padding: 28px 26px;
}
.lab-belief-num {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  font-family: var(--mono);
  margin-bottom: 14px;
}
.lab-belief h3 {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.lab-belief p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ---- Open Questions ---- */
.lab-questions-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.lab-q-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lab-q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lab-q:last-child { border-bottom: none; }
.lab-q-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.lab-q p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* Question input */
.lab-q-input {
  border-bottom: none;
  align-items: flex-start;
}
.lab-q-prompt {
  flex: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lab-q-prompt.submitting {
  opacity: 0.5;
  transform: scale(0.98);
}
.lab-q-prompt.submitted {
  animation: lab-success-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.lab-q-prompt-label {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  line-height: 1.6;
}
.lab-q-textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  color: #f5f5f5;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.lab-q-textarea:focus {
  border-color: rgba(255,255,255,0.3);
}
.lab-q-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lab-q-textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.lab-q-actions {
  display: flex;
  justify-content: flex-start;
}
.lab-q-submit {
  padding: 10px 28px;
  border-radius: 100px;
  background: #f5f5f5;
  color: #0c130f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.lab-q-submit:hover {
  background: #ddd;
  transform: scale(1.03);
}
.lab-q-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.lab-q-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}
.lab-q-success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  animation: lab-check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.lab-q-success-check svg {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: lab-check-draw 0.4s ease 0.35s forwards;
}
.lab-q-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5f5f5;
  opacity: 0;
  transform: translateY(8px);
  animation: lab-text-in 0.4s ease 0.45s forwards;
}
.lab-q-success-sub {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  animation: lab-text-in 0.4s ease 0.6s forwards;
}
@keyframes lab-success-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes lab-check-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes lab-check-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes lab-text-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- CTA ---- */
.lab-cta {
  text-align: center;
  padding: 80px 24px 120px;
  max-width: 640px;
  margin: 0 auto;
}
.lab-cta-label {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}
.lab-cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.lab-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lab-cta-secondary {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.lab-cta-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .lab-hero { padding: 120px 16px 48px; min-height: auto; }
  .lab-section { padding: 28px 16px; }
  .lab-belief-grid { grid-template-columns: 1fr; }
  .lab-era { gap: 20px; }
  .lab-cta { padding: 48px 16px 80px; }
}
@media (max-width: 480px) {
  .lab-hero { padding: 100px 14px 36px; }
  .lab-hero-title { font-size: 28px; }
  .lab-era-marker { width: 30px; }
  .lab-era-content h2 { font-size: 20px; }
  .lab-belief { padding: 22px 20px; }
}
