:root {
  --bg: #050914;
  --bg-deep: #091225;
  --bg-alt: #0d1630;
  --surface: rgba(10, 18, 37, 0.76);
  --surface-strong: rgba(12, 22, 44, 0.9);
  --surface-soft: rgba(15, 25, 48, 0.66);
  --line: rgba(133, 162, 214, 0.18);
  --line-strong: rgba(255, 198, 110, 0.28);
  --text: #edf3ff;
  --muted: #aebed7;
  --soft: #7f97b8;
  --gold: #ffd27c;
  --gold-deep: #ffb85c;
  --cyan: #78c6ff;
  --orange: #ff9964;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(102, 158, 255, 0.16), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(255, 163, 92, 0.16), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(255, 220, 146, 0.08), transparent 34%),
    linear-gradient(180deg, #050914 0%, #071020 24%, #081224 58%, #050914 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.26;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle at 70% 20%, rgba(120, 198, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 80% 66%, rgba(255, 205, 133, 0.8) 0 1px, transparent 1.4px),
    radial-gradient(circle at 40% 75%, rgba(255, 153, 100, 0.68) 0 1px, transparent 1.5px);
  background-size: 260px 220px, 360px 260px, 420px 280px, 320px 260px;
}

body::after {
  background:
    linear-gradient(120deg, transparent 0%, rgba(120, 198, 255, 0.05) 30%, transparent 58%),
    linear-gradient(100deg, transparent 18%, rgba(255, 178, 92, 0.08) 50%, transparent 82%);
  mix-blend-mode: screen;
}

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

img {
  display: block;
  max-width: 100%;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 190, 104, 0.12), transparent 20%),
    radial-gradient(circle at 10% 56%, rgba(95, 145, 255, 0.1), transparent 22%),
    radial-gradient(circle at 92% 48%, rgba(255, 132, 84, 0.08), transparent 20%);
  filter: blur(10px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.88), rgba(4, 8, 18, 0.56));
  border-bottom: 1px solid rgba(122, 152, 207, 0.12);
}

.topbar-inner,
.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 245, 222, 0.96) 0 22%, transparent 23%),
    conic-gradient(from 40deg, #ffc46b, #5dafff, #ff9964, #ffc46b);
  box-shadow:
    0 0 0 1px rgba(255, 223, 170, 0.2),
    0 0 22px rgba(255, 196, 106, 0.34);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--soft);
  font-size: 0.8rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(130, 158, 210, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(9, 17, 33, 0.62);
}

.nav a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 194, 112, 0.14), rgba(120, 198, 255, 0.12));
  transform: translateY(-1px);
}

.page-shell {
  position: relative;
  padding: 34px 0 56px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(14, 24, 46, 0.88), rgba(8, 16, 33, 0.78)),
    rgba(9, 16, 31, 0.85);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 202, 115, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(120, 198, 255, 0.08), transparent 26%);
}

.hero {
  padding: 34px;
}

.papers {
  padding-top: 72px;
}

.hero {
  margin-top: 6px;
}

.hero-header {
  margin-bottom: 26px;
}

.eyebrow,
.paper-meta {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.paper-card h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

h1 {
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(3rem, 5.6vw, 4.9rem);
  line-height: 0.92;
  color: transparent;
  background: linear-gradient(92deg, #fff4de 0%, #ffd27c 26%, #98d8ff 64%, #edf4ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-subtitle,
.paper-subtitle {
  margin: 16px 0 0;
  color: #e7efff;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 28px;
  align-items: start;
}

.hero-lead,
.section-summary,
.paper-copy p {
  margin: 0;
  color: var(--muted);
  text-align: justify;
  text-wrap: pretty;
}

.hero-lead {
  font-size: 1.14rem;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  align-self: start;
}

.hero-frame {
  position: relative;
}

.hero-frame img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.section-head {
  display: grid;
  gap: 12px;
}

.section-head-wide {
  padding: 0 4px 10px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  color: #f4f8ff;
}

.section-summary {
  /* max-width: 980px; */
  font-size: 1.04rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.paper-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 26px;
}

.paper-track {
  min-height: 238px;
  padding: 24px 24px 26px;
  border-radius: 28px;
  border: 1px solid rgba(132, 162, 214, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 211, 140, 0.08), transparent 38%),
    radial-gradient(circle at top right, rgba(120, 198, 255, 0.06), transparent 30%),
    rgba(12, 20, 39, 0.64);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.paper-track-01 {
  border-color: rgba(255, 172, 104, 0.22);
}

.paper-track-02 {
  border-color: rgba(183, 222, 177, 0.18);
}

.paper-track-03 {
  border-color: rgba(118, 183, 255, 0.2);
}

.paper-track-index {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-track h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  line-height: 1.02;
  color: #f8fbff;
}

.paper-track p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.paper-stack {
  display: grid;
  gap: 24px;
}

.paper-card {
  padding: 28px;
}

.paper-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 209, 126, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 197, 108, 0.08);
}

.paper-card h3 {
  width: 100%;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.01;
  color: #f8fbff;
}

.paper-tldr {
  margin: 0;
  color: #dce9ff;
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: justify;
}

.paper-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(520px, 1.38fr);
  gap: 20px;
  align-items: center;
}

