/* ═══════════ Help Home page styles — scoped via .pw-home ═══════════ */

/* ───── Hero ───── */
.pw-home .hero {
  position: relative;
  padding: 56px 32px 40px;
  overflow: hidden;
}
.pw-home .hero-bg {
  position: absolute; inset: 0;
  background: none;
  pointer-events: none;
}
.pw-home .hero-dots {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 85, 255, 0.10) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(11, 14, 20, 0.04) 1px, transparent 1px);
  background-size: 32px 32px, 16px 16px;
  background-position: 0 0, 8px 8px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 0%, transparent 90%);
}
.pw-home .hero-grid {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.pw-home .hero-left { min-width: 0; }
.pw-home .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  color: #2A3142;
  margin-bottom: 20px;
}
.pw-home .hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
}
.pw-home .hero h1 {
  font-size: 48px; line-height: 1.15;
  font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.pw-home .hero h1 .blue { color: var(--primary); }
.pw-home .hero p.lede {
  font-size: 16px; color: var(--muted);
  margin: 0 0 28px;
  font-weight: 500;
  line-height: 1.7;
}
.pw-home .hero-search {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 30px -12px rgba(11,14,20,.10), 0 2px 4px rgba(11,14,20,.03);
  transition: all .2s ease;
}
.pw-home .hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-50), 0 10px 30px -12px rgba(0,85,255,.18);
}
.pw-home .hero-search .lens-big {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pw-home .hero-search .lens-big svg { width: 22px; height: 22px; }
.pw-home .hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 14px 0;
  font-family: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink);
}
.pw-home .hero-search input::placeholder { color: var(--muted-2); }
.pw-home .hero-search-btn {
  background: var(--primary); color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  transition: all .15s ease;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.pw-home .hero-search-btn:hover { background: var(--primary-600); }
.pw-home .hero-search-btn svg { width: 14px; height: 14px; }
.pw-home .hero-shortcut {
  margin-top: 10px;
  font-size: 11.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.pw-home .hero-shortcut kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; padding: 2px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}

.pw-home .tags {
  display: flex; flex-wrap: wrap;
  gap: 8px; margin-top: 22px;
  align-items: center;
}
.pw-home .tags-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.pw-home .tag {
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: #2A3142;
  transition: all .15s ease;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.pw-home .tag:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
}

/* ───── Hero mockup (right) ───── */
.pw-home .hero-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 20px 60px -20px rgba(11,14,20,.18),
    0 4px 12px rgba(11,14,20,.04);
  overflow: hidden;
  transform: rotate(0.3deg);
}
.pw-home .hm-bar {
  height: 38px;
  background: #F2EFE7;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 14px;
  gap: 10px;
}
.pw-home .hm-bar .dots { display: flex; gap: 6px; }
.pw-home .hm-bar .dots .d { width: 11px; height: 11px; border-radius: 50%; }
.pw-home .hm-bar .r { background: #FF5F57; }
.pw-home .hm-bar .y { background: #FEBC2E; }
.pw-home .hm-bar .g { background: #28C840; }
.pw-home .hm-bar .title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink); font-weight: 600;
}
.pw-home .hm-bar .run {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700;
}
.pw-home .hm-bar .run svg { width: 10px; height: 10px; }
.pw-home .hm-canvas {
  position: relative;
  width: 540px; max-width: 100%;
  height: 340px;
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(11,14,20,.10) 1px, transparent 1px);
  background-size: 14px 14px;
  overflow: hidden;
  margin: 0 auto;
}
.pw-home .hm-node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px 10px 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.10);
  min-width: 140px;
  z-index: 2;
}
.pw-home .hm-node.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50), 0 6px 16px -8px rgba(0,85,255,.3);
}
.pw-home .hm-node .n-ico {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pw-home .hm-node .n-ico svg { width: 14px; height: 14px; }
.pw-home .hm-node .n-label { line-height: 1.15; }
.pw-home .hm-node .n-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.pw-home .hm-node .n-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.pw-home .hm-node.is-trigger .n-ico { background: #FFF1E6; color: #E07B30; }
.pw-home .hm-node.is-ai .n-ico { background: var(--primary-50); color: var(--primary); }
.pw-home .hm-node.is-cond .n-ico { background: #FFF9E0; color: #B07F00; }
.pw-home .hm-node.is-out .n-ico { background: #E8F5EE; color: #16A34A; }
.pw-home .hm-node::before, .pw-home .hm-node::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--muted-2);
}
.pw-home .hm-node::before { left: -5px; }
.pw-home .hm-node::after { right: -5px; }
.pw-home .hm-node.no-in::before { display: none; }
.pw-home .hm-node.no-out::after { display: none; }
.pw-home .hm-line { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pw-home .hm-line path { fill: none; stroke-linecap: round; }
.pw-home .hm-line .dash { stroke: var(--muted-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pw-home .hm-line .live { stroke: var(--primary); stroke-width: 2; }
.pw-home .hm-pulse {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,85,255,.25);
  z-index: 3;
  animation: hmPulse 2.4s ease-in-out infinite;
}
@keyframes hmPulse {
  0%, 100% { opacity: 0; transform: scale(.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* ───── Stats strip ───── */
.pw-home .stats-strip {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pw-home .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.pw-home .stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pw-home .stat-icon svg { width: 20px; height: 20px; }
.pw-home .stat-num {
  font-size: 22px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "tnum";
}
.pw-home .stat-num .unit {
  font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 2px;
}
.pw-home .stat-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ───── Sections ───── */
.pw-home .section { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.pw-home .section + .section { margin-top: 72px; }
.pw-home .sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 24px;
}
.pw-home .sec-head h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  margin: 0; color: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
}
.pw-home .sec-head h2 .h2-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
}
.pw-home .sec-head h2 .h2-icon svg { width: 16px; height: 16px; }
.pw-home .sec-head .sub {
  font-size: 14px; color: var(--muted); margin-top: 6px;
  padding-left: 44px;
}
.pw-home .sec-head a.see-all {
  font-size: 14px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .15s ease;
}
.pw-home .sec-head a.see-all:hover { gap: 8px; }
.pw-home .sec-head a.see-all svg { width: 14px; height: 14px; }

/* ───── Quick Access ───── */
.pw-home .quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pw-home .quick-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 24px;
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  cursor: pointer;
}
.pw-home .quick-card::before {
  content: ""; position: absolute;
  inset: 0; border-radius: inherit;
  background: rgba(0,85,255,.08);
  opacity: 0; transition: opacity .2s ease;
}
.pw-home .quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px -10px rgba(0,85,255,.18), 0 4px 8px rgba(11,14,20,.04);
}
.pw-home .quick-card:hover::before { opacity: 1; }
.pw-home .quick-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  position: relative; z-index: 1;
  transition: all .2s ease;
}
.pw-home .quick-card:hover .quick-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.pw-home .quick-icon svg { width: 22px; height: 22px; }
.pw-home .quick-card h3 {
  font-size: 16px; font-weight: 700; margin: 0;
  color: var(--ink); position: relative; z-index: 1;
  letter-spacing: -0.01em;
}
.pw-home .quick-card p {
  font-size: 13px; color: var(--muted); margin: 0;
  line-height: 1.6;
  position: relative; z-index: 1;
}
.pw-home .quick-card .qarrow {
  position: absolute; right: 18px; bottom: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--muted);
  display: grid; place-items: center;
  transition: all .2s ease;
}
.pw-home .quick-card:hover .qarrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
}
.pw-home .quick-card .qarrow svg { width: 12px; height: 12px; }

/* ───── Category Grid ───── */
.pw-home .cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pw-home .cat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: all .18s ease;
  cursor: pointer;
  min-height: 132px;
  display: flex; flex-direction: column; gap: 12px;
}
.pw-home .cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0,85,255,.18);
}
.pw-home .cat-emoji {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 85, 255, 0.10);
  display: grid; place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all .18s ease;
}
.pw-home .cat-emoji svg { width: 20px; height: 20px; }
.pw-home .cat-card:hover .cat-emoji {
  background: rgba(0, 85, 255, 0.16);
  transform: scale(1.05);
}
.pw-home .cat-count-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: 0.02em;
  transition: all .18s ease;
}
.pw-home .cat-card:hover .cat-count-badge {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
}
.pw-home .cat-card h3 {
  font-size: 15px; font-weight: 700; margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pw-home .cat-card p {
  font-size: 13px; color: var(--muted); margin: 0;
  line-height: 1.55;
}
.pw-home .cat-card .cat-arrow {
  position: absolute; bottom: 18px; right: 18px;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--muted-2);
  display: grid; place-items: center;
  transition: all .18s ease;
}
.pw-home .cat-card:hover .cat-arrow {
  color: var(--primary);
  transform: translate(3px, -1px);
}
.pw-home .cat-card .cat-arrow svg { width: 14px; height: 14px; }

