:root {
  --page: #05050a;
  --raised: #0b0a14;
  --surface: #12111c;
  --surface-2: #181626;
  --ink: #f7f4ff;
  --muted: #c9c3df;
  --faint: #b7b0cc;
  --violet: #6938f5;
  --violet-hot: #8b6bff;
  --accent: #d6ccff;
  --cobalt: var(--accent);
  --cobalt-hover: #efe9ff;
  --cobalt-soft: rgba(105, 56, 245, 0.2);
  --sky: var(--raised);
  --cyan: #7ee9ff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --navy: #1b1233;
  --navy-panel: #271848;
  --on-dark: #f6f3ff;
  --dark-muted: #d9d2ee;
  --white: #fff;
  --success: #8eecc8;
  --success-soft: rgba(142, 236, 200, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
  --sans: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --code: ui-monospace, SFMono-Regular, Consolas, monospace;
  --shell: 1180px;
  --header: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --motion-deck: 280ms;
  color-scheme: dark;
}

@property --orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 42% at 78% -8%, rgba(105, 56, 245, 0.28), transparent 62%),
    radial-gradient(ellipse 46% 32% at 6% 0%, rgba(79, 124, 255, 0.14), transparent 70%),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--violet);
  color: var(--white);
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: default;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #efe9ff;
  outline-offset: 3px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

svg {
  display: block;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
}

h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

code {
  font-family: var(--code);
}

:not(pre) > code {
  padding: 0.08em 0.38em;
  border-radius: 0.35em;
  background: rgba(255, 255, 255, 0.08);
  color: #efe9ff;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.75rem, 9vw, 7.5rem);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--violet);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(12, 8, 28, 0.82), rgba(8, 6, 18, 0.62));
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 6, 16, 0.88);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(105, 56, 245, 0.7));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav > a:not(.button) {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .main-nav > a:not(.button):hover,
  .site-footer a:hover,
  .text-link:hover {
    color: var(--white);
  }
}

.external-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.button {
  --orbit-angle: 0deg;
  position: relative;
  isolation: isolate;
  min-height: 52px;
  padding: 14px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(105, 56, 245, 0.18);
  transition: transform 0.2s var(--ease-out), border-color 0.2s, background 0.2s;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--orbit-angle),
    transparent 0 62%,
    #efe9ff 74%,
    #6938f5 82%,
    #3fe0ff 90%,
    transparent 97%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: orbit 4.8s linear infinite;
}

.button-small {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.button-light {
  background: var(--white);
  color: #140c28;
  border-color: transparent;
}

.button-light::before {
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
    border-color: rgba(192, 132, 252, 0.8);
    background: rgba(20, 12, 40, 0.8);
  }
}

.button:active {
  transform: scale(0.98);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100svh - var(--header));
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 62% at 62% 42%, #000 18%, transparent 76%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.product-line,
.section-context,
.arch-context {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-line::before,
.section-context::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-hot), var(--cyan));
}

.small-mark {
  display: none;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.7vw, 4.45rem);
  letter-spacing: -0.048em;
}

.gradient-text {
  display: inline;
  color: #efe9ff;
  background: linear-gradient(
    100deg,
    #f7f3ff 0%,
    #d9ccff 18%,
    #b9a4ff 36%,
    #9fd6ff 54%,
    #e7fbff 72%,
    #f4eeff 100%
  );
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 9s linear infinite;
}

