/* ==========================================================================
   Nurolab — page-specific styles
   Built on top of the shared tokens/components in style.css
   (--green, --magenta, --brown, --blue, --ink, --muted, --paper, --radius-*,
   --shadow-soft, --transition, .site-header, .projects-bar, .container,
   .section, .card, .btn, .footer, etc.)
   ========================================================================== */

:root {
  /* Fallback copies in case Nurolab.css is ever loaded standalone */
  --green: #66b7a0;
  --magenta: #b7667d;
  --brown: #b7a066;
  --blue: #667db7;
  --ink: #1f2933;
  --muted: #5b6572;
  --paper: #f8f9fa;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.nurolab-hero {
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  gap: 70px;
  min-height: 85vh;
  padding: 70px 0;
}

.hero-left {
  max-width: 560px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  padding: 8px 18px;
  background: #eaf8f5;
  color: #5aa89b;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
}

.gradient-text {
  color: #63c3ad;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: #5b6572;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-bottom: 35px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pill {
  background: #e9f7f4;
  color: #5aa89b;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.brain-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brain-img {
  width: 100%;
  max-width: 560px;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Research areas / problem cards
   ========================================================================== */

.problem-card {
  border-top: 5px solid #66b7a0;
  transition: 0.3s;
}

.problem-card:hover {
  transform: translateY(-8px);
}

/* ==========================================================================
   Architecture — static pipeline diagram
   (EEG Sensors → Signal Processing → AI Models → Dashboard)
   ========================================================================== */

.workflow-architecture {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.flow-box {
  background: #fff;
  padding: 18px 28px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.flow-arrow {
  font-size: 30px;
  color: #66b7a0;
  font-weight: bold;
}

/* ==========================================================================
   Interactive EEG signal simulation (inside the Architecture section)

   Namespaced under .eeg-sim with its own --eeg-* custom properties so this
   widget's dark, terminal-style theme never leaks onto the rest of the
   page or collides with the shared --ink / --text tokens above.
   ========================================================================== */

.eeg-sim {
  --eeg-bg: #0b1210;
  --eeg-panel: #101c19;
  --eeg-line: #26433c;
  --eeg-teal: #4fd1ae;
  --eeg-teal-dim: #2c6b58;
  --eeg-text: #e7efec;
  --eeg-sub: #93a5a0;

  background: var(--eeg-bg);
  color: var(--eeg-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 48px 24px;
  margin-top: 40px;
}

.eeg-sim-inner {
  max-width: 760px;
  margin: 0 auto;
}

.eeg-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--eeg-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eeg-heading {
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--eeg-text);
  margin-bottom: 8px;
}

.eeg-lead {
  color: var(--eeg-sub);
  font-size: 14px;
  margin-bottom: 32px;
  max-width: 520px;
}

.eeg-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Generated by Nurolab.js: <div class="step [active]">…</div> */
.eeg-sim .step {
  flex: 1;
  min-width: 110px;
  background: var(--eeg-panel);
  border: 1px solid var(--eeg-line);
  color: var(--eeg-sub);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 12px 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.eeg-sim .step.active {
  border-color: var(--eeg-teal);
  color: var(--eeg-teal);
  background: rgba(79, 209, 174, 0.08);
}

.eeg-sim .step:hover {
  border-color: var(--eeg-teal-dim);
}

.eeg-stage-panel {
  background: var(--eeg-panel);
  border: 1px solid var(--eeg-line);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.eeg-stage-panel canvas {
  width: 100%;
  height: 180px;
  display: block;
  margin-bottom: 18px;
}

.eeg-caption h3 {
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: 17px;
  color: var(--eeg-text);
  margin-bottom: 6px;
}

.eeg-caption p {
  color: var(--eeg-sub);
  font-size: 14px;
  max-width: 560px;
}

.eeg-bars {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 6px;
}

/* Generated by Nurolab.js: <div class="bar-row">…</div> */
.eeg-sim .bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eeg-sim .bar-label {
  width: 190px;
  font-size: 13px;
  flex-shrink: 0;
}

.eeg-sim .bar-label .name {
  color: var(--eeg-text);
  font-weight: 500;
}

.eeg-sim .bar-label .desc {
  color: var(--eeg-sub);
  font-size: 12px;
  display: block;
}

.eeg-sim .bar-wave {
  flex: 1;
  height: 36px;
}

.eeg-sim .bar-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.eeg-badge-row {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

/* #riskBadge carries this class in the static HTML markup */
.eeg-sim .risk-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(79, 209, 174, 0.12);
  color: var(--eeg-teal);
  border: 1px solid var(--eeg-teal-dim);
}

.eeg-badge-note {
  font-size: 13px;
  color: var(--eeg-sub);
}

.eeg-nav {
  display: flex;
  justify-content: space-between;
}

.eeg-nav button {
  background: none;
  border: 1px solid var(--eeg-line);
  color: var(--eeg-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.eeg-nav button:hover {
  border-color: var(--eeg-teal);
  color: var(--eeg-teal);
}

.eeg-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.eeg-nav button:disabled:hover {
  border-color: var(--eeg-line);
  color: var(--eeg-text);
}

/* ==========================================================================
   Workflow (numbered steps)
   ========================================================================== */

.workflow-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.workflow-step {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  position: relative;
  transition: var(--transition);
}

.workflow-step:hover {
  transform: translateY(-5px);
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 183, 160, 0.95), rgba(102, 125, 183, 0.95));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.workflow-title {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.workflow-desc {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-card .card-title {
  font-size: 1.1rem;
}

/* ==========================================================================
   Roadmap
   ========================================================================== */

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.roadmap-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(31, 41, 51, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.roadmap-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.roadmap-item.done {
  border-style: solid;
  border-color: rgba(102, 183, 160, 0.4);
  background: rgba(102, 183, 160, 0.07);
}

.roadmap-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(102, 125, 183, 0.15);
  color: var(--blue);
  margin-bottom: 10px;
}

.roadmap-item.done .roadmap-tag {
  background: rgba(102, 183, 160, 0.2);
  color: var(--green);
}

.roadmap-title {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}

.roadmap-desc {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ==========================================================================
   Scroll-reveal (progressive enhancement, see Nurolab.js)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .workflow-step:hover,
  .roadmap-item:hover,
  .problem-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Toast (shared pattern with GVan.html)
   ========================================================================== */

#toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--ink);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  font-size: 0.85rem;
}

#toast.show {
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .nurolab-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0;
    gap: 40px;
  }

  .hero-left {
    max-width: 100%;
  }

  .brain-img {
    max-width: 420px;
    margin: 0 auto;
  }

  .workflow-track,
  .roadmap-track {
    grid-template-columns: 1fr;
  }

  .workflow-architecture {
    gap: 12px;
  }

  .eeg-sim {
    padding: 32px 18px;
  }

  .eeg-sim .step {
    min-width: 90px;
  }

  .eeg-sim .bar-label {
    width: 130px;
  }
}
/* ==============================
   EEG SIGNAL SIMULATION
============================== */

.signal-wrap{
    max-width:1100px;
    margin:40px auto;
    padding:50px;
    background:#ffffff;
    border:1px solid #e8edf3;
    border-radius:28px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.signal-wrap .eyebrow{
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#4fd1ae;
    margin-bottom:18px;
}

.signal-wrap h1{
    color:#1f2937;
    font-size:42px;
    font-weight:700;
    margin-bottom:18px;
}

.signal-wrap .lead{
    color:#5b6572;
    font-size:18px;
    line-height:1.7;
    margin-bottom:30px;
}

.steps{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:35px;
}

.step{

    flex:1;

    min-width:130px;

    background:#ffffff;

    border:1px solid #d8e4e9;

    border-radius:12px;

    padding:15px;

    color:#444;

    transition:.3s;

}

.step.active{

    background:linear-gradient(135deg,#66b7a0,#7d9fd6);

    color:white;

    border:none;

}

.stage-panel{

    background:#f7fafb;

    border:1px solid #dce5ec;

    border-radius:18px;

    padding:35px;

}
#wave{
    width:100%;
    height:300px;
    display:block;
    margin-bottom:30px;
}

.caption h3{
    color:#1f2937;
    font-size:28px;
    font-weight:700;
}

.caption p{
    color:#667085;
    font-size:16px;
}

.bars{
    display:none;
    flex-direction:column;
    gap:20px;
}

.badge-row{
    display:none;
    align-items:center;
    gap:20px;
}

.risk-badge{
    background:#1d4037;
    color:#4fd1ae;
    padding:10px 20px;
    border-radius:8px;
    border:1px solid #4fd1ae;
}

.nav{
    display:flex;
    justify-content:space-between;
    margin-top:35px;
}

.nav button{

    background:white;

    color:#1f2937;

    border:1px solid #cfd8df;

    padding:12px 24px;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

}

.nav button:hover{

    background:#66b7a0;

    color:white;

    border-color:#66b7a0;

}