:root {
  --ink: #111111;
  --muted: #5b6470;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f7f7f5;
  --green: #e8f6e8;
  --amber: #f8efd8;
  --teal: #e4f3f4;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #3B82F6;
  border-bottom: 0;
}

.notice {
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.88);
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.notice-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-weight: 500;
}
@media (max-width: 720px) {
  .notice-hide { display: none; }
}

.topbar {
  background: #3B82F6;
}
.topbar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
@media (min-width: 980px) {
  .topbar-row {
    grid-template-columns: auto 1fr auto;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15,23,42,0.18);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.brand-name {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #fff;
}
.brand-name span { color: #fff; }
.brand-sub {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.nav-rail {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  box-shadow: none;
}
.nav-rail a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  transition: background .15s ease, color .15s ease;
}
.nav-rail a:hover { color: #fff; background: rgba(255,255,255,0.16); }
.nav-rail a.is-on {
  background: #fff;
  color: #1d4ed8;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(15,23,42,0.16);
}
.top-cta:hover { background: #eff6ff; color: #1e40af; }

.menu-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

.cat-strip {
  border-top: 1px solid rgba(255,255,255,0.14);
  background: #2563eb;
}
.cat-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 12px;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: transparent;
}
.cat-row a:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
}
.cat-row a:last-child {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

@media (min-width: 980px) {
  .nav-rail { display: inline-flex; }
  .menu-btn { display: none; }
}

@media (max-width: 979px) {
  body.nav-open .nav-rail {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 118px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 8px;
    z-index: 60;
    background: #fff;
    border-color: var(--line);
  }
  body.nav-open .nav-rail a {
    border-radius: 12px;
    padding: 12px 14px;
    color: #334155;
  }
  body.nav-open .nav-rail a.is-on {
    background: #3B82F6;
    color: #fff;
  }
}

.discord-tab,
.pwa-install { display: none !important; }

.hero {
  padding: 40px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-search {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0 0 28px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
  color: #94a3b8;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search:hover {
  border-color: #cbd5e1;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}
.hero-search-icon { flex: 0 0 auto; color: #64748b; }
.hero-search span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1rem;
}
.hero-search kbd {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
}

/* Search modal — light theme */
body.search-open { overflow: hidden; }
.search-modal[hidden] { display: none !important; }
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: 10vh 16px 24px;
}
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}
.search-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  padding: 18px 18px 22px;
  animation: searchIn .16s ease-out;
}
@keyframes searchIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.search-modal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  color: #64748b;
}
.search-modal-input:focus-within {
  border-color: #94a3b8;
  background: #fff;
}
.search-modal-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 4px 0;
}
.search-modal-input input:focus { outline: none; }
.search-modal-input input::placeholder { color: #94a3b8; }
.search-esc {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  font-family: inherit;
}
.search-esc:hover { color: var(--ink); border-color: #94a3b8; }
.search-modal-section { margin-top: 22px; }
.search-modal-label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.search-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.search-popular a {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
}
.search-popular a:hover { color: #2563eb; }
.search-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .search-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.search-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}
.search-cats a:hover {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}
.sc-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
}
.sc-ico svg { width: 22px; height: 22px; }
.hero-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.hero-lead {
  margin: 18px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { background: #fff; border-color: var(--ink); color: var(--ink); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}
.chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.chip-a { background: var(--green); }
.chip-a i { background: #4caf50; }
.chip-b { background: var(--amber); }
.chip-b i { background: #d4a017; }
.chip-c { background: var(--teal); }
.chip-c i { background: #2aa8a8; }

.hero-cards { display: grid; gap: 14px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(17,17,17,0.04);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.panel h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.panel ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.panel li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.section { padding: 64px 0; }
.section-h {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.section p.sub {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 40rem;
}
.linkish {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.linkish:hover { color: var(--ink); }

.explain {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}
.explain h2 { margin-bottom: 14px; }
.explain p { color: var(--muted); margin: 0; }
.explain strong { color: var(--ink); }

.sheet-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) {
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sheet-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.sheet-card:hover {
  border-color: #111;
  transform: translateY(-2px);
}
.sheet-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--soft);
}
.sheet-card .body { padding: 16px; }
.sheet-card .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}
.sheet-card h3 {
  margin: 8px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.sheet-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.product-card .thumb {
  aspect-ratio: 1;
  background: var(--soft);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card h3 {
  margin: 0;
  padding: 12px 12px 0;
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card b {
  display: block;
  padding: 8px 12px 14px;
  font-size: 1rem;
}
.product-card .stars { display: none; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 48px 0 24px;
}
.foot-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; color: var(--muted); }
.site-footer li a:hover { color: var(--ink); }
.foot-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