.hero-description {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-actions .text-link {
  min-height: 52px;
  padding: 0 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.play-icon {
  color: var(--cyan);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.link-plus {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-footnote span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.memory-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 620px;
}

.memory-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 70%;
  left: 18%;
  top: 12%;
  background: radial-gradient(circle, rgba(105, 56, 245, 0.42), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.memory-example {
  position: relative;
  height: 580px;
  padding-top: 118px;
  perspective: 1200px;
  perspective-origin: 68% 48%;
  transform-style: preserve-3d;
}

.memory-grid,
.memory-trace {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.memory-grid {
  background-image: radial-gradient(rgba(196, 181, 253, 0.35) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 60% 48%, #000, transparent 72%);
  opacity: 0.45;
}

.memory-trace {
  display: none;
}

.memory-trace circle {
  fill: #120e22;
  stroke: var(--cyan);
}

.feedback-note,
.memory-recall,
.lesson-sheet {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 24px 50px -28px rgba(0, 0, 0, 0.85);
}

.feedback-note {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: min(100%, 270px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  transform: translateZ(36px) rotateZ(-2.5deg);
}

.note-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(105, 56, 245, 0.28);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.feedback-note > svg {
  width: 22px;
  height: 22px;
  margin-left: auto;
  stroke: var(--success);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.memory-deck {
  position: relative;
  width: min(100%, 360px);
  margin-left: auto;
  margin-top: 0;
  transform-style: preserve-3d;
  transform-origin: center 46%;
  transform: rotateX(3deg) rotateY(-5deg);
  transition: transform var(--motion-deck) var(--ease-out);
}

.lesson-sheet {
  border-radius: 18px;
}

.memory-deck > .lesson-sheet {
  inset: 0;
  backface-visibility: hidden;
}

.memory-deck > .sheet-front {
  position: relative;
  inset: auto;
  min-height: 348px;
  z-index: 3;
  overflow: hidden;
  transform: translateZ(28px) rotateZ(1.4deg);
  border-color: rgba(196, 181, 253, 0.38);
}

.memory-deck > .sheet-middle {
  background: rgba(22, 16, 40, 0.92);
  transform: translate3d(-10px, 8px, -8px) rotateZ(-4deg);
}

.memory-deck > .sheet-back {
  background: rgba(105, 56, 245, 0.18);
  transform: translate3d(12px, -6px, -30px) rotateZ(7deg);
}

.sheet-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
}

.sheet-symbol {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.78rem;
}

.sheet-index {
  margin-left: auto;
  color: var(--faint);
  font-weight: 500;
}

.sheet-content {
  padding: 18px 20px 12px;
}

.memory-kind {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sheet-content h2 {
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1.05;
}

.sheet-content > p,
.correction-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sheet-divider {
  height: 1px;
  margin: 16px 0 14px;
  background: var(--line);
}

.sheet-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 18px 16px;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

.sheet-footer svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.memory-recall {
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #120d22;
  color: var(--on-dark);
  font-size: 0.88rem;
  line-height: 1.35;
  transform: translateZ(42px) rotateZ(-2deg);
  border-color: rgba(126, 233, 255, 0.28);
}

.recall-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--navy-panel);
  color: var(--cyan);
  font-size: 1.1rem;
}

.scenario-picker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: -0.2rem;
  padding-right: 0.4rem;
}

.scenario-picker button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 600;
}

.scenario-picker button[aria-selected="true"] {
  color: var(--white);
  background: rgba(105, 56, 245, 0.28);
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.45);
}

.visual-caption {
  margin-top: 0.85rem;
  text-align: right;
  color: var(--faint);
  font-size: 0.78rem;
}

.agent-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.15rem;
  border-block: 1px solid var(--line);
}

.agent-strip > p {
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.35;
}

.agent-strip strong {
  color: var(--white);
  font-weight: 600;
}

.agent-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.agent-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.agent-names {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
}

.agent-names span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.agent-strip > a {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-intro,
.memory-layout,
.install-section,
.support-section,
.closing-layout {
  display: grid;
  gap: 2.5rem;
}

.section-intro,
.memory-layout,
.install-section {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
}

.section-intro {
  margin-bottom: 2rem;
  align-items: end;
}

.section-intro > p,
.memory-explanation > p,
.install-intro > p,
.support-intro {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.learning-workbench,
.tools-workbench,
.install-workbench {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 30px 70px -40px rgba(0, 0, 0, 0.85);
}

.learning-workbench,
.tools-workbench {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  overflow: hidden;
}

.learning-sidebar,
.tool-tabs {
  padding: 0.7rem;
}

.step-tabs,
.tool-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.step-tabs button,
.tool-tabs button,
.install-tabs button {
  width: 100%;
  text-align: left;
  border-radius: 0.9rem;
  color: var(--muted);
}

.step-tabs button {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 0.85rem;
}

.step-tabs strong,
.tool-tabs button {
  color: var(--white);
  font-weight: 600;
}

.step-tabs small,
.tool-tabs button > span {
  display: block;
  margin-top: 0.15rem;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 500;
}

.step-number {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-tabs button[aria-selected="true"],
.tool-tabs button[aria-selected="true"],
.install-tabs button[aria-selected="true"] {
  background: rgba(105, 56, 245, 0.18);
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.35);
}

.step-tabs button[aria-selected="true"] .step-number {
  background: var(--violet);
  color: var(--white);
}

.demo-disclosure,
.tool-note,
.install-help,
.visual-caption,
.copy-status {
  color: var(--faint);
}

.demo-disclosure {
  margin: 0.4rem 0.7rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.learning-panel {
  padding: 1.3rem 1.35rem 1.2rem;
  border-left: 1px solid var(--line);
}

.workbench-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.workspace-icon {
  margin-right: 0.35rem;
  color: var(--accent);
}

.demo-message,
.demo-response,
.demo-code,
.command-row {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(5, 5, 12, 0.45);
}

.demo-message {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
}

.demo-person {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-message p {
  font-weight: 600;
  line-height: 1.5;
}

.demo-response {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
}

.response-symbol {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: 0.45rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
}

.response-title {
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.demo-response p:last-child,
.demo-bottom > span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.demo-code {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  color: #efe9ff;
  font-size: 0.82rem;
  line-height: 1.6;
}

.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
}

.demo-next {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.memory-section {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(105, 56, 245, 0.16), transparent 60%),
    var(--raised);
  border-block: 1px solid var(--line);
}

.memory-layout {
  align-items: center;
}

.memory-pair {
  display: grid;
  gap: 0.85rem;
}

.memory-record,
.principle-list article,
.support-list article,
.working-memory {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.memory-record,
.support-list article {
  padding: 1.35rem 1.3rem 1.25rem;
}

@media (hover: hover) and (pointer: fine) {
  .memory-record:hover,
  .principle-list article:hover,
  .support-list article:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 107, 255, 0.5);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.12),
      0 24px 50px -28px rgba(105, 56, 245, 0.55);
  }
}

.record-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.record-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.5rem;
  background: rgba(105, 56, 245, 0.22);
}

.memory-record h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.memory-record p,
.principle-list p,
.support-list p {
  color: var(--muted);
  line-height: 1.65;
}

.memory-record blockquote,
.arch-memory-types blockquote {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  background: rgba(105, 56, 245, 0.16);
  color: var(--on-dark);
  font-size: 0.92rem;
  line-height: 1.55;
}

.working-memory {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at 0% 50%, rgba(105, 56, 245, 0.35), transparent 55%),
    #120d22;
}

.working-memory svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
}

.working-memory p {
  color: var(--muted);
}

.working-memory strong {
  color: var(--white);
}

.principles-heading {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.principle-list article {
  padding: 1.4rem 1.25rem 1.3rem;
}

.principle-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.95), rgba(124, 58, 237, 0.45) 46%, rgba(63, 224, 255, 0.85));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.32);
}

