/* ==========================================
   CURTAIN LABS — AI WEBSITE VOICE AGENT STYLES
   ========================================== */

/* State Transitions */
.state-container {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.state-hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

/* Landing Section Specific Styles */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.usp-card {
  padding: 48px 36px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: left;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.usp-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
}

.usp-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--orange);
  margin-bottom: 24px;
  display: block;
}

.usp-card h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.usp-card p {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.6;
}

/* Interactive Questionnaire Container */
.form-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 100px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.question-card {
  display: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.question-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.question-card.exit-up {
  display: block;
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

.question-card.enter-down {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.question-card.exit-down {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}

.question-card.enter-up {
  display: block;
  opacity: 0;
  transform: translateY(-40px);
}

/* Custom Text Inputs */
.typeform-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  font-size: clamp(24px, 4vw, 42px) !important;
  font-family: var(--display) !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  padding: 12px 0 !important;
  width: 100% !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: 24px;
}

.typeform-input:focus {
  outline: none !important;
  border-bottom-color: var(--orange) !important;
  box-shadow: none !important;
}

.typeform-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--display);
}

.question-label {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.question-number {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--orange);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.question-number span {
  width: 24px;
  height: 1px;
  background: rgba(255, 85, 0, 0.3);
}

/* Continuing & Navigation Actions */
.typeform-btn-next {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(255, 90, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.typeform-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 90, 0, 0.45);
  background: linear-gradient(135deg, var(--orange-2) 0%, var(--orange) 100%);
}

.keyboard-hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: 14px;
  font-family: var(--body);
  vertical-align: middle;
}

.keyboard-key {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--ink);
  font-family: monospace;
  margin-right: 4px;
}

/* Multi-select Selection Grid */
.interactive-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
  max-width: 800px;
}

.typeform-chip {
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line-2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.typeform-chip:hover {
  border-color: rgba(255, 85, 0, 0.35);
  background: rgba(255, 85, 0, 0.03);
}

.typeform-chip.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #000;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.25);
  font-weight: 600;
}

.typeform-chip-key {
  font-family: monospace;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink);
}

.typeform-chip.active .typeform-chip-key {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000;
}

/* Bottom Persistent Status Indicator */
.typeform-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(6, 4, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-2);
  z-index: 100;
  display: none; /* Displayed when #form-state mounts */
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.progressbar-container {
  position: absolute;
  top: -1.5px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.03);
}

.progressbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--coral));
  width: 0%;
  box-shadow: 0 0 10px var(--orange);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.typeform-controls {
  display: flex;
  gap: 12px;
}

.typeform-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.typeform-control-btn:hover:not(:disabled) {
  border-color: rgba(255, 85, 0, 0.4);
  background: rgba(255, 85, 0, 0.05);
  color: var(--orange);
}

.typeform-control-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.typeform-progress-text {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
}

.typeform-progress-text strong {
  color: var(--ink);
}

/* Calendly Nested Container */
.calendly-frame-wrap {
  width: 100%;
  height: 440px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.005);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--glass-shadow);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .form-container {
    padding: 100px 24px 90px;
  }
  .typeform-bottom-bar {
    padding: 0 24px;
    height: 64px;
  }
  .calendly-frame-wrap {
    height: 380px;
  }
}

/* ==========================================
   CURTAIN LABS — TIMELINE SCROLL STYLES
   ========================================== */
.timeline-animation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 180px 24px 120px;
  position: relative;
  min-height: 100vh;
  z-index: 10;
}

.timeline-laser-track {
  position: absolute;
  top: 230px;
  bottom: 230px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  z-index: 1;
}

.timeline-laser-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--orange), var(--orange-2), var(--orange-deep));
  box-shadow: 0 0 15px var(--orange), 0 0 30px var(--orange-2);
  border-radius: 99px;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-steps-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 160px;
  z-index: 2;
  padding: 100px 0 160px;
}

.timeline-step-card {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 36px;
  border-radius: 24px;
  background: rgba(17, 8, 21, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.timeline-step-card.revealed {
  transform: translateY(0);
  opacity: 0.35;
}

.timeline-step-card.active {
  transform: translateY(0) scale(1.02);
  opacity: 1;
  border-color: var(--glass-border-hover);
  background: radial-gradient(circle at 0% 0%, rgba(255, 85, 0, 0.05) 0%, transparent 60%), rgba(17, 8, 21, 0.75);
  box-shadow: 0 20px 50px rgba(255, 85, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.timeline-step-card.dimmed {
  transform: translateY(0) scale(0.98);
  opacity: 0.18;
}

.timeline-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d0711;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 24px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 5;
}

.timeline-step-card.active .timeline-node {
  background: var(--orange);
  border-color: transparent;
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 25px var(--orange);
}

.timeline-card-content {
  flex-grow: 1;
}

.timeline-step-card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color 0.5s;
}

.timeline-step-card.active h3 {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 85, 0, 0.2);
}

.timeline-step-card p {
  color: var(--ink-mute);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  margin: 0;
  transition: color 0.5s;
}

.timeline-step-card.active p {
  color: rgba(255, 255, 255, 0.8);
}

/* Call to Action Wrapper */
.timeline-cta-wrap {
  margin-top: 50px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.timeline-cta-wrap.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.timeline-cta-btn {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #000;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  padding: 18px 44px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.25), 0 0 60px rgba(255, 85, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none; /* Keep the Curtain Labs cursor feel */
}

.timeline-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 85, 0, 0.45), 0 0 80px rgba(255, 85, 0, 0.15);
  background: linear-gradient(135deg, var(--orange-2) 0%, var(--orange) 100%);
}

.timeline-cta-btn svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Custom scrollbars inside the timeline */
#form-state::-webkit-scrollbar {
  width: 6px;
}
#form-state::-webkit-scrollbar-track {
  background: transparent;
}
#form-state::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
#form-state::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 85, 0, 0.15);
}

@media (max-width: 768px) {
  .timeline-animation-container {
    padding: 140px 16px 100px;
  }
  .timeline-laser-track {
    left: 24px;
    transform: none;
    top: 170px;
    bottom: 170px;
  }
  .timeline-step-card {
    padding: 24px;
    border-radius: 20px;
  }
  .timeline-node {
    width: 36px;
    height: 36px;
    margin-right: 16px;
    font-size: 15px;
  }
}

