/* ===== Homepage Modern Layout (page-home scoped) ===== */

.page-home {
  --home-radius: 20px;
  --home-radius-lg: 24px;
  --home-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --home-shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.06);
  --home-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --home-container: 1180px;
  --home-gutter: 20px;
  --home-section-gap: 28px;
  --home-panel-padding: 28px 30px 26px;
  --home-panel-padding-sm: 18px 16px 16px;
  --home-border: 1px solid rgba(148, 163, 184, 0.18);
  --home-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  --home-kicker-size: 11px;
  --home-title-size: 22px;
  --home-subtitle-size: 14px;
  --home-text-title: #0f172a;
  --home-text-body: #475569;
  --home-text-muted: #64748b;
  --home-text-faint: #94a3b8;
  font-family: var(--home-font);
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 240px, #ffffff 100%);
  min-height: 100vh;
}

.page-home .headband {
  display: none !important;
}

.page-home .container.use-motion {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
}

/* NexT theme overrides */
.page-home.use-motion .brand,
.page-home.use-motion .site-title,
.page-home.use-motion .menu-item {
  opacity: 1 !important;
  top: 0 !important;
}

.page-home a.home-topic-card,
.page-home a.home-path-card,
.page-home a.home-chapter-card,
.page-home a.home-view-btn,
.page-home a.home-cta-series-card,
.page-home a.home-cta-link,
.page-home a.home-section-link,
.page-home a.home-hero-btn {
  border-bottom: none !important;
}

.page-home a.home-hero-series-nav a,
.page-home a.home-series-pill {
  border-bottom: none !important;
}

.page-home a.home-topic-card:hover,
.page-home a.home-path-card:hover,
.page-home a.home-chapter-card:hover,
.page-home a.home-view-btn:hover,
.page-home a.home-cta-series-card:hover,
.page-home a.home-cta-link:hover,
.page-home a.home-section-link:hover {
  border-bottom: none !important;
}

/* NexT Pisces layout reset on homepage */
.page-home .header-inner {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: var(--home-container);
  margin: 0 auto !important;
  padding: 0 var(--home-gutter) !important;
  overflow: visible !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.page-home .header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100% !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-home .site-brand-container {
  background: transparent !important;
  box-shadow: none !important;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0 !important;
  flex-wrap: nowrap;
}

.page-home .main-inner {
  display: block !important;
  width: calc(100% - var(--home-gutter) * 2) !important;
  max-width: var(--home-container) !important;
  margin: 0 auto !important;
}

.page-home .content-wrap {
  width: 100% !important;
  max-width: var(--home-container) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.page-home .footer-inner {
  padding-right: 0 !important;
  padding-left: 0 !important;
  width: calc(100% - var(--home-gutter) * 2) !important;
  max-width: var(--home-container) !important;
  margin: 0 auto !important;
}

.page-home .sidebar,
.page-home .sidebar-toggle,
.page-home #sidebar-dimmer {
  display: none !important;
}

.page-home .site-subtitle {
  display: none;
}

.page-home .site-meta {
  flex: 0 1 auto;
  text-align: left;
  padding: 0 !important;
}

.page-home .brand {
  padding: 0 !important;
}

.page-home .site-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a !important;
}

.page-home .site-nav {
  position: static !important;
  display: block !important;
  width: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  background: transparent !important;
}

