:root {
  --primary: #b45309;
  --primary-dark: #92400e;
  --primary-soft: rgba(180, 83, 9, 0.14);
  --primary-glow: rgba(251, 191, 36, 0.42);
  --accent: #c2410c;
  --accent-soft: rgba(194, 65, 12, 0.1);
  --text: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --border: rgba(180, 83, 9, 0.22);
  --border-light: rgba(120, 53, 15, 0.12);
  --bg: #fffbf5;
  --bg-alt: #fff4e6;
  --panel: rgba(255, 253, 250, 0.92);
  --panel-strong: rgba(255, 250, 240, 0.97);
  --success: #157347;
  --warning: #b45309;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow: 0 14px 36px rgba(120, 53, 15, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  --shadow-lg: 0 28px 72px rgba(120, 53, 15, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --max-width: 1360px;
  --transition: 180ms ease;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.68;
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(255, 237, 213, 0.95), transparent 55%),
    radial-gradient(circle at 88% 8%, rgba(254, 215, 170, 0.55), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(253, 186, 116, 0.2), transparent 38%),
    linear-gradient(180deg, #fffaf0 0%, #fff5e6 42%, #ffedd5 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.6;
}

body::before {
  top: 12%;
  left: 8%;
  width: 360px;
  height: 240px;
  background: rgba(251, 191, 36, 0.32);
  opacity: 0.55;
  animation: driftA 24s ease-in-out infinite;
}

body::after {
  right: 8%;
  bottom: 12%;
  width: 320px;
  height: 220px;
  background: rgba(253, 164, 116, 0.28);
  opacity: 0.5;
  animation: driftB 28s ease-in-out infinite;
}

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

img {
  display: block;
  width: 100%;
}

.ui-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link-inner,
.btn-label,
.title-with-icon,
.metric-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link-inner .ui-icon,
.title-with-icon .ui-icon,
.metric-heading .ui-icon,
.landing-card-link .ui-icon {
  color: var(--primary);
}

code,
pre,
.section-label,
.nav-links a,
.nav-cta,
.hero-badge,
.card-pill,
.meta-strip,
.tab-button,
.step-number {
  font-family: var(--mono);
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(120, 53, 15, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.nav-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(165deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.72));
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow:
    0 8px 18px rgba(120, 53, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nav-brand-text {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}

.nav-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  mix-blend-mode: multiply;
  transform: scale(1.08);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(251, 191, 36, 0.16);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed, #fed7aa 32%, #f59e0b 50%, #fed7aa 68%, #fff7ed);
  background-size: 200% 200%;
  color: #431407;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 28px rgba(180, 83, 9, 0.18),
    0 0 24px rgba(251, 191, 36, 0.35);
  animation: metalShift 8s ease infinite;
}

.nav-cta:hover {
  border-color: rgba(217, 119, 6, 0.55);
  transform: translateY(-1px);
}

.nav-cta .ui-icon {
  color: #9a3412;
}

.hero {
  padding: clamp(72px, 12vw, 96px) max(24px, 4vw) clamp(64px, 8vw, 88px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 70% at 18% 12%, rgba(255, 247, 237, 0.95), transparent 50%),
    radial-gradient(circle at 92% 18%, rgba(254, 215, 170, 0.45), transparent 32%),
    linear-gradient(180deg, #fff7ed 0%, #ffedd5 58%, #fffbeb 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-panel-shell {
  display: grid;
  gap: 16px;
}

.hero-terminal-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 237, 0.9) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 26px 64px rgba(120, 53, 15, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -18px 48px rgba(251, 191, 36, 0.12) inset;
}

.hero-terminal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(255, 255, 255, 0.75), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(254, 243, 199, 0.5), transparent 40%);
  pointer-events: none;
}

