
:root {
  --bg: #0d0b14;
  --bg-soft: #14101f;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f0ff;
  --muted: #b9aecf;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #9b6cff;
  --accent-2: #c084fc;
  --accent-soft: rgba(155, 108, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

:root.light {
  --bg: #f7f3ff;
  --bg-soft: #ffffff;
  --card: rgba(61, 35, 110, 0.07);
  --card-strong: rgba(61, 35, 110, 0.12);
  --text: #1d1730;
  --muted: #5e5374;
  --line: rgba(61, 35, 110, 0.16);
  --accent: #6d3cff;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(109, 60, 255, 0.12);
  --shadow: 0 24px 80px rgba(61, 35, 110, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(155, 108, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(192, 132, 252, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
}

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 11, 20, 0.76);
  backdrop-filter: blur(18px);
}

:root.light .site-header {
  background: rgba(247, 243, 255, 0.78);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(155, 108, 255, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.menu-toggle,
.theme-toggle,
.button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}

.menu-toggle,
.theme-toggle {
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

.theme-toggle {
  font-size: 1rem;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.76rem;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 1.1rem;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.split.reverse > div:first-child {
  order: 2;
}

.hero-card,
.card,
.note-panel,
.folder-tree,
.plugin-card,
.example-card,
.week-plan article,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.glass-card,
.card,
.note-panel,
.plugin-card,
.example-card,
.week-plan article,
.callout {
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.button.ghost {
  color: var(--text);
  background: transparent;
}

.graph-demo {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(155, 108, 255, 0.16), rgba(255,255,255,0.04));
}

.graph-demo svg {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.graph-demo line {
  stroke: rgba(192, 132, 252, 0.65);
  stroke-width: 2;
}

.node {
  position: absolute;
  z-index: 2;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(20, 16, 31, 0.82);
  color: #fff;
  font-size: 0.86rem;
  box-shadow: 0 0 34px rgba(155, 108, 255, 0.35);
  animation: floaty 5s ease-in-out infinite;
}

.n1 { left: 12%; top: 17%; }
.n2 { left: 55%; top: 12%; animation-delay: -1s; }
.n3 { right: 12%; top: 46%; animation-delay: -2s; }
.n4 { left: 24%; bottom: 22%; animation-delay: -3s; }
.n5 { right: 24%; bottom: 10%; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cards {
  display: grid;
  gap: 1rem;
}

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

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.note-panel,
.folder-tree,
.plugin-card,
.example-card,
.week-plan article,
.callout {
  padding: 1.35rem;
}

.card p,
.plugin-card p,
.week-plan p,
.note-panel p,
.callout p {
  color: var(--muted);
}

.card.numbered span,
.week-plan span,
.timeline span {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.timeline,
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.process-list li {
  display: block;
  padding: 1.15rem 0;
}

.process-list strong {
  color: var(--text);
}

.note-panel pre,
.example-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  color: #efe9ff;
  white-space: pre-wrap;
}

:root.light .note-panel pre,
:root.light .example-card pre {
  background: rgba(61, 35, 110, 0.09);
  color: #261742;
}

.note-panel.compact ul {
  margin-bottom: 0;
  color: var(--muted);
}

.principles {
  display: grid;
  gap: 0.75rem;
}

.principles div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.principles strong,
.principles span {
  display: block;
}

.principles span {
  color: var(--muted);
}

.folder-tree {
  font-size: 1.05rem;
}

.folder-tree p {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.folder-tree p:last-child {
  border-bottom: 0;
}

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

.plugin-card h3::before {
  content: "⌁";
  margin-right: 0.4rem;
  color: var(--accent-2);
}

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

.week-plan {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.callout-section {
  padding-top: 2rem;
}

.callout {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), var(--card));
}

.callout::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -5rem;
  top: -5rem;
  border-radius: 999px;
  background: rgba(155, 108, 255, 0.18);
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 4rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 16px;
  }

  .hero-grid,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse > div:first-child {
    order: 0;
  }

  .cards.two,
  .cards.three,
  .examples-grid,
  .plugin-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    padding: 0.85rem;
  }

  .logo span:last-child {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-hero {
    text-align: left;
  }

  .lead,
  h1 {
    margin-inline: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
