/* ===== CSS Variables (Uber-inspired — see website/DESIGN.md) ===== */
:root {
  --primary: #000000;
  --primary-active: #282828;
  --ink: #000000;
  --body-text: #5e5e5e;
  --body-strong: #000000;
  --muted: #afafaf;
  --muted-soft: #afafaf;
  --hairline: #e2e2e2;
  --hairline-strong: #e2e2e2;
  --hairline-mid: #4b4b4b;
  --canvas: #ffffff;
  --canvas-soft: #efefef;
  --canvas-softer: #f3f3f3;
  --surface-soft: #efefef;
  --surface-card: #ffffff;
  --surface-strong: #e2e2e2;
  --surface-pressed: #e2e2e2;
  --surface-dark: #000000;
  --surface-dark-elevated: #282828;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #afafaf;
  --link: #0000ee;

  --bg-primary: var(--canvas);
  --bg-secondary: var(--canvas-soft);
  --bg-card: var(--canvas);
  --bg-terminal: var(--surface-dark-elevated);
  --text-primary: var(--ink);
  --text-secondary: var(--body-text);
  --accent-green: var(--ink);
  --accent-green-dim: rgba(0, 0, 0, 0.06);
  --accent-blue: var(--ink);
  --accent-amber: var(--body-text);
  --border-color: var(--hairline);
  --gradient-green: var(--primary);
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Fira Code', 'Roboto Mono', Monaco, Consolas, monospace;
  --font-sans: Inter, system-ui, Helvetica Neue, Arial, sans-serif;
  --font-heading: Inter, system-ui, Helvetica Neue, Arial, sans-serif;
  --section-padding: 80px 0;
  --nav-action-height: 44px;
  --radius-none: 0;
  --radius-md: 8px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --radius-full: 9999px;
  --shadow-level-1: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
  --shadow-level-2: rgba(0, 0, 0, 0.16) 0px 4px 16px 0px;
  --shadow-pill-float: rgba(0, 0, 0, 0.16) 0px 2px 8px 0px;

  /* Terminal / code block — always dark chrome, theme-independent text */
  --terminal-bg: #282828;
  --terminal-chrome: #1f1f1f;
  --terminal-fg: #f3f3f3;
  --terminal-muted: #afafaf;
  --terminal-prompt: #ffffff;
  --terminal-border: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] {
  --canvas: #121212;
  --canvas-soft: #1a1a1a;
  --canvas-softer: #222222;
  --surface-soft: #1a1a1a;
  --surface-card: #1a1a1a;
  --surface-strong: #2a2a2a;
  --surface-pressed: #333333;
  --ink: #ffffff;
  --body-text: #afafaf;
  --muted: #6b6b6b;
  --hairline: #333333;
  --hairline-strong: #444444;
  --hairline-mid: #888888;
  --bg-primary: var(--canvas);
  --bg-secondary: var(--surface-soft);
  --bg-card: var(--surface-card);
  --bg-terminal: #0a0a0a;
  --text-primary: var(--ink);
  --text-secondary: var(--body-text);
  --accent-green-dim: rgba(255, 255, 255, 0.08);
  --terminal-bg: #1a1a1a;
  --terminal-chrome: #141414;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--body-text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .section-title, .cta-band-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.nav-logo, .btn, .tab {
  font-family: var(--font-sans);
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Navbar ===== */
.navbar,
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  box-sizing: content-box;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
  min-height: 64px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-github-star,
.icon-button-circular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-action-height);
  height: var(--nav-action-height);
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: none;
  background: var(--canvas-soft);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-github-star:hover,
.icon-button-circular:hover {
  background: var(--surface-pressed);
  color: var(--ink);
}

.nav-github-star-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Language switcher: dropdown, trigger shows current 中文 / EN only */
.nav-lang-dropdown {
  position: relative;
  margin-right: 4px;
}

.nav-lang {
  display: block;
}

.nav-mobile-lang {
  display: none;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .nav-lang {
    display: none;
  }

  .nav-mobile-lang {
    display: block;
  }
}

