:root {
  --ink: #10233f;
  --navy: #0b2d5f;
  --royal: #0f4fc4;
  --cyan: #64daf4;
  --gold: #d8c27a;
  --paper: #f8fafc;
  --line: rgba(216, 194, 122, .72);
  --shadow: 0 24px 70px rgba(3, 11, 29, .35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #f7fbff;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 70% 18%, rgba(98, 218, 244, .2), transparent 25rem),
    linear-gradient(180deg, #061025 0%, #092a58 40%, #081329 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("bg-pattern.svg");
  background-size: 260px 260px;
  opacity: .24;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, .08) 39%, transparent 42% 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .52));
  pointer-events: none;
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 18px;
  background: #061025;
  transition: opacity .7s ease, visibility .7s ease;
}

.boot-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-ring {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(216, 194, 122, .4);
  border-top-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(100, 218, 244, .35);
  animation: spin 1.1s linear infinite;
}

.boot-screen p {
  margin: 0;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(5, 17, 38, .86);
  border-bottom: 1px solid rgba(216, 194, 122, .3);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}

.brand-text {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

.top-nav a:hover {
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(6, 16, 37, .9), rgba(6, 16, 37, .58) 48%, rgba(6, 16, 37, .88)),
    url("fgoa-bg-top2.jpg") center top / cover no-repeat;
}

.hero::before {
  position: absolute;
  right: -12vw;
  bottom: 7vh;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  content: "";
  background: url("arcane-ring.svg") center / contain no-repeat;
  opacity: .35;
  animation: slowSpin 42s linear infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(46px, 8vw, 108px);
  line-height: .96;
  text-shadow: 0 0 22px rgba(100, 218, 244, .2), 0 6px 0 rgba(0, 0, 0, .24);
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.06;
}

.dark-band h2,
.deploy-band h2 {
  color: #fff;
}

.lead {
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.arcade-button {
  position: relative;
  display: inline-grid;
  min-width: 168px;
  min-height: 44px;
  place-items: center;
  padding: 11px 22px;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 2px rgba(0, 0, 0, .7);
  background-color: #0f4fc4;
  background-image:
    linear-gradient(45deg, rgba(98, 218, 244, .12) 25%, transparent 25% 75%, rgba(98, 218, 244, .12) 75%),
    linear-gradient(135deg, rgba(98, 218, 244, .12) 25%, transparent 25% 75%, rgba(98, 218, 244, .12) 75%),
    linear-gradient(180deg, rgba(0, 196, 255, .78), rgba(9, 53, 133, .8) 50%, rgba(0, 0, 0, .48));
  background-size: 16px 16px, 16px 16px, auto;
  border: 0;
  border-radius: 5px;
  box-shadow: inset 0 0 4px 4px rgba(111, 144, 204, .72), 0 0 0 2px #ddd0a4, 0 0 0 4px #256baf, 0 16px 28px rgba(0, 0, 0, .28);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.arcade-button::after {
  position: absolute;
  inset: -30% auto -30% -30%;
  width: 26%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .68), transparent);
  transform: skewX(-18deg) translateX(-180%);
}

.arcade-button:hover {
  filter: brightness(1.18);
  transform: translateY(-3px);
  box-shadow: inset 0 0 4px 4px rgba(111, 144, 204, .72), 0 0 0 2px #fff0b8, 0 0 0 4px #2c8cff, 0 20px 36px rgba(0, 0, 0, .34);
}

.arcade-button:hover::after {
  animation: shine .75s ease;
}

.arcade-button.ghost {
  background-color: #14325f;
  box-shadow: inset 0 0 4px 4px rgba(100, 218, 244, .26), 0 0 0 2px #ddd0a4, 0 0 0 4px rgba(100, 218, 244, .5);
}

.hero-panel {
  position: relative;
  padding: 26px;
  background: rgba(245, 247, 251, .94);
  color: var(--ink);
  border: 1px solid rgba(216, 194, 122, .75);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.hero-panel::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(15, 79, 196, .25);
  pointer-events: none;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 79, 196, .25);
}

.panel-title span {
  color: #6b7891;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.panel-title strong {
  color: var(--royal);
  font-size: 28px;
}

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

.signal-grid div {
  min-height: 108px;
  padding: 16px 12px;
  background: linear-gradient(180deg, #fff, #e8f3ff);
  border: 1px solid rgba(15, 79, 196, .2);
  text-align: center;
}

.signal-grid b {
  display: block;
  color: var(--royal);
  font-size: 36px;
  line-height: 1;
}

.signal-grid span {
  display: block;
  margin-top: 8px;
  color: #4a5870;
  font-size: 12px;
  line-height: 1.45;
}

.system-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  background: #092a58;
  color: #fff;
}