.principle-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 28% 18%, rgba(168, 85, 247, 0.4), transparent 62%),
    linear-gradient(160deg, #1b1036, #0a0915);
}

.principle-icon svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  stroke: #f4edff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.75));
}

.principle-list h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.tools-section {
  background: var(--raised);
  border-block: 1px solid var(--line);
}

.tool-tabs button {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.72rem 0.85rem;
  font-family: var(--code);
  font-size: 0.78rem;
}

.tool-tabs button > span {
  margin-top: 0;
  font-family: var(--sans);
  letter-spacing: 0;
}

.tool-panel {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--line);
}

.tool-call-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: rgba(105, 56, 245, 0.2);
  color: var(--accent);
  font-size: 1.2rem;
}

.tool-panel h3 {
  margin-top: 1rem;
  font-size: 1.8rem;
}

.tool-panel > p,
.tool-note {
  margin-top: 0.7rem;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.65;
}

.tool-example {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(5, 5, 12, 0.45);
}

.tool-example span {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-example code {
  color: #efe9ff;
  font-size: 0.92rem;
}

.tool-panel .text-link {
  margin-top: 1.1rem;
}

.noscript-note {
  margin-top: 1rem;
  color: var(--muted);
}

.install-section {
  align-items: center;
}

.install-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 1rem;
}

.install-requirements span,
.support-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.install-workbench {
  overflow: hidden;
}