.nav-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--nav-action-height);
  min-height: var(--nav-action-height);
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--canvas-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-lang-trigger:hover {
  background: var(--surface-pressed);
  color: var(--ink);
}

.nav-lang-dropdown.is-open .nav-lang-trigger {
  background: var(--surface-pressed);
  color: var(--ink);
}

.nav-lang-current {
  min-width: 2.25em;
  text-align: left;
}

.nav-lang-chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-lang-dropdown.is-open .nav-lang-chevron {
  transform: rotate(180deg);
}

.nav-lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-level-1);
  z-index: 1002;
}

.nav-lang-dropdown--in-menu .nav-lang-trigger {
  width: 100%;
  justify-content: space-between;
}

.nav-lang-dropdown--in-menu .nav-lang-panel {
  position: static;
  top: auto;
  right: auto;
  min-width: 0;
  width: 100%;
  margin-top: 8px;
  box-shadow: none;
  border-radius: 8px;
}

.nav-lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-lang-option:hover {
  color: var(--ink);
  background: var(--canvas-soft);
}

.nav-lang-option.is-active {
  color: var(--ink);
  background: var(--canvas-soft);
  font-weight: 500;
}

/* Bilingual spans: default show both until data-lang is set; then hide one */
html[data-lang="zh"] .i18n-en {
  display: none !important;
}

html[data-lang="en"] .i18n-zh {
  display: none !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--nav-action-height);
  height: var(--nav-action-height);
  padding: 10px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--canvas-soft);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-toggle:hover {
  background: var(--surface-pressed);
}

.nav-mobile-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.nav-open .nav-mobile-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-mobile-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.nav-open .nav-mobile-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
}

.nav-logo-text .highlight {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--body-text);
}

.nav-cta,
.button-primary,
.btn-primary {
  height: auto;
  min-height: var(--nav-action-height);
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius-pill);
  border: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-cta:hover,
.button-primary:hover,
.btn-primary:hover {
  background: var(--primary-active);
}

/* ===== Hero Section ===== */
.hero,
.hero-band-dark {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: max(124px, calc(80px + env(safe-area-inset-top, 0px))) 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--on-dark);
}

.hero-band-dark h1,
.hero-band-dark h2,
.hero-band-dark .hero-subtitle {
  color: var(--on-dark);
}

.hero::before {
  display: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text,
.hero-terminal {
  min-width: 0;
}

.hero-badge,
.category-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--canvas-soft);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-band-dark .hero-badge.category-button {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: 0;
  color: var(--on-dark);
}

