/* Landing Hero Section Styles */
.landing-hero {
  background: var(--gradient-hero-bg);
  padding: 2.5rem 2rem 5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-main-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: #2D3748;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.hero-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Workflow Cards */
.workflow-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.workflow-text {
  flex: 1;
  min-width: 0;
}

.workflow-example {
  font-size: var(--font-xs);
  color: #62676f;
  line-height: 1.6;
  margin: 0.75rem 0 0;
  font-style: italic;
}

.workflow-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.workflow-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.workflow-icon i {
  font-size: 36px;
  color: white;
}

/* Icon Stack for Students */
.workflow-icon .icon-stack {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.workflow-icon .icon-base {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  width: 100%;
  height: 100%;
  text-align: center;
}

.workflow-icon .icon-accent {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: #FCD34D;
  transform: translate(25%, -25%);
}

/* Icon colors */
.instructors-icon {
  background: var(--gradient-instructor);
}

.guides-icon {
  background: var(--gradient-guide);
}

.students-icon {
  background: var(--gradient-student);
}

.workflow-title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.workflow-description {
  font-size: var(--font-xs);
  color: #4d4669;
  line-height: 1.6;
  margin: 0;
}

/* Workflow Arrows */
.workflow-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
}

.workflow-arrow i {
  font-size: 32px;
}

/* Feedback Loop */
.feedback-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feedback-icon {
  font-size: 20px;
  flex-shrink: 0;
  color: #3B82F6;
}

.feedback-text {
  font-size: var(--font-xs);
  color: #6B7280;
  margin: 0;
  font-weight: 400;
}

/* Research Statement */
.research-statement {
  font-size: var(--font-xs);
  color: #6B7280;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Why It Works Section */
.why-it-works-section {
  padding: 4rem 2rem;
  background: var(--gradient-hero-bg-fade);
}

.why-title {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: #2D3748;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

.why-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.why-card {
  background: white;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card-subtle);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-icon-purple);
}

.why-icon i {
  font-size: 36px;
  color: #5B21B6;
}

.why-icon .icon-rotated {
  transform: rotate(90deg);
}

.prerequisites-icon {
  background: var(--gradient-icon-purple);
}

.proficiency-icon {
  background: var(--gradient-icon-blue);
}

.remember-icon {
  background: var(--gradient-icon-purple);
}

.why-card-title {
  font-size: var(--font-base);
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.why-card-description {
  font-size: var(--font-xs);
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

.vision-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #5B21B6;
  font-size: var(--font-xs);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.vision-footer:hover {
  color: #7C3AED;
}

.vision-footer i {
  font-size: var(--font-base);
}

/* Hero CTA Buttons */
.hero-cta-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2.5rem;
  border-radius: 14px;
  font-size: var(--font-xs);
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.hero-cta-btn i {
  font-size: var(--font-xs);
}

.btn-primary-cta {
  background: var(--gradient-cta-primary);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  border: none;
}

.btn-primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.45);
  color: #ffffff !important;
}

.btn-secondary-cta {
  background: #ffffff;
  color: #4f46e5 !important;
  border: 2px solid #e0e7ff;
  box-shadow: var(--shadow-card-subtle);
}

.btn-secondary-cta:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  background: #f8fafc;
  color: #4f46e5 !important;
}

/* Typing Hero Banner */
.typing-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  padding: 1.2rem 2rem 1rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.typing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.3) 0%, transparent 60%),
  radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.typing-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.typing-hero-heading {
  font-size: var(--font-xl);
  font-weight: 400;
  color: #e0e7ff;
  line-height: 1.25;
  letter-spacing: -.82px;
  margin: 0;
}

.typing-hero-heading .typing-dynamic {
  display: block;
  color: #ffffff;
  min-height: 1.3em;
  margin-top: 0.25em;
}

.typing-hero-heading .typing-dynamic #studentGoal {
  background: linear-gradient(90deg, #c7d2fe, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #a5b4fc;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.typing-hero-subtitle {
  font-size: var(--font-xs);
  color: #a5b4fc;
  margin-top: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* FAQ Accordion Section */
.faq-section-wrapper {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.faq-section-inner {
  max-width: 840px;
  margin: 0 auto;
}

.faq-section-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: #2D3748;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
}

.faq-section-subtitle {
  font-size: var(--font-xs);
  color: #6B7280;
  text-align: center;
  margin-bottom: 3rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-card-subtle);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: var(--font-xs);
  font-weight: 600;
  color: #1F2937;
  list-style: none;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: #f8fafc;
}

.faq-item summary .faq-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: var(--font-sm);
}

.faq-icon-purple {
  background: var(--gradient-icon-purple);
  color: #5B21B6;
}

.faq-icon-blue {
  background: var(--gradient-icon-blue);
  color: #1D4ED8;
}

.faq-icon-green {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  color: #059669;
}

.faq-item-body {
  padding: 0 1.5rem 1.5rem;
  padding-left: calc(1.5rem + 36px + 1rem);
  color: #4B5563;
  font-size: var(--font-xs);
  line-height: 1.7;
}

.faq-item-body p {
  margin: 0 0 1rem;
}

.faq-item-body p:last-child {
  margin-bottom: 0;
}