.terminal-topline {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.terminal-topline span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.terminal-topline span:nth-child(1) {
  background: rgba(245, 158, 11, 0.9);
}

.terminal-topline span:nth-child(2) {
  background: rgba(217, 119, 6, 0.92);
}

.terminal-topline span:nth-child(3) {
  background: rgba(255, 255, 255, 0.45);
}

.hero-console {
  margin-top: 0;
}

.paper-image-frame {
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
  box-shadow:
    0 18px 42px rgba(120, 53, 15, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.paper-image-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}

.paper-image-caption {
  margin: 10px 2px 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero-paper-image {
  margin-top: 0;
}

.hero-paper-image img {
  max-height: 460px;
}

.architecture-paper-image img,
.example-paper-image img {
  max-height: 360px;
}

.background-paper-image img {
  max-height: 420px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat-box {
  min-height: 118px;
}

.hero-stat-box strong {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: normal;
}

.hero-stat-box .metric-heading {
  font-family: var(--font);
}

.hero-stat-box .metric-heading span:last-child {
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-stat-box > span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(100%, 26rem);
}

.hero-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.hero-chip-emoji {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
  text-align: center;
}

.hero-chip-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.75);
  color: #9a3412;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hero-badge .emoji,
.section-label .emoji,
.subpage-hero .section-label .emoji {
  font-family: inherit;
  font-size: 1.15em;
  line-height: 1;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em 0.5em;
}

.hero-title-logo {
  width: clamp(2rem, 4.4vw, 3.2rem);
  height: clamp(2rem, 4.4vw, 3.2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(165deg, rgba(255, 247, 237, 0.96), rgba(254, 215, 170, 0.72));
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow:
    0 8px 18px rgba(120, 53, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-title-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  mix-blend-mode: multiply;
  transform: scale(1.08);
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-sub {
  margin-top: 12px;
  max-width: 28ch;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-abstract {
  max-width: 58ch;
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #7c2d12, #b45309 34%, #ea580c 52%, #b45309 66%, #7c2d12);
  background-size: 200% 200%;
  color: #fffaf0;
  border: 1px solid rgba(180, 83, 9, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 28px rgba(124, 45, 18, 0.22),
    0 0 22px rgba(251, 191, 36, 0.35);
  animation: metalShift 9s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 32px rgba(124, 45, 18, 0.28),
    0 0 30px rgba(251, 191, 36, 0.42);
}

.btn-primary .ui-icon {
  color: #ffedd5;
}

.btn-outline .ui-icon {
  color: var(--primary);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 247, 237, 0.95);
  transform: translateY(-1px);
}

.section {
  padding: clamp(72px, 10vw, 96px) max(24px, 4vw);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.5), rgba(255, 251, 235, 0.25));
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(40px, 5vw, 56px);
  max-width: 52rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-desc {
  max-width: min(62ch, 44rem);
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.two-col-grid,
.overview-grid,
.feature-grid,
.landing-grid,
.split-grid,
.step-grid,
.deployment-grid,
.demo-grid {
  display: grid;
  gap: 22px;
}

.two-col-grid {
  gap: clamp(20px, 2.5vw, 28px);
}

.two-col-grid,
.split-grid,
.demo-grid,
.deployment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feature-grid,
.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

.info-card,
.overview-card,
.feature-card,
.feature-proof-card,
.landing-card,
.detail-card,
.step-card,
.deployment-card,
.demo-card,
.placeholder-card,
.code-card,
.figure-board,
.demo-mock,
.insight-box,
.tab-panel-inner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(1.15);
}

.info-card,
.overview-card,
.feature-card,
.feature-proof-card,
.detail-card,
.step-card,
.deployment-card,
.demo-card,
.placeholder-card,
.code-card,
.tab-panel-inner,
.demo-mock,
.insight-box {
  padding: 24px;
}

.landing-card {
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-card:hover,
.overview-card:hover,
.feature-card:hover,
.feature-proof-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card,
.feature-proof-card,
.landing-card,
.overview-card,
.info-card,
.detail-card,
.step-card,
.deployment-card,
.code-card,
.tab-panel-inner,
.placeholder-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.feature-proof-card::before,
.landing-card::before,
.overview-card::before,
.info-card::before,
.detail-card::before,
.step-card::before,
.deployment-card::before,
.code-card::before,
.tab-panel-inner::before,
.placeholder-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.45), transparent);
  opacity: 0.95;
}

.landing-card:nth-child(2n)::before,
.feature-card:nth-child(2n)::before,
.feature-proof-card:nth-child(2n)::before {
  background: linear-gradient(90deg, transparent, rgba(253, 186, 116, 0.4), transparent);
}

.info-card h3,
.overview-card h3,
.feature-card h3,
.feature-proof-card h3,
.landing-card h3,
.detail-card h3,
.step-card h3,
.deployment-card h3,
.demo-card h3,
.placeholder-card h3,
.code-card h3,
.tab-panel-inner h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.info-card p,
.overview-card p,
.feature-card p,
.feature-proof-card p,
.landing-card p,
.detail-card p,
.step-card p,
.deployment-card p,
.demo-card p,
.placeholder-card p,
.code-card p,
.tab-panel-inner p,
.insight-box p {
  margin: 0;
  color: var(--text-secondary);
}

.plain-list,
.bullet-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.plain-list li,
.bullet-list li {
  margin-bottom: 8px;
}

.process-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.process-strip span,
.meta-chip,
.command-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.95);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.card-pill,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.85);
  color: var(--primary);
  font-size: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.landing-card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
}

.feature-proof-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.feature-proof-desc {
  margin-bottom: 14px;
  min-height: 3.2em;
}

.feature-proof-image {
  margin-top: 0;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
}

.feature-proof-image img {
  max-height: 360px;
}

.chart-panel {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(ellipse 120% 90% at 8% 0%, rgba(255, 255, 255, 0.95), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(254, 243, 199, 0.65), transparent 36%),
    linear-gradient(168deg, #fffefb 0%, #fff7ed 48%, #ffedd5 100%);
  box-shadow:
    0 22px 56px rgba(120, 53, 15, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 1px 0 rgba(255, 255, 255, 1) inset,
    inset 0 -24px 48px rgba(251, 191, 36, 0.06);
  min-height: 410px;
  flex: 1 1 auto;
}

.chart-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.65) 0%, transparent 38%, rgba(251, 191, 36, 0.14) 70%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

.chart-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(210deg, transparent 52%, rgba(120, 53, 15, 0.06) 100%);
  z-index: 0;
}

.chart-panel .chart-grid {
  z-index: 0;
}

.chart-grid {
  position: absolute;
  inset: 18px 18px 42px;
  pointer-events: none;
}

.chart-grid-token {
  background-image: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 25% 100%;
}

.chart-grid-fidelity {
  background-image: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 20% 100%;
}

.token-chart-rows,
.fidelity-chart-row {
  position: relative;
  z-index: 1;
}

.token-chart-rows {
  display: grid;
  gap: 12px;
}

.token-chart-row,
.fidelity-chart-row {
  position: relative;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 26px rgba(120, 53, 15, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.token-chart-row:hover,
.fidelity-chart-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 36px rgba(120, 53, 15, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.token-row-head,
.fidelity-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.token-row-label,
.fidelity-row-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.token-row-value,
.fidelity-row-value {
  color: #1e3a8a;
  font-size: 0.95rem;
}

.token-row-track,
.fidelity-row-track {
  position: relative;
  overflow: hidden;
  display: flex;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(231, 229, 228, 0.55), rgba(250, 250, 249, 0.85));
  box-shadow: inset 0 1px 2px rgba(28, 25, 23, 0.08);
}

.token-row-fill,
.fidelity-row-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.token-row-fill-actual {
  width: var(--actual);
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 52%, #38bdf8 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 6px 18px rgba(37, 99, 235, 0.35);
}

.token-row-fill-saved {
  width: var(--saved);
  background: linear-gradient(90deg, #fed7aa 0%, #fdba74 48%, #fb923c 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.token-chart-row:hover .token-row-fill,
.fidelity-chart-row:hover .fidelity-row-fill {
  transform: scaleY(1.08);
  filter: saturate(1.08) brightness(1.02);
}

.token-row-meta {
  display: inline-block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.chart-axis {
  position: relative;
  z-index: 1;
  display: grid;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
}

.token-chart-axis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.fidelity-chart-axis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
}

.chart-axis span:last-child {
  text-align: right;
}

.fidelity-chart-panel {
  display: grid;
  gap: 18px;
  justify-content: stretch;
}

.fidelity-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fidelity-summary-card {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 6px 16px rgba(120, 53, 15, 0.06);
}

.fidelity-summary-card-accent {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(254, 215, 170, 0.55));
  border-color: rgba(245, 158, 11, 0.35);
}

.fidelity-summary-label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fidelity-summary-value {
  color: #0f172a;
  font-size: 1rem;
}

.fidelity-chart-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  margin-top: auto;
}

.fidelity-chart-row {
  z-index: 1;
  padding: 16px 14px 16px;
}

.fidelity-row-track {
  height: 28px;
  background: linear-gradient(180deg, rgba(231, 229, 228, 0.55), rgba(250, 250, 249, 0.85));
  box-shadow: inset 0 1px 2px rgba(28, 25, 23, 0.08);
}

.fidelity-row-fill {
  width: calc((var(--value) - 50) * 2%);
}

.fidelity-row-fill-primary {
  background: linear-gradient(90deg, #fbbf24 0%, #ea580c 48%, #b45309 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 6px 20px rgba(180, 83, 9, 0.35);
}

.fidelity-row-fill-secondary {
  background: linear-gradient(90deg, #fdba74 0%, #fb923c 42%, #ea580c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 18px rgba(234, 88, 12, 0.28);
}

.fidelity-delta-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.95);
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 16px rgba(120, 53, 15, 0.08);
  margin-top: auto;
}

.subpage-hero {
  padding: clamp(64px, 10vw, 88px) max(24px, 4vw) clamp(48px, 6vw, 64px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 84% 12%, rgba(254, 215, 170, 0.45), transparent 28%),
    radial-gradient(circle at 16% 20%, rgba(255, 247, 237, 0.9), transparent 42%),
    linear-gradient(180deg, #fff7ed 0%, #ffedd5 55%, #fffbeb 100%);
}

.subpage-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
  max-width: min(100%, 42ch);
}

.subpage-desc {
  max-width: min(58ch, 40rem);
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.system-cockpit,
.experiment-shell,
.runtime-board,
.operations-grid,
.example-dashboard {
  display: grid;
  gap: 20px;
}

.system-cockpit,
.experiment-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.architecture-cockpit {
  grid-template-columns: 1fr;
  gap: 18px;
}

.runtime-board {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.operations-grid,
.example-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-board,
.comparison-board,
.gallery-board,
.status-card,
.pipeline-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.94));
  box-shadow:
    0 20px 48px rgba(120, 53, 15, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(18px) saturate(1.12);
}

.signal-board::before,
.comparison-board::before,
.gallery-board::before,
.status-card::before,
.pipeline-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
}

.signal-board,
.comparison-board,
.gallery-board {
  padding: 24px;
}

.signal-board-large {
  min-height: 100%;
}

.board-topline,
.panel-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.board-tag,
.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #9a3412;
  font-size: 0.76rem;
  font-family: var(--mono);
}

.board-title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.board-desc {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.command-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.command-chip-row .command-chip {
  justify-content: center;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.board-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.board-list-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 53, 15, 0.1);
}

.board-list-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.board-list-row strong {
  display: block;
  max-width: none;
  color: var(--text);
  font-size: 0.88rem;
  text-align: right;
  line-height: 1.35;
  white-space: normal;
}

body[data-page="architecture"] .system-cockpit .board-list-row strong {
  white-space: nowrap;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.architecture-contribution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.architecture-contribution-card {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.94));
  box-shadow:
    0 20px 48px rgba(120, 53, 15, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(18px) saturate(1.12);
}

.architecture-contribution-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
}

