:root {
  --attention-bg: #09111f;
  --attention-panel: rgba(15, 23, 42, 0.82);
  --attention-panel-strong: rgba(20, 31, 52, 0.94);
  --attention-border: rgba(125, 211, 252, 0.24);
  --attention-text: #e5eefb;
  --attention-muted: #a7b4c8;
  --attention-cyan: #22d3ee;
  --attention-green: #86efac;
  --attention-amber: #fbbf24;
  --attention-pink: #f472b6;
  --attention-radius: 8px;
}

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

body.attention-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--attention-text);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 28%),
    linear-gradient(225deg, rgba(244, 114, 182, 0.1), transparent 32%),
    var(--attention-bg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: var(--attention-cyan);
  color: #07111f;
  border-radius: var(--attention-radius);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.attention-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.attention-hero {
  min-height: min(720px, 82vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.attention-hero__copy {
  display: grid;
  gap: 1.2rem;
}

.attention-kicker {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  color: var(--attention-cyan);
  background: rgba(34, 211, 238, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

p {
  color: var(--attention-muted);
  line-height: 1.7;
}

.attention-hero p {
  max-width: 48rem;
  font-size: 1.08rem;
}

.attention-actions,
.control-grid,
.formula-flow,
.concept-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.attention-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--attention-radius);
  color: var(--attention-text);
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
}

.attention-button--primary {
  color: #06101c;
  border-color: transparent;
  background: var(--attention-cyan);
}

.network-preview {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--attention-border);
  border-radius: var(--attention-radius);
  background:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    rgba(15, 23, 42, 0.58);
  background-size: 32px 32px;
  overflow: hidden;
}

.network-token {
  position: absolute;
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.28);
  background: var(--attention-panel-strong);
  font-weight: 900;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.network-token--query {
  left: 43%;
  top: 42%;
  color: #06101c;
  background: var(--attention-cyan);
}

.network-token--strong {
  left: 16%;
  top: 20%;
}

.network-token--mid {
  right: 15%;
  top: 18%;
}

.network-token--weak {
  right: 24%;
  bottom: 14%;
}

.network-line {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform-origin: left center;
}

.network-line--strong {
  width: 210px;
  background: var(--attention-green);
  transform: rotate(211deg);
}

.network-line--mid {
  width: 185px;
  background: var(--attention-amber);
  transform: rotate(316deg);
  opacity: 0.78;
}

.network-line--weak {
  width: 150px;
  background: var(--attention-pink);
  transform: rotate(37deg);
  opacity: 0.42;
}

.lesson-band,
.lab-panel,
.formula-panel,
.code-panel,
.reflection-panel {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--attention-radius);
  background: rgba(8, 13, 24, 0.5);
}

.section-heading {
  display: grid;
  gap: 0.7rem;
}

.section-heading p {
  max-width: 66rem;
}

.concept-card,
.formula-flow article,
.visual-card,
.code-panel pre {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--attention-radius);
  background: var(--attention-panel);
}

.concept-card,
.formula-flow article {
  flex: 1 1 220px;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.concept-card span,
.formula-flow span {
  color: var(--attention-muted);
}

.control-grid {
  align-items: end;
}

.control-field {
  flex: 1 1 220px;
  display: grid;
  gap: 0.45rem;
  color: var(--attention-muted);
  font-weight: 800;
}

.control-field input,
.control-field select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--attention-radius);
  background: rgba(2, 6, 23, 0.78);
  color: var(--attention-text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.visual-card {
  min-width: 0;
  overflow: hidden;
}

.visual-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.visual-card__header span {
  color: var(--attention-muted);
  font-size: 0.88rem;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(2, 6, 23, 0.42);
}

.heatmap {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  overflow-x: auto;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 76px repeat(var(--token-count), minmax(44px, 1fr));
  gap: 0.35rem;
  align-items: stretch;
}

.heatmap-cell,
.heatmap-label {
  min-height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.heatmap-label {
  color: var(--attention-muted);
  background: rgba(15, 23, 42, 0.72);
}

.heatmap-cell {
  color: #06101c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-panel pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #dbeafe;
}

.code-panel code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .attention-hero,
  .lab-layout {
    grid-template-columns: 1fr;
  }

  .attention-hero {
    min-height: auto;
    padding: 4rem 0 1.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 18vw, 4.6rem);
  }

  .network-preview {
    min-height: 340px;
  }

  .network-token {
    width: 70px;
  }

  .visual-card__header {
    align-items: flex-start;
    flex-direction: column;
  }
}
