/* ==========================================================================
   Superteam Landing — Style D · Dark + Green Tech
   (v2.0.0 — replaces previous neobrutalism style)
   ========================================================================== */

:root {
  /* Dark base */
  --bg: #0a0c0a;
  --bg-soft: #0e120e;
  --bg-elevated: #121712;

  /* Surfaces (semi-transparent tints layered on dark bg) */
  --surface: rgba(217, 249, 157, 0.04);
  --surface-hover: rgba(217, 249, 157, 0.08);

  /* Borders */
  --border: rgba(217, 249, 157, 0.10);
  --border-strong: rgba(217, 249, 157, 0.20);
  --border-dashed: rgba(217, 249, 157, 0.12);

  /* Text */
  --text: #ecf2e3;
  --text-soft: #a9b39c;
  --text-muted: #74806b;

  /* Green palette (replaces purple/blue) */
  --lime-bright: #d9f99d;        /* brightest lime */
  --lime: #bef264;               /* lime */
  --spring: #84cc16;             /* spring green / mid lime */
  --emerald: #22c55e;            /* deeper emerald */
  --moss: #6e8f47;               /* sage (carry-over from old design) */
  --moss-dark: #4d6630;

  /* Gradients */
  --grad-tech: linear-gradient(135deg, #d9f99d 0%, #84cc16 45%, #22c55e 100%);
  --grad-tech-soft: linear-gradient(135deg, rgba(217, 249, 157, 0.20) 0%, rgba(34, 197, 94, 0.12) 100%);
  --grad-text-fade: linear-gradient(180deg, #ffffff 0%, #b8c0ad 100%);

  /* Layout */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --max: 1280px;
  --nav-h: 64px;
  --sidebar-w: 88px;

  /* Type */
  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;

  /* Shadow / glow */
  --glow-lime: 0 0 24px rgba(132, 204, 22, 0.30);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.30);
  --shadow-hover: 0 12px 40px rgba(132, 204, 22, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 50% -20%, rgba(132, 204, 22, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 12% 30%, rgba(110, 143, 71, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 88% 65%, rgba(34, 197, 94, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 1px 1px, rgba(217, 249, 157, 0.05) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--lime-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); text-decoration: underline; }

code, .code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

/* ==========================================================================
   Top nav (sticky)
   ========================================================================== */

.site-nav {
  --site-nav-font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --site-nav-font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--site-nav-font-sans);
  background: rgba(10, 12, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  width: 100%;
  max-width: var(--max);
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  justify-self: start;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--site-nav-font-mono);
}

.site-nav__brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
  border-radius: 9px;
  filter: drop-shadow(0 0 8px rgba(217, 249, 157, 0.12));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.site-nav__brand:hover {
  color: var(--lime-bright);
  text-decoration: none;
}

.site-nav__brand:hover .site-nav__brand-mark {
  transform: translateY(-1px) rotate(-2deg);
  filter: drop-shadow(0 0 10px rgba(217, 249, 157, 0.24));
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  font-family: var(--site-nav-font-sans);
  font-size: 0.85rem;
  min-width: 0;
  justify-self: center;
}
.site-nav__links a {
  color: var(--text-soft);
  font-family: var(--site-nav-font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__links a:hover {
  color: var(--lime-bright);
  text-decoration: none;
}
.site-nav__links .ext-arrow {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-left: 2px;
  vertical-align: middle;
}

.site-nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
  justify-self: end;
}

/* Dashboard-style toolbar nav (shared via site-nav.js) */
body.has-site-nav-toolbar {
  padding-top: var(--nav-h);
}
.site-nav--dashboard {
  justify-content: flex-start;
  padding: 0;
}
.site-nav--dashboard .site-nav__inner {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 0 0 0 32px;
  grid-template-columns: auto minmax(0, 1fr);
  position: relative;
  z-index: 1;
}
.site-nav--dashboard .site-nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  justify-self: unset;
  gap: 0.35rem 0.85rem;
  font-size: 0.8rem;
  max-width: min(720px, calc(100vw - 420px));
  pointer-events: none;
}
.site-nav--dashboard .site-nav__links a {
  pointer-events: auto;
}
.site-nav--dashboard .site-nav__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  height: 100%;
  min-height: var(--nav-h);
  padding: 0 16px 0 10px;
  border-left: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.site-nav--dashboard .site-nav__account {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}
.site-nav--dashboard #site-nav-auth {
  flex: 0 0 auto;
  min-width: 0;
}
.site-nav--dashboard .ss-controls { gap: 6px; }
.site-nav--dashboard .ss-label {
  max-width: 8.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav--dashboard .nav-auth-email {
  max-width: min(168px, 28vw);
  min-height: 32px;
  padding: 4px 8px 4px 6px;
  gap: 6px;
}
.site-nav--dashboard .nav-auth-email__eyebrow { display: none; }
.site-nav--dashboard .nav-auth-email__text { font-size: 0.72rem; }
.site-nav--dashboard .nav-auth-email__badge {
  width: 22px;
  height: 22px;
  font-size: 0.62rem;
  border-radius: 7px;
}

.dash-inbox { position: relative; flex-shrink: 0; }
.dash-inbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(217, 249, 157, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.dash-inbox-btn:hover,
.dash-inbox-btn.is-open {
  border-color: var(--border-strong);
  background: rgba(217, 249, 157, 0.08);
  color: var(--lime-bright);
}
.dash-inbox-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-family: var(--site-nav-font-mono);
}
.dash-inbox-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  display: flex;
  flex-direction: column;
  background: rgba(14, 18, 14, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 60;
  overflow: hidden;
}
.dash-inbox-panel.is-portal {
  position: fixed;
  top: auto;
  right: auto;
  left: auto;
  z-index: 10000;
}
.dash-inbox-panel[hidden] { display: none !important; }
.dash-inbox-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-inbox-list { overflow: auto; max-height: 360px; }
.dash-inbox-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(217, 249, 157, 0.06);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.dash-inbox-item:hover { background: rgba(217, 249, 157, 0.05); }
.dash-inbox-item.is-unread { background: rgba(239, 68, 68, 0.06); }
.dash-inbox-item__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--spring);
  margin-bottom: 4px;
}
.dash-inbox-item__meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dash-inbox-item__body {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-soft);
}
.dash-inbox-empty {
  padding: 28px 14px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* Protected pages: hide until auth-guard.js confirms session */
html.auth-pending body {
  visibility: hidden;
}

.site-nav__auth {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.nav-auth-placeholder {
  display: inline-block;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-auth-missing {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-auth-login-flow {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  flex: 0 0 auto;
}

#site-nav-auth > * {
  width: auto;
  flex: 0 0 auto;
}

.nav-auth-error {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  background: rgba(35, 13, 13, 0.96);
  color: #fecaca;
  font-family: var(--site-nav-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  z-index: 90;
}

.nav-auth-login-btn,
#site-nav-auth button.nav-auth-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--grad-tech-soft);
  color: var(--lime-bright);
  font-family: var(--site-nav-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--glow-lime);
}

.nav-auth-login-btn:hover,
#site-nav-auth button.nav-auth-login-btn:hover {
  border-color: var(--lime);
  background: rgba(217, 249, 157, 0.12);
  color: var(--text);
}

.nav-auth-user {
  position: relative;
}

.nav-auth-email {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: min(290px, 46vw);
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(217, 249, 157, 0.14);
  background:
    linear-gradient(135deg, rgba(217, 249, 157, 0.08), rgba(34, 197, 94, 0.04)),
    rgba(10, 12, 10, 0.82);
  color: var(--text);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.nav-auth-email:hover,
.nav-auth-email:focus-visible,
.nav-auth-email[aria-expanded="true"] {
  border-color: rgba(217, 249, 157, 0.28);
  background:
    linear-gradient(135deg, rgba(217, 249, 157, 0.12), rgba(34, 197, 94, 0.08)),
    rgba(10, 12, 10, 0.92);
  color: var(--lime-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(217, 249, 157, 0.06);
  transform: translateY(-1px);
}

.nav-auth-email:focus-visible {
  outline: none;
}

.nav-auth-email__badge {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(217, 249, 157, 0.24), rgba(34, 197, 94, 0.18));
  border: 1px solid rgba(217, 249, 157, 0.14);
  color: var(--lime-bright);
  font-family: var(--site-nav-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-auth-email__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.nav-auth-email__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
  flex: 0 0 auto;
}

.nav-auth-email__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-auth-email__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--site-nav-font-mono);
  font-size: 0.76rem;
  line-height: 1.2;
}

.nav-auth-email__chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.66;
  flex-shrink: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-auth-email[aria-expanded="true"] .nav-auth-email__chevron {
  transform: rotate(-135deg) translateY(-1px);
  opacity: 1;
}

.nav-auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  max-width: min(320px, 70vw);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(217, 249, 157, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 23, 18, 0.98), rgba(10, 12, 10, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 80;
}

.nav-auth-menu__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(217, 249, 157, 0.08);
  margin-bottom: 8px;
}

.nav-auth-menu__badge {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(217, 249, 157, 0.2), rgba(34, 197, 94, 0.14));
  border: 1px solid rgba(217, 249, 157, 0.14);
  color: var(--lime-bright);
  font-family: var(--site-nav-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-auth-menu__identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nav-auth-menu__eyebrow {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-auth-menu__label {
  font-family: var(--site-nav-font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.nav-auth-menu__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(217, 249, 157, 0.03);
  color: var(--text);
  font-family: var(--site-nav-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-auth-menu__item:hover {
  background: var(--surface-hover);
  color: var(--lime-bright);
  text-decoration: none;
  transform: translateX(2px);
}

.nav-auth-menu__item--active {
  background: rgba(132, 204, 22, 0.12);
  color: var(--lime-bright);
}

.nav-auth-menu__item-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(217, 249, 157, 0.1);
  color: var(--lime-bright);
  font-size: 0.72rem;
  line-height: 1;
  transform: none;
}

.nav-auth-menu__item-icon--neutral {
  background: rgba(217, 249, 157, 0.1);
  color: var(--lime-bright);
  transform: none;
}

.nav-auth-menu__item-icon--neutral svg {
  width: 12px;
  height: 12px;
  display: block;
}

.nav-auth-menu__item--danger {
  color: #f3d0d0;
}

.nav-auth-menu__item--danger .nav-auth-menu__item-icon {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.nav-auth-menu__item--danger:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #ffd5d5;
}

@media (max-width: 720px) {
  .nav-auth-email {
    max-width: min(220px, 52vw);
  }

  .nav-auth-email__eyebrow {
    display: none;
  }

  .nav-auth-email__text {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .nav-auth-error {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

/* thirdweb modal — keep dark green tone */
#site-nav-auth [data-tw-connect-modal] {
  --accent: #84cc16;
}

/* ==========================================================================
   Hamburger toggle + mobile drawer
   ========================================================================== */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  z-index: 60;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transition: top 0.25s ease, bottom 0.25s ease, opacity 0.18s ease, transform 0.25s ease;
}
.nav-toggle__bar:nth-child(1) {
  top: 13px;
  transform: translateX(-50%);
}
.nav-toggle__bar:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-toggle__bar:nth-child(3) {
  bottom: 13px;
  transform: translateX(-50%);
}

/* Animate to X when open */
body.nav-open .nav-toggle__bar:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle__bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
body.nav-open .nav-toggle {
  border-color: var(--lime);
  background: var(--surface-hover);
}

/* Full-screen drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 12, 10, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: calc(var(--nav-h) + 12px) clamp(20px, 4vw, 40px) 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
body.nav-open .mobile-nav {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: all 0.18s ease;
}
.mobile-nav__list a:hover,
.mobile-nav__list a:focus {
  border-color: var(--lime);
  color: var(--lime-bright);
  background: var(--surface-hover);
  text-decoration: none;
  transform: translateX(4px);
}
.mobile-nav__list a .ext-arrow {
  color: var(--text-muted);
  font-size: 0.85em;
}
.mobile-nav__hint {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav--dashboard .site-nav__links {
    display: none;
  }
  .site-nav--dashboard .site-nav__inner {
    padding-right: 8px;
  }
  .site-nav--dashboard .site-nav__toolbar {
    gap: 6px;
    padding-right: 12px;
  }
  .mobile-nav { display: block; }
}

@media (max-width: 640px) {
  .site-nav--dashboard .ss-label,
  .site-nav--dashboard .ss-dots {
    display: none !important;
  }
  .site-nav--dashboard .site-nav__toolbar {
    gap: 4px;
    padding-left: 6px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  .site-nav--dashboard .site-nav__inner {
    padding-left: 12px;
  }

  .site-nav__brand span {
    display: none;
  }
}

/* ==========================================================================
   Side nav
   ========================================================================== */

main {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
}

.side-nav {
  position: fixed;
  left: 0;
  top: var(--nav-h);
  width: var(--sidebar-w);
  height: calc(100vh - var(--nav-h));
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 12, 10, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  z-index: 40;
}

.side-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 6px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.side-nav__item:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  text-decoration: none;
}

.side-nav__item.is-active {
  color: var(--lime-bright);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.side-nav__dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.side-nav__item.is-active .side-nav__dot {
  opacity: 1;
  box-shadow: 0 0 12px var(--lime-bright);
}

.side-nav__text {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: 0.06em;
  color: inherit;
}

/* ==========================================================================
   Layout containers
   ========================================================================== */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px) 96px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  margin-top: 8px;
  padding: clamp(28px, 4.4vw, 56px) clamp(22px, 4.4vw, 56px) clamp(28px, 3.6vw, 48px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(132, 204, 22, 0.08) 0%, transparent 40%),
    var(--bg-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 204, 22, 0.55), rgba(34, 197, 94, 0.55), transparent);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 24px;
}
.hero h1 + .hero__eyebrow {
  /* Eyebrow placed BELOW h1 — tighten gap on top, keep gap below */
  margin-top: 0;
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--lime-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lime-bright);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad-text-fade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
}
.hero h1 .accent {
  margin-left: 0.12em;
}
.hero h1 .accent {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 0 0 14px;
  max-width: 1100px;
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__lede .accent {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.hero__helper {
  margin: 0 0 32px;
  max-width: 1100px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}
.btn--primary,
.btn:not(.btn--ghost) {
  background: var(--grad-tech);
  color: #0a0c0a !important;
  box-shadow: 0 8px 24px rgba(132, 204, 22, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:hover,
.btn:not(.btn--ghost):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(132, 204, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none !important;
}
.btn--ghost {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--lime);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Stat cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.hero-stats--four { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s ease;
}
.stat-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.stat-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.stat-card__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-card--accent .stat-card__value {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card--mono .stat-card__value {
  font-family: var(--font-mono);
  font-size: 20px;
}

/* Clickable stat-card variant */
.stat-card--link {
  display: block;
  text-decoration: none !important;
  color: var(--text) !important;
  position: relative;
  cursor: pointer;
}
.stat-card--link:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  text-decoration: none !important;
  color: var(--text) !important;
}
.stat-card__arrow {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}
.stat-card--link:hover .stat-card__arrow {
  color: var(--lime-bright);
  transform: translate(2px, -2px);
}
.stat-card__hint {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime-bright);
  padding: 2px 8px;
  background: rgba(132, 204, 22, 0.10);
  border: 1px solid rgba(132, 204, 22, 0.25);
  border-radius: 999px;
}

/* Hero quote carousel */
.hero__carousel {
  position: relative;
  min-height: 168px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(217, 249, 157, 0.06) 0%, transparent 50%),
    var(--bg-soft);
  overflow: hidden;
}
@media (max-width: 700px) {
  .hero__carousel { min-height: 220px; }
}

.quote-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px 42px 60px;
  text-decoration: none !important;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.quote-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.quote-slide:hover {
  text-decoration: none !important;
  color: var(--text);
}
.quote-slide__mark {
  position: absolute;
  left: 20px;
  top: 8px;
  font-size: 56px;
  line-height: 1;
  font-family: var(--font-sans);
  font-weight: 800;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.quote-slide p {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
}
.quote-slide em {
  font-style: normal;
  color: var(--lime-bright);
  font-weight: 700;
}
.quote-slide cite {
  font-style: normal;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.quote-slide:hover cite { color: var(--lime-bright); }

.hero__dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero__dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero__dots .dot:hover {
  background: var(--surface-hover);
  border-color: var(--lime);
}
.hero__dots .dot.is-active {
  background: var(--lime-bright);
  border-color: var(--lime-bright);
  box-shadow: 0 0 8px var(--lime-bright);
}

/* Hero quote (LEGACY — kept for fallback / sub-page reuse) */
.hero__quote {
  position: relative;
  margin: 0;
  padding: 24px 28px 24px 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(217, 249, 157, 0.07) 0%, transparent 50%),
    var(--bg-soft);
  overflow: hidden;
}
.hero__quote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 6px;
  font-size: 56px;
  line-height: 1;
  font-family: var(--font-sans);
  font-weight: 800;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__quote p {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
}
.hero__quote em {
  font-style: normal;
  color: var(--lime-bright);
  font-weight: 700;
}
.hero__quote cite {
  font-style: normal;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   Section primitives
   ========================================================================== */

.section {
  padding: clamp(48px, 5.6vw, 72px) 0 0;
  border-top: none;
}

/* ==========================================================================
   Scroll-driven entry animations (plan X)
   - Sections fade + rise on first appearance
   - Direct children of common grids stagger in
   - Animation runs once per section (no replay on scroll-back)
   - Respects prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .section {
    opacity: 0;
    transform: translateY(40px) scale(0.985);
    filter: blur(3px);
    transition:
      opacity 750ms ease-out,
      transform 800ms cubic-bezier(0.22, 0.85, 0.32, 1),
      filter 700ms ease-out;
    will-change: opacity, transform, filter;
  }
  .section.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  /* Children of grids stagger in once parent section becomes visible */
  .section .reframe-grid > *,
  .section .persona-stack > *,
  .section .flow-steps > *,
  .section .cap-grid > *,
  .section .status-grid > *,
  .section .docs-quicklinks > *,
  .section .creed-list > * {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 600ms ease-out,
      transform 600ms cubic-bezier(0.22, 0.85, 0.32, 1);
  }

  .section.is-visible .reframe-grid > *,
  .section.is-visible .persona-stack > *,
  .section.is-visible .flow-steps > *,
  .section.is-visible .cap-grid > *,
  .section.is-visible .status-grid > *,
  .section.is-visible .docs-quicklinks > *,
  .section.is-visible .creed-list > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delays — bigger gaps so the cascade is visible */
  .section.is-visible :is(.reframe-grid, .persona-stack, .flow-steps, .cap-grid, .status-grid, .docs-quicklinks, .creed-list) > *:nth-child(1)  { transition-delay: 120ms; }
  .section.is-visible :is(.reframe-grid, .persona-stack, .flow-steps, .cap-grid, .status-grid, .docs-quicklinks, .creed-list) > *:nth-child(2)  { transition-delay: 220ms; }
  .section.is-visible :is(.reframe-grid, .persona-stack, .flow-steps, .cap-grid, .status-grid, .docs-quicklinks, .creed-list) > *:nth-child(3)  { transition-delay: 320ms; }
  .section.is-visible :is(.reframe-grid, .persona-stack, .flow-steps, .cap-grid, .status-grid, .docs-quicklinks, .creed-list) > *:nth-child(4)  { transition-delay: 420ms; }
  .section.is-visible :is(.persona-stack, .cap-grid, .status-grid, .creed-list) > *:nth-child(5)  { transition-delay: 520ms; }
  .section.is-visible :is(.persona-stack, .cap-grid, .status-grid, .creed-list) > *:nth-child(6)  { transition-delay: 620ms; }
  .section.is-visible .persona-stack > *:nth-child(7)  { transition-delay: 720ms; }
  .section.is-visible .persona-stack > *:nth-child(8)  { transition-delay: 820ms; }
  .section.is-visible .persona-stack > *:nth-child(9)  { transition-delay: 920ms; }

  /* Hero — page-load entrance */
  .hero {
    opacity: 0;
    transform: translateY(28px) scale(0.99);
    filter: blur(2px);
    animation: hero-rise 850ms cubic-bezier(0.22, 0.85, 0.32, 1) 100ms forwards;
  }
  @keyframes hero-rise {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  /* Section-label tiny lime bar — draw-in effect when section visible */
  .section .section-label::before {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 600ms ease-out 280ms;
  }
  .section.is-visible .section-label::before {
    transform: scaleX(1);
  }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--grad-tech);
  border-radius: 999px;
}

.section__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.section__desc {
  margin: 0 0 32px;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 720px;
  line-height: 1.65;
}
.section__desc strong { color: var(--text); }

/* SKILLS section: desc allowed full width (one-line preference) */
#capabilities .section__desc {
  max-width: none;
}

/* ==========================================================================
   Cards (base)
   ========================================================================== */

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: var(--text);
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: rgba(217, 249, 157, 0.03);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.card ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 14px;
}
.card ol li { margin-bottom: 0.35rem; }
.card ol strong { color: var(--text); }

.blockcode {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #050605;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--lime-bright);
}

.card__more { font-size: 13px; }
.card__more a { color: var(--lime-bright); }

/* ==========================================================================
   Reframe — "不是 X，而是 Y"
   ========================================================================== */

.reframe-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.reframe-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 28px 22px;
}
.reframe-card__not {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: line-through;
  text-decoration-color: rgba(217, 249, 157, 0.20);
}
.reframe-card__arrow {
  margin: 14px auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--lime-bright);
  font-size: 14px;
}
.reframe-card__but {
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}
.reframe-card__but strong {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   CONCEPT — 6 信念宣言体 (CO2)
   ========================================================================== */

.creed-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
}

.creed-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.creed-item:first-child { padding-top: 4px; }
.creed-item:last-child { border-bottom: none; }

.creed-num {
  flex: 0 0 72px;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  padding-top: 2px;
}

.creed-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.creed-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.creed-title .accent {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.creed-claim {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-soft);
  line-height: 1.65;
}
.creed-claim strong {
  color: var(--lime-bright);
  font-weight: 600;
}

@media (max-width: 600px) {
  .creed-item { gap: 16px; padding: 18px 0; }
  .creed-num { flex-basis: 48px; font-size: 24px; }
}

/* ==========================================================================
   Persona scenario stack
   ========================================================================== */

.persona-stack {
  display: grid;
  gap: 16px;
  /* Cap at 4 cards per row max; flow down naturally on narrower screens.
     The calc forces each card's min-width to be at least what 4 cards would
     occupy, so auto-fit never packs a 5th card on the same row. */
  grid-template-columns: repeat(auto-fit, minmax(max(260px, calc((100% - 48px) / 4)), 1fr));
}

.persona-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none !important;
  color: var(--text);
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
}
.persona-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.persona-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none !important;
}
.persona-card:hover::before { opacity: 1; }

