:root {
  --bg: #eff1f3;
  --card: #fff;
  --text: #6f6f70;
  --heading: #212529;
  --dark: #09080c;
  --primary: #863efa;
  --primary-soft: #efe5fe;
  --danger: #d6293e;
  --success: #0cbc87;
  --warning: #f7c32e;
  --info: #17a2b8;
  --border: #e6e8eb;
  --light: #f4f5f7;
  --radius: .4rem;
  --radius-lg: .6rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.hp {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hp a { color: inherit; text-decoration: none; }
.hp h1, .hp h2, .hp h3, .hp h4, .hp-logo, .hp-btn, .hp-post-side strong, .hp-statrow strong {
  font-family: "Geist", "Inter", -apple-system, sans-serif; color: var(--heading);
}
.hp code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; color: var(--primary); background: var(--primary-soft); padding: 1px 5px; border-radius: 4px; }
.ic { flex-shrink: 0; display: block; }
.hp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--radius); font-weight: 500; font-size: 14px; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.hp-btn-sm { font-size: 13px; padding: 6px 12px; }
.hp-btn-primary { background: var(--primary); color: #fff !important; }
.hp-btn-primary:hover { background: #7231d9; }
.hp-btn-dark { background: var(--dark); color: #fff !important; }
.hp-btn-dark:hover { background: #2a2930; }
.hp-btn-soft { background: var(--primary-soft); color: var(--primary) !important; }
.hp-btn-soft:hover { background: var(--primary); color: #fff !important; }

/* Top bar */
.hp-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.hp-top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.hp-logo { display: inline-flex; align-items: center; font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--dark); }
.hp-logo-mark { display: block; width: 32px; height: 32px; margin-right: 10px; }
.hp-logo span { color: var(--primary); }
.hp-search { display: flex; align-items: center; background: var(--light); border-radius: var(--radius); height: 36px; width: 260px; padding-left: 12px; }
.hp-search-pre { font-size: 13px; color: #9a9ba0; font-family: ui-monospace, Menlo, monospace; }
.hp-search input, .hp-hero-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--heading); }
.hp-search input { font-size: 13px; padding: 0 4px; }
.hp-search button { border: 0; background: none; color: var(--heading); height: 100%; padding: 0 12px; cursor: pointer; }
.hp-menu { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--heading); }
.hp-menu a:hover { color: var(--primary); }

/* Hero */
.hp-hero { padding: 40px 0 36px; }
.hp-hero-in { display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: center; gap: 24px; }
.hp-hero-copy { text-align: center; }
.hp-hero h1 { font-size: 38px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin: 0 0 22px; }
.hp-hero-search { display: flex; align-items: center; background: #fff; border-radius: var(--radius); height: 50px; padding-left: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.hp-hero-search .hp-search-pre { font-size: 14px; }
.hp-hero-search input { font-size: 15px; padding: 0 6px; }
.hp-hero-search input::placeholder { color: #a8a9ae; }
.hp-hero-search button { height: 100%; width: 54px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--dark); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hp-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hp-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 50rem; padding: 5px 6px 5px 14px; font-size: 14px; color: var(--heading); }
.hp-pill b { background: var(--dark); color: #fff; font-weight: 500; font-size: 12px; border-radius: 50rem; padding: 2px 10px; }
.hp-art { width: 100%; max-width: 220px; justify-self: center; }

/* Layout */
.hp-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-bottom: 64px; }
.hp-side { position: sticky; top: 84px; }
.hp-nav { display: flex; flex-direction: column; gap: 4px; }
.hp-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius); font-size: 14px; color: var(--heading); }
.hp-nav-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius); background: #fff; }
.hp-nav a:hover { color: var(--primary); }
.hp-nav a.active { background: #fff; }
.hp-nav a.active .hp-nav-ic { background: var(--dark); color: #fff; }

/* Cards */
.hp-card { background: var(--card); border-radius: var(--radius-lg); }
.hp-feed { display: flex; flex-direction: column; gap: 20px; }
.hp-post { display: flex; gap: 20px; padding: 24px; }
.hp-post-side { width: 56px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hp-post-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--light); color: var(--heading); margin-bottom: 8px; }
.hp-post-side strong { font-size: 16px; font-weight: 600; line-height: 1.2; }
.hp-post-side small { font-size: 12px; color: #9a9ba0; }
.hp-post-main { flex: 1; min-width: 0; }
.hp-post h2 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 6px 0 2px; }
.hp-post h2 a:hover { color: var(--primary); }
.hp-meta { font-size: 13px; color: #9a9ba0; }
.hp-post p { margin: 10px 0 14px; font-size: 14.5px; }
.hp-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.hp-badges { display: flex; gap: 6px; }
.hp-badge { font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: var(--radius); }
.hp-badge-primary { background: var(--primary-soft); color: var(--primary); }
.hp-badge-danger { background: #fbe4e7; color: var(--danger); }
.hp-badge-info { background: #dcf1f5; color: #11808f; }
.hp-badge-success { background: #d9f5ec; color: #08916a; }
.hp-badge-warning { background: #fdf3d5; color: #a57c00; }
.hp-badge-dark { background: var(--dark); color: #fff; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chip { font-size: 12px; background: var(--light); color: #55565a; padding: 3px 9px; border-radius: var(--radius); }

/* API card */
.hp-api { padding: 24px; }
.hp-api-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hp-api h2 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.hp-code { margin: 16px 0; background: var(--dark); color: #d6d6db; border-radius: var(--radius); padding: 18px 20px; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.hp-code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.hp-code .t-k { color: #c9a8fd; }
.hp-code .t-s { color: #8fe3c4; }

/* Right column */
.hp-right { display: flex; flex-direction: column; gap: 20px; }
.hp-widget { padding: 20px; }
.hp-widget h3 { font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.hp-list { list-style: none; margin: 0; padding: 0; }
.hp-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.hp-list li:first-child { padding-top: 0; }
.hp-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hp-list code { display: inline-block; font-size: 12.5px; word-break: break-all; }
.hp-list span { display: flex; align-items: center; gap: 5px; font-size: 13px; margin-top: 4px; }
.hp-statrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hp-statrow strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.hp-statrow small { font-size: 13px; }
.hp-stat-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.hp-tone-primary { background: var(--primary-soft); color: var(--primary); }
.hp-tone-success { background: #d9f5ec; color: #08916a; }
.hp-tone-warning { background: #fdf3d5; color: #a57c00; }

/* Footer */
.hp-foot { background: var(--dark); color: #a1a1a8; padding: 48px 0 40px; font-size: 14px; }
.hp-foot-top { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding-bottom: 32px; }
.hp-foot-top p { margin: 0; max-width: 520px; }
.hp-logo-light { color: #fff; font-size: 26px; }
.hp-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hp-foot-cols h4 { color: #fff; font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.hp-foot-cols a { display: block; padding: 4px 0; }
.hp-foot-cols a:hover { color: #fff; }
.hp-foot-copy { align-self: end; }

/* Responsive */
@media (max-width: 1100px) {
  .hp-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .hp-side { display: none; }
  .hp-search { display: none; }
}
@media (max-width: 860px) {
  .hp-hero-in { grid-template-columns: 1fr; }
  .hp-art { display: none; }
  .hp-layout { grid-template-columns: minmax(0, 1fr); }
  .hp-menu { display: none; }
  .hp-top-in { justify-content: space-between; }
  .hp-foot-top { grid-template-columns: 1fr; gap: 16px; }
  .hp-foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hp-wrap { padding: 0 16px; }
  .hp-hero { padding: 28px 0; }
  .hp-hero h1 { font-size: 28px; }
  .hp-post { padding: 18px; gap: 14px; }
  .hp-post-side { width: 44px; }
  .hp-post-ic { width: 38px; height: 38px; }
  .hp-api { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
