:root {
  --ink: #0a1830;
  --ink-soft: #47566d;
  --paper: #f7f8f4;
  --paper-deep: #eef1ec;
  --white: #ffffff;
  --line: #d8dedb;
  --line-dark: rgba(255, 255, 255, 0.16);
  --navy: #07162d;
  --navy-2: #0c2344;
  --blue: #4e7eff;
  --violet: #8a74ff;
  --green: #44c7a2;
  --orange: #ffac68;
  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(10, 24, 48, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
}

.site-header.scrolled {
  position: fixed;
  color: var(--ink);
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid rgba(10, 24, 48, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(10, 24, 48, 0.05);
  animation: header-in 0.28s ease both;
}

@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 11px;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(78, 126, 255, 0.24);
}

.brand-name {
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav > a:not(.nav-github) {
  position: relative;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.site-nav > a:not(.nav-github)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav > a:hover {
  opacity: 1;
}

.site-nav > a:hover::after {
  transform: scaleX(1);
}

.nav-github {
  padding: 10px 15px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 0;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 58% 18%, rgba(78, 126, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #061225 0%, #0a1e3c 62%, #0d2850 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  top: 12%;
  right: -150px;
  background: rgba(138, 116, 255, 0.13);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: 28%;
  background: rgba(68, 199, 162, 0.09);
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 780px;
  padding-top: 150px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.72fr);
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a9beff;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: #a9beff;
  font-weight: 500;
}

.hero-summary {
  max-width: 680px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--navy);
  background: var(--white);
}

.button-primary:hover {
  background: #e7ecff;
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #92e3c9;
}

.status i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.panel-orbit {
  position: relative;
  height: 330px;
  margin: 18px 0;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--blue);
}

.orbit-one {
  width: 230px;
  height: 230px;
  animation: orbit-spin 24s linear infinite;
}

.orbit-one::before { top: 24px; right: 35px; }
.orbit-one::after { bottom: 12px; left: 80px; background: var(--green); }

.orbit-two {
  width: 150px;
  height: 150px;
  border-style: dashed;
  animation: orbit-spin-reverse 18s linear infinite;
}

.orbit-two::before { top: 65px; right: -4px; background: var(--violet); }
.orbit-two::after { display: none; }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-360deg); } }

.orbit-center {
  position: relative;
  z-index: 2;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 24px;
  font-family: Georgia, serif;
  font-size: 28px;
  box-shadow: 0 16px 35px rgba(78, 126, 255, 0.3);
}

.orbit-label {
  position: absolute;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(7, 22, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.orbit-label-one { top: 40px; left: 14px; }
.orbit-label-two { top: 96px; right: 2px; }
.orbit-label-three { bottom: 35px; right: 40px; }

.panel-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.panel-footer div {
  padding: 18px 10px 4px;
  border-right: 1px solid var(--line-dark);
}

.panel-footer div:last-child {
  border: 0;
}

.panel-footer strong,
.panel-footer span {
  display: block;
}

.panel-footer strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.panel-footer span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.section-pad {
  padding: 112px 0;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 80px;
}

.intro-copy {
  max-width: 850px;
}

.intro h2,
.section-heading h2,
.papers-intro h2,
.about-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.intro-copy p {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.75;
}

.benchmarks {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.benchmark-list {
  border-top: 1px solid var(--ink);
}

.benchmark-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 250px;
  gap: 34px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.card-index {
  color: #93a0b1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7e8999;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
}

.tag-blue { color: #244fae; background: #e7edff; }
.tag-violet { color: #5d46b7; background: #ede9ff; }
.tag-green { color: #14755d; background: #ddf5ed; }

.card-main h3 {
  margin: 22px 0 8px;
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.card-title {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.card-description {
  max-width: 750px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.card-links a,
.text-link {
  position: relative;
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
}

.card-links a::after,
.text-link::after {
  content: "↗";
  margin-left: 5px;
  color: var(--blue);
}

.card-stats {
  margin: 0;
  align-self: stretch;
  border-left: 1px solid var(--line);
}

.card-stats div {
  padding: 0 0 20px 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.card-stats div:last-child {
  margin-bottom: 0;
  border: 0;
}

.card-stats dt {
  font-family: Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.card-stats dd {
  margin: 5px 0 0;
  color: #7b8796;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scope {
  background: var(--paper-deep);
}

.scope-table {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.scope-row {
  display: grid;
  grid-template-columns: 0.7fr 1.05fr 1.25fr 1fr;
}

.scope-row > div {
  min-width: 0;
  padding: 25px 22px;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}

.scope-row:last-child > div {
  border-bottom: 0;
}

.scope-row > div:last-child {
  border-right: 0;
}

.scope-row strong,
.scope-row span {
  display: block;
}

.scope-row strong {
  color: var(--ink);
  font-size: 17px;
}

.scope-row span {
  margin-top: 5px;
  color: #8a96a4;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-head > div {
  padding-top: 17px;
  padding-bottom: 17px;
  color: #718092;
  background: #e7ebe6;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.papers {
  color: var(--white);
  background: var(--navy);
}

.papers-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.3fr;
  gap: 90px;
}

.papers-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.papers-intro .section-kicker {
  color: #98b1ff;
}

.papers-intro p:last-child {
  max-width: 410px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.75;
}

.paper-list {
  border-top: 1px solid var(--line-dark);
}

.paper-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line-dark);
}

.paper-year {
  color: #98b1ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.paper-item h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}

.paper-item p {
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.paper-item a {
  color: #aebfff;
  font-size: 12px;
  font-weight: 700;
}

.about {
  background: var(--paper);
}

.about-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  padding: 68px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.about-copy .about-note {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #7c8898;
  font-size: 13px;
}

.about-copy .text-link {
  display: inline-block;
  margin-top: 28px;
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #050f20;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 60px;
}

.footer-brand {
  color: var(--white);
}

.footer-layout p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 650;
}

.copyright {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 74px;
    left: 24px;
    right: 24px;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-github {
    text-align: center;
  }

  .menu-toggle {
    display: block;
    color: inherit;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .intro-layout,
  .papers-layout,
  .about-card {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .papers-intro {
    position: static;
  }

  .benchmark-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .card-stats {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-stats div {
    padding: 22px 18px 0 0;
    margin: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .card-stats div:last-child {
    padding-left: 18px;
    border: 0;
  }

  .scope-table {
    overflow-x: auto;
  }

  .scope-row {
    min-width: 860px;
  }

  .footer-layout {
    grid-template-columns: 1fr auto;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    top: 66px;
    left: 16px;
    right: 16px;
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding-top: 132px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 64px);
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-panel {
    padding: 18px;
  }

  .panel-topline {
    flex-direction: column;
  }

  .panel-orbit {
    height: 280px;
    transform: scale(0.9);
  }

  .panel-footer {
    grid-template-columns: 1fr;
  }

  .panel-footer div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 13px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .panel-footer div:last-child {
    border-bottom: 0;
  }

  .section-pad {
    padding: 78px 0;
  }

  .intro-layout {
    gap: 20px;
  }

  .intro-copy p {
    font-size: 16px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 42px;
  }

  .benchmark-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }

  .card-index,
  .card-stats {
    grid-column: auto;
  }

  .card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-main h3 {
    font-size: 40px;
  }

  .card-stats {
    grid-template-columns: 1fr;
  }

  .card-stats div,
  .card-stats div:last-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paper-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .paper-item h3 {
    font-size: 20px;
  }

  .about-card {
    padding: 38px 24px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
