/* ==========================================================================
   M·Claw v8 Official Website — Cool-Neutral & Blue Design System
   Faithful to M·Claw v8 Desktop Client Tokens
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef2f8;
  --card: #ffffff;
  --line: #e4e8ef;
  --line-soft: #eef1f6;
  --line-strong: #cfd7e3;
  --text: #1f2430;
  --text-secondary: #485063;
  --muted: #667085;
  --faint: #949eb0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-sky: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-soft-strong: rgba(37, 99, 235, 0.14);
  --accent-ring: rgba(37, 99, 235, 0.28);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.09);

  --sans: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Cascadia Code', Consolas, ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 8px 20px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 18px 40px rgba(37, 99, 235, 0.07);
  --shadow-stage: 0 12px 32px rgba(15, 23, 42, 0.08), 0 32px 72px rgba(37, 99, 235, 0.11);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, p, ul {
  margin: 0;
}

/* ---------- Ambient Background ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 58% at 50% 18%, rgba(0, 0, 0, 0.65), transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 58% at 50% 18%, rgba(0, 0, 0, 0.65), transparent 78%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.48;
  will-change: transform;
}

.orb-a {
  width: 560px;
  height: 560px;
  top: -210px;
  left: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.04) 68%, transparent 75%);
  animation: orbDriftA 18s ease-in-out infinite alternate;
}

.orb-b {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.04) 68%, transparent 75%);
  animation: orbDriftB 22s ease-in-out infinite alternate;
}

@keyframes orbDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(68px, 44px, 0) scale(1.08); }
}

@keyframes orbDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-72px, 52px, 0) scale(1.06); }
}

/* ---------- Layout ---------- */
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.container-narrow {
  width: min(880px, calc(100% - 40px));
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tinted {
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.85) 0%, rgba(238, 242, 248, 0.55) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 6px 16px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12), 0 10px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.03);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 18px;
  color: var(--text);
}

.brand-ver {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
}

.main-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(246, 247, 249, 0.75);
  border: 1px solid var(--line-soft);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(228, 232, 239, 0.9);
  transition: transform 0.32s var(--ease), width 0.32s var(--ease), opacity 0.2s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 9px;
  transition: color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 12px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.mobile-drawer a:hover {
  background: var(--surface);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 88px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  text-align: center;
  max-width: 880px;
}

.nowrap {
  white-space: nowrap;
}

.hero-enter {
  animation: heroEnter 0.65s var(--ease) both;
}

.hero-enter-delayed {
  animation: heroEnter 0.75s var(--ease) 0.12s both;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--text);
}

.hero-lead {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-facts {
  margin-top: 26px;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.hero-facts li {
  position: relative;
  padding-left: 14px;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

/* ---------- Interactive M·Claw v8 Desktop Stage ---------- */
.stage-wrap {
  width: 100%;
  max-width: 1060px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  perspective: 1400px;
}

.stage-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.stage-tab {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

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

.stage-tab.is-active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--line);
}

.app-mockup {
  width: 100%;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}

.mockup-titlebar {
  height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockup-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.mockup-brand img {
  border-radius: 50%;
}

.mockup-ver-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent);
  background: var(--accent-soft);
}

.mockup-status {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.mockup-win-controls {
  display: inline-flex;
  gap: 6px;
}

.mockup-win-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dce6;
}

.mockup-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 292px;
  min-height: 410px;
}

