:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: rgba(14, 20, 28, 0.78);
  --panel-strong: rgba(20, 30, 42, 0.94);
  --text: #eef5f6;
  --muted: #9fb1b8;
  --line: rgba(164, 233, 255, 0.18);
  --cyan: #5ee7ff;
  --green: #78f2b3;
  --amber: #ffc86b;
  --rose: #ff7f9f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(94, 231, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(120, 242, 179, 0.12), transparent 28rem),
    linear-gradient(135deg, #07090d 0%, #0d1117 52%, #07110f 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.72;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(94, 231, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 231, 255, 0.9), rgba(120, 242, 179, 0.2)),
    #0b1117;
  box-shadow: 0 0 28px rgba(94, 231, 255, 0.34);
}

.jump-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.jump-nav a {
  min-width: 82px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  transition: 160ms ease;
}

.jump-nav a:hover,
.jump-nav a.is-active {
  background: rgba(94, 231, 255, 0.14);
  color: var(--text);
}

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

.section-panel {
  padding: 84px 0;
  scroll-margin-top: 92px;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions,
.submit-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 720;
}

.primary-action {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #041014;
}

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

.signal-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-board div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  color: var(--cyan);
  font-size: 2.2rem;
  font-weight: 820;
}

.metric-label {
  color: var(--muted);
}

.control-strip {
  position: sticky;
  top: 73px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 15, 0.82);
  backdrop-filter: blur(18px);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: none;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.filter-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.filter-button.is-active {
  background: rgba(120, 242, 179, 0.16);
  color: var(--text);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card,
.timeline article,
.notes-layout article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-card p,
.timeline p,
.notes-layout p {
  color: var(--muted);
  line-height: 1.7;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.resource-type {
  color: #081014;
  background: var(--amber);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 760;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-list span {
  border: 1px solid rgba(94, 231, 255, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.resource-link {
  color: var(--cyan);
  font-weight: 720;
}

.compact .resource-card {
  min-height: 180px;
}

.timeline,
.notes-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(255, 200, 107, 0.16);
  color: var(--amber);
  font-weight: 820;
}

.notes-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submit-panel {
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

code {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--green);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .jump-nav {
    width: 100%;
    overflow-x: auto;
  }

  .jump-nav a {
    min-width: max-content;
  }

  .hero,
  .control-strip,
  .resource-grid,
  .timeline,
  .notes-layout {
    grid-template-columns: 1fr;
  }

  .control-strip {
    top: 126px;
  }

  .section-panel {
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 22px, 1180px);
  }

  .hero-actions,
  .submit-panel,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .search-box {
    grid-template-columns: 1fr;
  }
}
