:root {
  --bg-space: #0A0E17;
  --bg-surface: #111827;
  --primary: #00FF9D;
  --accent: #00D4FF;
  --hot: #FF8A3D;
  --text: #E5E9F0;
  --muted: #94A3B8;
  --line: #2D3748;
  --tint: rgba(0, 255, 157, 0.08);
  --header-w: 264px;
  --radius: 14px;
  --font-head: "Arial Black", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-serif: Georgia, "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 88% -5%, rgba(0, 212, 255, 0.14), transparent 60%),
    radial-gradient(820px 480px at -10% 110%, rgba(0, 255, 157, 0.09), transparent 60%),
    var(--bg-space);
  background-attachment: fixed;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content {
  margin-left: var(--header-w);
  min-height: 75vh;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 300;
  background: var(--primary);
  color: #04170E;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: none;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--header-w);
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress::before {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.45);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--header-w);
  padding: 2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 14, 23, 0.98));
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 100;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 212, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.28;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent) 42%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

.header-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.35));
  transition: filter 0.2s ease;
}

.brand-logo:hover .brand-mark {
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.6));
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
  transform: skew(-3deg);
  transition: color 0.2s ease;
}

.brand-name em {
  font-style: normal;
  color: var(--primary);
  font-size: 0.9em;
  margin-left: 0.15rem;
}

.brand-logo:hover .brand-name {
  color: var(--primary);
}

.header-tagline {
  margin-top: 0.8rem;
  padding-left: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: var(--muted);
}

.header-code {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

/* Nav */
.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-index {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  transform: translateY(1px);
}

.nav-text {
  position: relative;
}

.nav-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.nav-link:hover {
  background: var(--tint);
  border-left-color: var(--primary);
  color: var(--text);
}

.nav-link:hover .nav-text::after {
  width: 100%;
}

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.14), transparent 70%);
  border-left-color: var(--primary);
  color: var(--primary);
}

.nav-link[aria-current="page"] .nav-text::after {
  width: 100%;
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--primary);
}

.nav-meta {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

.nav-meta p {
  margin: 0;
}

/* Footer */
.site-footer {
  margin-left: var(--header-w);
  position: relative;
  background: linear-gradient(180deg, #0D1420, #090C13);
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1rem, 4vw, 4rem) 1.5rem;
}

.site-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.footer-brand-name {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text);
  transform: skew(-2deg);
}

.footer-brand-name em {
  font-style: normal;
  color: var(--primary);
}

.footer-bio {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

.footer-note {
  max-width: 1280px;
  margin: 1.25rem auto 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04170E;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 255, 157, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(0, 255, 157, 0.4);
}

.back-to-top-icon {
  transform: translateY(-1px);
}

/* Layout components */
.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vh, 6rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--text);
  transform: skew(-2deg);
}

.section-title::after {
  content: "";
  display: block;
  margin-top: 0.6rem;
  width: 3.5rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  color: var(--text);
  transform: skew(-2deg);
}

.page-subtitle {
  margin: 0 0 1.5rem;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tint);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.3), 0 0 24px rgba(0, 255, 157, 0.2);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04170E;
}

.btn-primary:hover {
  border-color: transparent;
  color: #04170E;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-gap-sm {
  gap: 1rem;
}

.grid-gap-lg {
  gap: 2rem;
}

/* Card */
.card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 23, 0.98));
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 14px 44px -14px rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--text);
  transform: skew(-1deg);
}

.card-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-meta {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.tag-hot {
  border-color: rgba(255, 138, 61, 0.5);
  color: var(--hot);
  background: rgba(255, 138, 61, 0.08);
}

.tag-live {
  border-color: rgba(0, 255, 157, 0.5);
  color: var(--primary);
  background: rgba(0, 255, 157, 0.08);
}

.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.6);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--accent);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(45, 55, 72, 0.6);
  color: var(--muted);
}

.data-table tbody tr:hover {
  background: var(--tint);
}

.data-table .num {
  color: var(--text);
  font-weight: 600;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
}

.stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-size: 0.55em;
  color: var(--accent);
  margin-left: 0.15rem;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Picture and viz placeholders */
.picture-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.picture-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.picture-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 255, 157, 0.15);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.picture-frame:hover::after {
  opacity: 1;
}

.frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text);
  background: linear-gradient(transparent, rgba(10, 14, 23, 0.88));
}

.viz-plot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 28px),
    linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(0, 212, 255, 0.06));
}

.viz-plot::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 14%;
  bottom: 18%;
  height: 34%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  clip-path: polygon(0 72%, 16% 38%, 34% 58%, 48% 18%, 64% 34%, 82% 8%, 100% 22%, 100% 100%, 0 100%);
}

.viz-plot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(0, 255, 157, 0.06), transparent 60%);
}

/* Quote, term, notice */
.quote-block {
  margin: 2rem 0;
  padding: 0.8rem 1.5rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--tint);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text);
}

.quote-block footer {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
}

.term-plate {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(17, 24, 39, 0.4);
}

.term-plate dt {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.term-plate dd {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 212, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-hot {
  border-left-color: var(--hot);
  background: rgba(255, 138, 61, 0.08);
}

body.scroll-lock {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 64px;
    padding: 0.5rem 1rem;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .site-header::before {
    opacity: 0.15;
  }

  .site-header::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent) 40%, transparent);
    opacity: 0.6;
  }

  .header-brand {
    margin: 0;
    flex: 1;
    min-width: 0;
  }

  .header-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 44px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 14, 23, 0.6);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--tint);
  }

  .nav-toggle-box {
    position: relative;
    width: 18px;
    height: 12px;
    display: block;
  }

  .nav-toggle-box i {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  }

  .nav-toggle-box i:nth-child(1) {
    top: 0;
  }

  .nav-toggle-box i:nth-child(2) {
    top: 5px;
  }

  .nav-toggle-box i:nth-child(3) {
    top: 10px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-box i:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background: var(--primary);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-box i:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-box i:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    background: var(--primary);
  }

  .nav-toggle-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-text {
    color: var(--primary);
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 1.5rem 1.25rem;
    overflow-y: auto;
    background: var(--bg-space);
    z-index: 90;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    gap: 0;
  }

  .nav-link {
    padding: 1rem 0.75rem;
    font-size: 1.05rem;
    border-left: none;
    border-bottom: 1px solid rgba(45, 55, 72, 0.7);
  }

  .nav-meta {
    margin-top: 2rem;
  }

  #main-content,
  .site-footer {
    margin-left: 0;
  }

  .scroll-progress {
    left: 0;
  }

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

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 2.5rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
