/* ==========================================================================
   启程 Qicheng · 0.4.10 Unified Dark Flagship Stylesheet
   100% Self-Hosted — Warm Obsidian Architectural System Top to Bottom
   ========================================================================== */

:root {
  /* Unified Warm Obsidian Surfaces */
  --bg: #0c0b0a;
  --bg-band: #100f0e;
  --bg-card: #141312;
  --bg-elevated: #1a1816;
  --bg-code: #0f0e0d;

  /* Refined Warm Typography & Hairlines */
  --ink: #f3efe8;
  --ink-2: #a8a298;
  --ink-3: #78736b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-hover: rgba(255, 255, 255, 0.28);

  /* Disciplined Signature Accents */
  --champagne: #e3d6be;
  --champagne-hover: #f2e8d4;
  --vermilion: #df4d36;
  --vermilion-soft: rgba(223, 77, 54, 0.45);
  --vermilion-tint: rgba(223, 77, 54, 0.08);
  --ok: #8ec9a4;

  /* Geometry, Motion & Typography */
  --max-w: 1200px;
  --wide-w: 1340px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --r-lg: 14px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-pill: 999px;
  --shadow-dark: 0 24px 64px -16px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "HarmonyOS Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

button,
summary {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--champagne);
}

.wrap {
  width: min(var(--max-w), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide-w), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

section[id],
details[id],
footer[id] {
  scroll-margin-top: 72px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 120;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--champagne);
  color: var(--bg);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 0 0 12px;
}

/* ==========================================================================
   Unified Dark Frosted Sticky Header (Transparent -> Dark Glass)
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  width: 100%;
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
}

.site-header.is-scrolled {
  height: 58px;
  background: rgba(12, 11, 10, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--wide-w);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 82px;
  height: auto;
}

.brand span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.desktop-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.88rem;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(243, 239, 232, 0.70);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1.5px;
  background: var(--champagne);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #ffffff;
}

.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.motion-toggle {
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 11, 10, 0.30);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.motion-toggle:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.motion-toggle:disabled {
  opacity: 0.6;
  cursor: default;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--champagne);
  color: var(--bg);
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-cta:hover {
  background: var(--champagne-hover);
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 11, 10, 0.40);
  font-size: 0.82rem;
  color: var(--ink);
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 196px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  background: rgba(20, 19, 18, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   Band 1 · Spotless 100vh Dynamic Video Hero (#top)
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 660px;
  height: 100svh;
  max-height: 980px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
  overflow-x: clip;
  z-index: 5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) contrast(1.04);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.54) 0%, rgba(12, 11, 10, 0.14) 28%, rgba(12, 11, 10, 0.50) 64%, rgba(12, 11, 10, 0.96) 100%),
    linear-gradient(90deg, rgba(12, 11, 10, 0.84) 0%, rgba(12, 11, 10, 0.40) 56%, rgba(12, 11, 10, 0.12) 100%);
}

.hero-foreground {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: clamp(32px, 5vh, 56px);
}

.hero-copy {
  max-width: 660px;
}

.hero-copy .eyebrow {
  color: var(--champagne);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.55rem, 4.9vw, 4.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: #ffffff;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
  color: rgba(243, 239, 232, 0.84);
  margin: 0 0 28px;
  max-width: 34em;
}

/* Direct 1-Step Download Row */
.download-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.download-btn .platform-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.download-btn[data-primary="true"] {
  background: var(--champagne);
  color: var(--bg);
  border: 1px solid var(--champagne);
}

.download-btn[data-primary="true"]:hover {
  background: var(--champagne-hover);
  transform: translateY(-1px);
}

.download-btn[data-primary="false"] {
  background: rgba(18, 17, 16, 0.48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.download-btn[data-primary="false"]:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.56);
  transform: translateY(-1px);
}

.download-options {
  position: static;
  display: inline-flex;
}

.download-options summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(18, 17, 16, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  list-style: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.download-options summary::-webkit-details-marker {
  display: none;
}

.download-options summary:hover,
.download-options[open] summary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
}

.download-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: rgba(20, 19, 18, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
}

.download-panel > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.download-panel > a:hover {
  color: var(--champagne);
}

.download-group-label {
  padding: 10px 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.download-requirements {
  display: grid;
  gap: 5px;
  padding: 10px 0 4px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.download-requirements strong {
  color: var(--champagne);
}

.download-meta {
  margin: 16px 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(243, 239, 232, 0.68);
}

/* Minimal 1px Bottom Scroll Hairline */
.hero-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-foot-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.hero-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 0.84rem;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.hero-foot-link:hover {
  color: var(--champagne);
}

/* ==========================================================================
   Band 2 · 2x2 Real-UI Video Showcase (#showcase — Seamless Dark #0C0B0A)
   ========================================================================== */

.band-dark {
  background: var(--bg);
  padding: clamp(68px, 7vw, 108px) 0;
}

.band-dark-alt {
  background: var(--bg-band);
  padding: clamp(68px, 7vw, 108px) 0;
  border-top: 1px solid var(--line);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(28px, 3.8vw, 44px);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 10px;
}

.section-header p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0;
}

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

.twin-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #141312;
  border: 1px solid rgba(255, 255, 255, 0.09);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.twin-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #141312;
  transition: transform 0.65s var(--ease);
}