.mockup-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-new-btn {
  padding: 8px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.mock-session {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-session.is-active {
  background: #e2e9f6;
  color: var(--accent);
  font-weight: 600;
}

.mock-sidebar-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mock-model-pill {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-chat {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.mock-user-msg {
  align-self: flex-end;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
  animation: fadeSlideIn 0.35s var(--ease) both;
}

.mock-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), border-color 0.25s var(--ease);
}

.mock-step.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.mock-step.is-done {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.04);
}

.step-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #ffffff;
  background: transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.mock-step.is-done .step-check {
  background: var(--green);
  border-color: var(--green);
}

.mock-step.is-done .step-check::after {
  content: "✓";
  font-weight: 700;
}

.step-code {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.mock-answer {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  min-height: 44px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.mock-answer.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.mock-delivery-card {
  margin-top: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 11px 13px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

.mock-delivery-card.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.mock-delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mock-rollback-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--text-secondary);
}

.mock-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
}

.mock-file-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mock-ext {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mock-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-file-meta {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}

/* Right Preview Pane inside Mockup */
.mockup-preview {
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #fafbfd 0%, #f3f6fb 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.preview-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 7px;
  border-radius: 5px;
}

.preview-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  box-shadow: var(--shadow-xs);
  animation: fadeSlideIn 0.42s var(--ease) both;
}

.preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 118px;
  padding: 14px 8px 4px;
  border-bottom: 1px solid var(--line);
}

.p-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.p-bar-fill {
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent-sky), var(--accent));
  height: var(--bar-h);
  transform-origin: bottom;
  animation: barGrow 0.65s var(--ease) both;
}

.p-bar span {
  font-size: 11px;
  color: var(--muted);
}

@keyframes barGrow {
  from { transform: scaleY(0.05); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}

.preview-kv-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.preview-kv {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.preview-kv strong {
  color: var(--text);
  font-family: var(--mono);
}

/* PPT preview inside mockup */
.slide-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-thumb {
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.slide-thumb.is-cover {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  border-color: transparent;
  color: #ffffff;
}

.slide-thumb strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 3px;
}

.slide-thumb span {
  font-size: 11px;
  opacity: 0.82;
}

/* Video preview inside mockup */
.video-stage {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
  color: #ffffff;
}

.video-canvas {
  height: 132px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.45), transparent 55%),
              radial-gradient(circle at 75% 70%, rgba(37, 99, 235, 0.55), transparent 58%),
              #0f172a;
}

.video-play-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.video-play-circle::after {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--accent);
}

.video-controls {
  padding: 10px 12px;
  background: #172033;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-seek-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.video-seek-fill {
  height: 100%;
  width: 48%;
  border-radius: 4px;
  background: var(--accent-sky);
  animation: seekSlide 4.5s ease-in-out infinite alternate;
}

@keyframes seekSlide {
  0% { width: 18%; }
  100% { width: 78%; }
}

.video-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Bento Feature Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.bento-wide {
  grid-column: span 2;
}

.sheen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.08), transparent 62%);
  transition: opacity 0.3s var(--ease);
}

.sheen-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-md);
}

.bento-text h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.bento-text p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.micro-ui {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 14px;
}

/* Micro Sheet */
.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.sheet-formula {
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
}

.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: stretch;
}

.sheet-table {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  font-size: 12px;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.sheet-row:last-child {
  border-bottom: 0;
}

.sheet-row.is-head {
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.sheet-row.is-sum {
  background: rgba(37, 99, 235, 0.05);
  font-weight: 700;
  color: var(--accent);
}

.num-ok {
  color: var(--green);
  font-weight: 600;
}

.sheet-bars {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 12px 8px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.bar-col {
  flex: 1;
  height: 100%;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.bar-col span {
  width: 100%;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent-sky), var(--accent));
  transition: transform 0.35s var(--ease);
}

.bento-card:hover .bar-col span {
  transform: scaleY(1.06);
  transform-origin: bottom;
}

.bar-col em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

/* Micro Diff */
.micro-diff {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}

.diff-line {
  padding: 6px 10px;
  border-radius: 7px;
}

.diff-line.is-del {
  background: var(--red-soft);
  color: var(--red);
}

.diff-line.is-add {
  background: var(--green-soft);
  color: var(--green);
}

.diff-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--sans);
}

.mini-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--text-secondary);
}

.mini-pill.is-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Micro Media */
.media-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.media-protocols span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text-secondary);
}