.system-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
}

.pulse {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(100, 218, 244, .75);
  animation: pulse 1.6s infinite;
}

.section-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 88px);
}

.light-band {
  background-color: #fff;
  background-image: url("fgoa-txt-bg.jpg");
  color: var(--ink);
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(3, 14, 35, .94), rgba(6, 28, 65, .96)),
    url("bg-pattern.svg");
  color: #fff;
}

.deploy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(6, 16, 37, .94), rgba(9, 42, 88, .86)),
    url("gold-grid.svg") center / 300px;
  border-top: 1px solid rgba(216, 194, 122, .45);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: #4a5870;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 79, 196, .15);
  box-shadow: 0 18px 40px rgba(16, 35, 63, .1);
  transition: transform .35s ease, box-shadow .35s ease;
}

.feature-card::after {
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 150px;
  height: 150px;
  content: "";
  background: url("arcane-ring.svg") center / contain no-repeat;
  opacity: .12;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(16, 35, 63, .18);
}

.feature-code {
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.feature-card p {
  margin-bottom: 0;
  color: #4a5870;
  line-height: 1.8;
}

.chapter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 34px auto 0;
}

.chapter-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 16, 37, .9), rgba(15, 79, 196, .78)),
    url("gold-grid.svg") center / 280px;
  box-shadow: 0 18px 42px rgba(16, 35, 63, .18);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.chapter-card:nth-child(2) {
  background:
    linear-gradient(120deg, rgba(64, 44, 12, .94), rgba(182, 149, 76, .84)),
    url("gold-grid.svg") center / 280px;
}

.chapter-card:nth-child(3) {
  background:
    linear-gradient(120deg, rgba(6, 44, 54, .94), rgba(40, 169, 178, .8)),
    url("gold-grid.svg") center / 280px;
}

.chapter-card:nth-child(4) {
  background:
    linear-gradient(120deg, rgba(38, 20, 66, .94), rgba(75, 97, 185, .82)),
    url("gold-grid.svg") center / 280px;
}

.chapter-card::after {
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  content: "";
  background: url("arcane-ring.svg") center / contain no-repeat;
  opacity: .28;
}

