.app {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

/* Fixed (not absolute) so the aurora backdrop doesn't reflow or repeat
   per-section as the page scrolls. */
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px circle at 15% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(600px circle at 85% 10%, var(--violet-glow), transparent 60%),
    var(--bg);
  opacity: 0.55;
  filter: blur(10px);
}

.main { flex: 1; }

@media (prefers-reduced-motion: no-preference) {
  .app::before { transition: opacity 0.3s; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 4rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: color 0.15s, border-color 0.15s;
}

.nav-icon-link:hover { color: var(--text); border-color: var(--border-2); }

.nav-icon-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.nav-burger-line {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1.25rem;
  z-index: 20;
  animation: nav-panel-in 0.18s ease-out;
}

.nav-mobile-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-social {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0.25rem 0.25rem;
}

.nav-mobile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: color 0.15s, border-color 0.15s;
}

.nav-mobile-icon:hover { color: var(--text); border-color: var(--border-2); }

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

.nav-mobile-docs {
  width: 100%;
  margin-top: 0.75rem;
}

.nav-mobile-docs svg { width: 18px; height: 18px; }

@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-icon-link { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 480px) {
  .nav { padding: 0 1rem; }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.15s;
}

.theme-toggle:hover { border-color: var(--border-2); }

.theme-toggle svg { width: 16px; height: 16px; }

