/* ============================================================
   Galaxy Console — intro page styles
   Palette: near-black #0e0f13, violet #7c5cff, mint #27e0b3
   ============================================================ */

/* Neutralize global .container background on intro page */
.container:has(.typing-hero) {
  background: none;
  padding-left: 0;
  padding-right: 0;
}

/* Page-level galaxy background */
body:has(.typing-hero) {
  background: #0e0f13;
  color: #eef1f7;
}

/* ---------- starfield (fixed, full viewport) ---------- */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(1px 1px at 12% 18%, rgba(238, 241, 247, 0.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 28% 64%, rgba(238, 241, 247, 0.5) 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 41% 32%, rgba(157, 134, 255, 0.7) 50%, transparent 51%),
  radial-gradient(1px 1px at 57% 78%, rgba(238, 241, 247, 0.45) 50%, transparent 51%),
  radial-gradient(1px 1px at 66% 12%, rgba(39, 224, 179, 0.6) 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 78% 51%, rgba(238, 241, 247, 0.65) 50%, transparent 51%),
  radial-gradient(1px 1px at 89% 26%, rgba(157, 134, 255, 0.55) 50%, transparent 51%),
  radial-gradient(1px 1px at 8% 87%, rgba(238, 241, 247, 0.4) 50%, transparent 51%),
  radial-gradient(1px 1px at 94% 84%, rgba(39, 224, 179, 0.45) 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 49% 92%, rgba(238, 241, 247, 0.5) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

/* ---------- nebula glow behind hero ---------- */
.nebula {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 640px;
  background: radial-gradient(ellipse 50% 45% at 50% 40%, rgba(124, 92, 255, 0.20) 0%, transparent 65%),
  radial-gradient(ellipse 35% 30% at 68% 60%, rgba(39, 224, 179, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- typing hero ---------- */
.typing-hero {
  position: relative;
  z-index: 1;
  padding: 0;
  text-align: center;
  background: none;
  overflow: visible;
}

.typing-hero::before {
  display: none;
}

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

/* eyebrow: ~/conceptual $ learn --anything */
.hero-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: #27e0b3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: "~/conceptual ";
  color: #6f7686;
}

.typing-hero-heading {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  color: #eef1f7;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.typing-dynamic {
  display: block;
  min-height: 1.35em;
  margin-top: 0.3em;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.92em;
}

#studentGoal {
  background: linear-gradient(90deg, #9d86ff, #27e0b3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: #27e0b3;
  margin-left: 4px;
  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 {
  margin-top: 1.6rem;
  color: #a4abba;
  font-weight: 300;
  font-size: 1.05rem;
}

/* ---------- workflow: three terminal windows ---------- */
.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.hero-main-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: #eef1f7;
}

.hero-main-title::before {
  content: "# ";
  color: #7c5cff;
  font-family: "JetBrains Mono", monospace;
}

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

.terminal-block {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background: #16181f;
  border: 1px solid #2c313d;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  padding: 0;
  text-align: left;
}

.terminal-block:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.5);
}

/* terminal chrome bar (dots + username) */
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: #1d2029;
  border-bottom: 1px solid #23262f;
}

.chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chrome-dot.d1 {
  background: #ff6b6b;
}

.chrome-dot.d2 {
  background: #27e0b3;
}

.chrome-dot.d3 {
  background: #7c5cff;
}

.chrome-title {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #6f7686;
}

.terminal-body {
  padding: 1.4rem 1.4rem 1.6rem;
  font-family: "JetBrains Mono", monospace;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.terminal-line {
  display: block;
}

.terminal-output-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #27e0b3;
}

.terminal-output-title::before {
  content: "$ ";
  color: #6f7686;
}

.terminal-output-desc {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #eef1f7;
  line-height: 1.7;
  word-break: break-word;
}

.terminal-output-example {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: #a4abba;
  line-height: 1.65;
  border-left: 2px solid rgba(124, 92, 255, 0.45);
  padding-left: 0.8rem;
  word-break: break-word;
}

/* workflow arrow between blocks */
.workflow-arrow {
  align-self: center;
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
  color: #7c5cff;
  text-shadow: 0 0 14px rgba(124, 92, 255, 0.6);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.workflow-arrow i {
  display: none;
}

/* ---------- FAQ ---------- */
.faq-section-wrapper {
  border-top: 1px solid #23262f;
  padding: 4.5rem 2rem 6rem;
  background: #0e0f13;
  position: relative;
  z-index: 1;
}

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

.faq-section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eef1f7;
  margin-bottom: 0;
}

.faq-section-subtitle {
  text-align: center;
  color: #a4abba;
  font-weight: 300;
  margin: 0.6rem 0 2.6rem;
}

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

.faq-item {
  background: #16181f;
  border: 1px solid #2c313d;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
  box-shadow: none;
}

.faq-item[open] {
  border-color: rgba(124, 92, 255, 0.45);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  color: #eef1f7;
  list-style: none;
  transition: background 0.2s ease;
}

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

.faq-item summary::before {
  content: ">";
  font-family: "JetBrains Mono", monospace;
  color: #27e0b3;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

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

/* remove the old SVG chevron */
.faq-item summary::after {
  display: none;
}

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

.faq-item-body {
  padding: 0 1.4rem 1.4rem 3rem;
  color: #a4abba;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item-body p {
  margin-bottom: 0.9rem;
}

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

.faq-cta {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  background: #7c5cff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-cta:hover {
  background: #9d86ff;
  transform: translateY(-1px);
}

/* faq-cta-primary alias — kept for any legacy references */
.faq-cta-primary {
  background: #7c5cff;
  color: #fff !important;
}

.faq-cta-primary:hover {
  background: #9d86ff;
  transform: translateY(-1px);
  box-shadow: none;
}

/* hide old icon elements if any remain */
.faq-icon {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-workflow {
    flex-direction: column;
    align-items: center;
  }

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

  .terminal-block {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .typing-hero-inner {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .hero-container {
    padding: 0.5rem 1.5rem 3.5rem;
  }

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

@media (max-width: 480px) {
  .typing-hero-inner {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-container {
    padding: 0.5rem 1rem 3rem;
  }

  .terminal-block {
    min-width: 100%;
  }

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