/* ═══════════════════════════════════════════════════════════
   DidClaw Official Website — style.css
   Dark theme, responsive, modern
═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #c0330a;
  --brand-light:  #ff6b3d;
  --brand-glow:   rgba(192, 51, 10, 0.35);
  --accent:       #ff6b3d;
  --accent2:      #22d3ee;

  --bg:           #0a0a0f;
  --bg-card:      #111118;
  --bg-card2:     #16161f;
  --bg-alt:       #0e0e16;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);

  --text:         #f0ede8;
  --text-muted:   #888896;
  --text-dim:     #555566;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-card:  0 2px 24px rgba(0,0,0,0.35);
  --shadow-glow:  0 0 60px rgba(192,51,10,0.2);

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand:   'Righteous', var(--font);

  --nav-h:        64px;
  --container:    1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--sm  { font-size: 13px; padding: 6px 14px; border-radius: 8px; }
.btn--lg  { font-size: 15px; padding: 13px 24px; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 20px var(--brand-glow);
}
.btn--primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,61,0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.nav.scrolled { background: rgba(10,10,15,0.97); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

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

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
  letter-spacing: .05em;
}
.lang-toggle:hover { border-color: var(--border-hover); color: var(--text); }
.lang-toggle.active-en .lang-zh,
.lang-toggle.active-zh .lang-en { opacity: .4; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: .2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: rgba(10,10,15,0.98);
}
.nav-mobile a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c0330a 0%, transparent 70%);
  top: -100px; left: -150px;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #1e3a5f 0%, transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255,107,61,0.12);
  border: 1px solid rgba(255,107,61,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  width: fit-content;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9a6c 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.meta-icon { width: 14px; height: 14px; }

/* App screenshot */
.hero-visual { position: relative; }
.hero-screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow), 0 0 0 1px var(--border);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-screenshot-wrap:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 80px rgba(192,51,10,.25), 0 0 0 1px var(--border-hover);
}
.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-title {
  font-family: var(--font-brand);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
}