.theme-toggle span { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, border-color 0.18s, color 0.18s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.btn-primary:hover { box-shadow: 0 16px 40px -8px var(--accent-glow); }

.btn-ghost {
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border-color: var(--border-2);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.copy-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}

.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

.copy-icon {
  display: flex;
  color: var(--muted);
  transition: transform 0.15s;
}

.copy-icon svg {
  width: 16px;
  height: 16px;
}

.code-block {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.code-block-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.code-block-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.code-block-dot:nth-child(1) { background: #ff5f57; }
.code-block-dot:nth-child(2) { background: #febc2e; }
.code-block-dot:nth-child(3) { background: #28c840; }

.code-block-filename {
  flex: 1;
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.code-block-copy {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.code-block:hover .code-block-copy,
.code-block:focus-within .code-block-copy {
  opacity: 1;
}

@media (max-width: 860px) {
  .code-block-copy { opacity: 1; }
}

.code-block-pre {
  padding: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.code-block-pre::-webkit-scrollbar { height: 6px; }
.code-block-pre::-webkit-scrollbar-track { background: transparent; }
.code-block-pre::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.code-block-pre::-webkit-scrollbar-thumb:hover { background: var(--hint); }

.code-block-pre code {
  background: none;
  padding: 0;
  color: var(--code-plain);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre;
}

/* Token colors for HighlightGoHTML's spans. tok-str and tok-text share a
   color: string literals and JSX text children are the same kind of "plain
   content" to a reader, unlike code structure. */
.tok-kw { color: var(--accent); }
.tok-str, .tok-text { color: var(--accent-2); }
.tok-com { color: var(--hint); font-style: italic; }
.tok-fn { color: var(--tok-fn); font-weight: 600; }
.tok-type { color: var(--tok-type); }
.tok-signal { color: var(--tok-signal); font-weight: 600; }
.tok-call { color: var(--tok-call); }
.tok-tag { color: var(--tok-tag); }
.tok-prop { color: var(--tok-prop); }

.preview-frame {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.preview-frame-label {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--hint);
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.75rem;
  margin-right: calc(9px * 3 + 0.5rem * 2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-frame-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  background: var(--bg);
}

/* Only used where the demo itself has no nav of its own - the router tab
   has a real, functional one, so a second decorative one there would be
   redundant. */
.demo-page-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.demo-page-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.demo-page-header-nav {
  width: 34px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--border-2);
}

.preview-frame-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

/* Stretches to fill its grid row - the pre grows with it instead of
   staying at content height and leaving empty space below. */
.code-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.code-panel .code-block-pre { flex: 1; }

.code-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.code-panel-filename {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.code-panel-copy {
  opacity: 0;
  transition: opacity 0.15s;
}

.code-panel:hover .code-panel-copy,
.code-panel:focus-within .code-panel-copy {
  opacity: 1;
}

@media (max-width: 860px) {
  .code-panel-copy { opacity: 1; }
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7rem) 1.5rem 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-copy,
.hero-pillars {
  /* Grid items default to min-width:auto (their content's min-content).
     Without this, unshrinkable content (e.g. the nowrap install command)
     blows out the whole grid track past the viewport. */
  min-width: 0;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.install-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
}

.install-cmd {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.install-cmd::before {
  content: "$ ";
  color: var(--accent);
}

.install-cmd::-webkit-scrollbar { display: none; }

.install-row .copy-btn {
  background: none;
  border: none;
  padding: 0.4rem;
}

.install-row .copy-btn:hover { transform: scale(1.15); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .install-row { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
}

.vane-icon {
  position: relative;
  width: clamp(140px, 20vw, 220px);
  height: clamp(140px, 20vw, 220px);
  transition: transform 0.15s ease-out;
  color: var(--accent);
  filter: drop-shadow(0 0 30px var(--accent-soft));
}

.vane-icon-ring,
.vane-icon-spin {
  position: absolute;
  inset: 0;
}

.vane-icon-spin { animation: vane-spin 40s linear infinite; }

.vane-icon-ring svg,
.vane-icon-spin svg { width: 100%; height: 100%; display: block; }

@keyframes vane-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vane-icon--lost { opacity: 0.75; }

.vane-icon--lost .vane-icon-spin { animation: vane-hunt 3.5s ease-in-out infinite; }

@keyframes vane-hunt {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(100deg); }
  40%  { transform: rotate(-60deg); }
  60%  { transform: rotate(140deg); }
  80%  { transform: rotate(-30deg); }
  100% { transform: rotate(0deg); }
}

.vane-logo {
  display: inline-flex;
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.vane-logo svg { width: 100%; height: 100%; display: block; }

a:hover > .vane-logo { transform: scale(1.08); }

.pillar-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-statement {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  min-height: 130px;
  animation: pillar-fade-in 0.45s ease;
}

@keyframes pillar-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pillar-statement-bar {
  flex-shrink: 0;
  width: 4px;
  border-radius: var(--r-pill);
  background: var(--gradient-brand);
  box-shadow: 0 0 16px var(--accent-glow);
}

.pillar-statement-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.pillar-statement-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pillar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pillar-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--hint);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.pillar-nav-arrow:hover { color: var(--text); border-color: var(--accent); }
.pillar-nav-arrow svg { width: 14px; height: 14px; }

.pillar-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-step {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.pillar-step:hover { background: var(--hint); }

.pillar-step--active {
  position: relative;
  width: 28px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--border-2);
  overflow: hidden;
}

.pillar-step--active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  animation: pillar-progress var(--pillar-interval, 4s) linear;
}

@keyframes pillar-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-statement { animation: none; }
  .pillar-step--active::after { animation: none; transform: scaleX(1); }
}

.feature-tabs { max-width: 1080px; margin: 0 auto; }

.feature-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.feature-tab {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.feature-tab:hover { color: var(--text); }

.feature-tab--active {
  color: #ffffff;
  border-color: transparent;
  background: var(--gradient-brand);
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.feature-panel-preview-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.feature-panel-preview-col .preview-frame { flex: 1; }

.feature-panel-header { max-width: 640px; }

.feature-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.feature-panel-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.feature-panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.demo-cta { margin-top: 1.25rem; }

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.demo-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hint);
}

.input {
  width: 100%;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--hint); }

.greeting {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 860px) {
  .feature-panel-split { grid-template-columns: 1fr; }
}

/** signals demo visual */

.demo-visual {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.demo-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  min-width: 120px;
}

.demo-node-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hint);
}

.demo-node-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.demo-node-value--live { color: var(--accent); }

.demo-quote-card {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 6.5rem;
  justify-content: center;
}

.demo-quote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.spinner {
  width: 24px;
  height: 24px;
  align-self: center;
  border: 3px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinner-rotate 0.7s linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

.demo-wire {
  height: 2px;
  width: 64px;
  background: var(--border-2);
  position: relative;
  flex-shrink: 0;
}

.demo-wire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}

.demo-wire--pulse::before {
  transform: scaleX(1);
  box-shadow: 0 0 12px var(--accent-glow);
}

@media (max-width: 480px) {
  .demo-visual { flex-direction: column; gap: 0.5rem; }
  .demo-wire { width: 2px; height: 32px; }
}

.router-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.router-demo-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.router-demo-stop {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.router-demo-stop:hover { color: var(--text); }

.router-demo-stop--active {
  color: #ffffff;
  border-color: transparent;
  background: var(--gradient-brand);
}

.router-demo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 1.25rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-sm);
  text-align: center;
}

/** Bento-style grid: mixed card shapes (wide / tall / banner / reverse)
    instead of a uniform grid, same instinct as Astro's "Fully Featured"
    section - each card's shape fits what it's showing. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(135px, auto);
  grid-auto-flow: dense;
  gap: 1.1rem;
}

/* Documentation CTA lives outside the dense-packed grid entirely, so
   dense's gap-filling can never pull it in ahead of anything - it's
   always the last thing on the page, pinned to the right. */
.feature-grid-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.feature-grid-footer .feature-card--docs-cta {
  width: calc((100% - 2.2rem) / 3);
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:is(:hover, .is-active) { border-color: var(--border-2); transform: translateY(-4px); }

.feature-card--w2 { grid-column: span 2; }
.feature-card--w3 { grid-column: span 3; }
.feature-card--tall { grid-row: span 2; }
/* Paired with --tall: same visual/background treatment, taller row span. */
.feature-card--taller { grid-row: span 3; }
.feature-card--right { grid-column: 3; }

.feature-card--banner {
  flex-direction: row;
  align-items: stretch;
}

.feature-card--banner .feature-visual {
  flex: 1.6;
  width: auto;
  height: auto;
  border-bottom: none;
  border-right: 1px solid var(--border);
}

.feature-card--banner .feature-text {
  flex: 1;
  max-width: 220px;
  justify-content: center;
}

/* Paired with --banner, --reverse means text-left/visual-right instead of
   its usual (unpaired) column-reverse meaning - see below. */
.feature-card--banner.feature-card--reverse {
  flex-direction: row-reverse;
}

.feature-card--banner.feature-card--reverse .feature-visual {
  border-right: none;
  border-left: 1px solid var(--border);
}

.feature-card--reverse { flex-direction: column-reverse; }

.feature-card--reverse .feature-visual {
  border-bottom: none;
  border-top: 1px solid var(--border);
}

.feature-card--reverse:not(.feature-card--banner) .feature-visual {
  flex: 1;
  height: auto;
  min-height: 115px;
}

.feature-card--tall .feature-visual { flex: 1; height: auto; min-height: 135px; }

.feature-visual {
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.feature-card--w3 .feature-visual {
  background:
    radial-gradient(circle at 50% 20%, var(--accent-soft), transparent 60%),
    var(--surface-2);
}

.feature-card--tall .feature-visual {
  background-image: radial-gradient(var(--border-2) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: var(--surface-2);
}

.feature-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
}

.feature-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--w3 { grid-column: span 2; }
  .feature-card--tall, .feature-card--taller { grid-row: span 1; }
  .feature-card--tall .feature-visual, .feature-card--taller .feature-visual { height: 135px; flex: none; }
  .feature-grid-footer .feature-card--docs-cta { width: calc((100% - 1.1rem) / 2); }
  .feature-card--right { grid-column: 2; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card--w2, .feature-card--w3, .feature-card--right { grid-column: span 1; }
  .feature-card--banner { flex-direction: column; }
  .feature-card--banner .feature-visual { width: 100%; min-height: 115px; border-right: none; border-bottom: 1px solid var(--border); }
  .feature-grid-footer .feature-card--docs-cta { width: 100%; }
}

.feature-visual--router { flex-wrap: wrap; padding: 0 1.25rem; }

.route-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.75rem;
  opacity: 0.4;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.feature-card:is(:hover, .is-active) .route-chip:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.feature-card:is(:hover, .is-active) .route-chip:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.feature-card:is(:hover, .is-active) .route-chip:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }

.a11y-chip {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.65rem 1.25rem;
  box-shadow: 0 0 0 0 var(--accent-soft);
  transition: box-shadow 0.2s;
}

.feature-card:is(:hover, .is-active) .a11y-chip {
  animation: a11y-pulse 1.4s ease-in-out infinite;
}

@keyframes a11y-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.feature-visual--portals { flex-direction: column; gap: 1rem; }

.portal-box {
  width: 44px;
  height: 44px;
  border: 1.5px dashed var(--border-2);
  border-radius: var(--r-sm);
  position: relative;
  flex-shrink: 0;
}

.portal-box--target { border-color: var(--accent); }

.portal-line {
  width: 1.5px;
  height: 28px;
  background: repeating-linear-gradient(180deg, var(--border-2) 0 4px, transparent 4px 8px);
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .feature-visual--portals { flex-direction: row; gap: 0.85rem; }
  .portal-line {
    width: 28px;
    height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--border-2) 0 4px, transparent 4px 8px);
  }
}

.portal-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portal-dot--start { opacity: 1; transform: scale(1); }
.portal-dot--end { opacity: 0; transform: scale(0.4); }

.feature-card:is(:hover, .is-active) .portal-dot--start { opacity: 0; transform: scale(0.4); }
.feature-card:is(:hover, .is-active) .portal-dot--end { opacity: 1; transform: scale(1); }

.feature-visual--errors {
  position: relative;
  flex-direction: column;
  overflow: hidden;
}

.hazard-stripes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -185px;
  right: -90px;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
}

.hazard-stripe {
  width: 10px;
  height: 270px;
  background: rgba(255, 107, 107, 0.18);
  transform: rotate(30deg) translateY(220%);
  transition: transform 0.3s ease-out;
}

.feature-card:is(:hover, .is-active) .hazard-stripe { transform: rotate(30deg) translateY(20px); }

.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(1) { transition-delay: 0s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(2) { transition-delay: 0.018s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(3) { transition-delay: 0.036s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(4) { transition-delay: 0.054s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(5) { transition-delay: 0.072s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(6) { transition-delay: 0.09s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(7) { transition-delay: 0.108s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(8) { transition-delay: 0.126s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(9) { transition-delay: 0.144s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(10) { transition-delay: 0.162s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(11) { transition-delay: 0.18s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(12) { transition-delay: 0.198s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(13) { transition-delay: 0.216s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(14) { transition-delay: 0.234s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(15) { transition-delay: 0.252s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(16) { transition-delay: 0.27s; }
.feature-card:is(:hover, .is-active) .hazard-stripe:nth-child(17) { transition-delay: 0.288s; }

.error-chip {
  position: relative;
  color: #ff6b6b;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.error-chip svg { width: 16px; height: 16px; }

.feature-card:is(:hover, .is-active) .error-chip { opacity: 1; transform: translateY(0); }

.shield-mark { position: relative; color: var(--accent); }
.shield-mark svg { width: 34px; height: 34px; }

.feature-card:is(:hover, .is-active) .shield-mark { animation: shield-catch 0.4s ease 0.25s; }

@keyframes shield-catch {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.tab-chip {
  position: relative;
  min-width: 150px;
  height: 30px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tab-title {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  transition: opacity 0.3s, transform 0.3s;
}

.tab-title--b { opacity: 0; transform: translateY(6px); }

.feature-card:is(:hover, .is-active) .tab-title--a { opacity: 0; transform: translateY(-6px); }
.feature-card:is(:hover, .is-active) .tab-title--b { opacity: 1; transform: translateY(0); }

.feature-visual--reload {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.reload-term {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.reload-term-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.reload-term-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.reload-term-line--idle {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  color: var(--hint);
  transition: opacity 0.2s ease;
}

.feature-card:is(:hover, .is-active) .reload-term-line--idle { opacity: 0; }

.reload-dots::after {
  content: "";
  animation: reload-dots-cycle 1.4s steps(4, end) infinite;
}

@keyframes reload-dots-cycle {
  0% { content: "."; }
  25% { content: ".."; }
  50% { content: "..."; }
  75% { content: ""; }
  100% { content: "."; }
}

.reload-term-line--change,
.reload-term-line--done {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.reload-term-line--change { color: var(--tok-fn); }
.reload-term-line--done { color: var(--accent-2); }

.feature-card:is(:hover, .is-active) .reload-term-line--change {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.feature-card:is(:hover, .is-active) .reload-term-line--done {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.feature-visual--vscode { position: relative; overflow: hidden; }

.vscode-ext-icon {
  display: flex;
  color: var(--muted);
  transform: rotate(-10deg);
  transition: transform 0.35s ease, color 0.35s ease;
}

.vscode-ext-icon svg { width: 46px; height: 46px; }

.feature-card:is(:hover, .is-active) .vscode-ext-icon {
  color: var(--accent);
  transform: rotate(0deg) scale(8);
}

.vscode-vane-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.vscode-vane-icon svg { width: 100%; height: 100%; }

.feature-card:is(:hover, .is-active) .vscode-vane-icon {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

.feature-visual--signals { position: relative; overflow: hidden; }

/* Specificity beats the generic .feature-card--tall .feature-visual
   dot-grid rule, which would otherwise win and make every tall card look
   the same regardless of which visual it's showing. */
.feature-card--tall .feature-visual--signals { background-image: none; }

.signal-cloud { position: relative; width: 100%; height: 100%; z-index: 0; }

/* Thin disc outlines marking each orbit's own radius - decoration only,
   sit behind everything else in the cloud. */
.signal-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  opacity: 0.4;
  transform: translate(-50%, -50%);
}

.signal-track--1 { width: 172px; height: 172px; }
.signal-track--2 { width: 300px; height: 300px; }
.signal-track--3 { width: 425px; height: 425px; }

.signal-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: var(--accent);
  background: var(--surface-3);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.signal-button svg { width: 25px; height: 25px; }

.feature-card:is(:hover, .is-active) .signal-button {
  transform: translate(-50%, -50%) scale(0.77);
  box-shadow: 0 0 22px var(--accent-glow);
}

.signal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 0;
  height: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.signal-ring--track-1 { animation-name: signal-spin-cw; animation-duration: 18s; }
.signal-ring--track-2 { animation-name: signal-spin-ccw; animation-duration: 18s; }
.signal-ring--track-3 { animation-name: signal-spin-cw; animation-duration: 18s; }

.signal-ring--track-1.signal-ring--phase-1 { animation-delay: -9s; }
.signal-ring--track-2.signal-ring--phase-1 { animation-delay: -6s; }
.signal-ring--track-2.signal-ring--phase-2 { animation-delay: -12s; }
.signal-ring--track-3.signal-ring--phase-1 { animation-delay: -6s; }
.signal-ring--track-3.signal-ring--phase-2 { animation-delay: -12s; }

@keyframes signal-spin-cw { to { transform: rotate(360deg); } }
@keyframes signal-spin-ccw { to { transform: rotate(-360deg); } }

.signal-chip-wrap {
  position: absolute;
  top: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* left == the matching .signal-track's own radius (half its width) */
.signal-ring--track-1 .signal-chip-wrap { left: 86px; animation-name: signal-counter-ccw; animation-duration: 18s; }
.signal-ring--track-2 .signal-chip-wrap { left: 150px; animation-name: signal-counter-cw; animation-duration: 18s; }
.signal-ring--track-3 .signal-chip-wrap { left: 210px; animation-name: signal-counter-ccw; animation-duration: 18s; }

.signal-ring--track-1.signal-ring--phase-1 .signal-chip-wrap { animation-delay: -9s; }
.signal-ring--track-2.signal-ring--phase-1 .signal-chip-wrap { animation-delay: -6s; }
.signal-ring--track-2.signal-ring--phase-2 .signal-chip-wrap { animation-delay: -12s; }
.signal-ring--track-3.signal-ring--phase-1 .signal-chip-wrap { animation-delay: -6s; }
.signal-ring--track-3.signal-ring--phase-2 .signal-chip-wrap { animation-delay: -12s; }

@keyframes signal-counter-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes signal-counter-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.signal-chip {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--hint);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.24rem 0.48rem;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.feature-card:is(:hover, .is-active) .signal-chip { color: var(--text); border-color: var(--accent); }

.signal-chip-label { color: inherit; }

.signal-chip-value-slot {
  position: relative;
  display: inline-block;
  margin-left: 0.3em;
}

.signal-chip-value { display: block; transition: opacity 0.3s ease, transform 0.3s ease; }

.signal-chip-value--after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(4px);
}

.feature-card:is(:hover, .is-active) .signal-chip-value--before { opacity: 0; transform: translateY(-4px); }
.feature-card:is(:hover, .is-active) .signal-chip-value--after { opacity: 1; transform: translateY(0); }

.feature-card:is(:hover, .is-active) .signal-ring--track-1 .signal-chip-value { transition-delay: 0.12s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-1.signal-ring--phase-1 .signal-chip-value { transition-delay: 0.15s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-2 .signal-chip-value { transition-delay: 0.06s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-2.signal-ring--phase-1 .signal-chip-value { transition-delay: 0.08s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-2.signal-ring--phase-2 .signal-chip-value { transition-delay: 0.1s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-3 .signal-chip-value { transition-delay: 0s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-3.signal-ring--phase-1 .signal-chip-value { transition-delay: 0.02s; }
.feature-card:is(:hover, .is-active) .signal-ring--track-3.signal-ring--phase-2 .signal-chip-value { transition-delay: 0.04s; }

.feature-visual--syntax { align-items: flex-end; height: 165px; padding: 0.85rem 0.85rem 0; }

.syntax-editor {
  display: flex;
  flex-direction: column;
  width: 78%;
  height: 150px;
  border: 1px solid var(--border-2);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  overflow: hidden;
}

.syntax-mini-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.syntax-editor-main {
  display: flex;
  flex: 1;
  min-height: 0;
}

.syntax-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.35rem;
  border-right: 1px solid var(--border);
}

.syntax-sidebar-icon {
  display: flex;
  color: var(--hint);
  transition: color 0.2s ease;
}

.syntax-sidebar-icon svg { width: 12px; height: 12px; }
.syntax-sidebar-icon--settings { margin-top: auto; }

.feature-card:is(:hover, .is-active) .syntax-sidebar-icon { color: var(--muted); }

.syntax-mini-code {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.7rem 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: .44rem;
  line-height: 1.4;
}

.syntax-mini-code code {
  background: none;
  padding: 0;
  color: var(--code-plain);
  font-size: inherit;
  white-space: pre;
  transition: color 0.3s ease;
}

.feature-card .syntax-mini-code code { color: var(--hint); }

.syntax-mini-code .tok-kw,
.syntax-mini-code .tok-fn,
.syntax-mini-code .tok-type,
.syntax-mini-code .tok-signal,
.syntax-mini-code .tok-call,
.syntax-mini-code .tok-tag,
.syntax-mini-code .tok-prop,
.syntax-mini-code .tok-str,
.syntax-mini-code .tok-text {
  color: var(--hint);
  transition: color 0.3s ease;
}

.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-kw { color: var(--accent); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-fn { color: var(--tok-fn); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-type { color: var(--tok-type); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-signal { color: var(--tok-signal); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-call { color: var(--tok-call); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-tag { color: var(--tok-tag); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-prop { color: var(--tok-prop); }
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-str,
.feature-card:is(:hover, .is-active) .syntax-mini-code .tok-text { color: var(--accent-2); }

.feature-card--docs-cta .feature-visual--docs {
  position: relative;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: none;
  padding: 1.25rem;
}

.feature-card--docs-cta .feature-title { position: relative; z-index: 1; }

.docs-feature-ghost {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 200px;
  height: 200px;
  color: var(--accent);
  opacity: 0.08;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.docs-feature-ghost svg { width: 100%; height: 100%; }

.feature-card:is(:hover, .is-active) .docs-feature-ghost { transform: scale(1.1) rotate(-4deg); opacity: 0.14; }

.docs-feature-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.docs-feature-arrow svg { width: 15px; height: 15px; transition: transform 0.2s ease; }

.feature-card:is(:hover, .is-active) .docs-feature-arrow svg { transform: translateX(3px); }

.feature-visual--components { overflow: visible; }

/* The page's own pre-redesign grid-line backdrop, scaled down to card
   size - specificity beats the generic .feature-card--tall dot-grid rule,
   which would otherwise win and override this. */
.feature-card--tall .feature-visual--components {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--surface-2);
}

.app-frame {
  position: relative;
  width: 270px;
  height: 210px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  transition: border-color 0.25s ease;
}

.app-frame-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Each piece starts translated well outside the frame in its own
   direction and opacity 0, then flies in to its resting slot on hover.
   Plain ease-out, no overshoot - it arrives and stays, it doesn't bounce
   past its slot first. */
.component-piece {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, border-color 0.25s ease;
}

.component-piece--nav {
  top: 38px;
  left: 12px;
  right: 12px;
  text-align: center;
  transform: translateY(-74px);
}

.component-piece--sidebar {
  top: 82px;
  bottom: 12px;
  left: 12px;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-104px);
}

.component-piece--card {
  top: 82px;
  left: 92px;
  right: 12px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(94px);
}

.component-piece--button {
  bottom: 12px;
  right: 12px;
  transform: translateX(94px);
}

.feature-card:is(:hover, .is-active) .component-piece { opacity: 1; transform: translate(0, 0); border-color: var(--accent); }

.feature-card:is(:hover, .is-active) .component-piece--nav { transition-delay: 0s; }
.feature-card:is(:hover, .is-active) .component-piece--sidebar { transition-delay: 0.1s; }
.feature-card:is(:hover, .is-active) .component-piece--card { transition-delay: 0.2s; }
.feature-card:is(:hover, .is-active) .component-piece--button { transition-delay: 0.3s; }

@media (max-width: 960px) {
  .app-frame { width: 260px; height: 112px; }
  .app-frame-label { top: 6px; left: 8px; font-size: 0.62rem; }
  .component-piece { font-size: 0.64rem; padding: 0.3rem 0.55rem; }
  .component-piece--nav { top: 23px; left: 8px; right: 8px; transform: translateY(-34px); }
  .component-piece--sidebar { top: 58px; bottom: 12px; left: 8px; width: 52px; transform: translateX(-90px); }
  .component-piece--card { top: 58px; left: 68px; right: 8px; bottom: 12px; height: auto; transform: translateY(46px); }
  .component-piece--button { display: none; }

  .signal-cloud { transform: scale(0.62); transform-origin: center; }

  .hazard-stripes { left: 0px; right: -80px; }
}

.feature-visual--store {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.store-code-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.store-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.store-code--set {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.feature-card:is(:hover, .is-active) .store-code--set { opacity: 1; transform: translateY(0); }

.store-screens {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.store-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.4rem;
  transition: border-color 0.2s ease;
}

.feature-card:is(:hover, .is-active) .store-screen { border-color: var(--accent); }

.store-screen-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hint);
}

.store-screen-value {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.store-screen-value--before,
.store-screen-value--after {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.store-screen-value--before { display: block; }

.store-screen-value--after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(4px);
}

.feature-card:is(:hover, .is-active) .store-screen-value--before {
  opacity: 0;
  transform: translateY(-4px);
  transition-delay: 0.1s;
}
.feature-card:is(:hover, .is-active) .store-screen-value--after {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Nav/Cart/Profile flip in a quick left-to-right cascade, starting after
   the .Set(...) line above appears - reads as the call actually
   propagating out to each consumer, not everything happening at once. */
.feature-card:is(:hover, .is-active) .store-screen:nth-child(2) .store-screen-value--before,
.feature-card:is(:hover, .is-active) .store-screen:nth-child(2) .store-screen-value--after { transition-delay: 0.18s; }
.feature-card:is(:hover, .is-active) .store-screen:nth-child(3) .store-screen-value--before,
.feature-card:is(:hover, .is-active) .store-screen:nth-child(3) .store-screen-value--after { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .feature-card, .route-chip, .a11y-chip, .portal-dot, .error-chip,
  .shield-mark, .hazard-stripe, .tab-title, .reload-dots::after,
  .reload-term-line--idle, .reload-term-line--change, .reload-term-line--done,
  .signal-button, .signal-ring, .signal-chip-wrap, .signal-chip, .signal-chip-value,
  .syntax-mini-code *, .syntax-sidebar-icon, .docs-feature-ghost, .docs-feature-arrow svg, .component-piece, .app-frame,
  .store-screen-value--before, .store-screen-value--after, .store-screen, .store-code--set, .vscode-ext-icon, .vscode-vane-icon {
    animation: none !important;
    transition: none !important;
  }
}

.learn-accordion {
  display: flex;
  height: 420px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.learn-panel {
  position: relative;
  display: flex;
  flex: 1 1 0%;
  min-width: 160px;
  border-right: 1px solid var(--border);
  background: transparent;
  text-decoration: none;
  transition: flex-grow 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.learn-panel:last-child { border-right: none; }

.learn-accordion:hover .learn-panel { flex-grow: 0; }
.learn-accordion:hover .learn-panel:hover { flex-grow: 5; }

.learn-panel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
}

.learn-panel-flare {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 100% 50%, var(--accent-glow), transparent 60%);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition: opacity 0.5s, transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.learn-panel:hover .learn-panel-flare { opacity: 0.4; transform: scaleX(1); }

.learn-panel-ghost {
  position: absolute;
  z-index: 0;
  left: -28px;
  bottom: -28px;
  width: 230px;
  height: 230px;
  color: var(--accent);
  opacity: 0.055;
  pointer-events: none;
}

.learn-panel-ghost svg { width: 100%; height: 100%; }

.learn-panel-title {
  position: relative;
  z-index: 1;
  max-width: 8.5rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text);
}

.learn-panel-reveal {
  position: relative;
  z-index: 1;
  margin-top: auto;
  max-width: 320px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.learn-panel:hover .learn-panel-reveal {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.learn-panel-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.learn-panel-cta {
  position: absolute;
  z-index: 1;
  top: 2.5rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.learn-panel:hover .learn-panel-cta {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.learn-panel-arrow svg { width: 15px; height: 15px; }

/* Touch devices have no hover, so the expand/reveal mechanic above never
   triggers - description and CTA would stay permanently hidden. Below the
   breakpoint, drop the whole interaction: stack plain, static rows with
   the reveal always shown, no flex-grow tug-of-war left to depend on a
   hover that won't come. */
@media (max-width: 720px) {
  .learn-accordion { flex-direction: column; height: auto; }
  .learn-panel,
  .learn-accordion:hover .learn-panel,
  .learn-accordion:hover .learn-panel:hover {
    flex-grow: 1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 150px;
  }
  .learn-panel:last-child { border-bottom: none; }
  .learn-panel-title { max-width: none; }
  .learn-panel-reveal { opacity: 1; transform: none; max-width: none; margin-top: 0.75rem; }
  .learn-panel-cta { opacity: 1; transform: none; top: 1.75rem; right: 1.5rem; font-size: 0.95rem; }
  .learn-panel-flare { opacity: 0.4; transform: scaleX(1); }
  .learn-panel-inner { padding: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .learn-panel, .learn-panel-reveal, .learn-panel-flare, .learn-panel-cta {
    transition: none !important;
  }
}

.cta-panel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.5rem, 6vw, 4.5rem);
  text-align: center;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px circle at 50% -10%, var(--accent-glow), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  position: relative;
}

.cta-sub {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-install-row {
  position: relative;
  margin-top: 1.75rem;
}

.cta-license {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--hint);
  position: relative;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hint);
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--hint);
  font-size: 0.82rem;
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/** reading progress bar, sticks right below the site nav */

.docs-progress-track {
  position: sticky;
  top: 4rem;
  z-index: 19;
  height: 3px;
  width: 100%;
  background: var(--border);
}

.docs-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.1s linear;
}

.docs-shell-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, var(--violet-glow), transparent 55%),
    radial-gradient(circle at 85% 10%, var(--accent-glow), transparent 50%);
  opacity: 0.35;
  pointer-events: none;
}

.docs-shell {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.docs-sidebar {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6rem);
  padding: 1.25rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/** Search + section tabs never scroll away - only the category tree below
    them does. */
.docs-sidebar-header {
  flex-shrink: 0;
}

.docs-sidebar-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.docs-sidebar-scroll::-webkit-scrollbar { width: 6px; }
.docs-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.docs-sidebar-scroll::-webkit-scrollbar-thumb:hover { background: var(--hint); }

.docs-section-tabs {
  display: flex;
  gap: 0.2rem;
  margin: 0.25rem 0 1.1rem;
  padding: 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.docs-section-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.4rem 0.3rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.docs-section-tab:hover { color: var(--text); }

.docs-section-tab--active {
  color: #ffffff;
  background: var(--gradient-brand);
  box-shadow: 0 0 16px -4px var(--accent-glow);
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
}

.docs-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0.4rem 0.3rem;
  cursor: pointer;
  text-align: left;
}

.docs-nav-group-title {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs-nav-group-chevron {
  display: flex;
  color: var(--hint);
  transition: transform 0.15s ease, color 0.15s ease;
}

.docs-nav-group-chevron svg { width: 14px; height: 14px; }

.docs-nav-group-toggle:hover .docs-nav-group-title { color: var(--text); }
.docs-nav-group-toggle:hover .docs-nav-group-chevron { color: var(--muted); }

.docs-nav-group--open .docs-nav-group-chevron { transform: rotate(90deg); }

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0.15rem 0 0.5rem 0.3rem;
  border-left: 1px solid var(--border);
  margin-left: 0.35rem;
}

.docs-nav-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.32rem 0 0.32rem 0.75rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.docs-nav-link:hover { color: var(--text); }

.docs-nav-link--active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px var(--accent-glow);
}

.docs-content-area { flex: 1; min-width: 0; }

.docs-sidebar-toggle {
  display: none;
}

@media (max-width: 860px) {
  .docs-shell { flex-direction: column; gap: 1.25rem; align-items: stretch; padding-left: 1.25rem; padding-right: 1.25rem; }

  .docs-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
  }

  .docs-sidebar-toggle-icon {
    display: flex;
    color: var(--muted);
    transition: transform 0.15s;
  }

  .docs-sidebar-toggle-icon svg {
    width: 16px;
    height: 16px;
  }

  .docs-sidebar-toggle--open .docs-sidebar-toggle-icon {
    transform: rotate(180deg);
  }

  .docs-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
  }

  .docs-sidebar-scroll {
    overflow-y: visible;
  }

  .docs-sidebar--closed {
    display: none;
  }
}

@media (max-width: 480px) {
  .docs-shell { padding: 1.5rem 1rem 3rem; }
}

/** search: sidebar trigger + Ctrl/Cmd+K modal */

.docs-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 65%),
    var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.docs-search-trigger:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 20px -8px var(--accent-glow);
  transform: translateY(-1px);
}

.docs-search-trigger-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--accent);
}

.docs-search-trigger-icon svg {
  width: 16px;
  height: 16px;
}

.docs-search-trigger-label {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.docs-search-kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--hint);
}

.docs-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 1rem;
  background: rgba(0, 0, 0, 0.5);
}

.docs-search-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  /* Opaque, not --surface-glass: translucent here let the dark backdrop
     scrim bleed through and muddy the panel gray in light mode. */
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift), 0 0 60px -20px var(--accent-glow);
  overflow: hidden;
}

.docs-search-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.docs-search-input-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--accent);
}

.docs-search-input-icon svg {
  width: 18px;
  height: 18px;
}

.docs-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.docs-search-input::placeholder {
  color: var(--hint);
}

.docs-search-reset {
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 0rem 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.docs-search-reset-icon {
  display: flex;
  flex-shrink: 0;
}

.docs-search-reset-icon svg {
  width: 20px;
  height: 20px;
}

.docs-search-close {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 0.2rem 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.docs-search-hint {
  padding: 1.25rem 1rem;
  color: var(--hint);
  font-size: 0.88rem;
}

.docs-search-results {
  list-style: none;
  overflow-y: auto;
  padding: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.docs-search-results::-webkit-scrollbar { width: 7px; }
.docs-search-results::-webkit-scrollbar-track { background: transparent; }
.docs-search-results::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.docs-search-results::-webkit-scrollbar-thumb:hover { background: var(--hint); }

/** grouped by Section (Tutorial/Guide/CLI/Reference), shown once above
    every hit found inside it. */
.docs-search-group + .docs-search-group { margin-top: 0.75rem; }

.docs-search-group-label {
  display: block;
  padding: 0.3rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.docs-search-group-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-search-result {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.docs-search-result:hover,
.docs-search-result:focus-visible,
.docs-search-result--active {
  background: var(--accent-soft);
  border-color: var(--border-2);
}

.docs-search-result-select-icon {
  display: none;
  color: var(--accent);
}

.docs-search-result-select-icon svg {
  width: 16px;
  height: 16px;
}

.docs-search-result:hover > .docs-search-result-select-icon,
.docs-search-result--active > .docs-search-result-select-icon {
  display: block;
  flex-shrink: 0;
}

.docs-search-result-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.docs-search-result-category {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hint);
}

.docs-search-result-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.docs-search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.docs-search-result-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.docs-search-result-sub-icon::before {
  content: "› ";
}

.docs-search-result-text-nowrap {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-x: hidden;
  width: auto;
  max-width: 300px;
}

/** guide pages: article + on-this-page TOC */

.docs-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 3.5rem;
  align-items: start;
}

.docs-toc-col {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.docs-toc {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1.1rem 1.1rem 1.4rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.docs-toc-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hint);
}

.docs-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  border-left: 1px solid var(--border);
}

.docs-toc-link {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0 0 0 1rem;
  margin-left: -1px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.docs-toc-link:hover { color: var(--accent); }

.docs-toc-link--active {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px var(--accent-glow);
}

.docs-toc-link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-brand);
  box-shadow: 0 0 8px var(--accent-glow);
  border-radius: 2px;
}

.docs-toc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.docs-toc-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.docs-toc-action:hover { color: var(--accent); }

.docs-toc-action-icon { display: flex; flex-shrink: 0; }
.docs-toc-action-icon svg { width: 14px; height: 14px; }

.docs-scrolltop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.docs-scrolltop--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.docs-scrolltop:hover { color: var(--accent); }

/** article prose */

.docs-article { min-width: 0; }

.docs-header { position: relative; margin-bottom: 2.25rem; }

.docs-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.docs-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.docs-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
}

.docs-h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.docs-h2:first-of-type { margin-top: 0; }

.docs-p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}

.docs-p code, .docs-callout-body code { color: var(--accent); }

.docs-article .code-block { margin-bottom: 1.5rem; box-shadow: var(--shadow-card); }

.docs-list {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
  margin: 0 0 1.5rem 1.25rem;
}

.docs-list li { margin-bottom: 0.4rem; }

.docs-list code { color: var(--accent); }

/** compact numbered pipeline, e.g. the .vane -> app.wasm build flow */

.docs-pipeline {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.docs-pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}

.docs-pipeline-step:last-child { border-bottom: none; }

.docs-pipeline-num {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 12px var(--accent-glow);
}

.docs-table-wrap {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.docs-table-wrap::-webkit-scrollbar { height: 6px; }
.docs-table-wrap::-webkit-scrollbar-track { background: transparent; }
.docs-table-wrap::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.docs-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--hint); }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.docs-table th, .docs-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}

.docs-table thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hint);
  font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-2);
}

.docs-table tbody tr:last-child td { border-bottom: none; }

.docs-table tbody tr { transition: background 0.15s; }
.docs-table tbody tr:hover { background: var(--accent-soft); }

.docs-table td { color: var(--muted); }

.docs-table td code { color: var(--accent); }

/** callouts */

.docs-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 60%),
    var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
}

.docs-callout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.docs-callout-icon svg { width: 16px; height: 16px; }

.docs-callout-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.docs-callout-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.docs-callout-body {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.docs-callout--important {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--tok-signal) 14%, transparent), transparent 60%),
    var(--surface-glass);
  border-color: var(--tok-signal);
  box-shadow: var(--shadow-card);
}

.docs-callout--important .docs-callout-label { color: var(--tok-signal); }
.docs-callout--important .docs-callout-icon {
  color: var(--tok-signal);
  background: color-mix(in srgb, var(--tok-signal) 14%, transparent);
}

/** key-facts panel, opens most pages right below the header */

.docs-summary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 15% 0%, var(--accent-soft), transparent 55%),
    var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.75rem;
}

.docs-summary-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.docs-summary-icon { display: flex; }
.docs-summary-icon svg { width: 14px; height: 14px; }

.docs-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.docs-summary-check {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent-2);
}

.docs-summary-check svg { width: 14px; height: 14px; }

.docs-summary-item code { color: var(--accent); }

/** prev / next footer nav */

.docs-pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.docs-pagenav--single { grid-template-columns: 1fr; }
.docs-pagenav--single .docs-pagenav-card--next { grid-column: 1; }

.docs-pagenav-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}

.docs-pagenav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 60%);
  transition: opacity 0.2s;
}

.docs-pagenav-card--next::before { background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 60%); }

.docs-pagenav-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), 0 0 24px -8px var(--accent-glow);
}

.docs-pagenav-card:hover::before { opacity: 1; }

.docs-pagenav-card--next { text-align: right; align-items: flex-end; grid-column: 2; }

.docs-pagenav-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.docs-pagenav-arrow {
  display: flex;
  color: var(--accent);
  transition: transform 0.2s;
}

.docs-pagenav-arrow svg { width: 13px; height: 13px; }

.docs-pagenav-card--prev:hover .docs-pagenav-arrow { transform: translateX(-3px); }
.docs-pagenav-card--next:hover .docs-pagenav-arrow { transform: translateX(3px); }

.docs-pagenav-title {
  position: relative;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

/** overview page: scaffold command callout */

.docs-scaffold {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.85rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.docs-scaffold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%);
  pointer-events: none;
}

.docs-scaffold-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }

.docs-scaffold-desc { color: var(--muted); font-size: 0.9rem; }

.docs-scaffold-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
}

.docs-scaffold-step-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 0.4rem;
}

.docs-scaffold-cmd-row { max-width: 100%; }

/** overview page: quickstart entry points */

.docs-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.docs-quickstart-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.docs-quickstart-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 24px -8px var(--accent-glow);
}

.docs-quickstart-step {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.docs-quickstart-title { color: var(--text); font-size: 1.05rem; font-weight: 700; }

.docs-quickstart-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/** tutorial: progress tracker, per-unit done badge, mark-complete checkbox,
    congrats banner. */

.docs-tutorial-progress { margin-bottom: 1.5rem; }

.docs-tutorial-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.docs-tutorial-progress-label { font-size: 0.92rem; font-weight: 600; color: var(--text); }

.docs-tutorial-progress-pct { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }

.docs-tutorial-progress-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
}

.docs-tutorial-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.3s ease;
}