.architecture-contribution-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.architecture-contribution-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.architecture-contribution-card strong {
  position: relative;
  z-index: 1;
  font-size: 0.96rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.architecture-contribution-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.status-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  min-height: 0;
}

.status-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 0 0 10px;
}

.status-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(120, 53, 15, 0.08));
}

.status-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.72));
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow:
    0 8px 18px rgba(120, 53, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.status-icon .ui-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.status-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pipeline-shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pipeline-stage {
  padding: 22px 20px 20px;
}

.stage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--primary);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.pipeline-stage h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.pipeline-stage p {
  margin: 0;
  color: var(--text-secondary);
}

.stage-meta {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--mono);
  line-height: 1.6;
}

.pipeline-footnote {
  margin-top: 20px;
}

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

.runtime-note {
  height: 100%;
}

.operations-stack {
  display: grid;
  gap: 20px;
}

.artifact-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.artifact-highlight {
  grid-column: 1 / -1;
  min-height: 100%;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diagram-panel {
  display: grid;
  gap: 18px;
}

.diagram-panel-wide {
  grid-column: 1 / -1;
}

.diagram-flow {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.1fr) 52px
    minmax(190px, 1.1fr) 52px
    minmax(190px, 1.1fr) 52px
    minmax(190px, 1.1fr) 52px
    minmax(190px, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.diagram-node,
.diagram-layer,
.deployment-node {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.88));
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
}

