/* ── Theme Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg-body: #FDFBF7;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F7F5F0;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-code: #F5F2EB;
  --bg-card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --text-primary: #2A2A28;
  --text-secondary: #5E5E5C;
  --text-muted: #8A8A88;
  --accent: #D97706;
  --accent-2: #F59E0B;
  --accent-soft: rgba(217, 119, 6, 0.10);
  --accent-glow: rgba(217, 119, 6, 0.22);
  --hero-glow-1: rgba(217, 119, 6, 0.12);
  --hero-glow-2: rgba(217, 119, 6, 0.06);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
  --sidebar-width: 17rem;
  --nav-height: 4rem;
  --radius: 16px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  --bg-body: #0C0C0C;
  --bg-surface: #151515;
  --bg-elevated: #1C1C1C;
  --bg-glass: rgba(21, 21, 21, 0.65);
  --bg-code: #0F0F0F;
  --bg-card: #181818;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text-primary: #F4F4F4;
  --text-secondary: #A8A8A8;
  --text-muted: #737373;
  --accent: #FFB800;
  --accent-2: #ffcf33;
  --accent-soft: rgba(255, 184, 0, 0.12);
  --accent-glow: rgba(255, 184, 0, 0.30);
  --hero-glow-1: rgba(255, 184, 0, 0.10);
  --hero-glow-2: rgba(255, 184, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.45);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1100px 700px at 60% -8%, var(--hero-glow-1), transparent 60%),
    radial-gradient(800px 500px at 20% 0%, var(--hero-glow-2), transparent 55%),
    var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Utilities ───────────────────────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.handwritten {
  font-family: "LXGW WenKai", "Ma Shan Zheng", "LXGWWenKai-Regular", cursive;
}

/* ── Layout Shell ─────────────────────────────────────────────────────────── */
.page-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Top Nav ──────────────────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 50;
  background: color-mix(in srgb, var(--bg-body) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  max-width: 90rem;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.nav-search {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-search:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
  background: var(--bg-surface);
}

.nav-search kbd {
  font-family: inherit;
  font-size: 0.68rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .nav-search { display: inline-flex; }
  .top-nav-inner { padding: 0 1.25rem; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-right a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-right a:hover {
  color: var(--text-primary);
  background: rgba(128,128,128,0.06);
}

.theme-toggle {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(128,128,128,0.06);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(128,128,128,0.06);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--border);
  background: var(--bg-body);
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.sidebar.is-open { transform: translateX(0); }

.sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 1.25rem 0.9rem 2.5rem;
}

.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
    background: transparent;
  }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

[data-theme="light"] .sidebar-overlay {
  background: rgba(0,0,0,0.25);
}

.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-group {
  margin-bottom: 1.4rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.sidebar-link:hover {
  background: rgba(128,128,128,0.07);
  color: var(--text-primary);
  transform: translateX(1px);
}

.sidebar-link.is-active {
  background: rgba(128,128,128,0.08);
  color: var(--text-primary);
  box-shadow: inset 2.5px 0 0 0 var(--accent);
}

/* ── Main Content ─────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: 0;
  min-width: 0;
  padding-top: var(--nav-height);
}

@media (min-width: 1024px) {
  .main-content { margin-left: var(--sidebar-width); }
}

.content-wrapper {
  max-width: 780px;
  padding: 1.5rem 1rem 3.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .content-wrapper { padding: 2.25rem 1.5rem 5rem; }
}

/* ── PJAX Transition ──────────────────────────────────────────────────────── */
#content-root {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#content-root.is-exiting {
  opacity: 0;
  transform: translateY(8px);
}
#content-root.is-entering {
  opacity: 0;
  transform: translateY(-12px);
}

/* ── Typography ───────────────────────────────────────────────────────────── */
.content-wrapper h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.45em;
}

.content-wrapper h2 {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2.6em 0 0.65em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
}