.chapter-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.chapter-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.chapter-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 34px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button {
  padding: 9px 16px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(216, 194, 122, .26);
  border-radius: 3px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.segmented button:hover,
.segmented button.active {
  color: #061025;
  background: var(--gold);
  transform: translateY(-2px);
}

.timeline {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 102px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  margin-bottom: 22px;
}

.timeline-item.hide {
  display: none;
}

.timeline-item time {
  position: sticky;
  top: 90px;
  align-self: start;
  padding-top: 18px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.log-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 24px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(216, 194, 122, .68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.log-card::before {
  position: absolute;
  top: 24px;
  left: -35px;
  width: 17px;
  height: 17px;
  content: "";
  background: #fff;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(100, 218, 244, .8);
}

.log-card:hover,
.log-card[aria-expanded="true"] {
  background: #fff;
  transform: translateX(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.repo-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.repo-tag.server {
  background: #0f4fc4;
}

.repo-tag.admin {
  background: #9b7833;
}

.repo-tag.launcher {
  background: #176b6f;
}

.log-card h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 3vw, 30px);
}

.log-card p {
  margin-bottom: 0;
  color: #4a5870;
  line-height: 1.7;
}

.log-card ul {
  max-height: 0;
  margin: 0;
  padding-left: 20px;
  overflow: hidden;
  color: #3d4b62;
  line-height: 1.75;
  transition: max-height .35s ease, margin-top .35s ease;
}

.log-card[aria-expanded="true"] ul {
  max-height: 180px;
  margin-top: 14px;
}

.section-copy {
  max-width: 760px;
  margin: 0 auto;
  color: #536176;
  font-size: 17px;
  line-height: 1.8;
}

.ornate-section {
  position: relative;
  overflow: hidden;
}

.ornate-section::before,
.ornate-section::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.ornate-section::before {
  top: 58px;
  left: -140px;
  width: 340px;
  height: 340px;
  background: url("arcane-ring.svg") center / contain no-repeat;
  opacity: .08;
}

.ornate-section::after {
  right: 0;
  bottom: 0;
  width: 48vw;
  height: 180px;
  background: linear-gradient(135deg, transparent 0 40%, rgba(15, 79, 196, .08) 40% 70%, transparent 70%);
}

.ecosystem-board {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(15, 79, 196, .16);
  box-shadow: 0 28px 70px rgba(16, 35, 63, .12);
}

.route-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 12px;
  color: #708097;
  background:
    linear-gradient(90deg, transparent, rgba(15, 79, 196, .14), transparent) center / 100% 1px no-repeat,
    rgba(255, 255, 255, .72);
  border: 1px solid rgba(216, 194, 122, .4);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
}

.route-line span {
  position: relative;
  background: rgba(255, 255, 255, .9);
}

.module-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.module-node {
  position: relative;
  min-height: 168px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background: #0b2d5f;
  border: 1px solid rgba(216, 194, 122, .45);
  box-shadow: 0 16px 34px rgba(16, 35, 63, .18);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.module-node::after {
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  content: "";
  background: url("arcane-ring.svg") center / contain no-repeat;
  opacity: .22;
}

.module-node span {
  display: block;
  margin-bottom: 38px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.module-node strong {
  display: block;
  font-size: 25px;
}

.module-node em {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  font-style: normal;
}

.module-node:hover,
.module-node.active {
  filter: brightness(1.14);
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(16, 35, 63, .25);
}

.module-node.active {
  outline: 2px solid rgba(216, 194, 122, .85);
  outline-offset: 3px;
}

.module-node.server {
  background: linear-gradient(145deg, #0f4fc4, #061f55);
}

.module-node.admin {
  background: linear-gradient(145deg, #b6954c, #493815);
}

.module-node.launcher {
  background: linear-gradient(145deg, #28a9b2, #0a3b48);
}

.module-detail {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1fr);
  gap: 26px;
  min-height: 330px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(15, 79, 196, .18);
  box-shadow: 0 18px 44px rgba(16, 35, 63, .12);
}

.detail-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(145deg, #0f4fc4, #061025);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.detail-visual::before {
  position: absolute;
  inset: 18px;
  content: "";
  background: url("arcane-ring.svg") center / contain no-repeat;
  opacity: .32;
  animation: slowSpin 50s linear infinite;
}

.detail-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, .34), transparent);
}

.detail-visual.admin {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(145deg, #b6954c, #32220a);
}

.detail-visual.launcher {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 26%),
    linear-gradient(145deg, #28a9b2, #061025);
}

.detail-visual span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.detail-body {
  align-self: center;
  padding-right: 16px;
}

.detail-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.module-detail h3 {
  margin-bottom: 16px;
  color: var(--royal);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.module-detail p {
  color: #4a5870;
  font-size: 17px;
  line-height: 1.8;
}

.detail-list {
  margin: 18px 0 22px;
  padding-left: 20px;
  color: #3c4b63;
  line-height: 1.8;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row span {
  display: block;
  min-height: 74px;
  padding: 13px;
  color: #536176;
  background: linear-gradient(180deg, #f9fbff, #eaf2ff);
  border: 1px solid rgba(15, 79, 196, .16);
  font-size: 12px;
}

.metric-row b {
  display: block;
  margin-bottom: 4px;
  color: var(--royal);
  font-size: 20px;
}

.intel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 22px auto 0;
}

.intel-grid article {
  min-height: 160px;
  padding: 20px;
  background: #fff;
  border-top: 4px solid var(--royal);
  box-shadow: 0 18px 44px rgba(16, 35, 63, .1);
}

.intel-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.intel-grid strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.intel-grid p {
  margin: 0;
  color: #536176;
  line-height: 1.7;
}

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

.deploy-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .78);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 88px);
  color: rgba(255, 255, 255, .6);
  background: #050b18;
  border-top: 1px solid rgba(216, 194, 122, .28);
}

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

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

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

@keyframes slowSpin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 218, 244, .75);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(100, 218, 244, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(100, 218, 244, 0);
  }
}

@keyframes shine {
  to {
    transform: skewX(-18deg) translateX(680%);
  }
}

@media (max-width: 860px) {
  .site-header,
  .toolbar,
  .deploy-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .chapter-strip,
  .module-switcher,
  .module-detail,
  .intel-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-board {
    padding: 16px;
  }

  .route-line {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .detail-body {
    padding-right: 0;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 30px;
  }

  .timeline-item time {
    position: static;
    padding-top: 0;
  }

  .log-card::before {
    left: -28px;
  }

  .chapter-card,
  .module-node {
    min-height: 150px;
  }
}

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