.diagram-node::before,
.diagram-layer::before,
.deployment-node::before,
.sequence-step::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.45), transparent);
}

.diagram-node-label,
.diagram-layer-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 0.74rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diagram-node strong,
.diagram-layer strong,
.deployment-node strong,
.sequence-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.diagram-node p,
.diagram-layer p,
.deployment-node p,
.sequence-step p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.diagram-node p {
  font-size: 0.93rem;
}

.diagram-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 68px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(255, 251, 235, 0.9);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.diagram-arrow::after {
  content: "→";
  margin-left: 8px;
  color: var(--primary);
}

.diagram-layer-stack,
.diagram-sequence {
  display: grid;
  gap: 14px;
}

.diagram-layer {
  padding-left: 22px;
}

.diagram-layer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.78), rgba(251, 191, 36, 0.55));
}

.sequence-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9));
}

.sequence-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
  font-size: 0.76rem;
  font-family: var(--mono);
}

.deployment-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.deployment-divider {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 16px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(180, 83, 9, 0.28);
  background: rgba(255, 251, 235, 0.6);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-board h3,
.comparison-board h3,
.runtime-signal-panel h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.gallery-board p,
.comparison-board p,
.pipeline-stage p {
  color: var(--text-secondary);
}

.gallery-grid {
  margin-top: 18px;
}

.lk99-feature-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
}

