:root {
  --bg: #0c1220;
  --bg2: #121d2e;
  --card: #16253a;
  --line: #1e3050;
  --green: #10b981;
  --green-dk: #059669;
  --yellow: #f59e0b;
  --red: #ef4444;
  --white: #ffffff;
  --ink: #e2e8f0;
  --muted: #64748b;
  --paper: #f1f5f9;
  --max: 540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0a101c;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--green); color: #000; }
.skip-link:focus { top: 12px; }

/* ── ticker bar ── */
.ticker { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: #94a3b8; }
.ticker time { color: var(--green); font-weight: 800; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

/* ── header ── */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; color: var(--white); }
.brand-mark { width: 26px; height: 26px; display: inline-flex; align-items: flex-end; gap: 3px; padding: 5px; background: var(--green); }
.brand-mark i { width: 4px; background: #000; }
.brand-mark i:nth-child(1) { height: 6px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 9px; }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--green); color: #000; font-size: 13px; font-weight: 900; }

/* ── hero ── */
.hero { background: var(--bg); padding: 38px 0 50px; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }
.hero h1 { margin: 0; font-size: clamp(38px, 10.5vw, 54px); line-height: 1.12; font-weight: 900; color: var(--white); }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { margin: 22px 0 26px; color: #94a3b8; font-size: 15px; line-height: 1.8; }
.primary-cta { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: var(--green); color: #000; font-size: 15px; font-weight: 900; }
.primary-cta:active { background: var(--green-dk); }
.arrow { font-size: 22px; }
.cta-caption { margin: 10px 0 0; color: #475569; text-align: center; font-size: 11px; }

/* ── chain card ── */
.chain-card { position: relative; margin-top: 36px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.chain-photo { display: block; width: 100%; height: 200px; object-fit: cover; object-position: center; }
.chain-inner { padding: 18px; }
.chain-kicker { color: #475569; font-size: 9px; font-weight: 900; letter-spacing: 1.4px; display: block; margin-bottom: 6px; }
.chain-title { color: var(--white); font-size: 19px; font-weight: 900; margin: 0 0 18px; }
.flow { display: grid; gap: 6px; }
.flow-step { padding: 12px 14px; border: 1px solid var(--line); background: var(--bg2); }
.flow-step span { display: block; color: #475569; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.flow-step strong { display: block; margin-top: 4px; font-size: 13px; color: var(--ink); }
.flow-step.accent { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.07); }
.flow-step.accent strong { color: var(--green); }
.flow-divider { text-align: center; color: var(--green); font-size: 15px; font-style: normal; font-weight: 900; line-height: 1; }
.flow-split { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.flow-split span { min-height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .5px; text-align: center; padding: 4px; border: 1px solid var(--line); }
.chain-note { margin: 14px 0 0; color: #475569; font-size: 10px; }

/* ── sections ── */
.content-section { padding: 56px 0; background: var(--bg2); }
.section-label { margin: 0 0 16px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
.content-section h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 900; color: var(--white); }
.section-lead { margin: 16px 0 28px; color: #64748b; font-size: 14px; }

/* ── companies table ── */
.co-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--green); }
.co-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.co-table tr { display: block; margin-bottom: 10px; padding: 15px; background: var(--card); border: 1px solid var(--line); }
.co-table td { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 8px; padding: 6px 0; font-size: 13px; color: #94a3b8; }
.co-table td::before { content: attr(data-label); color: #475569; font-size: 10px; font-weight: 800; }
.co-table td strong { color: var(--white); font-size: 14px; }
.layer-tag { display: inline-flex; padding: 3px 7px; background: rgba(16,185,129,.12); color: var(--green); font-size: 10px; font-weight: 900; border: 1px solid rgba(16,185,129,.25); }
.evidence-note { margin: 16px 0 0; padding: 14px; border-left: 3px solid var(--yellow); background: rgba(245,158,11,.06); color: #92806a; font-size: 11px; }
.section-figure { margin: 0 0 26px; }
.section-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); aspect-ratio: 940/420; object-fit: cover; }
.section-figure figcaption { margin-top: 6px; color: #334155; font-size: 11px; }

/* ── principles (dark) ── */
.principles { padding: 56px 0; background: var(--bg); }
.principles h2 { color: var(--white); }
.principle-grid { display: grid; gap: 1px; margin-top: 28px; background: var(--line); }
.principle-grid article { padding: 22px 18px; background: var(--card); }
.principle-grid article > span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--green); color: #000; font-weight: 900; font-size: 13px; }
.principle-grid h3 { margin: 0 0 6px; font-size: 16px; color: var(--white); }
.principle-grid p { margin: 0; color: #64748b; font-size: 13px; }
.source-strip { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 14px; border: 1px solid var(--line); color: #64748b; font-size: 11px; }
.source-strip > span:first-child { color: var(--green); font-weight: 900; }
.source-strip a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }

/* ── latest articles ── */
.latest { padding: 56px 0; background: var(--bg2); }
.latest h2 { color: var(--white); }
.article-list { border-top: 2px solid var(--green); }
.article-row { border-bottom: 1px solid var(--line); }
.article-row > a { min-height: 130px; display: block; padding: 18px 2px; }
.article-meta { display: flex; justify-content: space-between; gap: 12px; color: #475569; font-size: 11px; }
.article-meta span { color: var(--green); font-weight: 800; }
.article-row h3 { margin: 8px 0 12px; font-size: 17px; color: var(--white); line-height: 1.45; }
.read-more { color: #475569; font-size: 12px; font-weight: 800; }
.read-more i { margin-left: 5px; color: var(--green); font-style: normal; }

/* ── subscribe ── */
.subscribe { padding: 56px 0 64px; background: var(--green); color: #000; }
.subscribe h2 { font-size: 28px; line-height: 1.28; font-weight: 900; margin: 0; color: #000; }
.section-label.dark { color: rgba(0,0,0,.55); }
.subscribe > .shell > p:not(.section-label) { margin: 14px 0 22px; color: rgba(0,0,0,.65); font-size: 14px; }
.fresh-flag { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 13px; background: rgba(0,0,0,.1); font-size: 13px; font-weight: 800; color: #000; }
.fresh-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #000; }
.subscribe-benefits { list-style: none; margin: 12px 0 24px; padding: 0; }
.subscribe-benefits li { padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.12); font-size: 14px; display: flex; gap: 10px; color: rgba(0,0,0,.8); }
.subscribe-benefits li::before { content: "✓"; font-weight: 900; flex-shrink: 0; }
.subscribe-form { position: relative; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 900; color: rgba(0,0,0,.7); }
.email-field { display: grid; grid-template-columns: minmax(0,1fr) 108px; min-height: 56px; }
.email-field input { min-width: 0; width: 100%; border: 0; padding: 0 14px; background: var(--white); color: #000; outline: 0; border-radius: 0; }
.email-field input:focus { box-shadow: inset 0 0 0 3px #000; }
.email-field button { border: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 14px; background: #000; color: var(--green); font-size: 13px; font-weight: 900; cursor: pointer; }
.email-field button[disabled] { opacity: .65; cursor: wait; }
.consent { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; margin-top: 16px; font-size: 12px; cursor: pointer; color: rgba(0,0,0,.75); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #000; }
.form-policy { margin: 10px 0 0; color: rgba(0,0,0,.5); font-size: 10px; }
.form-policy a { text-decoration: underline; text-underline-offset: 2px; color: rgba(0,0,0,.65); }
.form-status { min-height: 22px; margin: 10px 0 0; font-size: 12px; font-weight: 800; }
.form-status.is-success { color: #064e3b; }
.form-status.is-error   { color: #450a0a; }
.cta-external { background: #000; color: var(--green); }
.subscribe .primary-cta { background: #000; color: var(--green); }

/* ── FAQ ── */
.faq { padding: 56px 0; background: var(--bg2); }
.faq h2 { color: var(--white); }
.faq-list { margin-top: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 18px 0; font-size: 15px; font-weight: 700; color: var(--white); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::after { content: "+"; font-size: 20px; color: var(--green); font-weight: 900; flex-shrink: 0; margin-left: 12px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0 0 18px; color: #64748b; font-size: 14px; }

/* ── disclaimer ── */
.disclaimer { padding: 32px 0; background: var(--bg); }
.disclaimer h2 { color: var(--white); font-size: 15px; margin: 0 0 10px; }
.disclaimer p { margin: 0; color: #334155; font-size: 11px; line-height: 1.7; }

/* ── floating CTA ── */
.floating-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; }
.floating-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(16,185,129,.97); border-top: 1px solid rgba(0,0,0,.15); box-shadow: 0 -8px 24px rgba(0,0,0,.4); }
.floating-text { flex: 1; min-width: 0; }
.floating-text strong { display: block; color: #000; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-text span { display: block; margin-top: 2px; color: rgba(0,0,0,.6); font-size: 10px; }
.floating-btn { flex-shrink: 0; max-width: 56%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; background: #000; color: var(--green); font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-btn:active { background: #111; }
.landing-page { padding-bottom: 74px; }

/* ── footer CTA block ── */
.footer-cta-block { margin: 24px 0; padding: 20px; background: var(--card); border: 1px solid var(--line); }
.footer-cta-btn { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; background: var(--green); color: #000; font-size: 14px; font-weight: 900; }
.footer-cta-btn:active { background: var(--green-dk); }
.footer-cta-note { margin: 10px 0 0; color: #475569; font-size: 10px; text-align: center; }

/* ── footer ── */
.site-footer { padding: 40px 0 max(40px, env(safe-area-inset-bottom)); background: #070d16; color: #334155; }
.footer-brand { display: inline-block; color: var(--white); font-size: 17px; font-weight: 900; }
.footer-note { margin: 14px 0 20px; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links a { min-height: 30px; display: inline-flex; align-items: center; color: #475569; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.operator-info { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; font-size: 10px; }
.copyright { margin: 16px 0 0; color: #1e293b; font-size: 10px; }

/* ── article / error / legal / listing ── */
.article-page, .error-page { background: var(--paper); color: #1e293b; }
.article-main { min-height: 60vh; padding: 38px 0 56px; background: var(--white); }
.article-content h1 { margin: 10px 0 26px; font-size: 32px; line-height: 1.25; color: #0f172a; }
.article-meta-row { display: flex; justify-content: space-between; gap: 12px; color: #64748b; font-size: 11px; }
.article-meta-row span { color: var(--green-dk); font-weight: 800; }
.article-body { font-size: 16px; line-height: 1.85; color: #334155; }
.article-body h2 { margin: 34px 0 10px; font-size: 22px; color: #0f172a; }
.article-body h3 { margin: 28px 0 8px; font-size: 18px; color: #0f172a; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 20px; margin: 0 0 18px; }
.article-body img { max-width: 100%; height: auto; display: block; margin: 22px 0; }
.article-body a { color: var(--green-dk); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 22px 0; padding: 14px 16px; border-left: 4px solid var(--yellow); background: #fefce8; color: #78716c; font-size: 14px; }
.article-disclaimer { margin-top: 40px; padding: 16px; background: #f0fdf4; border-left: 4px solid var(--green-dk); }
.article-disclaimer strong { font-size: 13px; color: #064e3b; }
.article-disclaimer p { margin: 6px 0 0; color: #374151; font-size: 12px; }
.listing-page { min-height: 60vh; padding: 40px 0 60px; background: var(--bg2); }
.listing-page h1 { color: var(--white); margin: 0 0 24px; font-size: 30px; }
.listing-page .article-list { background: var(--card); border: 1px solid var(--line); }
.listing-page .article-row { padding: 0 16px; }
.empty-state { color: #475569; padding: 28px 0; }
.pagebar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pagebar a, .pagebar span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); background: var(--card); color: #94a3b8; font-size: 12px; }
.pagebar .now-page { border-color: var(--green); background: var(--green); color: #000; }
.error-main { min-height: 70vh; display: flex; align-items: center; padding: 60px 0; text-align: center; background: var(--bg); }
.error-code { margin: 40px 0 0; color: var(--green); font-size: 72px; font-weight: 900; line-height: 1; }
.error-main h1 { margin: 10px 0 8px; font-size: 24px; color: var(--white); }
.error-main p:not(.error-code) { margin: 0 0 26px; color: #64748b; }
.legal-page { background: var(--bg); }
.legal-main { min-height: 60vh; padding: 36px 0 56px; background: var(--bg2); }
.legal-main h1 { margin: 0 0 8px; font-size: 28px; color: var(--white); }
.legal-updated { margin: 0 0 28px; color: #475569; font-size: 12px; }
.legal-content h2 { margin: 28px 0 8px; font-size: 18px; color: var(--white); }
.legal-content p, .legal-content li { color: #64748b; font-size: 14px; }
.legal-content ul { padding-left: 18px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 12px; }
.legal-table th, .legal-table td { padding: 10px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { width: 32%; background: var(--bg); color: #94a3b8; }
.legal-table td { color: #64748b; }
.operator-warning { padding: 12px; border: 1px solid #78350f; background: rgba(245,158,11,.08); color: #92807a; font-size: 12px; }
.unsubscribe-form .email-field { grid-template-columns: minmax(0,1fr) 90px; }
.unsubscribe-form .email-field input { background: var(--card); color: var(--white); border: 1px solid var(--line); }
.unsubscribe-form .email-field button { background: var(--green); color: #000; }

/* ── search ── */
.listing-body .article-meta span { color: var(--green); }
.listing-body .article-row h3 { color: var(--white); }

/* ── article / error / listing / legal page floating CTA padding ── */
.article-page, .listing-body, .error-page, .legal-page { padding-bottom: 74px; }

/* ── article subscribe CTA block ── */
.article-subscribe-cta { margin: 36px 0 0; padding: 24px; background: var(--green); }
.article-subscribe-label { margin: 0 0 14px; font-size: 13px; font-weight: 800; color: rgba(0,0,0,.7); }
.article-subscribe-cta .primary-cta { background: #000; color: var(--green); }
.article-subscribe-cta .cta-caption { color: rgba(0,0,0,.5); }

/* ── urgency strip ── */
.urgency-strip { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); font-size: 12px; color: #94a3b8; }
.urgency-strip strong { color: var(--green); }
.urgency-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: urgency-blink 1.4s ease-in-out infinite; }
@keyframes urgency-blink { 0%,100% { opacity: 1; box-shadow: 0 0 0 3px rgba(16,185,129,.2); } 50% { opacity: .55; box-shadow: 0 0 0 6px rgba(16,185,129,.05); } }
@media (prefers-reduced-motion: reduce) { .urgency-dot { animation: none; } }

/* ── responsive ── */
@media (min-width: 541px) {
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #060c14; }
  body > :not(.skip-link), main > section, .floating-cta { max-width: var(--max); margin-right: auto; margin-left: auto; }
}
@media (max-width: 360px) {
  .shell { padding: 0 15px; }
  .hero h1 { font-size: 36px; }
  .email-field { grid-template-columns: 1fr; }
  .email-field input, .email-field button { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
