/* ==========================================================================
   Mindsight / Direct Vision — Page-specific Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero (eye theme)
   -------------------------------------------------------------------------- */
.ms-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.ms-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.ms-hero-eyecon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px var(--purple-glow));
  animation: eyePulse 4s ease-in-out infinite;
}

@keyframes eyePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px var(--purple-glow)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 50px var(--cyan-glow)); }
}

.ms-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.ms-hero .ms-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ms-hero .ms-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Breadcrumb / Back link
   -------------------------------------------------------------------------- */
.ms-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.ms-back:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   Section variants
   -------------------------------------------------------------------------- */
.ms-section {
  padding: 5rem 0;
  position: relative;
}

.ms-section--alt {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

.ms-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ms-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.ms-section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Overview stats row
   -------------------------------------------------------------------------- */
.ms-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ms-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid rgba(139, 124, 246, 0.15);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ms-stat:hover {
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--purple-glow);
}

.ms-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

.ms-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Quote block
   -------------------------------------------------------------------------- */
.ms-quote {
  background: var(--glass-bg);
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ms-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Technique cards (tiered)
   -------------------------------------------------------------------------- */
.ms-tier {
  margin-bottom: 3rem;
}

.ms-tier-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.ms-tier-label--very-high {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.ms-tier-label--high {
  background: rgba(139, 124, 246, 0.15);
  color: var(--purple);
  border: 1px solid rgba(139, 124, 246, 0.3);
}

.ms-tier-label--moderate {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.ms-techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.ms-technique-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ms-technique-card:hover {
  border-color: var(--glass-border);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

.ms-technique-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.ms-technique-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Expandable source list --- */
.ms-sources {
  margin-top: 0.75rem;
}

.ms-sources-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.ms-sources-toggle:hover {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.2);
}

.ms-sources.open .ms-sources-toggle {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.25);
}

.ms-sources-arrow {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}

.ms-sources.open .ms-sources-arrow {
  transform: rotate(180deg);
}

.ms-sources-list {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0;
}

.ms-sources.open .ms-sources-list {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.65rem;
}

.ms-sources-list li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  line-height: 1.45;
  border-left: 1px solid rgba(0, 212, 255, 0.15);
  transition: color var(--transition);
}

.ms-sources-list li:hover {
  color: var(--text-primary);
}

.ms-sources-list li::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Progression timeline
   -------------------------------------------------------------------------- */
.ms-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.ms-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--purple) 50%, var(--gold) 100%);
  opacity: 0.4;
}

.ms-stage {
  position: relative;
  padding-left: 72px;
  padding-bottom: 2.5rem;
}

.ms-stage:last-child { padding-bottom: 0; }

.ms-stage-dot {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg-deep);
  z-index: 1;
  transition: background var(--transition), box-shadow var(--transition);
}

.ms-stage:hover .ms-stage-dot {
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.ms-stage-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ms-stage h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.ms-stage p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.ms-stage-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Schools comparison
   -------------------------------------------------------------------------- */
.ms-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .ms-compare { grid-template-columns: 1fr; }
}

.ms-school-card {
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition);
}

.ms-school-card:hover {
  border-color: var(--glass-border);
}

.ms-school-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ms-school-card .ms-school-approach {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ms-school-card ul {
  list-style: none;
  padding: 0;
}

.ms-school-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}

.ms-school-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.ms-school--passive li::before { background: var(--cyan); }
.ms-school--active li::before { background: var(--gold); }

/* --------------------------------------------------------------------------
   Practitioner grid
   -------------------------------------------------------------------------- */
.ms-practitioners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ms-practitioner {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.ms-practitioner:hover {
  border-color: var(--glass-border);
}

.ms-practitioner h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ms-practitioner .ms-org {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.ms-practitioner .ms-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.ms-practitioner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Science / EEG findings
   -------------------------------------------------------------------------- */
.ms-findings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ms-finding {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.75rem;
}

.ms-finding h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.ms-finding p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Protocol accordion
   -------------------------------------------------------------------------- */
.ms-protocol-phase {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.ms-protocol-phase:hover {
  border-color: var(--glass-border);
}

.ms-phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.ms-phase-header:hover {
  background: rgba(0, 212, 255, 0.03);
}

.ms-phase-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 2.5rem;
}

.ms-phase-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.ms-phase-toggle {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.ms-protocol-phase.open .ms-phase-toggle {
  transform: rotate(180deg);
}

.ms-phase-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.ms-protocol-phase.open .ms-phase-body {
  max-height: 600px;
}

.ms-phase-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.ms-phase-content ol {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.ms-phase-content li {
  padding: 0.25rem 0;
}

/* --------------------------------------------------------------------------
   Canvas visualization
   -------------------------------------------------------------------------- */
.ms-vis-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.ms-vis-container canvas {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Topic link in card
   -------------------------------------------------------------------------- */
.topic-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  transition: color var(--transition);
}

.topic-link:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .ms-techniques-grid {
    grid-template-columns: 1fr;
  }
  .ms-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ms-practitioners {
    grid-template-columns: 1fr;
  }
  .ms-findings {
    grid-template-columns: 1fr;
  }
  .ms-timeline::before {
    left: 16px;
  }
  .ms-stage {
    padding-left: 48px;
  }
  .ms-stage-dot {
    left: 6px;
    width: 18px;
    height: 18px;
  }
}