.hero h1 .highlight {
  color: var(--on-dark);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--on-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-lead {
  font-size: 16px;
  font-weight: 400;
  color: var(--on-dark-soft);
  margin-bottom: 24px;
  max-width: 520px;
  line-height: 1.5;
}

.hero-description {
  font-size: 16px;
  font-weight: 400;
  color: var(--on-dark-soft);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-product-hunt-link {
  display: inline-flex;
  align-items: center;
}

.hero-product-hunt-img {
  max-width: 100%;
  height: auto;
}

.hero-scroll-indicator {
  text-align: center;
  margin-top: 2.5rem;
}

.hero-scroll-indicator a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.hero-scroll-indicator a:hover,
.hero-scroll-indicator a:focus {
  color: var(--accent-green);
}

.btn {
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  border-radius: var(--radius-pill);
  border: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary,
.button-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: none;
}

.btn-secondary:hover,
.button-secondary:hover {
  background: var(--surface-pressed);
  color: var(--ink);
}

.hero-band-dark .btn-secondary-on-dark,
.btn-secondary-on-dark,
.button-secondary.btn-secondary-on-dark {
  background: var(--canvas);
  color: var(--ink);
  border: none;
}

.hero-band-dark .btn-secondary-on-dark:hover,
.btn-secondary-on-dark:hover {
  background: var(--surface-pressed);
  color: var(--ink);
}

/* Dark hero: fixed palette — do not inherit theme-flipped --ink */
.hero-band-dark .btn-primary,
.hero-band-dark .button-primary {
  background: #ffffff;
  color: #000000;
}

.hero-band-dark .btn-primary:hover,
.hero-band-dark .button-primary:hover {
  background: #e2e2e2;
  color: #000000;
}

.hero-band-dark .hero-articles-link.button-floating {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.hero-band-dark .hero-articles-link.button-floating:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-band-dark .hero-desktop-meta {
  color: #afafaf;
}

.button-floating {
  box-shadow: var(--shadow-pill-float);
}

.hero-band-dark .hero-articles-link.button-floating {
  box-shadow: none;
}

.button-subtle,
.copy-btn.button-subtle {
  background: var(--canvas-soft);
  color: var(--ink);
  border: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
}

.hero-band-dark .copy-btn.button-subtle {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.copy-btn.button-subtle:hover,
.button-subtle:hover {
  background: var(--surface-pressed);
}

.hero-band-dark .copy-btn.button-subtle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-icon {
  width: 18px;
  height: 18px;
}

/* ===== Terminal ===== */
.hero-terminal {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.terminal {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--terminal-bg);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-level-2);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--terminal-chrome);
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.85rem;
  color: var(--terminal-muted);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  min-height: 280px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--terminal-fg);
}

.terminal-line {
  display: flex;
  margin-bottom: 4px;
  min-width: 0;
}

.terminal-prompt {
  color: var(--terminal-prompt);
  margin-right: 8px;
}

.terminal-command {
  color: var(--terminal-fg);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.terminal-output {
  color: var(--terminal-muted);
  margin-left: 20px;
}

.terminal-output.success {
  color: var(--terminal-fg);
}

.terminal-output.warning {
  color: var(--terminal-muted);
}

.terminal-output.info {
  color: var(--terminal-muted);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--terminal-fg);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== Section bands ===== */
.band-light {
  background: var(--canvas);
}

.band-light.band-alt {
  background: var(--surface-soft);
}

section {
  padding: var(--section-padding);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 16px;
  color: var(--ink);
}

.section-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--body-text);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== OpenClaw / ClawHub guide（顶部步骤条 + 面板 + 气泡，对齐演示稿布局） ===== */
.openclaw-guide .section-subtitle {
  max-width: 720px;
}

.openclaw-wizard {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.openclaw-wizard-inner {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-none);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 28px 24px 24px;
}

.openclaw-wizard-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-none);
  background: var(--canvas);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.openclaw-wizard-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--canvas-soft);
}

.openclaw-wizard-arrow:focus-visible:not(:disabled) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.openclaw-wizard-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .openclaw-wizard {
    gap: 8px;
  }

  .openclaw-wizard-arrow {
    width: 40px;
    height: 40px;
  }
}

/* 顶部横向步骤条 */
.openclaw-step-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  scrollbar-width: thin;
}

.openclaw-step-nav-item {
  flex: 1 0 auto;
  min-width: 52px;
  max-width: 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  padding: 0 2px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.openclaw-step-nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: var(--border-color);
  z-index: -1;
  transition: background-color 0.25s ease;
}

.openclaw-step-nav-item.is-completed:not(:last-child)::after {
  background-color: var(--primary);
}

.openclaw-step-nav-num {
  width: 40px;
  height: 40px;
  background-color: var(--bg-card);
  border: 3px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.openclaw-step-nav-label {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.openclaw-step-nav-item.is-active .openclaw-step-nav-num {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 4px var(--accent-green-dim);
}

.openclaw-step-nav-item.is-active .openclaw-step-nav-label {
  color: var(--primary);
  font-weight: 700;
}

.openclaw-step-nav-item.is-completed .openclaw-step-nav-num {
  border-color: var(--primary);
  color: var(--primary);
}

/* 内容区 */
.openclaw-step-panels {
  min-height: 200px;
}

.openclaw-step-panel {
  display: none;
  padding: 0 0 8px;
  animation: openclawPanelIn 0.38s ease forwards;
}

.openclaw-step-panel.is-active {
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  .openclaw-step-panel {
    animation: none;
  }
}

.openclaw-panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.35;
}

.openclaw-panel-title code {
  font-size: 0.88em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.openclaw-panel-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

/* 对话气泡 */
.openclaw-wizard .openclaw-step-prompt {
  position: relative;
  background: rgba(0, 255, 136, 0.08);
  color: var(--text-primary);
  padding: 16px 18px;
  border-radius: 12px 12px 12px 0;
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 255, 136, 0.18);
}

.openclaw-prompt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.openclaw-prompt-text {
  flex: 1;
  min-width: 0;
}

.openclaw-prompt-copy {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.openclaw-prompt-copy:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

@media (max-width: 480px) {
  .openclaw-prompt-row {
    flex-direction: column;
    align-items: stretch;
  }

  .openclaw-prompt-copy {
    align-self: flex-end;
  }
}

.openclaw-wizard .openclaw-step-prompt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-bottom: 12px solid rgba(0, 255, 136, 0.08);
  border-left: 12px solid transparent;
}

.openclaw-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-green);
  margin: 0 2px;
  opacity: 0.85;
}

