:root {
  --bg: oklch(99% 0.002 250);
  --bg-alt: oklch(96.8% 0.004 250);
  --card: oklch(100% 0 0);
  --fg: oklch(21% 0.012 255);
  --fg-muted: oklch(50% 0.014 255);
  --border: oklch(90.5% 0.006 255);
  --accent: oklch(52% 0.2 258);
  --accent-fg: oklch(99% 0 0);
  --success: oklch(64% 0.15 160);
  --danger: oklch(58% 0.19 25);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.05), 0 12px 32px oklch(0% 0 0 / 0.07);
  --shadow-lg: 0 2px 4px oklch(0% 0 0 / 0.06), 0 24px 64px oklch(0% 0 0 / 0.12);
}
[data-theme="dark"] {
  --bg: oklch(15% 0.012 255);
  --bg-alt: oklch(19% 0.014 255);
  --card: oklch(22% 0.016 255);
  --fg: oklch(96% 0.004 255);
  --fg-muted: oklch(66% 0.012 255);
  --border: oklch(30% 0.018 255);
  --accent: oklch(70% 0.17 258);
  --accent-fg: oklch(13% 0.01 255);
  --success: oklch(74% 0.13 160);
  --shadow: 0 1px 2px oklch(0% 0 0 / 0.3), 0 16px 44px oklch(0% 0 0 / 0.4);
  --shadow-lg: 0 2px 4px oklch(0% 0 0 / 0.4), 0 32px 80px oklch(0% 0 0 / 0.6);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 9px; padding: 14px 26px;
  font: 600 15px 'Geist', sans-serif; cursor: pointer;
  transition: filter .15s, background .15s, opacity .15s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--card); color: var(--fg); border: 1px solid var(--border); font-weight: 500; }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }

/* ── nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  background: oklch(from var(--bg) l c h / 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fg); }
.brand-name { font: 600 17px 'Geist', sans-serif; letter-spacing: -.01em; }
.brand-name span { color: var(--fg-muted); font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-links { display: flex; gap: 26px; margin-right: 4px; }
.nav-links a { font: 500 14px 'Geist', sans-serif; color: var(--fg-muted); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.theme-toggle {
  width: 46px; height: 26px; border-radius: 99px;
  background: var(--bg-alt); border: 1px solid var(--border);
  position: relative; cursor: pointer; padding: 0; flex-shrink: 0;
}
.theme-toggle::after {
  content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  position: absolute; top: 2px; left: 2px; transition: left .18s;
}
[data-theme="dark"] .theme-toggle::after { left: 22px; }

/* ── hero ── */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 96px 56px 72px; gap: 22px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 99px; background: var(--card); border: 1px solid var(--border);
  font: 500 13px 'Geist', sans-serif; color: var(--fg-muted);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero h1 { margin: 0; font: 650 62px/1.04 'Geist', sans-serif; letter-spacing: -.035em; max-width: 840px; }
.hero .sub { font-size: 18px; line-height: 1.6; color: var(--fg-muted); max-width: 660px; margin: 0; }
.hero .sub b { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.hero-image {
  width: 100%; max-width: 840px; border-radius: 12px; margin-top: 10px;
  aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--border);
}
.hero-caption {
  font: 400 13px 'Geist', sans-serif; color: var(--fg-muted); max-width: 840px;
  line-height: 1.5; text-align: left; width: 100%; word-wrap: break-word;
}
.hero-caption-credit { font-weight: 600; }
.record-types { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.record-types .label { font: 500 11.5px 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 700px; }
.chip { font: 500 12px 'Geist Mono', monospace; padding: 4px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--border); color: var(--fg-muted); }

/* ── section container ── */
.section-inner { max-width: 1080px; margin: 0 auto; }

/* ── features / article body ── */
.features { padding: 52px 56px; border-top: 1px solid var(--border); scroll-margin-top: 62px; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { margin: 0; font: 650 32px 'Geist', sans-serif; letter-spacing: -.02em; }
.section-head p { color: var(--fg-muted); font-size: 16px; margin: 8px 0 0; }
.article-body {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  min-width: 0;
}
.article-body p {
  font: 400 16.5px/1.7 'Geist', sans-serif; color: var(--fg);
  margin: 0; padding: 18px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  word-wrap: break-word; overflow-wrap: break-word; min-width: 0;
}
.article-body p + p { margin-top: 12px; }
.article-body p:first-child {
  font-weight: 500; font-size: 17.5px;
}
.article-note {
  font-size: 14px !important; color: var(--fg-muted) !important; font-weight: 400 !important;
}

/* ── blog / related ── */
.blog { padding: 52px 56px; border-top: 1px solid var(--border); scroll-margin-top: 62px; }
.blog-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.blog-head h2 { margin: 0; font: 650 28px 'Geist', sans-serif; letter-spacing: -.02em; }
.blog-head p { font-size: 14.5px; color: var(--fg-muted); margin: 6px 0 0; }
.blog-head .view-all { font: 500 14px 'Geist', sans-serif; white-space: nowrap; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-grid > *:nth-child(n+4) { grid-column: span 1; }
.post-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; color: var(--fg);
  transition: border-color .15s;
}
.post-card:hover { text-decoration: none; border-color: var(--accent); }
.post-thumb { height: 4px; }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: baseline; }
.post-tag { font: 500 10.5px 'Geist Mono', monospace; letter-spacing: .06em; color: var(--success); }
.post-date { font: 400 11px 'Geist Mono', monospace; color: var(--fg-muted); }
.post-body h3 { margin: 0; font: 600 16px 'Geist', sans-serif; letter-spacing: -.01em; }
.post-body p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); }
.post-body .read-more { font: 500 13px 'Geist', sans-serif; color: var(--accent); margin-top: auto; padding-top: 6px; }