.lk99-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.story-image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.story-image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-image-card figcaption {
  padding: 12px 14px 14px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.lk99-stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.lk99-stage-strip span {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.9));
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery-caption-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-caption {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-align: center;
}

.dashboard-stack {
  display: grid;
  gap: 20px;
}

.runtime-signal-panel p {
  margin: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.platform-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9));
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
}

.platform-name {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.platform-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
  line-height: 1;
}

.platform-card p {
  margin: 0;
  color: var(--text-secondary);
}

.platform-foot {
  display: inline-block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--mono);
}

.opinion-trend-board {
  margin: 20px 0;
}

.opinion-trend-desc {
  margin: 0;
  max-width: 68ch;
}

.opinion-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.opinion-chart-card {
  padding: 14px 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9));
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.07);
}

.opinion-chart-card .platform-name {
  margin-bottom: 10px;
}

.opinion-chart-panel {
  width: 100%;
  height: 300px;
}

.opinion-trend-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.comparison-row + .comparison-row {
  margin-top: 18px;
}

.comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.comparison-head strong {
  color: var(--text);
}

.comparison-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.22);
  overflow: hidden;
}

.comparison-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.comparison-fill-high {
  width: 100%;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.comparison-fill-low {
  width: 33%;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.92), rgba(255, 207, 107, 0.7));
}