.media-player-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.media-thumb {
  width: 56px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.play-tri {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #ffffff;
}

.media-scrubber {
  flex: 1;
  min-width: 0;
}

.media-title-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.media-track {
  height: 5px;
  border-radius: 5px;
  background: var(--surface-2);
  overflow: hidden;
}

.media-progress {
  height: 100%;
  width: 46%;
  border-radius: 5px;
  background: var(--accent);
  transition: width 0.55s var(--ease);
}

.bento-card:hover .media-progress {
  width: 78%;
}

/* Micro Providers */
.micro-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.provider-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

/* Micro Skills & Security */
.micro-skills,
.micro-security {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-row,
.sec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.skill-row span:last-child {
  color: var(--green);
  font-weight: 600;
  font-size: 12px;
}

.sec-item code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

/* ---------- Workflow Strip ---------- */
.workflow-strip {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.workflow-step h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.workflow-step p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-connector {
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--accent-light), var(--line));
  opacity: 0.6;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item.is-open {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  transition: background-color 0.25s var(--ease), transform 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text-secondary);
  transform: translate(-50%, -50%);
  transition: transform 0.28s var(--ease), background-color 0.25s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--accent-soft);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--accent);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 22px 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---------- Changelog Timeline ---------- */
.changelog-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.filter-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.filter-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.changelog-sync-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.sync-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-sky);
}

.sync-state-dot.is-live {
  background: var(--green);
}

.sync-state-dot.is-fallback {
  background: var(--amber);
}

.timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line) 85%);
  border-radius: 2px;
}

.cl-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 24px 26px;
  box-shadow: var(--shadow-xs);
  animation: fadeSlideIn 0.4s var(--ease) both;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cl-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-sm);
}

.cl-card::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.cl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cl-version {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 7px;
}

.cl-channel {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-secondary);
}

.cl-channel.is-stable {
  background: var(--green-soft);
  color: var(--green);
}

.cl-channel.is-hotfix {
  background: var(--amber-soft);
  color: var(--amber);
}

.cl-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.cl-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.cl-summary {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.cl-items {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.cl-type {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.cl-type.is-feature {
  background: var(--accent-soft);
  color: var(--accent);
}

.cl-type.is-improve {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.cl-type.is-fix {
  background: var(--green-soft);
  color: var(--green);
}

.cl-empty {
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px dashed var(--line-strong);
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
}

.timeline-skeleton {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sk-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--surface) 25%, #e8edf5 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.sk-line.w-40 { width: 40%; }
.sk-line.w-85 { width: 85%; }
.sk-line.w-70 { width: 70%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Contact Section ---------- */
.contact-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid var(--line);
  padding: 42px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.contact-sub {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 460px;
}

.contact-meta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.meta-k {
  width: 112px;
  flex-shrink: 0;
  color: var(--muted);
}

.meta-v {
  font-weight: 600;
  color: var(--text);
}

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

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

.contact-qrs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.qr-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.qr-img-wrap {
  width: 156px;
  height: 156px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.qr-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.qr-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--faint);
}

/* ---------- QR Zoom Dialog ---------- */
.qr-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  width: min(340px, calc(100% - 32px));
  box-shadow: var(--shadow-stage);
  text-align: center;
}

.qr-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.qr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qr-dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 20px;
  line-height: 1;
}

.qr-dialog img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  padding: 8px;
}

.qr-dialog p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mockup-body {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .mockup-sidebar {
    display: none;
  }
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-wide {
    grid-column: span 2;
  }
  .workflow-strip {
    grid-template-columns: 1fr;
  }
  .workflow-connector {
    display: none;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px 26px;
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-actions .btn-ghost {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .section {
    padding: 68px 0;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 64px;
  }
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-preview {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }
  .sheet-body {
    grid-template-columns: 1fr;
  }
  .stage-tabs {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    scrollbar-width: none;
  }
  .stage-tabs::-webkit-scrollbar {
    display: none;
  }
  .stage-tab {
    padding: 7px 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .mockup-status,
  .mockup-win-controls {
    display: none;
  }
  .mockup-brand {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