.mockup-body { display: flex; height: 320px; }
.mockup-sidebar {
  width: 52px;
  border-right: 1px solid var(--border);
  background: rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
}
.mockup-logo-wrap { width: 28px; height: 28px; border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.mockup-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mockup-nav-item {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.mockup-nav-item--active { background: rgba(192,51,10,.3); }

.mockup-chat { flex: 1; display: flex; flex-direction: column; }
.mockup-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.mockup-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.mockup-messages { flex:1; padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.mockup-msg { display: flex; gap: 8px; align-items: flex-start; }
.mockup-msg--user { flex-direction: row-reverse; }
.mockup-avatar { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.mockup-bubble {
  max-width: 75%;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mockup-bubble--user { background: rgba(192,51,10,.3); border-radius: 12px 3px 12px 12px; }
.mockup-bubble--ai { background: rgba(255,255,255,.06); border-radius: 3px 12px 12px 12px; }
.mockup-line {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.15);
  animation: shimmer 2s infinite;
}
.mockup-line--sm { width: 60%; }
.mockup-line--md { width: 80%; }
.mockup-line--lg { width: 100%; }
@keyframes shimmer {
  0%,100%{opacity:.6} 50%{opacity:1}
}
.mockup-tool-call {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 6px;
  padding: 4px 8px;
}
.mockup-tool-icon { font-size: 10px; }
.mockup-composer { padding: 10px 14px; border-top: 1px solid var(--border); }
.mockup-input-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.mockup-send-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--brand);
  flex-shrink: 0;
}

/* Floating channel badges */
.hero-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hero-badge-float--wechat  { top: 12%; right: -20px; animation-delay: 0s; color: #07c160; }
.hero-badge-float--whatsapp{ bottom: 35%; right: -25px; animation-delay: .8s; color: #25d366; }
.hero-badge-float--slack   { top: 42%; left: -25px; animation-delay: .4s; color: #e01e5a; }
.hero-badge-float--discord { bottom: 18%; left: -20px; animation-delay: 1.2s; color: #5865f2; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Stats ── */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ff9a6c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ── Sections ── */
.section { padding: 100px 0; }
.section--alt {
  background: var(--bg-alt);
  position: relative;
}
.section--alt::before,
.section--alt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
}
.section--alt::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt));
}
.section--alt::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), var(--bg-alt));
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub { font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feat-card--wide { grid-column: span 2; }

.feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-icon--orange { background: rgba(255,107,61,.15); color: var(--accent); }
.feat-icon--blue   { background: rgba(59,130,246,.15); color: #60a5fa; }
.feat-icon--green  { background: rgba(34,197,94,.15);  color: #4ade80; }
.feat-icon--purple { background: rgba(139,92,246,.15); color: #a78bfa; }
.feat-icon--cyan   { background: rgba(34,211,238,.15); color: #22d3ee; }
.feat-icon--red    { background: rgba(239,68,68,.15);  color: #f87171; }

.feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.feat-channel-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.feat-channel-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
}

/* ── Steps ── */
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text-dim);
}
.step-icon { font-size: 2.2rem; }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  font-size: 24px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: -20px;
}

/* ── Scenarios ── */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s;
}
.scenario-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.scenario-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
}
.scenario-chat {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scenario-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
}
.scenario-msg--user {
  background: rgba(192,51,10,.15);
  border: 1px solid rgba(192,51,10,.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-muted);
}
.scenario-msg--ai {
  color: var(--text-muted);
}
.scenario-ai-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.scenario-result-line { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.scenario-desc { font-size: 13px; color: var(--text-dim); }

/* ── Channels ── */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.channel-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.channel-card--more { opacity: .5; }
.channel-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.channel-name { font-size: 14px; font-weight: 600; }
.channel-users { font-size: 11px; color: var(--text-dim); }

/* ── Tech Grid ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color .2s, transform .2s;
}
.tech-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tech-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.tech-logo--tauri   { background: #24c8db22; color: #24c8db; }
.tech-logo--vue     { background: #41b88322; color: #41b883; }
.tech-logo--ts      { background: #3178c622; color: #3178c6; font-size: 14px; }
.tech-logo--rust    { background: rgba(206,82,28,.15); }
.tech-logo--openclaw{ background: rgba(192,51,10,.15); }
.tech-name { font-size: 14px; font-weight: 700; }
.tech-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ── Download ── */
.download-section {
  background: linear-gradient(135deg, rgba(192,51,10,.12) 0%, rgba(10,10,15,0) 60%);
  border-top: 1px solid var(--border);
}
.download-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.download-logo {
  width: 88px; height: 88px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(192,51,10,.4);
}
.download-logo img { width: 100%; height: 100%; object-fit: cover; }
.download-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.download-inner p { font-size: 16px; color: var(--text-muted); }
.download-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.download-btn {
  min-width: 180px;
  flex-direction: row;
  gap: 12px;
  padding: 14px 22px;
}
.download-btn .btn-icon { width: 22px; height: 22px; }
.dl-os { font-size: 15px; font-weight: 700; text-align: left; }
.dl-ext { font-size: 11px; color: rgba(255,255,255,.5); text-align: left; }
.download-note { font-size: 13px; color: var(--text-dim); }
.download-note a { color: var(--text-muted); transition: color .15s; }
.download-note a:hover { color: var(--text); }

/* ── Footer ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { width: 36px; height: 36px; border-radius: 8px; }
.footer-name { font-family: var(--font-brand); font-size: 1.1rem; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .15s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-powered a { color: var(--text-muted); transition: color .15s; }
.footer-powered a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card--wide { grid-column: span 2; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .channels-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero-badge-float { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: -8px auto; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: repeat(4, 1fr); }
  .how-flow { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .how-arrow { padding-top: 0; }
  .how-step { max-width: 160px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-links { display: none; }
  .nav-actions .btn--sm { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card--wide { grid-column: span 1; }
  .feat-card-split { grid-template-columns: 1fr; }
  .feat-screenshot-mini { max-width: 100%; }
  .feat-card-split .feat-screenshot-mini { max-width: 100%; }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .preview-panel--active { grid-template-columns: 1fr; gap: 20px; }
  .how-flow { flex-direction: column; align-items: center; }
  .how-arrow { transform: rotate(90deg); padding: 0; }
  .how-arrow svg { width: 22px; height: 22px; }
  .how-step { max-width: 280px; }
  .everyone-grid { grid-template-columns: 1fr; }
  .everyone-card--highlight { grid-column: span 1; }
}

/* ── For Everyone ── */
.everyone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.everyone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s;
}
.everyone-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.everyone-card--highlight {
  grid-column: span 2;
  border-color: rgba(255,107,61,.25);
  background: linear-gradient(135deg, rgba(255,107,61,.06) 0%, var(--bg-card) 60%);
}
.everyone-icon { font-size: 2rem; }
.everyone-card h3 { font-size: 17px; font-weight: 700; }
.everyone-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.everyone-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.everyone-steps span:not(:nth-child(even)) {
  background: rgba(255,107,61,.1);
  border: 1px solid rgba(255,107,61,.2);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--accent);
  font-weight: 600;
}
.everyone-steps span:nth-child(even) { color: var(--text-dim); }