.persona-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.persona-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--grad-tech-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spring);
  position: relative;
}
.persona-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--grad-tech);
  opacity: 0.28;
  filter: blur(8px);
  z-index: -1;
}

.persona-card__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.persona-card__role {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.persona-card__when {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.persona-scene {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.persona-pullquote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(132, 204, 22, 0.55);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}

.persona-card__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-dashed);
  gap: 12px;
  flex-wrap: wrap;
}

.persona-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.chip--open {
  background: var(--grad-tech);
  color: #0a0c0a;
  border-color: transparent;
  font-weight: 700;
}

.persona-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.persona-cta .arrow {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.2s ease;
  display: inline-block;
}
.persona-card:hover .persona-cta .arrow { transform: translateX(4px); }

/* ==========================================================================
   Flagship — Linear → PRD → Cursor flow
   ========================================================================== */

.flow-steps {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  position: relative;
}

.flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px;
  position: relative;
  transition: all 0.2s ease;
}
.flow-step:hover {
  border-color: var(--border-strong);
}

/* Arrow between flow steps — shown when viewport allows side-by-side layout */
@media (min-width: 720px) {
  .flow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 800;
    background: var(--grad-tech);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 2;
  }
}

.flow-step__num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-tech);
  color: #0a0c0a;
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(132, 204, 22, 0.35);
}

