:root{
  --bg:#07100e;
  --bg-soft:#0c1714;
  --card:rgba(6, 16, 14, 0.78);
  --card-strong:rgba(8, 20, 17, 0.9);
  --text:#dffef7;
  --muted:#9dded1;
  --line:rgba(0,255,204,0.18);
  --line-strong:rgba(0,255,204,0.35);
  --accent:#00ffcc;
  --accent-soft:#8fffe9;
  --shadow:0 12px 40px rgba(0,255,204,0.08);
  --max:1120px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter, system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  position:relative;
}

a{
  color:var(--accent-soft);
  text-decoration:none;
}

a:hover{
  color:var(--accent);
}

h1,h2,h3,p{
  margin-top:0;
}

.brand,
.eyebrow,
.btn,
.course-code,
.course-category,
.chip,
.terminal-label,
.nav,
.section-heading h2{
  font-family:"Share Tech Mono", monospace;
}

#matrix{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:-2;
  pointer-events:none;
}

.overlay{
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at top, rgba(0,255,204,0.08), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.86));
  z-index:-1;
  pointer-events:none;
}

.container{
  width:min(var(--max), calc(100% - 2rem));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(10px);
  background:rgba(5, 10, 9, 0.65);
  border-bottom:1px solid rgba(0,255,204,0.08);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:72px;
}

.brand{
  color:var(--text);
  font-size:1rem;
  letter-spacing:.06em;
}

.nav{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

.nav a{
  color:var(--muted);
  padding:.35rem .6rem;
  border-radius:999px;
  transition:.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"]{
  color:var(--accent);
  background:rgba(0,255,204,0.08);
}

.hero,
.page-hero{
  padding:5rem 0 2rem;
}

.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:1.5rem;
  align-items:center;
  min-height:calc(100vh - 72px);
}

.eyebrow{
  color:var(--accent);
  font-size:.86rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:1rem;
}

.hero h1,
.page-hero h1{
  font-size:clamp(2.4rem, 6vw, 4.8rem);
  line-height:1.04;
  margin-bottom:1rem;
  text-shadow:0 0 18px rgba(0,255,204,0.12);
}

.lede{
  color:var(--muted);
  font-size:1.08rem;
  max-width:760px;
}

.lede.narrow{
  max-width:760px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
  margin-top:1.5rem;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:.75rem 1.1rem;
  border-radius:12px;
  border:1px solid var(--line-strong);
  text-transform:uppercase;
  letter-spacing:.08em;
  transition:.2s ease;
}

.btn-solid{
  background:rgba(0,255,204,0.12);
  color:var(--accent);
}

.btn-solid:hover{
  background:rgba(0,255,204,0.2);
}

.btn-ghost{
  background:transparent;
  color:var(--text);
}

.btn-ghost:hover{
  background:rgba(255,255,255,0.04);
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.hero-panel{
  overflow:hidden;
}

.terminal-head{
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:1rem 1rem .9rem;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(0,255,204,0.06), transparent);
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  opacity:.8;
}