/* ── footer ── */
.footer { padding: 36px 56px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-muted); }
.footer-logo { height: 18px; width: auto; }
.footer-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.footer-brand .brand-mark::after { width: 7px; height: 7px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--fg-muted); }

/* ── responsive ── */
@media (max-width: 960px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 56px 20px 48px; }
  .features { padding: 40px 20px; }
  .blog { padding: 40px 20px; }
  .footer { padding: 28px 20px; flex-direction: column; gap: 16px; text-align: center; }
  .section-inner { padding-left: 0; padding-right: 0; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 15px; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-caption { font-size: 12px; }
  .article-body p { padding: 14px 16px; font-size: 15px; }
  .blog-head { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .nav { padding: 12px 14px; gap: 8px; }
  .hero { padding: 40px 14px 36px; gap: 16px; }
  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 14px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .features { padding: 32px 14px; }
  .blog { padding: 32px 14px; }
  .footer { padding: 24px 14px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }
  .chip { font-size: 11px; padding: 3px 8px; }
  .article-body p { padding: 12px 14px; font-size: 14px; line-height: 1.6; }
  .section-head h2 { font-size: 24px; }
  .blog-head h2 { font-size: 22px; }
}

/* ── ad banner ── */
.ad-banner {
  display: flex; flex-direction: column; align-items: center;
  margin: 24px 0; padding: 0;
}
.ad-banner .ad-label {
  font: 500 10px 'Geist Mono', monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px;
}
.ad-banner .ad-link {
  display: block; text-decoration: none; color: inherit; width: 100%; max-width: 340px;
}
.ad-banner .ad-link:hover { text-decoration: none; }
.ad-box {
  width: 100%; background: #0d1117; border: 1px solid #30363d;
  border-radius: 10px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; transition: background-color .2s, transform .3s, box-shadow .3s;
  animation: adPulse 3s ease-in-out infinite;
}
.ad-box:hover { background: #161b22; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(63,185,80,.15); }
@keyframes adPulse {
  0%, 100% { border-color: #30363d; }
  50% { border-color: #238636; }
}
@keyframes adShine {
  0% { left: -100%; }
  100% { left: 200%; }
}
.ad-box-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.6); color: #e4e6eb;
  font: 600 10px 'Geist', sans-serif; padding: 2px 6px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; z-index: 2;
}
.ad-box-img { width: 100%; height: 180px; background: #161b22; overflow: hidden; }
.ad-box-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-box-content { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.ad-box-brand {
  display: flex; align-items: center; gap: 6px;
  font: 600 11px 'Geist', sans-serif; color: #8b949e;
  text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px;
}
.ad-box-brand img { width: 16px; height: 16px; border-radius: 3px; }
.ad-box-headline { font: 700 14px 'Geist', sans-serif; color: #e6edf3; line-height: 1.3; margin: 0; }
.ad-box-pay { font: 700 15px 'Geist', sans-serif; color: #3fb950; margin: 4px 0; }
.ad-box-tagline { font: 400 12px 'Geist', sans-serif; color: #8b949e; line-height: 1.4; margin: 0 0 8px; }
.ad-box-cta {
  display: block; width: 100%; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #238636, #2ea043);
  color: #fff; font: 600 12px 'Geist', sans-serif;
  padding: 10px 16px; border-radius: 6px; letter-spacing: .3px;
  transition: all .2s;
}
.ad-box-cta::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: adShine 2.5s ease-in-out infinite;
}
.ad-box:hover .ad-box-cta { background: linear-gradient(135deg, #2ea043, #3fb950); transform: translateY(-1px); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: oklch(0% 0 0 / .6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  width: 90%; max-width: 420px;
  position: relative;
  box-shadow: 0 24px 48px oklch(0% 0 0 / .3);
}
.modal h3 { margin: 0 0 4px; font-size: 1.25rem; }
.modal p { margin: 0 0 20px; color: var(--fg-muted); font-size: .9rem; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: .9rem;
}
.modal input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.modal .btn { width: 100%; }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  color: var(--fg-muted); font-size: 1.5rem;
  cursor: pointer; line-height: 1;
}