.openclaw-wizard .openclaw-step-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-left: 4px solid var(--border-color);
  border-radius: 4px;
}

.openclaw-wizard .openclaw-step-note code {
  font-size: 0.88em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.openclaw-wizard .openclaw-step-prompt code {
  font-size: 0.88em;
  padding: 2px 6px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

html[data-theme="dark"] .openclaw-wizard-arrow:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-pressed);
}

html[data-theme="dark"] .openclaw-wizard-arrow:focus-visible:not(:disabled) {
  outline-color: var(--ink);
}

html[data-theme="dark"] .openclaw-step-nav-item.is-active .openclaw-step-nav-num {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .openclaw-step-nav-item.is-active .openclaw-step-nav-label {
  color: var(--ink);
}

html[data-theme="dark"] .openclaw-step-nav-item.is-completed:not(:last-child)::after {
  background-color: var(--ink);
}

html[data-theme="dark"] .openclaw-step-nav-item.is-completed .openclaw-step-nav-num {
  border-color: var(--ink);
  color: var(--ink);
}

html[data-theme="dark"] .openclaw-step-nav-item:hover:not(.is-active) .openclaw-step-nav-num {
  border-color: var(--hairline-mid);
  background-color: var(--surface-pressed);
}

/* ===== What is Agent Skill Section ===== */
.what-is-skill {
  background: var(--bg-secondary);
}

.scenario-section {
  margin-top: 10px;
}

.scenario-section .scenario-tabs {
  margin-left: auto;
  margin-right: auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: 40px;
}

.comparison-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-level-1);
}

.comparison-card.before,
.comparison-card.after {
  border-color: var(--hairline);
}

