:root {
  color-scheme: light;
  --text: #121417;
  --muted: #68717d;
  --subtle: #8a94a3;
  --line: rgba(18, 20, 23, 0.12);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(31, 38, 46, 0.14);
  --blue: #0a84ff;
  --green: #30a46c;
  --ink: #202124;
  --violet: #7c3aed;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(10, 132, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(48, 164, 108, 0.11), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #f2f4f7 46%, #eef1f5 100%);
  font-family:
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 42vw;
  max-width: 560px;
  min-width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient-a {
  top: -16vh;
  left: -12vw;
  background: rgba(10, 132, 255, 0.22);
}

.ambient-b {
  right: -15vw;
  bottom: 12vh;
  background: rgba(255, 159, 10, 0.18);
}

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

.site-header {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 12px 36px rgba(31, 38, 46, 0.08);
  backdrop-filter: blur(22px) saturate(170%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.12);
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #3d4652;
  font-size: 0.9rem;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(18, 20, 23, 0.06);
  color: var(--text);
  outline: none;
}

.hero {
  width: min(760px, 100%);
  padding: 34px 0 64px;
}

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

.typing-title {
  min-height: clamp(82px, 10vw, 132px);
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0;
}

.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  margin-left: 0.04em;
  transform: translateY(0.1em);
  border-radius: 999px;
  background: var(--text);
  animation: blink 920ms steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: #4f5966;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.8;
}

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

.primary-action,
.secondary-action,
.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-action {
  color: #fff;
  background: #121417;
  box-shadow: 0 16px 36px rgba(18, 20, 23, 0.18);
}

.secondary-action {
  border: 1px solid var(--line);
  color: #202833;
  background: rgba(255, 255, 255, 0.62);
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 74px;
}

.metric {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(31, 38, 46, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
}

.metric span {
  display: block;
  color: #171b20;
  font-size: clamp(1.42rem, 3vw, 2.1rem);
  line-height: 1;
  font-weight: 700;
}

.metric p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.records-section {
  padding: 0 0 72px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: #171b20;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.record-card {
  position: relative;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 20px 58px rgba(31, 38, 46, 0.1);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.record-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 42%),
    var(--accent-soft);
  content: "";
  opacity: 0.82;
  pointer-events: none;
}

.record-card > * {
  position: relative;
}

.record-card:hover,
.record-card:focus-visible {
  border-color: rgba(10, 132, 255, 0.36);
  box-shadow: 0 26px 70px rgba(31, 38, 46, 0.16);
  outline: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--subtle);
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(18, 20, 23, 0.1);
  border-radius: 999px;
  color: #2f3843;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.record-card h3 {
  margin: 38px 0 16px;
  color: #171b20;
  font-size: clamp(1.34rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.record-card p {
  margin: 0;
  color: #596371;
  font-size: 0.98rem;
  line-height: 1.75;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  color: #2f3843;
  font-size: 0.92rem;
  font-weight: 700;
}

.open-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #171b20;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-shell.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(238, 241, 245, 0.64);
  backdrop-filter: blur(24px) saturate(150%);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  outline: none;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(18, 20, 23, 0.1);
  border-radius: 50%;
  color: #39424e;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.modal-close span {
  transform: translateY(-1px);
  font-size: 1.3rem;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 0;
  color: #171b20;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.modal-summary {
  margin: 18px 0 26px;
  color: #4f5966;
  font-size: 1.05rem;
  line-height: 1.8;
}

.modal-body {
  display: grid;
  gap: 18px;
  color: #333b46;
  line-height: 1.85;
}

.modal-body p {
  margin: 0;
}

.modal-body h3 {
  margin: 12px 0 -8px;
  color: #171b20;
  font-size: 1.1rem;
}

.modal-body ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.2rem;
}

.source-link {
  width: fit-content;
  margin-top: 30px;
  color: #fff;
  background: var(--blue);
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: auto;
  }

  .topbar {
    margin-bottom: 36px;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero {
    padding: 26px 0 48px;
  }

  .typing-title {
    min-height: 110px;
  }

  .overview,
  .records-grid {
    grid-template-columns: 1fr;
  }

  .overview {
    margin: 0 0 68px;
  }

  .record-card {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links a {
    text-align: center;
  }

  .typing-title {
    min-height: 96px;
    font-size: 2.8rem;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

  .record-card {
    padding: 20px;
  }

  .record-card h3 {
    margin-top: 42px;
  }

  .modal-shell {
    padding: 14px;
  }
}

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