.comparison-note {
  margin-top: 18px;
}

.example-metric-grid {
  margin-top: 20px;
}

.example-evidence-grid {
  margin-top: 20px;
}

.placeholder-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.architecture-board {
  display: grid;
  gap: 16px;
}

.architecture-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.architecture-box {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.85));
  box-shadow: 0 6px 16px rgba(120, 53, 15, 0.06);
}

.architecture-box h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

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

.architecture-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.3rem;
}

.code-block {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(165deg, #1c1917 0%, #292524 48%, #1c1917 100%);
  color: #fef3c7;
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.code-block code {
  display: block;
  font-family: var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.guide-steps {
  display: grid;
  gap: 22px;
}

.step-card p + .code-block,
.step-card p + .bullet-list,
.tab-panel-inner p + .bullet-list {
  margin-top: 14px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(120, 53, 15, 0.12);
  border-bottom: 1px solid rgba(120, 53, 15, 0.12);
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.tab-button:hover,
.tab-button.active {
  border-color: rgba(180, 83, 9, 0.38);
  color: var(--primary);
  background: rgba(255, 247, 237, 0.95);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.image-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-box {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.88));
  backdrop-filter: blur(14px);
  box-shadow:
    0 10px 26px rgba(120, 53, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-box .metric-heading {
  font-family: var(--font);
}

.metric-box .metric-heading span:last-child {
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.metric-box span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.lk99-image-note {
  margin-top: 18px;
}

.insight-box {
  margin-top: 18px;
  border-left: 4px solid #ea580c;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.65), rgba(255, 251, 235, 0.4));
}

.home-insight {
  max-width: 860px;
}

.example-evidence-grid .feature-card {
  min-height: 220px;
}

.placeholder-card {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(255, 247, 237, 0.88));
}

.placeholder-note {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-mock {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.6), rgba(255, 247, 237, 0.4));
}

.mock-panel {
  min-height: 360px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
}

.mock-panel h3 {
  margin: 0 0 12px;
  font-size: 0.94rem;
}

.mock-box,
.mock-line {
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.mock-box {
  height: 78px;
  margin-bottom: 12px;
}

.mock-line {
  height: 14px;
  margin-bottom: 8px;
}

.mock-line.short {
  width: 56%;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 24px;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-desc {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
}

.footer-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero-layout,
  .feature-grid,
  .feature-proof-grid,
  .overview-grid,
  .landing-grid,
  .architecture-row,
  .opinion-chart-grid,
  .metric-grid,
  .pipeline-shell,
  .placeholder-stack,
  .command-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col-grid,
  .split-grid,
  .demo-grid,
  .deployment-grid,
  .demo-mock,
  .lk99-feature-shell,
  .system-cockpit,
  .experiment-shell,
  .runtime-board,
  .operations-grid,
  .example-dashboard,
  .artifact-board,
  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .diagram-panel-wide {
    grid-column: auto;
  }

  .diagram-flow,
  .deployment-map {
    grid-template-columns: 1fr;
  }

  .diagram-arrow,
  .deployment-divider {
    width: 100%;
    min-width: 0;
  }

  .diagram-arrow::after {
    content: "↓";
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .feature-grid,
  .feature-proof-grid,
  .overview-grid,
  .landing-grid,
  .architecture-row,
  .opinion-chart-grid,
  .lk99-gallery-grid,
  .image-grid,
  .metric-grid,
  .runtime-feature-grid,
  .status-grid,
  .platform-grid,
  .gallery-caption-grid,
  .placeholder-stack,
  .pipeline-shell,
  .artifact-board,
  .diagram-grid,
  .command-chip-row {
    grid-template-columns: 1fr;
  }

  .lk99-stage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .board-list-row,
  .comparison-head {
    flex-direction: column;
  }

  .board-list-row strong {
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .hero,
  .section,
  .subpage-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 1080px) {
  .architecture-contribution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .architecture-contribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .architecture-contribution-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(22px, -16px);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, 18px);
  }
}

@keyframes metalShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