.content-wrapper h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 1.8em 0 0.45em;
  color: var(--text-primary);
}

.content-wrapper p {
  color: var(--text-secondary);
  margin: 0 0 1.05em;
}

.content-wrapper ul,
.content-wrapper ol {
  color: var(--text-secondary);
  padding-left: 1.35rem;
  margin: 0 0 1.05em;
}

.content-wrapper li { margin-bottom: 0.35em; }
.content-wrapper li::marker { color: var(--text-muted); }

.content-wrapper strong { color: var(--text-primary); font-weight: 600; }

.content-wrapper a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2.5px;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  transition: text-decoration-color 0.2s;
}

.content-wrapper a:hover {
  text-decoration-color: var(--accent);
}

/* ── Hero (Landing) ───────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.hero-poster {
  width: min(340px, 92vw);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 0.18em;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 0.55em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 1.6rem;
  line-height: 1.75;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 0.12s, box-shadow 0.25s, border-color 0.2s;
}

a.btn-primary {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06) inset,
    0 6px 18px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

a.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
}

a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06) inset,
    0 10px 26px var(--accent-glow);
}

a.btn-primary:hover::after { animation: shimmer 0.85s ease; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

a.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

a.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section helpers ──────────────────────────────────────────────────────── */
.section-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin-bottom: 1.25rem;
}

/* ── Founder Card (flomo-style) ───────────────────────────────────────────── */
.founder-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.founder-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(128,128,128,0.15), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.founder-meta {
  display: flex;
  flex-direction: column;
}

.founder-name {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.founder-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.founder-card p {
  margin: 0 0 0.7em;
  color: var(--text-secondary);
  line-height: 1.8;
}

.founder-card p:last-child { margin-bottom: 0; }

/* ── Bento / Feature Cards ────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2 { grid-column: span 2; }
}

@media (min-width: 900px) {
  .bento-3 { grid-template-columns: repeat(3, 1fr); }
  .bento-3 .span-2 { grid-column: span 2; }
  .bento-4 { grid-template-columns: repeat(4, 1fr); }
}

.bento-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.bento-item h4 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.35em;
  color: var(--text-primary);
}

.bento-item p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.bento-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.bento-icon svg { width: 18px; height: 18px; }

.bento-stat {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15em;
}

/* ── Before / After ───────────────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.25rem 0;
}
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }

.compare-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
}

.compare-box.negative { border-left: 3px solid #ef4444; }
.compare-box.positive { border-left: 3px solid #22c55e; }

.compare-box h4 {
  font-size: 0.85rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.6em;
}
.compare-box.negative h4 { color: #ef4444; }
.compare-box.positive h4 { color: #22c55e; }

.compare-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 0.5em;
}
.compare-box p:last-child { margin-bottom: 0; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.content-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.15em 0 1.6em;
  font-size: 0.87rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.content-wrapper th,
.content-wrapper td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.content-wrapper tbody tr { transition: background 0.12s; }
.content-wrapper tbody tr:hover { background: rgba(128,128,128,0.04); }

.content-wrapper th {
  font-weight: 650;
  color: var(--text-primary);
  background: rgba(128,128,128,0.04);
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.content-wrapper tr:last-child td { border-bottom: none; }

/* ── Code ─────────────────────────────────────────────────────────────────── */
code, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.825rem;
}

code {
  background: rgba(128,128,128,0.10);
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  color: var(--accent);
}

pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  line-height: 1.55;
  margin: 1em 0 1.5em;
}

pre .code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(128,128,128,0.04);
}

pre .code-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