.page-home .site-nav .menu {
  display: flex !important;
  align-items: center;
  gap: 2px;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.page-home .site-nav .menu-item {
  display: block !important;
  margin: 0 !important;
}

.page-home .site-nav .menu-item a {
  border-bottom: none !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 600;
  text-align: center !important;
  transition: background 0.2s ease, color 0.2s ease;
  position: static !important;
}

.page-home .site-nav .menu-item a:hover,
.page-home .site-nav .menu-item-active a {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

.page-home .main-menu .menu-item-active a::after {
  display: none !important;
}

.page-home .site-nav .menu-item a .fa {
  margin-right: 4px;
  opacity: 0.75;
}

.page-home .site-nav-toggle,
.page-home .site-nav-right {
  display: none !important;
}

.page-home .main {
  padding-top: 16px;
  padding-bottom: 48px;
}

.page-home .content-wrap {
  min-height: auto;
}

.page-home .content.index.posts-expand {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
}

.page-home .home-page {
  display: flex;
  flex-direction: column;
  gap: var(--home-section-gap);
  width: 100%;
}

.page-home .home-section {
  width: 100%;
  min-width: 0;
}

/* ----- Shared panel & typography ----- */
.page-home .home-panel {
  padding: var(--home-panel-padding);
  border: var(--home-border);
  border-radius: var(--home-radius-lg);
  background: var(--home-panel-bg);
  box-shadow: var(--home-shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .home-kicker,
.page-home .home-path-kicker,
.page-home .home-section-intro-kicker,
.page-home .home-cta-kicker,
.page-home .home-chapter-kicker {
  color: var(--home-text-faint);
  font-size: var(--home-kicker-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-section-title,
.page-home .home-path-title,
.page-home .home-section-intro-title,
.page-home .home-cta-title {
  margin: 6px 0 0;
  color: var(--home-text-title);
  font-size: var(--home-title-size);
  font-weight: 800;
  line-height: 1.3;
}

.page-home .home-section-desc,
.page-home .home-path-subtitle,
.page-home .home-section-intro-subtitle,
.page-home .home-cta-copy p {
  margin: 8px 0 0;
  color: var(--home-text-muted);
  font-size: var(--home-subtitle-size);
  line-height: 1.65;
}

.page-home .home-hero,
.page-home .home-path,
.page-home .home-series-block,
.page-home .home-cta {
  width: 100%;
}

/* ----- Hero ----- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: var(--home-radius-lg);
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(30, 58, 138, 0.88)),
    url("/images/home-hero-bg.png") center / cover;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
}

.page-home .home-hero::before {
  mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
  opacity: 0.7;
}

.page-home .home-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero-glow-a {
  top: -40px;
  right: 10%;
  width: 280px;
  height: 280px;
  background: rgba(37, 99, 235, 0.45);
}

.page-home .home-hero-glow-b {
  bottom: -60px;
  left: 5%;
  width: 220px;
  height: 220px;
  background: rgba(20, 184, 166, 0.35);
}

.page-home .home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
  grid-template-areas:
    "profile aside"
    "main aside";
  gap: 28px 36px;
  padding: 36px 40px 32px;
  align-items: start;
}

.page-home .home-hero-profile {
  grid-area: profile;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.page-home .home-hero-main {
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-home .home-hero-aside {
  grid-area: aside;
  min-width: 0;
  align-self: stretch;
}

.page-home .home-hero-aside-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-home .home-hero-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.page-home .home-hero-kicker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.page-home .home-hero-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-home .home-hero-title span {
  display: block;
  margin-top: 4px;
  background: linear-gradient(90deg, #93c5fd, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-hero-desc {
  max-width: none;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.page-home .home-hero-links {
  margin-bottom: 16px;
}

.page-home .home-hero-btn {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  line-height: 1.4;
}

.page-home button.home-hero-btn {
  text-align: center;
}

.page-home .home-hero-btn-ghost kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.page-home .home-hero-tags span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
}

.page-home .home-stat-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.page-home .home-stat {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.page-home .home-stat-num {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-home .home-stat-lbl {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .home-hero-aside-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.page-home .home-hero-aside-note i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #fbbf24;
  font-size: 13px;
}

.page-home .home-hero-aside-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.65;
}

.page-home .home-hero-series-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.page-home .home-series-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-home .home-series-pill:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.09);
}

.page-home .home-series-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 14px;
}

.page-home .home-series-pill--agent .home-series-pill-icon {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

.page-home .home-series-pill--security .home-series-pill-icon {
  background: rgba(220, 38, 38, 0.22);
  color: #fca5a5;
}

.page-home .home-series-pill--ops .home-series-pill-icon {
  background: rgba(5, 150, 105, 0.22);
  color: #6ee7b7;
}

.page-home .home-series-pill-text {
  flex: 1;
  min-width: 0;
}

.page-home .home-series-pill-text strong {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.page-home .home-series-pill-text em {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.page-home .home-series-pill-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.page-home .home-series-pill:hover .home-series-pill-arrow {
  color: rgba(255, 255, 255, 0.75);
  transform: translateX(2px);
}

.page-home .home-series-pill--agent:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.page-home .home-series-pill--security:hover {
  border-color: rgba(220, 38, 38, 0.35);
}

.page-home .home-series-pill--ops:hover {
  border-color: rgba(5, 150, 105, 0.35);
}

.page-home .home-hero-quicklinks {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ----- Reading Path ----- */
.page-home .home-path-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-home .home-path-head-main {
  flex: 1 1 360px;
  min-width: 0;
}

.page-home .home-path-subtitle {
  max-width: 560px;
}

.page-home .home-path-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.page-home .home-path-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.page-home .home-path-legend-item .fa {
  font-size: 10px;
}

.page-home .legend-agent {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.page-home .legend-security {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.page-home .legend-ops {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.page-home .home-path-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.page-home .home-path-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 220px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-home .home-path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: var(--path-clr, #2563eb);
  opacity: 0.85;
}

.page-home .home-path-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.page-home .home-path-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--path-bg, linear-gradient(135deg, #eff6ff, #ecfeff));
  color: var(--path-clr, #2563eb);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.page-home .home-path-series {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--path-bg, rgba(37, 99, 235, 0.08));
  color: var(--path-clr, #2563eb);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .home-path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--path-bg, rgba(37, 99, 235, 0.08));
  color: var(--path-clr, #2563eb);
  font-size: 16px;
}

.page-home .home-path-card strong {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.page-home .home-path-card em {
  flex: 1;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.page-home .home-path-meta {
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.page-home .home-path-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--path-clr, #2563eb);
  font-size: 12px;
  font-weight: 800;
  transition: gap 0.2s ease;
}

.page-home .home-path-link .fa {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.page-home .home-path-card:hover {
  border-color: color-mix(in srgb, var(--path-clr, #2563eb) 35%, transparent);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}

.page-home .home-path-card:hover .home-path-link {
  gap: 8px;
}

.page-home .home-path-card:hover .home-path-link .fa {
  transform: translateX(2px);
}

.page-home .home-path-card-agent {
  --path-clr: #2563eb;
  --path-bg: rgba(37, 99, 235, 0.08);
}

.page-home .home-path-card-agent .home-path-step {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.page-home .home-path-card-security {
  --path-clr: #dc2626;
  --path-bg: rgba(220, 38, 38, 0.08);
}

.page-home .home-path-card-security .home-path-step {
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
}

.page-home .home-path-card-ops {
  --path-clr: #059669;
  --path-bg: rgba(5, 150, 105, 0.08);
}

.page-home .home-path-card-ops .home-path-step {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

/* ----- Content Series Block ----- */
.page-home .home-series-block {
  display: flex;
  flex-direction: column;
  gap: calc(var(--home-section-gap) - 4px);
}

.page-home .home-series-block .home-series--agent {
  padding-top: calc(var(--home-section-gap) - 6px);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.page-home .home-section-intro {
  padding: 0;
  margin-bottom: 4px;
}

.page-home .home-section-intro-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-home .home-section-intro-main {
  flex: 1 1 420px;
  min-width: 0;
}

.page-home .home-section-intro-subtitle {
  max-width: 620px;
}

.page-home .home-section-intro-stats {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.page-home .home-intro-stat {
  min-width: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.page-home .home-intro-stat strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-home .home-intro-stat span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ----- Topic Grid (3 series) ----- */
.page-home .home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-home .home-topic-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-home .home-topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.page-home .home-topic-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border-radius: 32px;
  transform: rotate(18deg);
  opacity: 0.1;
  pointer-events: none;
}

.page-home .topic-agent::before {
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.page-home .topic-agent::after {
  background: #2563eb;
}

.page-home .topic-security::before {
  background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.page-home .topic-security::after {
  background: #dc2626;
}

.page-home .topic-ops::before {
  background: linear-gradient(90deg, #059669, #14b8a6);
}

.page-home .topic-ops::after {
  background: #059669;
}

.page-home .home-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.page-home .topic-agent:hover {
  border-color: rgba(37, 99, 235, 0.34);
}

.page-home .topic-security:hover {
  border-color: rgba(220, 38, 38, 0.34);
}

.page-home .topic-ops:hover {
  border-color: rgba(5, 150, 105, 0.34);
}

.page-home .home-topic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .home-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
}

.page-home .topic-agent .home-topic-icon {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.page-home .topic-security .home-topic-icon {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.page-home .topic-ops .home-topic-icon {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.page-home .home-topic-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.page-home .topic-agent .home-topic-badge {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.page-home .topic-security .home-topic-badge {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.page-home .topic-ops .home-topic-badge {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.page-home .home-topic-label {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-home .home-topic-card strong {
  display: block;
  margin: 8px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.page-home .home-topic-card em {
  display: block;
  flex: 1;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.page-home .home-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.page-home .home-topic-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.page-home .topic-agent .home-topic-tags span {
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}

.page-home .topic-security .home-topic-tags span {
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

.page-home .topic-ops .home-topic-tags span {
  background: rgba(5, 150, 105, 0.06);
  color: #059669;
}

.page-home .home-topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.page-home .home-topic-count {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.page-home .home-topic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.page-home .home-topic-link .fa {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.page-home .topic-security .home-topic-link {
  color: #dc2626;
}

.page-home .topic-ops .home-topic-link {
  color: #059669;
}

.page-home .home-topic-card:hover .home-topic-link {
  gap: 10px;
}

.page-home .home-topic-card:hover .home-topic-link .fa {
  transform: translateX(3px);
}

/* ----- Series Panels ----- */
.page-home .home-series-block .home-series {
  --series-clr: #2563eb;
  padding: 0;
}

.page-home .home-series-panel {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.page-home .home-series-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--series-clr), color-mix(in srgb, var(--series-clr) 40%, transparent));
  opacity: 0.9;
}

.page-home .home-series-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.page-home .home-series-panel-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.page-home .home-series-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--series-bg);
  color: var(--series-clr);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--series-clr) 12%, transparent);
}

.page-home .home-series-panel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .home-series-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.page-home .home-series-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.page-home .home-series-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--series-bg);
  color: var(--series-clr);
  font-size: 11px;
  font-weight: 800;
}

.page-home .home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.page-home .home-section-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.page-home .home-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--series-bg);
  color: var(--series-clr);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .home-section-badge .fa-star {
  font-size: 9px;
}

.page-home .home-series-panel-info strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.page-home .home-section-label strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.page-home .home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--series-clr);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.page-home .home-section-link .fa {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.page-home .home-section-link:hover {
  gap: 10px;
}

.page-home .home-section-link:hover .fa {
  transform: translateX(2px);
}

.page-home .home-series-desc {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.page-home .home-series-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .home-series-tracks span {
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--series-clr) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--series-clr) 8%, transparent);
  color: var(--series-clr);
  font-size: 11px;
  font-weight: 700;
}

.page-home .home-series-tracks span.track-biz {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}

.page-home .home-series-tracks span.track-arch {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

.page-home .home-series-tracks span.track-mod {
  border-color: rgba(5, 150, 105, 0.2);
  background: rgba(5, 150, 105, 0.06);
  color: #059669;
}

.page-home .home-series-tracks span.track-know {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.page-home .home-series-tracks span.track-ref {
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.page-home .home-chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.page-home .home-chapter-kicker {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .home-chapter-hint {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
}

/* Claude Code: flat 6-col grid */
.page-home .home-chapter-grid--flat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Security / Ops: grouped by track */
.page-home .home-chapter-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-chapter-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.6);
}

.page-home .home-chapter-group.track-biz {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.03);
}

.page-home .home-chapter-group.track-arch {
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(220, 38, 38, 0.03);
}

.page-home .home-chapter-group.track-know {
  border-color: rgba(245, 158, 11, 0.16);
  background: rgba(245, 158, 11, 0.04);
}

.page-home .home-chapter-group.track-mod {
  border-color: rgba(5, 150, 105, 0.14);
  background: rgba(5, 150, 105, 0.03);
}

.page-home .home-chapter-group.track-ref {
  border-color: rgba(100, 116, 139, 0.16);
  background: rgba(100, 116, 139, 0.04);
}

.page-home .home-chapter-group-label {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-home .home-chapter-group.track-biz .home-chapter-group-label {
  color: #2563eb;
}

.page-home .home-chapter-group.track-arch .home-chapter-group-label {
  color: #dc2626;
}

.page-home .home-chapter-group.track-know .home-chapter-group-label {
  color: #d97706;
}

.page-home .home-chapter-group.track-mod .home-chapter-group-label {
  color: #059669;
}

.page-home .home-chapter-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.page-home .home-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-chapter-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  padding: 14px 36px 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 3px solid var(--series-clr);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-home .home-chapter-stack .home-chapter-card {
  min-height: 96px;
  flex: 1;
}

.page-home .home-chapter-card:hover {
  border-color: color-mix(in srgb, var(--series-clr) 35%, transparent);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.page-home .home-chapter-num {
  color: var(--series-clr);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .home-chapter-title {
  flex: 1;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.page-home .home-chapter-meta {
  color: #94a3b8;
  font-size: 10px;
}

.page-home .home-chapter-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--series-clr);
  font-size: 11px;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-home .home-chapter-card:hover .home-chapter-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.page-home .home-chapter-card:hover .home-chapter-title {
  color: var(--series-clr);
}

.page-home .home-view-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 4px;
}

.page-home .home-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--btn-clr, var(--series-clr)) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--btn-clr, var(--series-clr)) 8%, transparent);
  color: var(--btn-clr, var(--series-clr));
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, gap 0.2s ease;
}

.page-home .home-view-btn .fa {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.page-home .home-view-btn:hover {
  background: color-mix(in srgb, var(--btn-clr, var(--series-clr)) 14%, transparent);
  gap: 12px;
  transform: translateY(-1px);
}

.page-home .home-view-btn:hover .fa {
  transform: translateX(2px);
}

.page-home .home-series-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-section-gap);
  width: 100%;
}

.page-home .home-series-duo .home-series {
  width: 100%;
}

/* ----- Bottom CTA ----- */
.page-home .home-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  background:
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f766e 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.page-home .home-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.28), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.22), transparent 38%);
  pointer-events: none;
}

.page-home .home-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 36px 30px;
}

.page-home .home-cta-copy p {
  max-width: 640px;
}

.page-home .home-cta .home-cta-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.page-home .home-cta .home-cta-title {
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
}

.page-home .home-cta .home-cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-cta-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-cta-stat {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.page-home .home-cta-stat strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-home .home-cta-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .home-cta-series {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-cta-series-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-home .home-cta-series-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.page-home .home-cta-series-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
}

.page-home .cta-agent .home-cta-series-icon {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.page-home .cta-security .home-cta-series-icon {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.page-home .cta-ops .home-cta-series-icon {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.page-home .home-cta-series-text {
  flex: 1;
  min-width: 0;
}

.page-home .home-cta-series-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.page-home .home-cta-series-text em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.page-home .home-cta-series-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.page-home .home-cta-series-card:hover .home-cta-series-arrow {
  color: #fff;
  transform: translateX(3px);
}

.page-home .home-cta-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .home-cta-link:hover {
  color: #fff;
}

.page-home .home-cta-link .fa {
  font-size: 11px;
  opacity: 0.85;
}

/* ----- Homepage Footer ----- */
.page-home .back-to-top {
  right: max(16px, calc((100vw - min(100vw, var(--home-container))) / 2 + var(--home-gutter)));
}

.page-home .home-footer {
  margin-top: var(--home-section-gap);
}

.page-home .home-footer-inner {
  padding: 20px 24px !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  text-align: left !important;
}

.page-home .home-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.page-home .home-footer-site {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.page-home .home-footer-tagline {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.page-home .home-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.page-home .home-footer-meta-item .fa {
  color: #94a3b8;
  font-size: 11px;
}

.page-home .home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.page-home .home-footer-copy {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.page-home .home-footer-copy .with-love,
.page-home .home-footer-copy .heart {
  display: none;
}

.page-home .home-footer-visitors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.page-home .home-footer-visitor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .home-footer-visitor .fa {
  font-size: 11px;
  opacity: 0.8;
}

.page-home .footer {
  margin-top: 12px;
}

/* Reveal: keep content visible; animate only when supported */
@media (prefers-reduced-motion: no-preference) {
  .page-home .home-reveal {
    animation: homeFadeIn 0.6s ease both;
  }

  .page-home .home-path { animation-delay: 0.05s; }
  .page-home .home-series-block { animation-delay: 0.1s; }
  .page-home .home-cta { animation-delay: 0.18s; }
}

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

/* ----- Wide screen (1280px+) ----- */
@media (min-width: 1280px) {
  .page-home {
    --home-container: 1240px;
    --home-gutter: 24px;
    --home-section-gap: 32px;
    --home-panel-padding: 32px 36px 28px;
    --home-title-size: 24px;
    --home-subtitle-size: 15px;
  }

  .page-home .home-path-grid {
    gap: 18px;
    margin-top: 24px;
  }

  .page-home .home-path-card {
    min-height: 228px;
    padding: 20px 20px 18px;
  }

  .page-home .home-series-panel {
    padding: 28px 32px 24px;
  }
}

@media (min-width: 1440px) {
  .page-home {
    --home-container: 1360px;
    --home-gutter: 28px;
    --home-section-gap: 28px;
  }

  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 36%);
    gap: 36px 44px;
    padding: 44px 48px 40px;
  }

  .page-home .home-hero-aside-panel {
    padding: 20px;
  }

  .page-home .home-hero-desc {
    font-size: 16px;
  }

  .page-home .home-hero-glow-a {
    width: 360px;
    height: 360px;
  }

  .page-home .home-path-grid {
    gap: 18px;
  }

  .page-home .home-path-grid::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(220, 38, 38, 0.12), rgba(5, 150, 105, 0.12));
    pointer-events: none;
    z-index: 0;
  }

  .page-home .home-path-card {
    z-index: 1;
    min-height: 232px;
    padding: 20px 20px 18px;
  }

  .page-home .home-topic-grid {
    gap: 20px;
  }

  .page-home .home-topic-card {
    min-height: 220px;
    padding: 24px 24px 20px;
  }

  .page-home .home-series--agent .home-chapter-grid--flat {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .home-series--agent .home-chapter-grid--flat .home-chapter-card {
    min-height: 112px;
  }

  .page-home .home-series-panel-info strong {
    font-size: 24px;
  }

  .page-home .home-cta-inner {
    padding: 40px 48px;
  }

  .page-home .home-cta-series {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-cta-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-cta-title {
    font-size: 28px;
  }

  .page-home .home-cta-copy p {
    max-width: 640px;
    font-size: 15px;
  }
}

@media (min-width: 1600px) {
  .page-home {
    --home-container: 1520px;
    --home-gutter: 32px;
    --home-section-gap: 32px;
  }

  .page-home .home-path-grid {
    gap: 20px;
  }

  .page-home .home-path-card {
    min-height: 240px;
  }

  .page-home .home-path-card strong {
    font-size: 17px;
  }

  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 32%);
    gap: 40px 52px;
    padding: 48px 56px 44px;
  }

  .page-home .home-hero-aside-panel {
    padding: 22px;
    gap: 16px;
  }

  .page-home .home-hero-desc {
    font-size: 16px;
    line-height: 1.85;
  }

  .page-home .home-stat-num {
    font-size: 22px;
  }

  .page-home .home-series-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--home-section-gap);
    align-items: stretch;
  }

  .page-home .home-series-duo .home-series {
    min-width: 0;
  }

  .page-home .home-series-duo .home-series-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .page-home .home-series-duo .home-chapter-groups {
    flex: 1;
    align-items: stretch;
  }

  .page-home .home-series-duo .home-chapter-group {
    height: 100%;
  }

  .page-home .home-series-duo .home-chapter-stack {
    flex: 1;
  }

  .page-home .home-series-duo .home-view-all {
    margin-top: auto;
  }
}

@media (min-width: 1920px) {
  .page-home {
    --home-container: 1680px;
    --home-gutter: 40px;
    --home-section-gap: 36px;
  }

  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 30%);
    gap: 44px 56px;
    padding: 52px 64px 48px;
  }

  .page-home .home-hero-title {
    font-size: clamp(36px, 2.6vw, 52px);
  }

  .page-home .home-path-card strong {
    font-size: 17px;
  }

  .page-home .home-section-intro-title {
    font-size: 26px;
  }
}

@media (min-width: 2560px) {
  .page-home {
    --home-container: 1840px;
    --home-gutter: 48px;
  }
}

/* ----- Responsive ----- */
@media (min-width: 992px) {
  .page-home .home-hero-aside-note {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .page-home .home-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-path-grid::before {
    display: none;
  }

  .page-home .home-path-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .home-series--agent .home-chapter-grid--flat {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-chapter-groups {
    grid-template-columns: 1fr;
  }

  .page-home .home-cta-series {
    grid-template-columns: 1fr;
  }

  .page-home .home-cta-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-home .home-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .page-home {
    --home-panel-padding: var(--home-panel-padding-sm);
    --home-section-gap: 22px;
  }

  .page-home .header-inner {
    padding: 0 12px !important;
  }

  .page-home .site-brand-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .page-home .site-meta {
    text-align: center;
    width: 100%;
  }

  .page-home .site-nav {
    width: 100% !important;
  }

  .page-home .site-nav .menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-home .home-hero {
    padding: 0 !important;
  }

  .page-home .home-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "main"
      "aside";
    gap: 22px;
    padding: 28px 22px 24px;
  }

  .page-home .home-hero-aside-panel {
    padding: 16px;
  }

  .page-home .home-stat-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-hero-aside-note {
    display: none;
  }

  .page-home .home-hero-series-nav {
    margin-top: 0;
  }

  .page-home .home-path-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-home .home-path-subtitle {
    font-size: 13px;
  }

  .page-home .home-path-legend {
    width: 100%;
  }

  .page-home .home-path-card {
    min-height: 0;
    padding: 16px;
  }

  .page-home .home-path-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 14px;
  }

  .page-home .home-path-card strong {
    padding-right: 44px;
  }

  .page-home .home-section-intro-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .home-section-intro-stats {
    width: 100%;
    justify-content: stretch;
  }

  .page-home .home-intro-stat {
    flex: 1;
    min-width: 0;
  }

  .page-home .home-section-intro-subtitle {
    font-size: 13px;
  }

  .page-home .home-topic-card {
    min-height: 0;
  }

  .page-home .home-series-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .home-series-panel-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .page-home .home-series--agent .home-chapter-grid--flat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-chapter-groups {
    grid-template-columns: 1fr;
  }

  .page-home .home-chapter-group {
    padding: 10px;
  }

  .page-home .home-chapter-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-home .home-chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-cta-inner {
    padding: 28px 24px;
  }

  .page-home .home-cta-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-cta-series {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-home {
    --home-gutter: 16px;
    --home-section-gap: 18px;
    --home-panel-padding: 16px 14px 14px;
    --home-title-size: 20px;
    --home-subtitle-size: 13px;
  }

  .page-home .main-inner {
    width: calc(100% - 20px);
  }

  .page-home .home-hero-grid {
    padding: 22px 16px 20px;
  }

  .page-home .home-stat-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-hero-links {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .home-hero-btn {
    justify-content: center;
  }

  .page-home .home-series-panel {
    padding: 18px 14px 16px;
  }

  .page-home .home-section-intro-stats {
    flex-wrap: wrap;
  }

  .page-home .home-intro-stat {
    flex: 1 1 calc(33% - 8px);
  }

  .page-home .home-series-tracks span {
    font-size: 10px;
    padding: 4px 9px;
  }

  .page-home .home-series-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .page-home .home-series--agent .home-chapter-grid--flat,
  .page-home .home-chapter-stack {
    grid-template-columns: 1fr;
  }

  .page-home .home-view-all {
    justify-content: stretch;
  }

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

  .page-home .home-chapter-grid {
    grid-template-columns: 1fr;
  }

  .page-home .home-cta-inner {
    padding: 24px 18px 22px;
    gap: 18px;
  }

  .page-home .home-cta-title {
    font-size: 20px;
  }

  .page-home .home-cta-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-cta-extra {
    flex-direction: column;
    gap: 10px;
  }

  .page-home .home-footer-inner {
    padding: 16px 18px !important;
  }

  .page-home .home-footer-top,
  .page-home .home-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .home-topic-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .site-nav .menu-item a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-reveal {
    animation: none !important;
  }

  .page-home .home-hero-kicker-dot {
    animation: none;
  }
}
