/* Fielder Technology Review — Investor HTML theme */
:root {
  --bg: #0b1020;
  --bg-soft: #11182e;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #1a2233;
  --ink-soft: #4a566e;
  --muted: #7a869c;
  --line: #e4e9f2;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-3: #7c3aed;
  --accent: #f59e0b;
  --good: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20,30,60,.08);
  --shadow-lg: 0 20px 60px rgba(20,30,60,.14);
  --maxw: 1080px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 0 18px var(--brand-2); }
.brand small { display:block; font-weight: 500; color: #9fb0d0; font-size: 11px; letter-spacing: .02em; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  color: #c7d2ea; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; transition: .15s;
}
.nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav a.active { background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 36px 20px 80px; }
section { margin: 0 0 30px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 30px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 34px 0 14px; padding-top: 10px; }
h2 .num { color: var(--brand); font-weight: 800; margin-right: 8px; }
h3 { font-size: 17px; margin: 22px 0 10px; color: #28324a; }
p { margin: 10px 0; color: var(--ink-soft); }
a { color: var(--brand); }
ul, ol { color: var(--ink-soft); }
code { background: #eef1f8; padding: 2px 6px; border-radius: 6px; font-size: .9em; color: #4338ca; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 400px at 15% -10%, #1e2a55 0%, var(--bg) 55%);
  color: #eaf0ff; border-radius: 20px; padding: 44px 40px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(6,182,212,.35), transparent 60%); filter: blur(10px);
}
.hero .eyebrow { color: #8ad7e8; font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: 34px; margin: 10px 0; max-width: 760px; }
.hero p { color: #c4d0ee; max-width: 720px; font-size: 16px; }
.hero .pill-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .pill { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); color: #eaf0ff; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1f4fb; color: #2a3450; font-weight: 700; font-size: 13px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }

/* ---------- Callouts ---------- */
.callout { border-left: 4px solid var(--brand); background: linear-gradient(90deg, #f3f1ff, #fff 40%); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0; color: #2c2150; }
.callout.good { border-color: var(--good); background: linear-gradient(90deg, #ecfdf5, #fff 40%); }
.callout.warn { border-color: var(--accent); background: linear-gradient(90deg, #fffbeb, #fff 40%); }
.callout strong { color: var(--ink); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: .18s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .tag { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.card h4 { margin: 6px 0 8px; font-size: 16px; }
.card p { margin: 4px 0; font-size: 13.5px; }
.card .ribbon { position: absolute; top: 0; right: 0; height: 4px; left: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* differentiation cards numbered */
.diff { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.diff:last-child { border-bottom: none; }
.diff .n { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-3)); font-size: 18px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge.s3 { background: #eef2ff; color: #4338ca; }
.badge.s2 { background: #ecfeff; color: #0e7490; }
.badge.s1 { background: #f1f5f9; color: #64748b; }
.stars { letter-spacing: 2px; color: var(--accent); font-size: 13px; }

/* ---------- Set blocks (7-part) ---------- */
.setblock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin: 18px 0; overflow: hidden; }
.setblock > .head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: linear-gradient(90deg, #eef0ff, #f8f9ff); border-bottom: 1px solid var(--line); }
.setblock > .head .id { font-weight: 800; color: var(--brand); font-size: 13px; background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px; }
.setblock > .head h3 { margin: 0; font-size: 17px; }
.setblock .body { padding: 8px 20px 18px; }
.facets { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 720px){ .facets { grid-template-columns: 1fr; } }
.facet { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: none; }
.facet .k { font-size: 12px; font-weight: 700; color: var(--brand-3); text-transform: none; letter-spacing: .02em; display:block; margin-bottom: 2px; }
.facet .v { font-size: 14px; color: var(--ink-soft); }

/* ---------- Mermaid ---------- */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 18px 0; text-align: center; }
.diagram .cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.mermaid { display: flex; justify-content: center; }

/* ---------- Misc ---------- */
.kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-size: 17px; color: #313c57; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pager a { flex: 1; text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; transition: .15s; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
footer { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 60px; color: var(--muted); font-size: 13px; text-align: center; }
.section-note { font-size: 13px; color: var(--muted); }
.hr { height: 1px; background: var(--line); border: 0; margin: 28px 0; }