.faq-item-body .faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: var(--font-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.faq-cta-primary {
  background: var(--gradient-cta-primary);
  color: #ffffff !important;
}

.faq-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.faq-video-embed {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  max-width: 480px;
}

.faq-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Responsive design */
@media (max-width: 1200px) {
  .hero-workflow {
    flex-wrap: wrap;
  }
}

@media (max-width: 992px) {
  .landing-hero {
    padding: 2.5rem 1.5rem 4rem;
  }

  .hero-main-title {
    font-size: var(--font-xl);
    margin-bottom: 2rem;
  }

  .workflow-card {
    max-width: 100%;
  }

  .hero-workflow {
    gap: 1.5rem;
  }

  .why-it-works-section {
    padding: 3rem 1.5rem;
  }

  .why-title {
    font-size: var(--font-2xl);
    margin-bottom: 2.5rem;
  }

  .why-cards-container {
    gap: 1.5rem;
  }

  .typing-hero {
    padding: 1.2rem 1.5rem 1rem 3rem;
  }

  .typing-hero-heading {
    font-size: var(--font-3xl);
  }

  .faq-section-title {
    font-size: var(--font-xl);
  }
}

@media (max-width: 860px) {
  .hero-main-title {
    font-size: var(--font-xl);
  }

  .workflow-title {
    font-size: var(--font-base);
  }

  .workflow-description {
    font-size: var(--font-xs);
  }

  .faq-section-title {
    font-size: var(--font-lg);
  }

  /* workflow cards stack vertically at this width */
  .hero-workflow {
    flex-direction: column;
    align-items: center;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: var(--font-lg);
    margin-bottom: 2rem;
  }

  .workflow-card {
    padding: 2rem 1.5rem;
    min-width: 240px;
  }

  .workflow-title {
    font-size: var(--font-base);
  }

  .workflow-description {
    font-size: var(--font-xs);
  }

  .workflow-arrow {
    width: 40px;
    height: 40px;
  }

  .workflow-arrow i {
    font-size: 28px;
  }

  .feedback-loop {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .feedback-text {
    font-size: var(--font-xs);
  }

  .research-statement {
    font-size: var(--font-xs);
  }

  .why-title {
    font-size: var(--font-xl);
    margin-bottom: 2rem;
  }

  .why-card {
    padding: 2.5rem 1.5rem;
  }

  .why-card-title {
    font-size: var(--font-sm);
  }

  .why-card-description {
    font-size: var(--font-xs);
  }

  .why-icon {
    width: 70px;
    height: 70px;
  }

  .why-icon i {
    font-size: 32px;
  }

  .typing-hero {
    padding: 1rem 1.5rem 1rem 1.5rem;
  }

  .typing-hero-heading {
    font-size: var(--font-2xl);
    letter-spacing: -1px;
  }

  .typing-hero-subtitle {
    font-size: var(--font-xs);
  }

  .faq-section-wrapper {
    padding: 3rem 1.5rem;
  }

  .faq-section-title {
    font-size: var(--font-base);
  }

  .faq-item-body {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .landing-hero {
    padding: 2rem 1rem 3rem;
  }

  .hero-main-title {
    font-size: var(--font-base);
    margin-bottom: 1.5rem;
  }

  /* Revert to stacked vertical layout on small screens */
  .workflow-card {
    padding: 1.5rem 1.2rem;
    min-width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .workflow-icon {
    margin: 0 auto;
  }

  .workflow-text {
    text-align: center;
  }

  .workflow-title {
    font-size: var(--font-sm);
  }

  .workflow-example {
    font-size: var(--font-xs);
  }

  .workflow-icon {
    width: 50px;
    height: 50px;
  }

  .workflow-icon i {
    font-size: 24px;
  }

  .workflow-icon .icon-stack {
    width: 30px;
    height: 30px;
  }

  .workflow-icon .icon-base {
    font-size: 24px;
  }

  .workflow-icon .icon-accent {
    font-size: 12px;
  }

  .workflow-arrow {
    width: 32px;
    height: 32px;
  }

  .workflow-arrow i {
    font-size: 24px;
  }

  .feedback-loop {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .feedback-text {
    font-size: var(--font-xs);
  }

  .research-statement {
    font-size: var(--font-xs);
  }

  .why-it-works-section {
    padding: 2rem 1rem;
  }

  .why-title {
    font-size: var(--font-lg);
    margin-bottom: 1.5rem;
  }

  .why-cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-card {
    padding: 2rem 1.5rem;
  }

  .why-card-title {
    font-size: var(--font-xs);
  }

  .why-card-description {
    font-size: var(--font-xs);
  }

  .why-icon {
    width: 60px;
    height: 60px;
  }

  .why-icon i {
    font-size: 28px;
  }

  .vision-footer {
    font-size: var(--font-xs);
  }

  .vision-footer i {
    font-size: var(--font-sm);
  }

  .typing-hero {
    padding: 1rem 1rem;
  }

  .typing-hero-heading {
    font-size: var(--font-lg);
    letter-spacing: -0.5px;
  }

  .typing-hero-subtitle {
    font-size: var(--font-xs);
    margin-top: 1rem;
  }

  .faq-section-wrapper {
    padding: 2.5rem 1rem;
  }

  .faq-section-title {
    font-size: var(--font-sm);
    margin-bottom: 0.5rem;
  }

  .faq-section-subtitle {
    font-size: var(--font-xs);
    margin-bottom: 2rem;
  }

  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: var(--font-xs);
    gap: 0.75rem;
  }

  .faq-item summary .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-item-body {
    padding: 0 1.25rem 1.25rem;
    font-size: var(--font-xs);
  }
}