/* approval demo */
.approval-demo {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.approval-demo-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: #fbbf24;
}
.approval-demo-cmd {
  font-family: var(--lc-mono, monospace);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0,0,0,.3);
  border-radius: 6px;
  padding: 6px 10px;
}
.approval-demo-btns { display: flex; gap: 8px; }
.ademo-btn {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 7px;
  border: 1px solid; cursor: pointer;
  font-family: var(--font);
  transition: opacity .15s;
}
.ademo-btn:hover { opacity: .75; }
.ademo-btn--deny   { background: transparent; border-color: rgba(239,68,68,.4); color: #f87171; }
.ademo-btn--once   { background: rgba(255,107,61,.12); border-color: rgba(255,107,61,.3); color: var(--accent); }
.ademo-btn--always { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #4ade80; }

/* cron demo */
.cron-demo {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cron-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cron-badge { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cron-badge--active { background: #4ade80; box-shadow: 0 0 6px #4ade8066; }
.cron-label { flex: 1; color: var(--text-muted); }
.cron-next { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* hero meta proof points */
.hero-proof { display: flex; flex-direction: column; gap: 8px; }
.proof-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.proof-icon { color: #4ade80; font-weight: 700; font-size: 15px; }

/* mockup extras */
.mockup-conn { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.mockup-session-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.1);
}
.mockup-session-tag {
  font-size: 10px; font-weight: 600;
  color: var(--accent);
  background: rgba(255,107,61,.12);
  border-radius: 4px;
  padding: 2px 7px;
}
.mockup-session-btn {
  font-size: 10px; color: var(--text-dim);
  cursor: default;
}
.mockup-approval {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
}
.mockup-approval-icon { font-size: 14px; flex-shrink: 0; }
.mockup-approval-title { font-weight: 700; color: #fbbf24; margin-bottom: 3px; }
.mockup-approval-cmd { font-family: monospace; color: var(--text-dim); font-size: 10px; }
.mockup-approval-btns { display: flex; gap: 5px; margin-left: auto; flex-shrink: 0; }
.mockup-btn-deny  { font-size: 9px; padding: 2px 6px; border-radius: 4px; background: rgba(239,68,68,.2); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.mockup-btn-allow { font-size: 9px; padding: 2px 6px; border-radius: 4px; background: rgba(34,197,94,.2); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.mockup-preview {
  width: 160px;
  border-left: 1px solid var(--border);
  background: rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
}
.mockup-preview-header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.mockup-preview-kind {
  font-size: 9px; font-weight: 700;
  background: rgba(239,68,68,.2); color: #f87171;
  border-radius: 4px; padding: 1px 5px;
  margin-left: auto;
}
.mockup-preview-body { flex: 1; padding: 10px; }
.mockup-pdf-page { display: flex; flex-direction: column; gap: 6px; }
.mockup-img-placeholder {
  height: 60px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  border: 1px dashed rgba(255,255,255,.1);
}
.mockup-tool-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; flex-shrink: 0; animation: pulse 2s infinite; }

/* ── Preview showcase ── */
.preview-showcase { display: flex; flex-direction: column; gap: 0; }
.preview-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.ptab {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  border-radius: 0;
}
.ptab:hover { color: var(--text-muted); }
.ptab--active { color: var(--accent); border-bottom-color: var(--accent); }

.preview-stage { padding-top: 28px; }

.preview-pane-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ppm-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.ppm-title { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ppm-kind-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(239,68,68,.2); color: #f87171;
  border-radius: 5px; padding: 2px 7px;
}
.ppm-btn {
  margin-left: auto;
  font-size: 11px; color: var(--text-dim);
  cursor: pointer;
  transition: color .15s;
}
.ppm-btn:hover { color: var(--accent); }

.ppm-body { padding: 20px; min-height: 220px; }
.ppm-body--pdf { background: rgba(0,0,0,.15); }
.ppm-pdf-page { background: #1a1a22; border-radius: 6px; padding: 16px; }
.ppm-h1 { height: 14px; background: rgba(255,255,255,.25); border-radius: 3px; width: 60%; margin-bottom: 14px; }
.ppm-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); margin-bottom: 8px; }
.ppm-line--sm  { width: 55%; }
.ppm-line--md  { width: 75%; }
.ppm-line--lg  { width: 100%; }
.ppm-img { height: 80px; background: rgba(255,255,255,.06); border-radius: 4px; border: 1px dashed rgba(255,255,255,.1); margin: 10px 0; }

.ppm-body--image { display: flex; align-items: center; justify-content: center; }
.ppm-image-mock {
  display: flex; align-items: flex-end; gap: 10px;
  height: 120px;
  padding: 0 20px;
}
.ppm-chart-bar { width: 32px; border-radius: 4px 4px 0 0; }

.ppm-body--markdown { background: rgba(0,0,0,.1); }
.ppm-md-h1 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.ppm-md-h2 { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 12px 0 6px; }
.ppm-md-p  { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-bottom: 8px; }
.ppm-md-list { font-size: 12px; color: var(--text-dim); line-height: 1.8; margin-bottom: 8px; }
.ppm-md-code {
  font-family: monospace; font-size: 11px;
  background: rgba(0,0,0,.3); border-radius: 5px;
  padding: 6px 10px; color: #22d3ee;
}

.ppm-body--code { background: #0d1117; font-family: monospace; }
.ppm-code-line { font-size: 12px; line-height: 1.8; }
.ppm-code-indent { padding-left: 16px; }
.ppm-kw    { color: #ff7b72; }
.ppm-mod   { color: #79c0ff; }
.ppm-fn    { color: #d2a8ff; }
.ppm-name  { color: #ffa657; }
.ppm-comment { color: #8b949e; }

.ppm-body--office { padding: 0; }
.ppm-office-page {
  background: white; border-radius: 4px; margin: 12px;
  padding: 16px; min-height: 160px;
}
.ppm-office-title { height: 12px; background: rgba(0,0,0,.2); border-radius: 2px; width: 55%; margin-bottom: 14px; }
.ppm-table { border: 1px solid rgba(0,0,0,.15); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.ppm-tr { display: flex; border-bottom: 1px solid rgba(0,0,0,.08); }
.ppm-tr:last-child { border-bottom: none; }
.ppm-tr--head { background: rgba(0,0,0,.07); }
.ppm-td { flex: 1; height: 22px; border-right: 1px solid rgba(0,0,0,.08); }
.ppm-td:last-child { border-right: none; }
.ppm-office-note {
  text-align: center; font-size: 11px; color: var(--text-dim);
  padding: 8px; border-top: 1px solid var(--border);
}

.ppm-body--text { padding: 0; }
.ppm-text {
  font-family: monospace; font-size: 12px;
  color: var(--text-muted); line-height: 1.7;
  white-space: pre-wrap;
  padding: 16px 20px;
}

.preview-desc { padding: 8px 0; }
.preview-desc h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.preview-desc p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* channels featured */
.channel-card--featured {
  position: relative;
  border-color: rgba(255,107,61,.25);
  background: linear-gradient(135deg, rgba(255,107,61,.06) 0%, var(--bg-card) 70%);
}
.channel-badge-hot {
  position: absolute; top: -8px; right: 12px;
  font-size: 10px; font-weight: 700;
  background: var(--brand);
  color: #fff;
  border-radius: 10px; padding: 2px 8px;
}

/* footer tagline */
.footer-tagline { font-size: 12px; color: var(--text-dim); }
.footer-brand { gap: 6px; }

/* feat yellow */
.feat-icon--yellow { background: rgba(251,191,36,.15); color: #fbbf24; }

/* ── Feature card screenshot ── */
.feat-card-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.feat-screenshot-mini {
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  max-width: 280px;
}
.feat-screenshot-mini img {
  display: block;
  width: 100%;
  height: auto;
}
.feat-card-split .feat-screenshot-mini {
  max-width: 260px;
}

/* ── Preview screenshot ── */
.preview-screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.preview-screenshot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Channels section screenshot ── */
.channels-screenshot {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.channels-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── How it Works ── */
.how-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.how-step {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
}
.how-step-num {
  position: absolute;
  top: -8px;
  right: calc(50% - 40px);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255,107,61,.12);
  border: 1px solid rgba(255,107,61,.2);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.how-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.how-step:hover .how-step-icon {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(192,51,10,.25);
  border-color: rgba(255,107,61,.3);
}
.how-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.how-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 180px;
}
.how-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.how-arrow svg {
  width: 28px;
  height: 28px;
  opacity: .4;
}
.how-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.15);
  border-radius: 12px;
  padding: 10px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.how-note-icon { font-size: 16px; }

/* ── Section soft dividers ── */
.stats {
  border-top: none;
  border-bottom: none;
  position: relative;
}
.stats::before,
.stats::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: min(100%, var(--container));
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.download-section { border-top: none; }
.download-section::before {
  content: '';
  display: block;
  height: 1px;
  max-width: var(--container);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}
.footer { border-top: none; }
.footer::before {
  content: '';
  display: block;
  height: 1px;
  max-width: var(--container);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

/* ── Preview tab transition ── */
.preview-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}
.preview-panel--active {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  animation: panelFadeIn .3s ease forwards;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Channel brand glow ── */
.channel-card {
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.channel-card:nth-child(1):hover { box-shadow: 0 4px 24px rgba(7,193,96,.15); border-color: rgba(7,193,96,.3); }
.channel-card:nth-child(2):hover { box-shadow: 0 4px 24px rgba(37,211,102,.15); border-color: rgba(37,211,102,.3); }
.channel-card:nth-child(3):hover { box-shadow: 0 4px 24px rgba(74,21,75,.25); border-color: rgba(74,21,75,.4); }
.channel-card:nth-child(4):hover { box-shadow: 0 4px 24px rgba(88,101,242,.15); border-color: rgba(88,101,242,.3); }
.channel-card:nth-child(5):hover { box-shadow: 0 4px 24px rgba(6,199,85,.15); border-color: rgba(6,199,85,.3); }
.channel-card:nth-child(6):hover { box-shadow: 0 4px 24px rgba(51,112,255,.15); border-color: rgba(51,112,255,.3); }
.channel-card:nth-child(7):hover { box-shadow: 0 4px 24px rgba(227,24,55,.12); border-color: rgba(227,24,55,.25); }
.channel-card:nth-child(8):hover { box-shadow: 0 4px 24px rgba(113,117,247,.15); border-color: rgba(113,117,247,.3); }
.channel-card:nth-child(9):hover { box-shadow: 0 4px 24px rgba(26,115,232,.15); border-color: rgba(26,115,232,.3); }

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease,
              background .15s ease, border-color .15s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--bg-card2);
  border-color: var(--border-hover);
  color: var(--accent);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── Scroll animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.feat-card:nth-child(2) { transition-delay: .06s; }
.feat-card:nth-child(3) { transition-delay: .12s; }
.feat-card:nth-child(4) { transition-delay: .18s; }
.feat-card:nth-child(5) { transition-delay: .24s; }
.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: .1s; }
.step:nth-child(5) { transition-delay: .2s; }
.channel-card:nth-child(n) { transition-delay: calc(var(--i, 0) * .05s); }
.stat-item:nth-child(2) { transition-delay: .06s; }
.stat-item:nth-child(3) { transition-delay: .12s; }
.stat-item:nth-child(4) { transition-delay: .18s; }
.how-step:nth-child(1) { transition-delay: 0s; }
.how-step:nth-child(3) { transition-delay: .1s; }
.how-step:nth-child(5) { transition-delay: .2s; }
.how-step:nth-child(7) { transition-delay: .3s; }
.how-note { transition-delay: .35s; }

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .download-btns { flex-direction: column; align-items: center; }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .hero-mockup { transform: none; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .how-step-icon { width: 60px; height: 60px; font-size: 1.6rem; }
}