.paper-copy {
  display: grid;
  gap: 18px;
}

.paper-copy p {
  font-size: 1rem;
  line-height: 1.88;
}

.paper-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  display: grid;
  gap: 12px;
}

.paper-points li {
  padding-left: 4px;
  line-height: 1.75;
  font-size: 1.02rem;
  /* text-align: justify; */
  text-wrap: pretty;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #08111f;
  background: linear-gradient(135deg, #ffd791, #ffc169 55%, #ffe7b7 100%);
  box-shadow: 0 14px 32px rgba(255, 191, 100, 0.22);
}

.button-secondary {
  border-color: rgba(127, 152, 198, 0.22);
  background: rgba(14, 24, 46, 0.62);
  color: #f3f8ff;
}

.paper-figure {
  position: relative;
  align-self: start;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.paper-figure::before {
  display: none;
}

.paper-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.survey-section {
  margin-top: 60px;
}

.survey-paper-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 0;
  /* margin-top: 22px; */
  padding: 0;
  overflow: hidden;
}

.survey-visual,
.survey-copy {
  padding: 32px;
}

.survey-visual {
  position: relative;
}

.survey-visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 210, 124, 0.04), rgba(120, 198, 255, 0.2), rgba(255, 210, 124, 0.04));
}

.survey-visual-shell {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border: 1px dashed rgba(255, 215, 146, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 183, 99, 0.12), transparent 24%),
    radial-gradient(circle at 74% 24%, rgba(120, 198, 255, 0.1), transparent 20%),
    radial-gradient(circle at 52% 74%, rgba(255, 238, 207, 0.05), transparent 26%),
    rgba(10, 18, 35, 0.5);
}

.survey-visual-card {
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 40px 44px;
  text-align: center;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 244, 222, 0.06), rgba(120, 198, 255, 0.03)),
    rgba(246, 241, 232, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 216, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.18);
}

.survey-coming,
.survey-tags span,
.survey-link-placeholder {
  font-family: "IBM Plex Mono", monospace;
}

.survey-coming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: #0b1324;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ffe2a8, #ffd27c);
}

.survey-visual-card strong {
  color: #fff5de;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.survey-visual-card p,
.survey-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: justify;
}

.survey-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.survey-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.02;
  color: #f8fbff;
}

.survey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.survey-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: #d8ebff;
  font-size: 0.84rem;
  background: rgba(208, 231, 255, 0.08);
  border: 1px solid rgba(132, 162, 214, 0.16);
}

.survey-link-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: fit-content;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  color: #dce7f7;
  font-size: 0.92rem;
  border: 1px dashed rgba(255, 215, 146, 0.24);
  background: rgba(255, 245, 222, 0.03);
}

.footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 40px;
  border-top: 1px solid rgba(132, 162, 214, 0.14);
  color: var(--soft);
  font-size: 0.92rem;
  text-align: center;
}

.footer-copy,
.footer-contact {
  margin: 0;
  line-height: 1.8;
}

.footer-contact {
  margin-top: 12px;
}

.footer a {
  color: #dbe7fb;
  transition: color 180ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffd791;
}

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

@media (max-width: 1100px) {
  h1 {
    white-space: normal;
  }

  .hero-grid,
  .paper-body {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 860px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
  }

  .hero,
  .paper-card {
    padding: 24px;
  }

  .paper-summary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .paper-track {
    min-height: 0;
  }

  .paper-card h3 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .survey-paper-card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .survey-visual,
  .survey-copy {
    padding: 24px;
  }

  .survey-visual::after {
    display: none;
  }

  .survey-visual-shell {
    min-height: 320px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .topbar-inner,
  .footer {
    width: min(1240px, calc(100% - 20px));
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1.16rem;
  }

  .hero-lead,
  .section-summary,
  .paper-copy p,
  .paper-tldr,
  .survey-description,
  .survey-visual-card p {
    text-align: left;
  }

  .survey-visual-card {
    padding: 28px 22px;
  }

  .survey-link-placeholder {
    width: 100%;
  }

  .footer-contact {
    line-height: 1.95;
  }
}
