.home { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--text); }
.home__wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

.home-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 5vw, 72px); text-align: center; }
.home-hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; z-index: 0; }
.home-hero__blob--1 { width: 460px; height: 460px; top: -160px; left: -120px; background: var(--accent-a35); }
.home-hero__blob--2 { width: 420px; height: 420px; top: -120px; right: -120px; background: var(--accent-alt-a20, var(--accent-a20)); }
.home-hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.home-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 7px 9px 7px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.home-badge__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', ui-monospace, monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  padding: 3px 9px; border-radius: 99px; background: var(--accent-a10); border: 1px solid var(--accent-a20);
}
.home-hero h1 {
  font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; line-height: 1.04;
  letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance;
}
.home-hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-hero__sub { font-size: clamp(16px, 2vw, 19px); line-height: 1.65; color: var(--muted); max-width: 600px; margin: 0 auto 34px; }

.home-search { display: flex; max-width: 560px; margin: 0 auto 18px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.home-search__field { flex: 1; display: flex; align-items: center; gap: 11px; background: var(--surface); padding: 0 18px; }
.home-search__field svg { color: var(--subtle); flex-shrink: 0; }
.home-search__field input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; font-family: inherit; padding: 17px 0; }
.home-search__field input::placeholder { color: var(--subtle); }
.home-search__btn { padding: 0 26px; border: none; cursor: pointer; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; background: linear-gradient(135deg, var(--accent), var(--accent-alt)); transition: filter .15s; }
.home-search__btn:hover { filter: brightness(1.08); }

.home-hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 5vw, 56px); margin-top: 44px; }
.home-stat__n { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.home-stat__l { font-size: 12.5px; color: var(--subtle); margin-top: 3px; font-weight: 500; }

.home-sec { padding: clamp(40px, 5vw, 68px) 0; }
.home-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.home-sec__eyebrow { font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.home-sec__title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.025em; margin: 6px 0 0; }
.home-sec__sub { font-size: 14.5px; color: var(--muted); margin-top: 8px; max-width: 56ch; line-height: 1.6; }
.home-sec__link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.home-sec__link:hover { gap: 10px; }

.home-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.home-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.home-cat { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .18s, transform .18s, box-shadow .18s; }
.home-cat:hover { border-color: var(--accent-a35); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.home-cat__ic { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent-a10); color: var(--accent); border: 1px solid var(--accent-a20); }
.home-cat__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-cat__name { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.home-cat__count { font-size: 12px; color: var(--subtle); font-family: 'DM Mono', ui-monospace, monospace; }
.home-cat__arrow { color: var(--subtle); flex-shrink: 0; opacity: .5; transition: transform .18s, opacity .18s, color .18s; }
.home-cat:hover .home-cat__arrow { transform: translateX(3px); opacity: 1; color: var(--accent); }

.home-cta { margin: clamp(20px, 4vw, 40px) 0; padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 56px); border-radius: 24px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--accent-alt)); color: #fff; }
.home-cta h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; }
.home-cta p { font-size: 15.5px; line-height: 1.6; opacity: .92; max-width: 52ch; margin: 0 auto 26px; }
.home-cta__btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 99px; font-size: 15px; font-weight: 700; background: #fff; color: var(--accent); box-shadow: 0 8px 30px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.home-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(0,0,0,.24); }

@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(16px); animation: homeUp .6s cubic-bezier(.2,.8,.2,1) forwards; }
  .fade-up-1 { animation-delay: .06s; } .fade-up-2 { animation-delay: .12s; }
  .fade-up-3 { animation-delay: .18s; } .fade-up-4 { animation-delay: .24s; }
  @keyframes homeUp { to { opacity: 1; transform: none; } }
}

.home-blog-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.home-blog-grid--sm { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.home-post {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.home-post:hover {
  border-color: var(--accent-a35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.home-post__meta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.home-post__cat {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px;
  background: var(--accent-a10); color: var(--accent);
}
.home-post__cat[data-cat="ai"]           { background: var(--violet-a10); color: var(--violet); }
.home-post__cat[data-cat="web"],
.home-post__cat[data-cat="dev"]          { background: var(--green-bg);  color: var(--green); }
.home-post__cat[data-cat="content"],
.home-post__cat[data-cat="optimization"] { background: oklch(0.95 0.09 60 / 0.18); color: var(--gold); }
html[data-theme="dark"] .home-post__cat[data-cat="content"],
html[data-theme="dark"] .home-post__cat[data-cat="optimization"] {
  background: oklch(0.28 0.07 60 / 0.30);
}
.home-post__time {
  font-size: 11px; color: var(--subtle);
  font-family: 'DM Mono', ui-monospace, monospace;
  white-space: nowrap; flex-shrink: 0;
}
.home-post__title {
  font-size: 15px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.4; color: var(--text);
}
.home-post:hover .home-post__title { color: var(--accent); }
.home-post__excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.home-post__date { font-size: 11.5px; color: var(--subtle); margin-top: 2px; }

.home-new-list {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.home-new-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.home-new-item:hover { border-color: var(--accent-a35); transform: translateX(3px); }
.home-new-item__ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent);
}
.home-new-item[data-cat="ai"] .home-new-item__ic { color: var(--violet); }
.home-new-item__body { flex: 1; min-width: 0; }
.home-new-item__name {
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 7px;
}
.home-new-item__desc {
  font-size: 12px; color: var(--subtle); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-new-item__cat {
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 99px;
  font-family: 'DM Mono', ui-monospace, monospace;
  white-space: nowrap; flex-shrink: 0;
  background: var(--accent-a10); color: var(--accent);
}
.home-new-item__cat[data-cat="ai"]           { background: var(--violet-a10); color: var(--violet); }
.home-new-item__cat[data-cat="web"],
.home-new-item__cat[data-cat="dev"]          { background: var(--green-bg);  color: var(--green); }
.home-new-item__arr {
  color: var(--subtle); flex-shrink: 0;
  opacity: .35; transition: opacity .15s, transform .15s;
}
.home-new-item:hover .home-new-item__arr { opacity: 1; transform: translateX(2px); }

.home-tool-badge {
  font-size: 8.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 99px;
  font-family: 'DM Mono', ui-monospace, monospace;
  background: var(--accent-a10); color: var(--accent);
  border: 1px solid var(--accent-a20); flex-shrink: 0;
}