.install-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.install-tabs button {
  width: auto;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.install-panel {
  padding: 1.2rem 1.25rem 0.4rem;
}

.install-panel h3 {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.install-panel h3:not(:first-child) {
  margin-top: 1.1rem;
}

.command-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem 0.75rem 0.75rem 0.95rem;
}

.command-row > code {
  flex: 1;
  min-width: 0;
  background: none;
  padding: 0;
  color: #efe9ff;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.copy-button {
  flex-shrink: 0;
  min-width: 4.6rem;
  min-height: 40px;
  border-radius: 0.7rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.install-help {
  margin: 0.75rem 0 0.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.install-bottom {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.95rem 1.15rem 1.05rem;
  background: rgba(105, 56, 245, 0.14);
  color: var(--muted);
}

.install-bottom p,
.copy-status {
  font-size: 0.86rem;
  line-height: 1.6;
}

.install-check {
  color: var(--success);
  font-weight: 700;
}

.copy-status {
  min-height: 0;
  padding: 0 1.15rem;
}

.copy-status:not(:empty) {
  padding-block: 0.75rem 1rem;
}

.support-section {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  padding-top: 0;
}

.support-list {
  display: grid;
  gap: 0.8rem;
}

.support-list h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.25rem;
}

.tag-muted {
  color: var(--faint);
}

.faq-section {
  max-width: 860px;
}

.faq-section h2 {
  margin-bottom: 1.2rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 64px;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  max-width: 68ch;
  padding-bottom: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.closing-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 90% at 88% 10%, rgba(105, 56, 245, 0.5), transparent 58%),
    radial-gradient(ellipse 36% 70% at 4% 100%, rgba(63, 224, 255, 0.14), transparent 55%),
    #090712;
  border-top: 1px solid var(--line);
}

.closing-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.closing-layout p {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.closing-mark {
  position: absolute;
  right: -5.5rem;
  bottom: -5.5rem;
  width: 220px;
  height: auto;
  stroke: rgba(196, 181, 253, 0.34);
  fill: none;
  stroke-width: 1.4;
  pointer-events: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding-block: 2rem 2.4rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-top: 0.45rem;
  color: var(--faint);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.15rem;
}

.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

[hidden] {
  display: none !important;
}

.keyboard-input .memory-deck {
  transition: none;
}

@keyframes orbit {
  to {
    --orbit-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    background-position: 180% 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js-enabled .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }

  .js-enabled .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .hero-copy > * {
    animation: rise 0.85s var(--ease-out) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.14s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.2s;
  }
}

@media (max-width: 980px) {
  .hero,
  .section-intro,
  .memory-layout,
  .learning-workbench,
  .tools-workbench,
  .install-section,
  .support-section,
  .closing-layout,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .learning-panel,
  .tool-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .agent-strip {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .memory-visual {
    min-height: 0;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .scenario-picker,
  .visual-caption {
    justify-content: center;
    text-align: center;
  }

  .closing-mark {
    opacity: 0.45;
  }
}

@media (max-width: 1040px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .agent-marquee {
    mask-image: none;
    overflow: visible;
  }

  .agent-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .agent-names {
    flex-wrap: wrap;
    padding-right: 0;
    gap: 0.7rem 1.1rem;
  }

  .agent-names[aria-hidden="true"] {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .menu-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--header) + 6px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    background: #0c0a16;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .js-enabled .main-nav {
    display: none;
  }

  .js-enabled .main-nav.is-open {
    display: flex;
  }

  .main-nav .button {
    margin-top: 0.35rem;
  }

  .hero {
    min-height: 0;
    padding-top: 1.6rem;
    padding-bottom: 2.4rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.5rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .button {
    letter-spacing: 0.06em;
  }

  .memory-visual {
    min-height: 0;
    width: 100%;
  }

  .memory-example {
    height: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    perspective: none;
  }

  .memory-grid,
  .memory-trace {
    display: none;
  }

  .feedback-note,
  .memory-recall,
  .memory-deck {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none !important;
  }

  .memory-deck > .sheet-middle,
  .memory-deck > .sheet-back {
    display: none;
  }

  .memory-deck > .sheet-front {
    min-height: 0;
  }

  .feedback-note {
    font-size: 0.9rem;
  }

  .sheet-content h2 {
    font-size: 1.55rem;
  }

  .step-tabs {
    flex-direction: row;
  }

  .step-tabs button {
    flex: 1;
    flex-direction: column;
    padding: 0.7rem 0.45rem;
  }

  .step-tabs small {
    display: none;
  }

  .tool-tabs button {
    font-size: 0.72rem;
  }

  .install-tabs {
    flex-wrap: wrap;
  }

  .command-row {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer,
  .site-footer nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button::before,
  .gradient-text,
  .agent-marquee-track,
  .hero-copy > * {
    animation: none;
  }

  .memory-example {
    perspective: none;
    transform-style: flat;
  }

  .memory-deck,
  .feedback-note,
  .memory-recall,
  .memory-deck > .sheet-front,
  .memory-deck > .sheet-middle,
  .memory-deck > .sheet-back {
    transform: none;
    transition: none;
  }

  .memory-deck > .sheet-middle {
    display: none;
  }

  .agent-marquee {
    mask-image: none;
  }

  .agent-marquee-track {
    flex-wrap: wrap;
    width: auto;
  }

  .agent-names[aria-hidden="true"] {
    display: none;
  }

  .memory-record,
  .principle-list article,
  .support-list article {
    transition: none;
  }
}