.flow-step__body h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.flow-step__body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.flow-footer {
  margin: 24px 0 0;
  padding: 18px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(217, 249, 157, 0.05) 0%, transparent 60%),
    var(--bg-soft);
  font-size: 15px;
  text-align: center;
  color: var(--text-soft);
}
.flow-footer strong {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ==========================================================================
   Capability grid
   ========================================================================== */

.cap-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.cap-card {
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cap-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cap-card__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: rgba(236, 242, 227, 0.55);
  display: block;
  margin: 4px 0 0;
  transition: color 0.18s ease;
}
.cap-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
  display: block;
}
.cap-card:hover .cap-card__icon {
  color: var(--lime-bright);
}
.cap-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.cap-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}
.cap-card p strong { color: var(--lime-bright); font-weight: 600; }

.cap-card__skill {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Example prompt under each cap-card */
.cap-card__example {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  background: rgba(10, 12, 10, 0.55);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.4;
  max-width: 100%;
}

/* ==========================================================================
   Skill Router hero card (SKILLS section)
   ========================================================================== */

.skill-router {
  position: relative;
  margin-bottom: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(132, 204, 22, 0.10) 0%, rgba(34, 197, 94, 0.06) 100%),
    var(--bg-soft);
  box-shadow: 0 8px 32px rgba(132, 204, 22, 0.10);
  overflow: hidden;
}
.skill-router::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 204, 22, 0.7), rgba(34, 197, 94, 0.7), transparent);
}