.comparison-label {
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-card.before .comparison-label,
.comparison-card.after .comparison-label {
  background: var(--canvas-soft);
  color: var(--ink);
}

.comparison-code {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

.comparison-code pre {
  margin: 0;
}

.comparison-code .comment { color: #6a737d; }
.comparison-code .keyword { color: #ff7b72; }
.comparison-code .string { color: #a5d6ff; }
.comparison-code .function { color: #d2a8ff; }

.tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: var(--ink);
}

.key-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.key-point {
  text-align: center;
  padding: 24px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.2s ease;
}

.key-point:hover {
  box-shadow: var(--shadow-level-1);
}

.key-point-icon {
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-point h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.key-point p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.conclusion {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(88, 136, 255, 0.05));
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.conclusion p {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.conclusion .highlight {
  color: var(--accent-green);
}

/* ===== Why Skill Base Section ===== */
.pain-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.pain-point,
.card-content {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.pain-point {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pain-point::before {
  display: none;
}

.pain-point:hover {
  transform: none;
  box-shadow: var(--shadow-level-1);
}

.pain-point-number {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pain-point-icon {
  vertical-align: middle;
  margin-right: 4px;
  width: 18px;
  height: 18px;
}

.pain-point .solution {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pain-point-number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.pain-point h3 {
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.pain-point .problem {
  color: var(--body-text);
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.pain-point .solution::before {
  content: '→';
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.model-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card,
.model-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: left;
  transition: box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card.card-content {
  border: 1px solid var(--hairline);
}

.feature-card:hover {
  box-shadow: var(--shadow-level-1);
}

.feature-icon {
  margin: -24px -24px 24px;
  padding: 32px 24px;
  background: var(--canvas-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.feature-card h3 {
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.5;
}

.hero-desktop-meta {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.desktop-download-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.desktop-download-lead,
.quick-start-lead {
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.desktop-download-lead code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-green);
}

.desktop-download-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.desktop-download-main {
  text-decoration: none;
}

.desktop-download-loading,
.desktop-download-version {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.desktop-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.desktop-download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--canvas-softer);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

html[data-theme="dark"] .desktop-download-card {
  background: var(--bg-terminal);
}

.desktop-download-card:hover,
.desktop-download-card:focus {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.desktop-download-card.is-recommended {
  border-color: var(--ink);
  background: var(--canvas);
}

html[data-theme="dark"] .desktop-download-card.is-recommended {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--bg-terminal);
}

.desktop-download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.desktop-download-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.desktop-download-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--accent-green-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 8px;
}

html[data-theme="dark"] .desktop-download-badge {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.desktop-download-card-file {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--body-text);
  word-break: break-all;
}

html[data-theme="dark"] .desktop-download-card-file {
  color: var(--text-secondary);
}

.desktop-download-card-size {
  font-size: 0.78rem;
  color: var(--body-text);
}

html[data-theme="dark"] .desktop-download-card-size {
  color: var(--text-secondary);
}

.desktop-download-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.desktop-download-note a {
  color: var(--accent-green);
}

.desktop-download-all {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
}

.desktop-download-all:hover,
.desktop-download-all:focus {
  text-decoration: underline;
}

/* ===== Quick Start Section ===== */
.quick-start {
  background: var(--bg-secondary);
}

.quick-start > .container > .fade-in {
  margin-top: 10px;
}

.quick-start-container {
  /* 外层仅作布局壳；命令区宽度由 .tab-content 单独约束 */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.quick-start .tabs {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  width: 100%;
  max-width: min(980px, 100%);
  flex-wrap: wrap;
  overflow-x: visible;
  box-sizing: border-box;
}

.quick-start .tab-content {
  width: 100%;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.quick-start .tabs .tab {
  white-space: nowrap;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  background: transparent;
  padding: 0;
  border: none;
  width: fit-content;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tab,
.category-button {
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas-soft);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.tab:hover,
.category-button:hover {
  background: var(--surface-pressed);
  color: var(--ink);
}

.tab.active,
.category-button.active {
  background: var(--primary);
  color: var(--on-primary);
}

html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .category-button.active {
  background: #ffffff;
  color: #000000;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  width: 100%;
  min-width: 0;
}

.scenario-content {
  display: none;
}

.scenario-content.active {
  display: block;
}

.code-block {
  background: var(--terminal-bg);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: var(--shadow-level-2);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--terminal-chrome);
  border-bottom: 1px solid var(--terminal-border);
}

.code-dots {
  display: flex;
  gap: 8px;
}

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

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-copy {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--terminal-fg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--terminal-fg);
}

.code-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-x: auto;
  color: var(--terminal-fg);
}

/* Quick Start：固定窗口宽度，超长命令换行而非撑宽 */
.quick-start .code-body {
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.code-body > .i18n-zh,
.code-body > .i18n-en {
  display: block;
  white-space: inherit;
  min-width: 0;
}

.code-body .comment { color: #6a737d; }
.code-body .keyword { color: #ff7b72; }
.code-body .string { color: #a5d6ff; }
.code-body .function { color: #d2a8ff; }
.code-body .command { color: var(--terminal-fg); }
.code-body .flag { color: var(--terminal-muted); }
.code-body .output { color: var(--terminal-muted); }

/* ===== Philosophy Section ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.philosophy-item {
  padding: 24px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.2s ease;
}

.philosophy-item:hover {
  box-shadow: var(--shadow-level-1);
}

.philosophy-item h3 {
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.philosophy-item h3::before {
  content: '→';
  color: var(--ink);
  font-weight: 700;
}

.philosophy-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CTA Band ===== */
.cta-band-dark,
.promo-card-on-dark {
  background: var(--primary);
  color: var(--on-dark);
  padding: 80px 0;
  text-align: center;
}

.cta-band-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--on-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.cta-band-lead {
  font-size: 16px;
  font-weight: 400;
  color: var(--on-dark-soft);
  margin-bottom: 32px;
  line-height: 1.5;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta-band-dark .btn-primary,
.cta-band-dark .button-primary {
  background: #ffffff;
  color: #000000;
}

.cta-band-dark .btn-primary:hover,
.cta-band-dark .button-primary:hover {
  background: #e2e2e2;
  color: #000000;
}

.cta-band-dark .btn-secondary-on-dark,
.cta-band-dark .button-secondary.btn-secondary-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cta-band-dark .btn-secondary-on-dark:hover,
.cta-band-dark .button-secondary.btn-secondary-on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--on-dark);
  padding: 32px 0 max(40px, env(safe-area-inset-bottom));
  border-top: none;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-dark);
  margin: 0 0 4px;
}

.footer-col a,
.link-on-dark {
  font-size: 14px;
  font-weight: 400;
  color: var(--on-dark);
  transition: opacity 0.2s ease;
}

.footer-col a:hover,
.link-on-dark:hover {
  opacity: 0.75;
  color: var(--on-dark);
}

.footer-tagline {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.footer-copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--on-dark-soft);
  letter-spacing: 0;
  text-align: left;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-studio-link {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-studio-link:hover {
  opacity: 0.75;
  color: var(--on-dark);
}

.footer .nav-logo,
.footer .nav-logo-text,
.footer .nav-logo-text .highlight {
  color: var(--on-dark);
}

.button-text-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 32px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: 26rem;
  flex: 1 1 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-terminal {
    width: 100%;
    max-width: min(600px, 100%);
    margin: 0 auto;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .pain-points {
    grid-template-columns: 1fr;
  }

  .key-points {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 12px;
    margin: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    z-index: 1001;
  }

  .nav-links a {
    padding: 14px 24px;
    font-size: 1rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: max(124px, calc(80px + env(safe-area-inset-top))) 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-product-hunt-img {
    width: 200px;
    height: auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px 12px 0 0;
    flex-wrap: nowrap;
  }

  .tab {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.8rem;
    flex-shrink: 0;
    min-height: 44px;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.25;
    padding: 0 4px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .comparison-code {
    -webkit-overflow-scrolling: touch;
  }

  .code-block {
    border-radius: 0 0 12px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-block {
    max-width: 22rem;
  }

  .footer-copyright {
    text-align: left;
  }

  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 64px 0;
  }

  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .pain-point h3 {
    font-size: 1.15rem;
  }

  .terminal-body {
    font-size: 0.8rem;
    padding: 16px;
    min-height: 240px;
  }

  .code-body {
    font-size: 0.8rem;
    padding: 16px;
  }
}

/* ===== Theme Toggle ===== */
.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-action-height);
  height: var(--nav-action-height);
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: none;
  color: var(--ink);
  background: var(--canvas-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-theme-toggle:hover {
  background: var(--surface-pressed);
  color: var(--ink);
}

.nav-theme-icon {
  display: none;
}

html[data-theme="dark"] .nav-theme-sun,
html[data-theme="light"] .nav-theme-moon {
  display: block;
}

/* ===== Articles Section ===== */
.articles {
  padding: var(--section-padding);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.article-card,
.feature-photo-card {
  display: block;
  padding: 24px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-level-1);
}

.article-num {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--canvas-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}

.article-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.5;
}

/* ===== Category tabs (DESIGN: category-button) ===== */
.category-tabs,
.scenario-tabs.category-tabs {
  background: transparent;
  border: none;
  padding: 0;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

html[data-theme="dark"] .hero-band-dark {
  background: #000000;
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] .top-nav {
  background: var(--canvas);
  border-bottom-color: var(--hairline);
}

/* ===== Fade In Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}