.docs-tutorial-unit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-tutorial-unit-done { display: flex; color: var(--accent-2); }
.docs-tutorial-unit-done svg { width: 18px; height: 18px; }

.docs-tutorial-unit-card--done { border-color: var(--accent-2); }

.docs-tutorial-check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-tutorial-check:hover { border-color: var(--accent); }

.docs-tutorial-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-2);
  color: var(--bg);
  transition: background 0.2s, border-color 0.2s;
}

.docs-tutorial-check-box svg { width: 13px; height: 13px; }

.docs-tutorial-check--done {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-card), 0 0 20px -8px var(--accent-glow);
}

.docs-tutorial-check--done .docs-tutorial-check-box {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.docs-tutorial-congrats {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 60%),
    var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-2);
  box-shadow: var(--shadow-card);
}

.docs-tutorial-congrats-icon { display: flex; flex-shrink: 0; color: var(--accent-2); }
.docs-tutorial-congrats-icon svg { width: 28px; height: 28px; }

.docs-tutorial-congrats-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.4rem; }

.docs-tutorial-congrats-body { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/** overview page: community blurb */

.docs-community { margin-bottom: 1rem; }

.docs-community-link { color: var(--accent); }

/** overview page: category sections of link cards */

.docs-overview-section { margin-bottom: 2.5rem; }

.docs-overview-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.docs-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 24px -8px var(--accent-glow);
}