.twin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0) 46%, rgba(12, 11, 10, 0.86) 100%);
  transition: background 0.45s var(--ease);
  pointer-events: none;
}

.twin-card:hover::after,
.twin-card:focus-within::after {
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.20) 0%, rgba(12, 11, 10, 0.62) 48%, rgba(12, 11, 10, 0.94) 100%);
}

.twin-card:hover video,
.twin-card:focus-within video {
  transform: scale(1.02);
}

.twin-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.twin-index {
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--champagne);
  margin-bottom: 5px;
}

.twin-overlay h3 {
  font-size: clamp(1.18rem, 1.75vw, 1.52rem);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.twin-desc {
  margin: 0;
  max-width: 36em;
  font-size: 0.88rem;
  line-height: 1.68;
  color: rgba(243, 239, 232, 0.88);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height 0.45s var(--ease), opacity 0.4s var(--ease), transform 0.45s var(--ease), margin-top 0.45s var(--ease);
}

.twin-card:hover .twin-desc,
.twin-card:focus-within .twin-desc {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}

.showcase-footnote {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* Dark Matte Collapsible Developer MCP Strip */
.dev-drawer {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.dev-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  list-style: none;
  transition: background 0.2s var(--ease);
}

.dev-drawer summary::-webkit-details-marker {
  display: none;
}

.dev-drawer summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dev-summary-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.dev-summary-text strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.dev-summary-text span {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.dev-summary-icon {
  font-size: 0.8rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.dev-drawer[open] .dev-summary-icon::after {
  content: "收起 ▴";
}

.dev-drawer:not([open]) .dev-summary-icon::after {
  content: "展开 ▾";
}

.dev-drawer-body {
  padding: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.dev-meta {
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.dev-steps {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.82;
  color: var(--ink-2);
}

.dev-steps strong {
  color: var(--ink);
}

.dev-connectors {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-3);
  margin: 0;
}

.mcp-tab-bar {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: var(--r-pill);
  background: var(--bg-code);
  border: 1px solid var(--line);
}

.mcp-tab-btn {
  min-height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mcp-tab-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.code-box {
  background: var(--bg-code);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 10px;
}

.code-box.is-hidden {
  display: none;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-2);
}

.code-box pre {
  margin: 0;
  padding: 13px 15px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #ece6dc;
}

.code-box pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.10);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.copy-btn.is-copied {
  background: rgba(142, 201, 164, 0.18);
  border-color: rgba(142, 201, 164, 0.50);
  color: var(--ok);
}

.code-note {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
}

/* ==========================================================================
   Band 3 · Sleek Architectural Dark Pricing (#pricing)
   4-col >=1080px | Tight 2x2 560px..1079px | 1-col <560px
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s var(--ease);
}

.price-card:hover {
  border-color: var(--line-strong);
}

.price-card--featured {
  background: linear-gradient(180deg, var(--vermilion-tint) 0%, var(--bg-card) 42%);
  border-color: var(--vermilion-soft);
}

.price-card--featured:hover {
  border-color: rgba(223, 77, 54, 0.70);
}

.price-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-3);
}

.price-card--featured .price-label {
  color: #f08370;
}

.price-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: -6px 0 0;
}

.price-figure {
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.price-figure small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 10px;
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.price-list li {
  position: relative;
  padding-left: 16px;
}

.price-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-3);
}

.price-card--featured .price-list li::before {
  color: #f08370;
}

.price-list strong {
  color: var(--ink);
  font-weight: 600;
}

.plan-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.plan-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--line-hover);
}

.plan-btn--primary {
  background: var(--champagne);
  color: var(--bg);
  border-color: var(--champagne);
}

.plan-btn--primary:hover {
  background: var(--champagne-hover);
  border-color: var(--champagne-hover);
}

.plan-btn--enterprise {
  background: rgba(223, 77, 54, 0.18);
  border-color: rgba(223, 77, 54, 0.56);
  color: #ffdcd5;
}

.plan-btn--enterprise:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #ffffff;
}

.pricing-footnote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ink-3);
}

/* ==========================================================================
   Band 4 · Calm Closing Strip + Authoritative 4-Column Dark Company Footer
   ========================================================================== */

.closing-strip {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 5vw, 68px) 0;
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.closing-inner h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Authoritative 4-Column Dark Company Footer */
.site-footer {
  background: #0a0908;
  border-top: 1px solid var(--line);
  padding: clamp(52px, 5.5vw, 76px) 0 32px;
  color: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 82px;
  height: auto;
}

.footer-brand span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--ink-3);
  margin: 0;
  max-width: 28em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  font-size: 0.84rem;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--champagne);
}

/* Footer Inline Contact Rows (Zero Boxed Flyers) */
.footer-contact-rows {
  display: grid;
  gap: 10px;
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 0.84rem;
  color: var(--ink-2);
}

.footer-contact-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}

