/* HideMC — clean modern theme
   Brand: deep teal hero, bright cyan accents, yellow CTA, generous whitespace. */

:root {
  --bg: #f5fafc;
  --surface: #ffffff;
  --surface-alt: #eef8fb;
  --border: #dbe9ef;
  --border-strong: #b9d8e2;

  --ink: #0e2230;
  --ink-2: #355366;
  --muted: #5e7886;

  --brand: #0aa6c2;
  --brand-strong: #087f96;
  --brand-deep: #0a1a26;
  --brand-deep-2: #102a3c;
  --brand-grad: linear-gradient(135deg, #0a1a26 0%, #0e2f44 45%, #0a6b82 100%);

  --accent: #ffce3a;
  --accent-strong: #f5b400;

  --ok: #19b27e;
  --shadow-sm: 0 1px 2px rgba(13, 40, 56, .06), 0 2px 6px rgba(13, 40, 56, .04);
  --shadow-md: 0 4px 12px rgba(13, 40, 56, .08), 0 10px 30px rgba(13, 40, 56, .06);
  --shadow-lg: 0 10px 30px rgba(8, 30, 50, .18), 0 30px 60px rgba(8, 30, 50, .12);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shell: 1120px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Firefox */
  scrollbar-color: var(--brand) transparent;
  scrollbar-width: thin;
}
/* WebKit / Blink */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  border: 3px solid var(--bg);
  border-radius: 999px;
  min-height: 60px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-strong), var(--brand-strong));
}
::-webkit-scrollbar-corner { background: transparent; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: .92em;
}

button { font: inherit; cursor: pointer; }

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 12px);
  grid-template-rows: repeat(2, 12px);
  gap: 2px;
  transform: rotate(8deg);
}
.brand-mark span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.brand-mark span:nth-child(1) { background: var(--brand); }
.brand-mark span:nth-child(2) { background: var(--accent); }
.brand-mark span:nth-child(3) { background: var(--accent); }
.brand-mark span:nth-child(4) { background: var(--brand); }

.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  flex: 1;
}
.primary-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .94rem;
  transition: background .15s, color .15s;
}
.primary-nav a:hover { background: var(--surface-alt); color: var(--ink); text-decoration: none; }
.primary-nav a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--brand-strong);
}

