/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #F4F3EE;
  --bg-2: #ECEAE2;
  --bg-card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --ink-3: #8A8A8A;
  --ink-4: #C4C4C4;
  --line-soft: #E5E5E3;
  --yellow: #FFE81F;
  --yellow-soft: #FFF4A3;
  --blue: #3B5BFE;
  --blue-soft: #5B74FF;
  --orange: #FF8A3D;
  --purple: #9B70FF;
  --green: #20C997;
  --red: #FF4438;
  --pink: #FF6B9D;

  --sans: "Noto Sans SC", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Space Grotesk", "Inter", ui-monospace, monospace;

  --shadow: 4px 4px 0 0 #1A1A1A;
  --shadow-sm: 3px 3px 0 0 #1A1A1A;
  --shadow-lg: 6px 6px 0 0 #1A1A1A;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ============ TOPBAR (black bar) ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--bg-card);
  border-bottom: 2px solid var(--ink);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.01em; cursor: pointer;
  color: #fff;
}
.brand-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px; color: var(--ink);
  border: 2px solid var(--yellow);
}
.brand .lib-tag { font-weight: 400; font-size: 14px; color: #aaa; }
.nav { display: flex; gap: 4px; margin-left: 20px; }
.nav a {
  padding: 10px 18px; font-size: 15px; font-weight: 600;
  color: #e0e0e0; border-radius: 10px;
  position: relative; cursor: pointer;
  transition: all .18s;
}
.nav a:hover { color: var(--yellow); }
.nav a.active { color: var(--ink); background: var(--yellow); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%; color: #e0e0e0;
  transition: all .15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--yellow); }
.btn-vip {
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--yellow), #FFB800);
  color: var(--ink);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s;
}
.btn-vip:hover { transform: translateY(-1px); }
.btn-login {
  padding: 9px 20px; font-size: 14px; font-weight: 600;
  background: transparent; color: #fff;
  border: 1.5px solid #fff;
  border-radius: 10px;
  transition: all .15s;
}
.btn-login:hover { background: #fff; color: var(--ink); }
.btn-signup {
  padding: 9px 20px; font-size: 14px; font-weight: 700;
  background: var(--yellow); color: var(--ink);
  border-radius: 10px; border: 1.5px solid var(--yellow);
  transition: transform .15s;
}
.btn-signup:hover { transform: translateY(-1px); }

/* ============ SECTION TEMPLATES ============ */
section.block {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 40px;
  position: relative;
}
.block-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
h2.block-title {
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.block-sub { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin: 0; max-width: 720px; }
.block-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 44px;
}
.pill-float {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ============ PAGE HERO (sub-pages) ============ */
.page-hero {
  max-width: 1280px; margin: 0 auto;
  padding: 72px 40px 40px;
  text-align: center;
}
.page-hero .block-eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 20px;
}
.page-hero h1 .highlight {
  position: relative; display: inline-block; color: var(--blue);
}
.page-hero h1 .highlight::after {
  content: ""; position: absolute;
  left: -6px; right: -6px; bottom: 4px; height: 14px;
  background: var(--yellow); z-index: -1;
  border-radius: 3px; transform: skew(-3deg);
}
.page-hero .sub {
  font-size: 17px; color: var(--ink-2);
  line-height: 1.7;
  max-width: 620px; margin: 0 auto;
}

/* ============ FOOTER ============ */
footer {
  max-width: 1280px; margin: 40px auto 0;
  padding: 40px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap; gap: 16px;
}
footer .foot-brand { font-weight: 900; color: var(--ink); font-size: 16px; }
footer a { text-decoration: underline; color: var(--ink); }

/* ============ MSG FAB ============ */
.msg-fab {
  position: fixed; right: 28px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  z-index: 30; cursor: pointer;
  transition: transform .15s;
}
.msg-fab:hover { transform: translateY(-2px); }

/* ============ COMMON BUTTONS ============ */
.btn-big {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: var(--ink); color: var(--bg-card);
  border: 2.5px solid var(--ink);
  border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 800; font-size: 15px;
  transition: transform .15s;
}
.btn-big:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--ink); }
.btn-big .arrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--yellow); border-radius: 50%; color: var(--ink);
}

/* ============ FILTER CHIPS ============ */
.chip-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.chip {
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: var(--yellow-soft); }
.chip.active { background: var(--ink); color: var(--bg-card); }
.chip .c { font-family: var(--mono); font-size: 11px; opacity: 0.7; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .topbar-inner, section.block, .page-hero, footer {
    padding-left: 20px; padding-right: 20px;
  }
}