.docs-card-title { color: var(--text); font-size: 1rem; font-weight: 700; }

.docs-card-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.docs-card-cta {
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}

/** responsive */

@media (max-width: 1300px) {
  .docs-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .docs-page { grid-template-columns: minmax(0, 1fr); }
  .docs-toc-col { display: none; }
}

@media (max-width: 860px) {
  .docs-card-grid { grid-template-columns: 1fr; }
  .docs-quickstart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .docs-title { font-size: 1.9rem; }
  .docs-pagenav { grid-template-columns: 1fr; }
  .docs-pagenav-card--next { grid-column: 1; text-align: left; align-items: flex-start; }
}

.notfound {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
  text-align: center;
}

.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notfound-vane {
  width: clamp(100px, 14vw, 150px);
  height: clamp(100px, 14vw, 150px);
  margin-bottom: 1.5rem;
}

.notfound-vane .vane-icon { width: 100%; height: 100%; }

.notfound-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}

.notfound-desc {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}

.notfound-desc code {
  color: var(--accent);
}

.notfound-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .notfound { padding: 4.5rem 1.25rem; }
  .notfound-title { font-size: 1.6rem; }
}


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

html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --bg: #05070d;
  --surface: #0d111c;
  --surface-2: #131a2b;
  --surface-3: #182035;
  --surface-glass: rgba(19, 26, 43, 0.6);
  --border: #1f2940;
  --border-2: #2a3654;

  --text: #e6ebf5;
  --muted: #8b96b3;
  --hint: #7b86a8;
  --code-plain: color-mix(in srgb, var(--text) 45%, var(--muted));

  --accent: #00ADD8;
  --accent-btn: #007a99;
  --accent-2: #5eead4;
  --accent-violet: #8b7cf6;
  --accent-soft: rgba(0, 173, 216, 0.14);
  --accent-glow: rgba(0, 173, 216, 0.55);
  --violet-glow: rgba(139, 124, 246, 0.45);
  --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-violet) 100%);

  --tok-fn: #f5c451;
  --tok-type: #c792ea;
  --tok-signal: #ff9d5c;
  --tok-call: #7dd3fc;
  --tok-tag: #ff7ab6;
  --tok-prop: #7aa2f7;

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 28px 70px -20px rgba(0, 0, 0, 0.65);

  --fs-hero: clamp(2.75rem, 6vw, 4.75rem);
  --fs-section: clamp(1.9rem, 3.4vw, 2.75rem);

  --section-pad-y: clamp(5rem, 9vw, 7.5rem);
}

:root[data-theme="light"] {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --surface-3: #e4e8f2;
  --surface-glass: rgba(255, 255, 255, 0.7);
  --border: #dbe1ec;
  --border-2: #c6cee0;

  --text: #10131c;
  --muted: #4c5468;
  --hint: #5a6478;

  --accent: #0090b3;
  --accent-btn: #007a99;
  --accent-2: #0f9488;
  --accent-violet: #6d5bd0;
  --accent-soft: rgba(0, 144, 179, 0.1);
  --accent-glow: rgba(0, 144, 179, 0.35);
  --violet-glow: rgba(109, 91, 208, 0.3);

  --tok-fn: #9a6600;
  --tok-type: #7c3aed;
  --tok-signal: #c2410c;
  --tok-call: #0369a1;
  --tok-tag: #be185d;
  --tok-prop: #1d4ed8;

  --shadow-card: 0 20px 50px -28px rgba(16, 19, 28, 0.25);
  --shadow-lift: 0 28px 70px -24px rgba(16, 19, 28, 0.3);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

code {
  font-family: var(--mono);
  background: var(--surface-2);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.875em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.section {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--section-pad-y) 1.5rem;
}

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

.section-title {
  font-size: var(--fs-section);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

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

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1.25rem; }
}