.header-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1.1;
  transition: transform .12s, box-shadow .12s, background .15s;
  box-shadow: var(--shadow-sm);
}
.header-cta:hover { background: var(--brand-deep-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.header-cta-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.header-cta-ip { font-size: .98rem; font-weight: 700; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

[hidden] { display: none !important; }
.mobile-nav {
  display: none;
  padding: 8px 20px 16px;
  gap: 2px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}
.mobile-nav a[aria-current="page"] { background: var(--surface-alt); color: var(--brand-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad);
  color: #eaf6fa;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 85% 12%, rgba(255, 206, 58, .18), transparent 60%),
    radial-gradient(700px 320px at 10% 90%, rgba(10, 166, 194, .35), transparent 65%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 85%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 8vw, 100px);
}
.hero-copy h1 { color: #fff; margin-bottom: .35em; }
.hero-copy .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #c6e1ec;
  max-width: 540px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #c5e7f1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow-mini {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--brand-strong);
  margin-bottom: 10px;
}
.page-head .eyebrow {
  background: #fff7d1;
  border-color: #f5e29a;
  color: #7a5800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(180deg, #ffd95a, var(--accent) 55%, var(--accent-strong));
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 16px rgba(245, 180, 0, .35), 0 1px 0 rgba(140, 100, 0, .15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 22px rgba(245, 180, 0, .42), 0 1px 0 rgba(140, 100, 0, .15);
  color: var(--ink);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 10px rgba(245, 180, 0, .35); }

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(14, 34, 48, .12);
  color: var(--ink);
  font-size: .82rem;
  line-height: 1;
}
.btn-label { display: inline-block; font-size: 1rem; line-height: 1.1; }

.btn-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin-left: 4px;
  border-radius: 8px;
  background: rgba(14, 34, 48, .14);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .15s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-large { padding: 16px 22px; font-size: 1.05rem; }
.btn-large .btn-icon { width: 32px; height: 32px; font-size: .9rem; }
.btn-large .btn-chip { font-size: .92rem; padding: 7px 12px; }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.btn-ghost-light {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.btn-ghost-light:hover { background: var(--surface-alt); color: var(--brand-strong); text-decoration: none; border-color: var(--border-strong); }

/* Copied success state */
.btn-primary.copied {
  background: linear-gradient(180deg, #5ce3b2, #19b27e 60%, #128a61);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 18px rgba(25, 178, 126, .35);
}
.btn-primary.copied .btn-icon,
.btn-primary.copied .btn-chip { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-primary.copied .btn-label { color: #fff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px; }
.hero-stats dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ec3d2; }
.hero-stats dd { margin: 0; font-weight: 700; color: #fff; font-size: .98rem; }
.status-online { display: inline-flex; align-items: center; gap: 8px; color: #6ee9bf !important; }
.status-online .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ed59b;
  box-shadow: 0 0 0 4px rgba(46, 213, 155, .22);
}

.hero-art { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #e4f6fb);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .8);
  transform: rotate(-2deg);
  min-width: 280px;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -20px -20px auto auto;
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  z-index: -1;
  transform: rotate(15deg);
  box-shadow: 0 12px 24px rgba(245, 180, 0, .35);
}
.hero-card-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); }
.hero-card-ip { font-family: var(--font-mono); font-size: 2rem; font-weight: 800; color: var(--ink); }
.hero-card-foot { font-size: .82rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head-row .post-time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

/* ---------- Cards ---------- */
.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card { display: flex; flex-direction: column; gap: 8px; }
.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature-card h3 { margin-bottom: 4px; }
.feature-card p { color: var(--muted); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--surface-alt), #d6f1f8);
  border: 1px solid var(--border);
}
.card-icon-compass { background: radial-gradient(circle, var(--accent) 0 22%, #fff 23% 38%, var(--brand) 39% 100%); border-color: transparent; }
.card-icon-book { background: linear-gradient(135deg, var(--brand) 0 50%, #fff 50% 58%, var(--accent) 58% 100%); border-color: transparent; }
.card-icon-card { background: linear-gradient(135deg, #fff 0 60%, var(--accent) 60% 78%, var(--brand) 78% 100%); border-color: transparent; }

.join-card { display: flex; flex-direction: column; gap: 18px; }
.join-card .btn { align-self: flex-start; }
.join-card-wide { margin-top: 24px; }

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 52px;
  background: var(--surface-alt);
  border-radius: 10px;
  color: var(--ink);
  font-size: .98rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
}

.news-preview h2 { margin-bottom: 8px; font-size: 1.4rem; }
.news-preview h2 a { color: var(--ink); }
.news-preview h2 a:hover { color: var(--brand-strong); text-decoration: none; }
.news-preview time { color: var(--muted); font-size: .9rem; font-weight: 600; }
.news-preview p { margin-top: 12px; color: var(--ink-2); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 700;
}

/* ---------- Page / Article ---------- */
.page { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-head { max-width: 720px; margin: 0 0 36px; }
.page-head p { color: var(--muted); font-size: 1.05rem; }

.article header { margin-bottom: 12px; }
.article time { color: var(--muted); font-weight: 600; }
.article-hero {
  width: 100%;
  max-height: 360px;
  margin: 20px 0;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.article-inline > .article-hero:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.04rem; }

.bullet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bullet-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
}
.bullet-list li:first-child { border-top: 0; padding-top: 0; }
.bullet-list li:first-child::before { top: 6px; }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 206, 58, .25);
}
.bullet-list strong { color: var(--ink); }
.bullet-list-lg li { font-size: 1.02rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 4px; }
.faq-list details {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.faq-list details:first-child { border-top: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 36px 14px 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--brand-strong);
  font-weight: 800;
  transition: transform .15s, background .15s;
}
.faq-list details[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq-list p { margin: 0 0 16px; color: var(--muted); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--brand-grad);
  color: #fff;
  margin-top: 24px;
  padding: 56px 0;
}
.cta-band-soft {
  margin-top: 40px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: inherit; margin-bottom: .25em; }
.cta-band p { color: inherit; opacity: .82; margin: 0; }
.cta-band-soft h2 { color: var(--ink); }
.cta-band-soft p { color: var(--muted); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 28px 0;
  background: var(--brand-deep);
  color: #aac6d4;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: grid; gap: 4px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-brand span { font-size: .88rem; }
.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-mono);
}
.footer-ip:hover { background: rgba(255, 255, 255, .12); }
.footer-ip span { color: var(--accent); font-family: var(--font-sans); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-ip strong { font-size: 1rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copied { filter: brightness(1.05) saturate(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .hero-art { justify-content: flex-start; }
  .hero-card { transform: rotate(-1deg); }
  .section-split { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .mobile-nav:not([hidden]) { display: grid; }
  .header-inner { gap: 12px; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { width: 100%; justify-content: center; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; }
  .shell { width: min(var(--shell), calc(100% - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