.red{background:#ff5f56}
.yellow{background:#ffbd2e}
.green{background:#27c93f}

.terminal-label{
  margin-left:.5rem;
  color:var(--muted);
  font-size:.9rem;
}

.terminal-body{
  padding:1.2rem 1rem 1.3rem;
  color:var(--accent-soft);
}

.prompt{
  color:var(--accent);
}

.section{
  padding:1rem 0 4rem;
}

.section-heading{
  margin-bottom:1.25rem;
}

.section-heading h2{
  font-size:1.7rem;
  margin-bottom:.35rem;
}

.section-heading p{
  color:var(--muted);
}

.grid{
  display:grid;
  gap:1rem;
}

.grid-3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.feature-card{
  padding:1.2rem;
}

.feature-card h3{
  font-family:Inter, system-ui, sans-serif;
  font-size:1.2rem;
  margin-bottom:.5rem;
  color:var(--text);
}

.feature-card p{
  color:var(--muted);
}

.text-link{
  display:inline-block;
  margin-top:.5rem;
}

.coming-soon{
  display:inline-block;
  margin-top:.5rem;
  color:var(--accent);
  font-size:.95rem;
}

.page{
  padding-bottom:4rem;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:1rem;
  margin-bottom:1rem;
}

.stat-card{
  padding:1rem 1.1rem;
}

.stat-label{
  display:block;
  color:var(--muted);
  margin-bottom:.35rem;
}

.stat-card strong{
  font-size:2rem;
  color:var(--accent);
  font-family:"Share Tech Mono", monospace;
}

.controls{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1rem;
  padding:1rem;
  margin-bottom:2rem;
}

.controls label{
  display:block;
  margin-bottom:.4rem;
  color:var(--muted);
  font-size:.95rem;
}

.controls select{
  width:100%;
  min-height:44px;
  border-radius:12px;
  border:1px solid var(--line-strong);
  background:var(--card-strong);
  color:var(--text);
  padding:.7rem .9rem;
  font:inherit;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}

.chip{
  border:1px solid var(--line-strong);
  background:rgba(0,255,204,0.06);
  color:var(--text);
  border-radius:999px;
  padding:.65rem .9rem;
  cursor:pointer;
  transition:.2s ease;
}

.chip span{
  color:var(--accent);
}

.chip:hover,
.chip.active{
  background:rgba(0,255,204,0.15);
  color:var(--accent);
}

.timeline{
  display:flex;
  flex-direction:column;
  gap:1.25rem;
}

.timeline-group{
  display:flex;
  flex-direction:column;
  gap:.8rem;
}

.timeline-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.timeline-header h3{
  margin:0;
  font-size:1.2rem;
}

.timeline-header span{
  color:var(--muted);
}

.course-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1rem;
}

.course-card{
  padding:1rem;
  transition:.2s ease;
}

.course-card:hover{
  transform:translateY(-2px);
  border-color:var(--line-strong);
  background:rgba(0,255,204,0.07);
}

.course-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  margin-bottom:.65rem;
}

.course-code{
  color:var(--accent);
  font-size:.95rem;
}

.course-category{
  color:var(--muted);
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.empty-state{
  padding:1.2rem;
}

.site-footer{
  border-top:1px solid rgba(0,255,204,0.08);
  background:rgba(4,10,8,0.6);
}

.footer-row{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  color:var(--muted);
  font-size:.95rem;
}

/* Research page */

.research-stack{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
}

.publication-card{
  padding:1.4rem;
}

.publication-featured{
  background:linear-gradient(180deg, rgba(0,255,204,0.05), rgba(6,16,14,0.78));
  border-color:rgba(0,255,204,0.28);
}

.publication-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin-bottom:.9rem;
  flex-wrap:wrap;
}

.pub-type,
.pub-year{
  font-family:"Share Tech Mono", monospace;
  color:var(--accent);
  font-size:.88rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.publication-card h2{
  font-family:Inter, system-ui, sans-serif;
  font-size:clamp(1.55rem, 2.4vw, 2.15rem);
  line-height:1.18;
  margin-bottom:.85rem;
  color:var(--text);
  text-shadow:none;
  max-width:980px;
}

.publication-meta{
  color:var(--muted);
  font-size:1rem;
  margin-bottom:1rem;
}

.publication-card p{
  max-width:980px;
  color:var(--text);
}

.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:1.15rem;
}

.tag{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:.42rem .78rem;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:rgba(0,255,204,0.06);
  color:var(--accent-soft);
  font-family:"Share Tech Mono", monospace;
  font-size:.8rem;
  line-height:1;
  white-space:nowrap;
}

.publication-links{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
  margin-top:1.2rem;
}

@media (max-width: 900px){
  .hero{
    grid-template-columns:1fr;
    padding-top:3rem;
    min-height:auto;
  }

  .grid-3,
  .stats-grid,
  .controls,
  .course-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .nav-wrap,
  .footer-row,
  .timeline-header,
  .publication-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero,
  .page-hero{
    padding-top:2.5rem;
  }

  .hero-actions{
    width:100%;
  }

  .btn{
    width:100%;
  }

  .publication-card{
    padding:1.1rem;
  }

  .publication-card h2{
    font-size:1.35rem;
  }

  .tag{
    white-space:normal;
  }
}