:root {
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ink: #0b1220;
  --ink-soft: #273047;
  --muted: #5b667a;
  --accent: #0ea5a8;
  --accent-strong: #0f766e;
  --accent-warm: #f97316;
  --accent-sun: #f59e0b;
  --surface: #fff9f1;
  --surface-alt: #f2f8f7;
  --surface-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.2);
  --radius: 18px;
  --radius-lg: 26px;
  --hero-gradient: linear-gradient(120deg, #fff3d8 0%, #e0f2fe 50%, #d1fae5 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(0px);
  animation: float 12s ease-in-out infinite;
}

body::before {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.35), rgba(249, 115, 22, 0));
}

body::after {
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 168, 0.35), rgba(14, 165, 168, 0));
  animation-delay: 3s;
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.section {
  padding: 4.5rem 1.5rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

.hero-splash {
  background: var(--hero-gradient);
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.03em;
}

.hero-title-step {
  color: #0ea5a8;
}

.hero-title-orm {
  color: #f97316;
}

.tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.author-list {
  margin-top: 1rem;
  font-weight: 600;
}

.corresponding-mark {
  font-size: 0.85em;
  vertical-align: super;
  margin-left: 2px;
}

.corresponding-note {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.affiliation {
  color: var(--muted);
  margin-top: 0.25rem;
}

.chip-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-media {
  display: grid;
  gap: 1.5rem;
}

.media-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  animation: float 9s ease-in-out infinite;
}

.media-card.small {
  animation-delay: 2s;
}

.media-card img {
  width: 100%;
  border-radius: 16px;
}

.btn .ai {
  font-size: 1.1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.media-card p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.teaser-section {
  background: var(--surface-alt);
}

.teaser-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.teaser-video video {
  width: 100%;
  display: block;
}

.content-block {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

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

.info-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

.figure-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.figure-card img {
  width: 100%;
  border-radius: 12px;
}

.figure-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.table-wrap {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.result-table {
  font-size: 0.9rem;
}

.result-table thead th {
  background: var(--ink);
  color: #ffffff;
  border: none;
}

.result-table tbody tr.highlight-row {
  background: rgba(249, 115, 22, 0.12);
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.more-works-container {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 30;
}

.more-works-btn {
  background: var(--surface-card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.llm4or-accent {
  background: linear-gradient(120deg, #14b8a6, #f97316, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.more-works-dropdown {
  display: none;
  margin-top: 0.75rem;
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  width: min(360px, 90vw);
}

.more-works-dropdown.show {
  display: block;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.works-list {
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(14, 165, 168, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.work-info h5 {
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.work-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.work-venue {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.bibtex-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.copy-bibtex-btn {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--surface-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#bibtex-code {
  background: var(--ink);
  color: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}

.footer {
  padding: 2.5rem 1.5rem;
  background: #0b1220;
  color: #f8fafc;
}

.footer a {
  color: #fbbf24;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-splash {
    padding-top: 4rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .more-works-container {
    top: 14px;
    right: 14px;
  }
}