.inline-action {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.74rem;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.inline-action:hover {
  color: #ffffff;
  border-color: var(--line-hover);
  background: rgba(255, 255, 255, 0.06);
}

.inline-action.is-copied {
  color: var(--ok);
  border-color: rgba(142, 201, 164, 0.45);
}

.footer-contact-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink-3);
}

.footer-contact-status {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--ok);
}

/* Quiet Collapsible Footer Verify & FAQ Drawers */
.footer-verify {
  margin-top: 12px;
}

.footer-verify summary,
.footer-faq-drawer summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 0.8rem;
  color: var(--ink-3);
  list-style: none;
  transition: color 0.2s var(--ease);
}

.footer-verify summary::-webkit-details-marker,
.footer-faq-drawer summary::-webkit-details-marker {
  display: none;
}

.footer-verify summary::after,
.footer-faq-drawer summary::after {
  content: "▾";
  font-size: 0.75rem;
}

.footer-verify[open] summary::after,
.footer-faq-drawer[open] summary::after {
  content: "▴";
}

.footer-verify summary:hover,
.footer-verify[open] summary,
.footer-faq-drawer summary:hover,
.footer-faq-drawer[open] summary {
  color: var(--champagne);
}

.footer-verify-body {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.download-unsigned {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.download-tip,
.download-tip-mac,
.download-hash {
  display: block;
}

.download-tip-mac,
.download-hash {
  margin-top: 6px;
}

.download-hash {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  word-break: break-all;
}

.download-tip[data-active="true"],
.download-tip-mac[data-active="true"],
.download-hash[data-active="true"] {
  color: var(--ink);
}

/* Footer Bottom Utility Bar */
.footer-bar {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-faq-drawer {
  flex: 1 1 320px;
}

.footer-faq-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  max-width: 780px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.footer-faq-item strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-faq-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-top-btn:hover {
  border-color: var(--champagne);
  color: #ffffff;
}

/* ==========================================================================
   Cohesive Dark Credits Page (credits.html)
   ========================================================================== */

body.page-credits {
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.credits-main {
  flex: 1;
  width: min(820px, calc(100% - var(--gutter) * 2));
  margin: 96px auto 72px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.credits-eyebrow {
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.credits-main h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.24;
  margin: 0 0 14px;
  color: #ffffff;
}

.credits-lead {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 28px;
}

.credits-section {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.credits-section:last-of-type {
  padding-bottom: 4px;
}

.credits-section h2 {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.credits-section p,
.credits-section li {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.8;
}

.credits-section ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.credits-section li {
  margin-bottom: 6px;
}

.credits-section strong {
  color: var(--ink);
}

.credits-section a {
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credits-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--champagne);
  color: var(--bg) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 600;
}

.credits-mobile-back {
  display: none;
  margin-left: auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--champagne);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  align-items: center;
}

/* Reduced Motion */
.motion-off .twin-card video,
.motion-off .twin-desc {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .twin-card video,
  .twin-desc {
    transition: none !important;
  }
}

/* Touch Devices: Show twin-card description cleanly below 16:9 video */
@media (hover: none), (max-width: 760px) {
  .twin-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .twin-card::after {
    display: none;
  }
  .twin-card video {
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
  }
  .twin-card:hover video {
    transform: none;
  }
  .twin-overlay {
    position: static;
    padding: 16px 18px 18px;
    background: var(--bg-card);
    border-top: 1px solid var(--line);
  }
  .twin-desc {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 6px;
    font-size: 0.86rem;
    color: var(--ink-2);
  }
}

/* ==========================================================================
   Responsive Breakpoints (Executive 2x2 Pricing down to 560px!)
   ========================================================================== */

@media (max-width: 1079px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dev-drawer-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .header-tools {
    margin-left: auto;
  }
  body.page-credits .credits-mobile-back {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 58px;
    padding: 0 18px;
  }
  .brand img {
    width: 74px;
  }
  .brand span {
    font-size: 0.82rem;
    padding-left: 10px;
  }
  .hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
  }
  .hero-foreground {
    padding-top: 112px;
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.85rem);
  }
  .hero-lead {
    font-size: 0.96rem;
    margin-bottom: 22px;
  }
  .download-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .download-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.85rem;
  }
  .download-options {
    flex: 0 0 auto;
  }
  .download-options summary {
    width: 46px;
    height: 46px;
  }
  .download-panel {
    left: auto;
    right: 0;
  }
  .twin-grid {
    grid-template-columns: 1fr;
  }
  .dev-drawer summary {
    padding: 14px 16px;
  }
  .dev-drawer-body {
    padding: 16px;
  }
  .mcp-tab-bar {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mcp-tab-bar::-webkit-scrollbar {
    display: none;
  }
  .mcp-tab-btn {
    flex: 1 0 auto;
  }
  .closing-actions {
    width: 100%;
    flex-wrap: nowrap;
  }
  .closing-actions .download-btn {
    flex: 1 1 0;
  }
  .credits-main {
    margin: 82px auto 48px;
    padding: 22px 18px;
  }
}

@media (max-width: 559px) {
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  .download-row,
  .closing-actions {
    flex-wrap: wrap;
  }
  .download-btn {
    flex: 1 1 100%;
  }
}