pre .code-header .dot-r { background: #ff5f56; }
pre .code-header .dot-y { background: #ffbd2e; }
pre .code-header .dot-g { background: #27c93f; }

pre code {
  display: block;
  padding: 0.9rem 1rem;
  background: none;
  color: var(--text-primary);
  overflow-x: auto;
}

/* ── Install Box ──────────────────────────────────────────────────────────── */
.install-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin: 1rem 0 1.35rem;
}

.install-box h4 {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Cheat Sheet ──────────────────────────────────────────────────────────── */
.cheat-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  white-space: nowrap;
  color: var(--accent);
}

.cheat-table td:last-child { color: var(--text-secondary); }

/* ── Callout / Tip ────────────────────────────────────────────────────────── */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.callout p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ── CTA Box ──────────────────────────────────────────────────────────────── */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2.5rem 0 0.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35em;
  color: var(--text-primary);
}

.cta-box p {
  color: var(--text-secondary);
  margin: 0 0 1.1em;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 2.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-zicha {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Search Modal ─────────────────────────────────────────────────────────── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

[data-theme="light"] .search-modal { background: rgba(0,0,0,0.25); }

.search-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-panel {
  width: min(520px, 92vw);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-modal.is-open .search-panel { transform: scale(1); }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input-wrap input::placeholder { color: var(--text-muted); }

.search-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.search-result-item:hover,
.search-result-item.is-selected {
  background: rgba(128,128,128,0.07);
  color: var(--text-primary);
}

.search-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Landing Page: Hero ──────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1rem 4rem;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: var(--accent-glow);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 35vw;
  height: 35vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--hero-glow-1);
  bottom: 5%;
  left: -5%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 20vw;
  height: 20vw;
  max-width: 300px;
  max-height: 300px;
  background: var(--accent-soft);
  top: 40%;
  left: 20%;
  animation-delay: -8s;
  opacity: 0.35;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.98); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero-title-kinetic {
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 0.15em;
}

.hero-title-kinetic .title-line {
  display: block;
}

.hero-title-kinetic .title-line.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-kinetic {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.8em;
}

.hero-visual {
  position: relative;
  width: min(520px, 88vw);
  margin: 0 auto 2.5rem;
  perspective: 1200px;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: var(--accent-glow);
  filter: blur(50px);
  border-radius: 30px;
  z-index: -1;
  opacity: 0.7;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover img {
  transform: rotateY(4deg) rotateX(-3deg) scale(1.02);
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.scroll-arrow {
  width: 1.2rem;
  height: 1.8rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  position: relative;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 14px; opacity: 0.3; }
}

/* ── Landing Page: Sections ─────────────────────────────────────────────── */
.landing-section {
  position: relative;
  padding: 6rem 1rem;
}

@media (min-width: 768px) {
  .landing-section { padding: 8rem 1.5rem; }
}

/* Quote Section */
.quote-section {
  display: flex;
  justify-content: center;
  background:
    radial-gradient(600px 400px at 80% 50%, var(--hero-glow-1), transparent 60%),
    var(--bg-body);
}

.quote-content {
  max-width: 820px;
  text-align: center;
}

.quote-mark {
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  font-family: Georgia, serif;
  margin-bottom: -2rem;
}

.quote-text {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.quote-body {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.quote-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.quote-signature img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sig-name { font-weight: 650; font-size: 0.92rem; color: var(--text-primary); }
.sig-role { font-size: 0.78rem; color: var(--text-muted); }

/* Tokenmaxx Section */
.tokenmaxx-section {
  background:
    radial-gradient(800px 600px at 20% 30%, rgba(244,114,182,0.08), transparent 60%),
    var(--bg-surface);
  overflow: hidden;
}

.tokenmaxx-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.tokenmaxx-glow {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(244,114,182,0.10) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.tokenmaxx-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

@media (min-width: 720px) {
  .tokenmaxx-stats { grid-template-columns: repeat(3, 1fr); }
}

.tm-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tm-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.tm-number {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.2em;
}

.tm-unit {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.1em;
}

.tm-stat p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.tm-highlight {
  background:
    linear-gradient(180deg, rgba(244,114,182,0.08), transparent 60%),
    var(--bg-card);
  border-color: rgba(244,114,182,0.25);
}

.tm-badges {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.tm-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tm-badge.bronze { background: rgba(205,127,50,0.12); color: #cd7f32; border-color: rgba(205,127,50,0.25); }
.tm-badge.silver { background: rgba(192,192,192,0.12); color: #a0a0a0; border-color: rgba(192,192,192,0.25); }
.tm-badge.gold { background: rgba(255,215,0,0.12); color: #d4af37; border-color: rgba(255,215,0,0.25); }
.tm-badge.emerald { background: rgba(80,200,120,0.12); color: #50c878; border-color: rgba(80,200,120,0.25); }

.tokenmaxx-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .tokenmaxx-quotes { grid-template-columns: 1fr 1fr; }
}

.tm-quote {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid #f472b6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.25rem 1.25rem 1.6rem;
  text-align: left;
}

.tm-quote::before {
  content: "\"";
  position: absolute;
  top: 0.6rem;
  left: 0.9rem;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  color: #f472b6;
  opacity: 0.35;
  pointer-events: none;
}

.tm-quote p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin: 0 0 0.7em;
}

.tm-quote cite {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.tokenmaxx-cta {
  max-width: 640px;
  margin: 0 auto;
}

.tokenmaxx-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 0.4em;
  line-height: 1.7;
}

.tm-punchline {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Problem Section */
.problem-section {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.problem-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.problem-label, .section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.problem-title, .section-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

.text-gradient-fire {
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.problem-visual {
  margin: 2.5rem 0;
}

.burn-stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
}

.burn-number {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text-primary);
}

.burn-unit {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--accent);
}

.burn-caption {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5em;
}

.problem-detail {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.problem-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(239,68,68,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Layers Section */
.layers-section {
  background:
    radial-gradient(700px 500px at 20% 20%, var(--hero-glow-1), transparent 60%),
    var(--bg-body);
}

.layers-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.layers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .layers-grid { grid-template-columns: repeat(3, 1fr); }
}

.layer-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}

.layer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.layer-number {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
}

.layer-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.layer-icon svg { width: 22px; height: 22px; }

.layer-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45em;
  color: var(--text-primary);
}

.layer-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Method Section */
.method-section {
  background: var(--bg-surface);
}

.method-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.method-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .method-track {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
  }
}

.method-step {
  flex: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  min-width: 160px;
}

.step-dot {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--border-strong);
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.35em;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.method-connector {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--border-strong), var(--accent) 50%, var(--border-strong));
  opacity: 0.5;
}

@media (min-width: 900px) {
  .method-connector {
    width: 2.5rem;
    height: 2px;
    align-self: center;
    background: linear-gradient(90deg, var(--border-strong), var(--accent) 50%, var(--border-strong));
  }
}

/* Transform Section */
.transform-section {
  background:
    radial-gradient(800px 600px at 50% 100%, var(--hero-glow-1), transparent 60%),
    var(--bg-body);
}

.transform-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.transform-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .transform-stage {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
}

.transform-card {
  flex: 1;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.transform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.transform-card.negative { border-bottom: 3px solid #ef4444; }
.transform-card.positive { border-bottom: 3px solid #22c55e; }

.transform-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.transform-card.negative .status-dot { background: #ef4444; }
.transform-card.positive .status-dot { background: #22c55e; }

.transform-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.8em;
  color: var(--text-primary);
  line-height: 1.25;
}

.transform-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.transform-card li { margin-bottom: 0.5em; }

.transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.transform-arrow svg {
  width: 40px;
  height: 40px;
}

@media (min-width: 768px) {
  .transform-arrow svg {
    transform: rotate(0);
  }
}
@media (max-width: 767px) {
  .transform-arrow svg {
    transform: rotate(90deg);
  }
}

/* CTA Section */
.cta-section {
  position: relative;
  text-align: center;
  padding: 7rem 1rem;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.cta-banner {
  position: relative;
  z-index: 1;
  width: min(320px, 72vw);
  border-radius: 20px;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}

.cta-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}

.cta-lead {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.8em;
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* Footer for landing */
.landing-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

/* Scroll Reveal Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hide mobile breaks on small screens */
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .content-wrapper { padding: 1.25rem 0.9rem 3rem; }
  .hero { padding: 0.5rem 0 0.25rem; }
  .hero-poster { width: min(280px, 90vw); }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .bento-4 { grid-template-columns: 1fr; }
  .bento-3 { grid-template-columns: 1fr; }
  .bento .span-2 { grid-column: span 1; }
  .compare { grid-template-columns: 1fr; }
  .founder-card { padding: 1.15rem; }
  .landing-hero { padding: calc(var(--nav-height) + 1rem) 0.9rem 2.5rem; }
  .quote-mark { font-size: 5rem; margin-bottom: -1rem; }
  .layer-card { padding: 1.5rem; }
  .transform-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .landing-hero {
    padding: calc(var(--nav-height) + 0.75rem) 0.75rem 2rem;
  }
  .hero-title-kinetic {
    line-height: 0.98;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    transition-delay: 0s !important;
  }
  .hero-orb,
  .scroll-arrow::after {
    animation: none !important;
  }
  #content-root {
    transition: none !important;
  }
}

/* ── Skill Section ──────────────────────────────────────────────────────── */
.skill-section .layers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.skill-section .layer-card {
  flex: 1 1 220px;
  max-width: 300px;
}
.skill-demo {
  margin-top: 2.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.demo-body {
  padding: 1.1rem 1.2rem 1.3rem;
  background: var(--bg-elevated);
}
.demo-prompt {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #8b5cf6;
  background: var(--bg-card);
  border-radius: 0 10px 10px 0;
}
.demo-response {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.response-line { margin-bottom: 0.25rem; }
.response-key { color: var(--text-muted); }
.response-value { color: var(--text-primary); font-weight: 600; }
.response-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--text-secondary);
  font-style: normal;
}

/* ── Docs: three-layer cards (inherits landing .layer-card) ──────────────── */
.docs-layers-grid {
  margin: 1.5rem 0 1.25rem;
}

/* ── Docs: Shit Scale visual list ────────────────────────────────────────── */
.shit-scale {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.25rem 0 1.6rem;
}

.shit-level {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.15s, box-shadow 0.2s;
}

.shit-level:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.shit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.78rem;
  border: 1px solid var(--border);
}

.shit-emoji { font-size: 0.95rem; line-height: 1; }

.shit-range {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.shit-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.shit-level.clean .shit-badge { background: rgba(34,197,94,0.10); color: #16a34a; border-color: rgba(34,197,94,0.18); }
.shit-level.mild .shit-badge { background: rgba(234,179,8,0.10); color: #ca8a04; border-color: rgba(234,179,8,0.18); }
.shit-level.overflow .shit-badge { background: rgba(249,115,22,0.10); color: #ea580c; border-color: rgba(249,115,22,0.18); }
.shit-level.deep .shit-badge { background: rgba(239,68,68,0.10); color: #dc2626; border-color: rgba(239,68,68,0.18); }

.shit-level.clean { border-left: 3px solid #22c55e; }
.shit-level.mild { border-left: 3px solid #eab308; }
.shit-level.overflow { border-left: 3px solid #f97316; }
.shit-level.deep { border-left: 3px solid #ef4444; }

@media (max-width: 640px) {
  .shit-level {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .shit-range { order: -1; }
}

/* ── Docs: Context Engineering principles (expandable cards) ─────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 1.6rem;
}

@media (min-width: 720px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
}

.principle-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.principle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.principle-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.principle-icon svg { width: 17px; height: 17px; }

.principle-copy h4 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.3em;
  color: var(--text-primary);
}

.principle-copy p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.principle-toggle {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.principle-toggle:hover {
  background: rgba(128,128,128,0.06);
  color: var(--text-primary);
}

.principle-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.principle-detail p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0;
  line-height: 1.7;
}

.principle-card.is-open .principle-detail {
  max-height: 220px;
  opacity: 1;
}

.principle-card.is-open .principle-toggle svg {
  transform: rotate(180deg);
}

/* ── Docs: 4-layer method timeline (reuses landing .method-track) ────────── */
.step-action {
  margin-top: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(128,128,128,0.05);
  border: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: left;
}

/* ── Docs: Related bar ───────────────────────────────────────────────────── */
.related-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.related-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}

.related-link:hover {
  text-decoration: underline;
}

/* ── CLI: Install Steps ──────────────────────────────────────────────────── */
.install-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.install-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.install-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.install-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.install-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.install-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(128,128,128,0.10);
  color: var(--text-muted);
}

.install-tag.uv { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.install-tag.pipx { background: rgba(14,165,233,0.12); color: #0ea5e9; }

.install-step h4 {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-primary);
  margin: 0 0 0.55rem;
}

/* ── CLI: Copyable code blocks ───────────────────────────────────────────── */
.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
}

.code-block .code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(128,128,128,0.04);
}

.code-block .code-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block .dot-r { background: #ff5f56; }
.code-block .dot-y { background: #ffbd2e; }
.code-block .dot-g { background: #27c93f; }

.code-block code {
  display: block;
  padding: 0.75rem 0.9rem;
  background: none;
  color: var(--text-primary);
  overflow-x: auto;
  font-size: 0.82rem;
}

.copy-btn {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  background: rgba(128,128,128,0.08);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.copy-btn.is-copied {
  color: #22c55e;
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
}

/* ── CLI: Command grid ───────────────────────────────────────────────────── */
.cmd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.1rem 0 1.6rem;
}

@media (min-width: 720px) {
  .cmd-grid { grid-template-columns: repeat(2, 1fr); }
}

.cmd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.cmd-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.cmd-card.repl { border-left: 3px solid var(--accent); }

.cmd-name {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.35em;
  letter-spacing: -0.2px;
}

.cmd-flag {
  color: var(--text-muted);
}

.cmd-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* ── CLI: MCP Spotlight ──────────────────────────────────────────────────── */
.mcp-spotlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-lg);
}

.mcp-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mcp-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35em;
  color: var(--text-primary);
}

.mcp-body > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.7em;
  line-height: 1.7;
}

.mcp-tools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 720px) {
  .mcp-tools { grid-template-columns: 1fr 1fr; }
}

.mcp-tools li {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mcp-tools li code {
  color: var(--accent);
  background: transparent;
  padding: 0;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .content-wrapper { padding: 1.25rem 0.9rem 3rem; }
  .hero { padding: 0.5rem 0 0.25rem; }
  .hero-poster { width: min(280px, 90vw); }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .bento-4 { grid-template-columns: 1fr; }
  .bento-3 { grid-template-columns: 1fr; }
  .bento .span-2 { grid-column: span 1; }
  .compare { grid-template-columns: 1fr; }
  .founder-card { padding: 1.15rem; }
  .landing-hero { padding-top: calc(var(--nav-height) + 1rem); }
  .quote-mark { font-size: 5rem; margin-bottom: -1rem; }
  .layer-card { padding: 1.5rem; }
  .transform-card { padding: 1.5rem; }
  .mcp-spotlight { flex-direction: column; }
  .cmd-grid { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .docs-layers-grid { grid-template-columns: 1fr; }
  .chat-bubble.assistant { flex-direction: row; text-align: left; }
  .chat-metrics { justify-content: center; }
}

/* ── Story/Manifesto Page ───────────────────────────────────────────────── */
.story-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

.story-hero {
  position: relative;
  text-align: center;
  padding: 3rem 1rem 2rem;
  overflow: hidden;
}

.story-hero-glow {
  position: absolute;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.story-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.story-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.3em;
}

.story-lead {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

.story-section {
  position: relative;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .story-section { padding: 4rem 1.5rem; }
}

.story-content {
  max-width: 680px;
  margin: 0 auto;
}

.story-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text-primary);
}

.story-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0 0 1em;
}

.story-punchline {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 650;
  color: var(--text-primary);
  margin-top: 1.2em;
}

.story-shout {
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.2em;
}

/* Quotes Section */
.story-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .story-quotes { grid-template-columns: 1fr 1fr; }
}

.story-quote-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.25rem 1.25rem 1.6rem;
  text-align: left;
}

.story-quote-card::before {
  content: "\"";
  position: absolute;
  top: 0.6rem;
  left: 0.9rem;
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
}

.story-quote-card p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin: 0 0 0.7em;
}

.story-quote-card cite {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.story-quote-card cite span {
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 0.3em;
}

/* Discovery box */
.story-reveal {
  background: var(--bg-surface);
}

.story-discovery {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(239,68,68,0.06), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid #ef4444;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.discovery-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(239,68,68,0.10);
  color: #ef4444;
}

.story-discovery p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Confrontation box */
.story-confront {
  padding: 2rem 1rem;
}

.confront-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(600px 400px at 50% 0%, var(--hero-glow-1), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.confront-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 0.8em;
  line-height: 1.7;
}

.confront-question {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

/* Origin Story */
.story-origin {
  background:
    radial-gradient(700px 500px at 10% 20%, rgba(139,92,246,0.06), transparent 60%),
    var(--bg-body);
}

.origin-moment {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
}

.origin-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139,92,246,0.10);
  font-size: 1.6rem;
  line-height: 1;
}

.origin-text p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 0.5em;
}

.origin-text p:last-child { margin-bottom: 0; }

/* Story Images */
.story-image-wrap {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.story-image-wrap img {
  width: 100%;
  display: block;
}

.story-image-caption {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Belief Section */
.story-belief .belief-cards {
  margin: 2rem 0;
}

.story-closing {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-top: 2rem;
  letter-spacing: -0.01em;
}

/* Story CTA */
.story-cta {
  position: relative;
  text-align: center;
  padding: 5rem 1rem;
  overflow: hidden;
}

/* ── Skill Page ──────────────────────────────────────────────────────────── */
.skill-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.10);
  color: #8b5cf6;
  font-size: 0.75rem;
  font-weight: 650;
  margin-bottom: 1rem;
}

.skill-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.35em;
}

.skill-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.skill-demo-large {
  max-width: 720px;
  margin: 0 auto 3rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.chat-bubble {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-bubble.assistant {
  flex-direction: row-reverse;
  text-align: right;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-content {
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chat-bubble.assistant .chat-content {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.18);
  text-align: left;
}

.chat-content p { margin: 0 0 0.6em; }
.chat-content p:last-child { margin-bottom: 0; }

.chat-metrics {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.6rem 0;
}

.chat-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 80px;
}

.chat-metric .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-metric .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-advice {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

/* ── Philosophy Page ─────────────────────────────────────────────────────── */
.philosophy-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.philosophy-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.philosophy-title {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

.philosophy-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.manifesto-quote {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 12px 12px 0;
}

.manifesto-quote p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
}

.belief-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

@media (min-width: 720px) {
  .belief-cards { grid-template-columns: repeat(3, 1fr); }
}

.belief-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}

.belief-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.belief-number {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
}

.belief-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

.belief-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.design-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.25rem 0 2.5rem;
}

@media (min-width: 720px) {
  .design-principles { grid-template-columns: repeat(3, 1fr); }
}

.dp-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dp-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.dp-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.dp-icon svg { width: 18px; height: 18px; }

.dp-item h4 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.35em;
  color: var(--text-primary);
}

.dp-item p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