.skill-router__entry {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.skill-router__prompt {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.skill-router__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-router__examples {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.skill-router__example {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.5);
}
.skill-router__say {
  font-size: 14px;
  color: var(--text);
  flex: 0 0 auto;
}
.skill-router__arrow {
  color: var(--lime-bright);
  font-weight: 800;
  font-size: 15px;
}
.skill-router__plus {
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
}
.skill-router__example code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime-bright);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .skill-router { padding: 22px 22px; }
  .skill-router__entry { gap: 12px; }
}

/* ==========================================================================
   Team status tiles
   ========================================================================== */

.status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.live-tile {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}
.live-tile:hover { border-color: var(--border-strong); }

.tile--featured {
  background:
    linear-gradient(135deg, rgba(132, 204, 22, 0.10) 0%, transparent 60%),
    var(--bg-soft);
  border-color: var(--border-strong);
}

.tile__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0a0c0a;
  background: var(--grad-tech);
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.40);
}

.tile__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tile__value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-mono);
}
.tile--placeholder .tile__value {
  background: linear-gradient(180deg, rgba(236, 242, 227, 0.35) 0%, rgba(116, 128, 107, 0.20) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* New PULSE tile structure: head (name + alias) + 2-row metrics */
.tile__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
  padding-right: 88px; /* leave room for top-right badge */
}
.tile__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tile__alias {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.tile__metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tile__metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-dashed);
}
.tile__metric:last-child { border-bottom: none; padding-bottom: 0; }
.tile__metric:first-child { padding-top: 4px; }

