:root{
  --bg:#070A12;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --a:#7C3AED;
  --b:#22D3EE;
  --c:#F59E0B;
  --ok:#34D399;

  --radius: 18px;
  --shadow: 0 20px 70px rgba(0,0,0,.55);
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

/* Background */
.bg{ position:fixed; inset:0; z-index:-1; overflow:hidden; }
.blob{
  position:absolute;
  width: 680px; height: 680px;
  border-radius: 50%;
  filter: blur(30px);
  opacity:.20;
}
.blob.b1{ left:-220px; top:-220px; background: radial-gradient(circle at 30% 30%, var(--a), transparent 60%); }
.blob.b2{ right:-260px; top:-140px; background: radial-gradient(circle at 30% 30%, var(--b), transparent 60%); }
.grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,1), rgba(0,0,0,.25), transparent 70%);
  opacity:.35;
}

.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }
a{ color:inherit; text-decoration:none; }

.header{
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{ display:flex; align-items:center; gap:12px; }
.mark{
  width: 38px; height: 38px;
  border-radius: 14px;
  background:
    radial-gradient(12px 12px at 28% 26%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.75));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px rgba(124,58,237,.25);
}
.brand-text b{ font-weight: 900; letter-spacing: -.2px; display:block; }
.brand-text small{ color: var(--muted); display:block; margin-top:2px; }

.nav{
  display:flex; align-items:center; gap: 18px;
}
.nav a{ color: rgba(255,255,255,.80); font-weight: 700; }
.nav a:hover{ color: rgba(255,255,255,.95); }
.nav .cta{
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.75));
  color: rgba(10,10,16,.98);
}

.menu-btn{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor:pointer;
}
.menu-btn span{
  display:block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.85);
  margin: 5px auto;
  border-radius: 2px;
}

/* Hero */
.hero{
  padding: 28px 0 10px;
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 18px;
  align-items:start;
}
.kicker{ color: rgba(255,255,255,.75); margin: 0 0 10px; }
h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -1px;
  line-height: 1.05;
}
.sub{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}
.grad{
  background: linear-gradient(90deg, rgba(124,58,237,1), rgba(34,211,238,1));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.grad2{
  background: linear-gradient(90deg, rgba(245,158,11,1), rgba(34,211,238,1));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.hero-actions{ display:flex; gap: 10px; flex-wrap:wrap; margin-bottom: 14px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight: 800;
  color: rgba(255,255,255,.9);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.btn.primary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.75));
  color: rgba(10,10,16,.98);
  border-color: rgba(255,255,255,.18);
}
.btn.ghost{ background: transparent; }
.btn.small{ padding: 10px 12px; border-radius: 12px; font-size: 14px; }

.hero-metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.metric{
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.m-top{ display:block; font-size: 12px; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.m-val{ font-weight: 900; letter-spacing: .2px; }

.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.profile .avatar{
  width: 72px; height: 72px;
  border-radius: 24px;
  display:grid; place-items:center;
  font-weight: 900;
  color: rgba(10,10,16,.98);
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.75));
  border: 1px solid rgba(255,255,255,.18);
}
.profile h2{ margin: 12px 0 2px; }
.profile p{ margin: 0 0 12px; color: var(--muted); }

.p-links{ display:flex; flex-direction:column; gap: 10px; }
.p-links a{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
}
.p-links a:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

.p-badges{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 14px; }
.badge{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
}

.note h3{ margin:0 0 6px; }
.note p{ margin:0; color: var(--muted); line-height: 1.7; }

/* Sections */
.section{ padding: 18px 0; margin-top: 10px; }
.section-head{ margin-bottom: 14px; }
.section-head h2{ margin:0 0 6px; font-size: 28px; letter-spacing:-.4px; }
.section-head p{ margin:0; color: var(--muted); line-height: 1.7; }

.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.cards3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

/* Lists, highlights */
.list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.muted{ color: var(--muted); }

.highlights{ display:flex; flex-direction:column; gap: 12px; margin-top: 8px; }
.hi{ display:flex; gap: 12px; align-items:flex-start; }
.dot{
  width: 12px; height: 12px;
  border-radius: 999px;
  margin-top: 6px;
  box-shadow: 0 0 0 6px rgba(255,255,255,.07);
}
.dot.ok{ background: var(--ok); }
.dot.a{ background: var(--a); }
.dot.b{ background: var(--b); }

/* Stack pills */
.stack{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 800;
  color: rgba(255,255,255,.82);
}

/* Projects */
.project{ cursor:pointer; position:relative; overflow:hidden; }
.project::after{
  content:"";
  position:absolute; inset:-120px;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.14), transparent 60%);
  opacity:0;
  transition: opacity .25s ease;
}
.project:hover::after{ opacity:1; }
.project .top{ display:flex; justify-content:space-between; gap: 10px; align-items:flex-start; }
.project .chip{
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(10,10,16,.95);
  background: linear-gradient(135deg, rgba(245,158,11,.95), rgba(34,211,238,.55));
  border: 1px solid rgba(255,255,255,.18);
  white-space:nowrap;
}
.mini-tags{ display:flex; gap: 8px; flex-wrap:wrap; margin-top: 10px; }
.mini-tags span{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 12px;
}
.link{
  margin-top: 14px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.86);
  font-weight: 900;
  cursor:pointer;
  padding: 0;
}
.link:hover{ text-decoration: underline; }

/* Research controls */
.research-controls{
  display:grid;
  grid-template-columns: 1.2fr .6fr .6fr;
  gap: 12px;
  align-items:end;
  margin-bottom: 14px;
}
.ctrl label{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
  font-weight: 800;
}
.ctrl input, .ctrl select{
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  outline: none;
}
.ctrl input:focus, .ctrl select:focus{
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 6px rgba(34,211,238,.08);
}
.ctrl.row{ display:flex; gap: 10px; align-items:center; justify-content:space-between; }
.check{ display:flex; gap: 10px; align-items:center; }
.check input{ width: 18px; height: 18px; }

.paper-list{ display:flex; flex-direction:column; gap: 12px; }
.paper-top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
}
.venue{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-weight: 900;
  font-size: 12px;
  white-space:nowrap;
}
.authors{ margin: 6px 0 8px; }
.toggle-abs{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
}
.toggle-abs:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.abstract{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}
.paper-actions{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }

.contact{ display:flex; flex-direction:column; gap: 10px; margin-top: 10px; }
.contact a{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
}
.contact a:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

.form{ display:flex; flex-direction:column; gap: 12px; margin-top: 10px; }
.form label span{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
  font-weight: 800;
}
.form input, .form textarea{
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  outline:none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 6px rgba(34,211,238,.08);
}

.tiny{ font-size: 12px; margin: 0; }

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 26px 0 60px;
  color: rgba(255,255,255,.70);
}
.to-top{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.to-top:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

/* Modal */
.modal{ position:fixed; inset:0; display:none; z-index: 60; }
.modal.show{ display:block; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.modal-card{
  position:relative;
  width: min(720px, calc(100% - 24px));
  margin: 9vh auto 0;
  background: rgba(12,15,26,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal-x{
  position:absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor:pointer;
}
.modal-actions{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 12px; }

/* Responsive nav */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .cards3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .research-controls{ grid-template-columns: 1fr; }
  .hero-metrics{ grid-template-columns: 1fr; }

  .menu-btn{ display:block; }
  .nav{
    position:absolute;
    right: 18px;
    top: 64px;
    background: rgba(12,15,26,.92);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 12px;
    display:none;
    flex-direction:column;
    gap: 12px;
    width: min(260px, calc(100vw - 36px));
  }
  .nav.show{ display:flex; }
}