/* ───── Popular Articles ───── */
.pw-home .pop-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pw-home .pop-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all .15s ease;
  cursor: pointer;
}
.pw-home .pop-item:hover {
  border-color: var(--primary);
  background: rgba(0,85,255,.06);
  transform: translateY(-1px);
}
.pw-home .pop-rank {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--primary);
  font-feature-settings: "tnum";
  min-width: 24px;
  letter-spacing: -0.02em;
}
.pw-home .pop-doc {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pw-home .pop-doc svg { width: 18px; height: 18px; }
.pw-home .pop-body { flex: 1; min-width: 0; }
.pw-home .pop-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pw-home .pop-meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.pw-home .pop-meta .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2);
}
.pw-home .pop-cat {
  color: var(--primary);
  font-weight: 600;
}
.pw-home .pop-item .arr {
  color: var(--muted-2);
  transition: all .15s ease;
}
.pw-home .pop-item .arr svg { width: 16px; height: 16px; }
.pw-home .pop-item:hover .arr { color: var(--primary); transform: translateX(2px); }

@media (max-width: 1100px) {
  .pw-home .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pw-home .hero-mock { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 980px) {
  .pw-home .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-home .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-home .pop-grid { grid-template-columns: 1fr; }
  .pw-home .stats-strip { grid-template-columns: 1fr; }
  .pw-home .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .pw-home .quick-grid, .pw-home .cat-grid { grid-template-columns: 1fr; }
  .pw-home .hero { padding: 40px 20px; }
  .pw-home .hero h1 { font-size: 28px; }
  .pw-home .section { padding: 0 20px; }
}