.tile__metric-label {
  font-size: 13px;
  color: var(--text-soft);
}
.tile__metric-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.tile--placeholder .tile__metric-value {
  background: linear-gradient(180deg, rgba(236, 242, 227, 0.35) 0%, rgba(116, 128, 107, 0.20) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tile__sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Source-freshness sub-bars */
.tile__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.tile__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile__bar-label {
  flex: 0 0 44px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.tile__bar-track {
  flex: 1;
  height: 6px;
  background: rgba(217, 249, 157, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.tile__bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad-tech);
  transition: width 0.6s ease;
}

.status-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.status-note a { color: var(--lime-bright); }
.status-note code { background: var(--surface); border-color: var(--border); color: var(--text); }

/* ==========================================================================
   Install tabs
   ========================================================================== */

.install-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.tab.is-active {
  color: #0a0c0a;
  border-color: transparent;
  background: var(--grad-tech);
  box-shadow: 0 4px 16px rgba(132, 204, 22, 0.30);
}

.tab-panels { display: block; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ==========================================================================
   Docs section
   ========================================================================== */

.section--docs-map { padding-bottom: 0; }

.docs-quicklinks {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.doc-quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.doc-quick:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none !important;
  color: var(--text);
}
.doc-quick strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.doc-quick span {
  font-size: 12px;
  color: var(--text-muted);
}

.docs-map-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  overflow: hidden;
}

.docs-map-heading {
  margin: 18px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime-bright);
}
.docs-map-heading:first-child { margin-top: 0; }

.docs-map-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.docs-map-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}
.docs-map-table table { font-size: 13px; }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--text);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: rgba(217, 249, 157, 0.04);
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
tr:last-child td { border-bottom: none; }

