:root {
  --bg: #f7f7f4;
  --text: #151515;
  --muted: #5f6468;
  --line: #deded8;
  --card: #ffffff;
  --accent: #2457ff;
  --accent-dark: #1737a6;
  --soft-blue: #eef3ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  min-height: 92vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(36, 87, 255, 0.14), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(92, 130, 255, 0.12), transparent 34%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 130px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.authors {
  max-width: 820px;
  margin: 0 auto 10px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

.venue {
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-weight: 800;
}

.summary {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.55;
}

.button-row {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 255, 0.35);
  box-shadow: 0 14px 38px rgba(36, 87, 255, 0.12);
}

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

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.teaser {
  padding-top: 72px;
}

.teaser-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.teaser-card h2 {
  max-width: 900px;
}

.teaser-card p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.teaser-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.animation-box {
  position: relative;
  overflow: hidden;
  min-height: 1000px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at center, rgba(36, 87, 255, 0.24), transparent 45%);
  box-shadow: var(--shadow);
}

#estimatorCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.animation-overlay {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 420px;
  padding: 18px 20px;
  border: 1px solid rgba(222, 222, 216, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.animation-title {
  margin-bottom: 6px;
  font-weight: 850;
}

.animation-caption {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tldr {
  max-width: 960px;
}

.tldr p {
  color: var(--muted);
  font-size: 1.42rem;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.045);
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.result-card {
  min-height: 220px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.split p:last-child {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.75;
}

.figure-placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  text-align: center;
  border: 1px dashed #b7b9bd;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.5);
}

.figure-placeholder p {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 850;
}

.figure-placeholder span {
  color: var(--muted);
}

.bibtex-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #10131a;
  color: #eef3ff;
  box-shadow: var(--shadow);
}

.bibtex-box pre {
  margin: 0;
  padding: 32px;
  overflow-x: auto;
  line-height: 1.65;
}

.copy-button {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 13px;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.math {
  font-family: Georgia, "Times New Roman", serif;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

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

  .hero-content {
    padding-top: 72px;
  }

  .cards,
  .cards.three,
  .split,
  .result-block {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .animation-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .figure-slot {
    min-height: 260px;
  }
}



.hero-figure {
  width: 100%;
  max-width: 980px;
  margin: 56px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.img-explanation {
  max-width: 860px;
  margin: 14px auto 4px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: center;
}

.result-stack {
  display: grid;
  gap: 28px;
}

.result-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.045);
}

.result-copy {
  align-self: center;
}

.result-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.result-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.figure-slot {
  display: grid;
  min-height: 320px;
  place-items: center;
  text-align: center;
  border: 1px dashed #b7b9bd;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
}

.figure-slot p {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 850;
}

.figure-slot span {
  color: var(--muted);
}

.text-block {
  max-width: 880px;
}

.text-block p {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.75;
}

.result-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.045);
}

.result-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.result-figure figcaption {
  max-width: 92%;
  margin: 14px auto 2px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.teaser-panel {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.teaser-copy {
  max-width: 860px;
  margin-bottom: 28px;
}

.teaser-copy h2 {
  margin-bottom: 18px;
}

.teaser-copy p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.estimator-demo {
  margin: 0;
}

.teaser .animation-box {
  min-height: 0;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at center, rgba(36, 87, 255, 0.14), transparent 50%);
  box-shadow: none;
}

#estimatorCanvas {
  display: block;
  width: min(100%, 760px);
  height: 620px;
  margin: 0 auto;
}

.estimator-caption {
  max-width: 920px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.estimator-caption p {
  margin-bottom: 0;
}

.caption-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.caption-columns p {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}