.docs-map-table th {
  background: rgba(217, 249, 157, 0.06);
  color: var(--lime-bright);
}
.docs-map-table td a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
}
.docs-map-table td a:hover {
  color: var(--lime-bright);
  border-bottom-color: var(--lime-bright);
}
.docs-map-table tbody tr:hover td {
  background: rgba(217, 249, 157, 0.03);
}

/* Collapsed ops section */
.ops-details {
  margin-top: 14px;
}
.ops-details > summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  list-style: none;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: all 0.2s ease;
  user-select: none;
}
.ops-details > summary::-webkit-details-marker { display: none; }
.ops-details > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.16s ease;
  margin-right: 6px;
  color: var(--lime-bright);
}
.ops-details[open] > summary::before { content: "▾ "; }
.ops-details > summary:hover {
  background: var(--surface-hover);
  color: var(--lime-bright);
  border-color: var(--border-strong);
}
.ops-details[open] > summary { margin-bottom: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 80px;
  margin-left: var(--sidebar-w);
  padding: 36px 32px 64px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  background:
    linear-gradient(180deg, transparent 0%, rgba(132, 204, 22, 0.04) 100%);
}
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--lime-bright); }

.version-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime-bright);
}

/* ==========================================================================
   Scroll-page (home hub — one section per wheel)
   ========================================================================== */

body.scroll-page {
  overflow: hidden;
  height: 100vh;
}

body.scroll-page main {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}

.scroll-page__viewport {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.scroll-section {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px);
}

.scroll-section__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.scroll-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.scroll-section__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spring);
  box-shadow: 0 0 8px rgba(132, 204, 22, 0.55);
}

.scroll-section h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.scroll-section h2 .accent {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-section__lede {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}

.scroll-section__card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(132, 204, 22, 0.06) 0%, transparent 42%),
    var(--bg-soft);
  box-shadow: var(--shadow-card);
}

.scroll-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.scroll-section__hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

body.scroll-page.is-last-section .scroll-section__hint {
  opacity: 0;
}

.scroll-section__hint svg {
  animation: scroll-hint-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.scroll-dots {
  display: none;
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  flex-direction: column;
  gap: 8px;
}

.scroll-dots__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(217, 249, 157, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scroll-dots__dot.is-active {
  background: var(--lime-bright);
  box-shadow: 0 0 10px rgba(217, 249, 157, 0.45);
  transform: scale(1.2);
}

/* ==========================================================================
   Responsive — layout shifts only (grids flow naturally via auto-fit)
   ========================================================================== */

/* Below 1100px: collapse sidebar + top-nav links before they collide with auth */
@media (max-width: 1100px) {
  main { margin-left: 0; }
  .side-nav { display: none; }
  .site-footer { margin-left: 0; }
  body.scroll-page main { margin-left: 0; }
  .scroll-dots { display: flex; }

  /* When flow-steps wrap to 1 col, arrow between steps no longer makes sense */
  .flow-step:not(:last-child)::after { display: none; }

  .tile__value { font-size: clamp(28px, 8vw, 42px); }
}

/* Below 480px: h1 may need to wrap (otherwise overflows hero card) */
@media (max-width: 480px) {
  .hero h1 {
    white-space: normal;
    line-height: 1.15;
  }
  .hero h1 .accent { margin-left: 0; display: inline; }
}

/* ==========================================================================
   Slideshow TV Controls
   ========================================================================== */

/* ── 播放 / 暂停 按钮 ── */
.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s;
  opacity: 0.7;
}
.ss-btn:hover {
  color: var(--text-soft);
  opacity: 1;
}
.ss-btn--playing {
  color: var(--text-muted);
  opacity: 1;
}

/* ── 右侧控制组 (标签 + 点) ── */
.ss-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ss-controls:not(.ss-controls--playing) .ss-label,
.ss-controls:not(.ss-controls--playing) .ss-dots {
  display: none;
}

/* ── 当前 slide 标签 + 倒计时 ── */
.ss-label {
  font-size: 10px;
  font-family: var(--site-nav-font-mono, var(--font-mono));
  color: var(--text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.8;
}

/* ── 点状指示器 ── */
.ss-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ss-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(116, 128, 107, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ss-dot:hover {
  background: rgba(116, 128, 107, 0.8);
}
.ss-dot--active {
  background: var(--text-muted);
  transform: scale(1.3);
}

/* ── 底部进度条 ── */
.ss-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(132, 204, 22, 0.08);
  pointer-events: none;
}
.ss-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #84cc16, #d9f99d);
  border-radius: 0 1px 1px 0;
  transition: none;
}
