/* Chemfluence — site styles */
:root {
  --ink: #12264d;
  --navy: #163973;
  --yellow: #fdb834;
  --yellow-soft: #fff3d6;
  --ink-2: #3b4658;
  --ink-3: #6b7484;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: #e2dfd6;
  --line-2: #d2cec2;
  --accent: #1d4f9a;
  --accent-ink: #163973;
  --accent-soft: #e6edf7;
  --pu: #b4621a;
  --pu-soft: #f6ebdf;
  --sol: #24589c;
  --sol-soft: #e4ecf6;
  --poly: #2d7348;
  --poly-soft: #e3efe6;
  --radius: 10px;
  --max: 1160px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-logo { height: 44px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 38px; } }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-3); margin-top: -4px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: rgba(15, 27, 45, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: #0f2c5c; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 680px; }
.muted { color: var(--ink-3); }

section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 12px 0 0; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 4px; }
.hero .lead { margin: 24px 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: absolute; right: 0; top: 40px; width: 470px; opacity: 0.9; pointer-events: none; }
@media (max-width: 1000px) { .hero-art { display: none; } }

.factbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 64px; }
.factbar div { padding: 20px 20px 0 0; }
.factbar dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.factbar dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
@media (max-width: 760px) { .factbar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- division cards ---------- */
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .div-grid { grid-template-columns: 1fr; } }
.div-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; text-decoration: none;
  transition: border-color .15s, transform .15s;
  border-top: 4px solid var(--c, var(--accent));
}
.div-card:hover { border-color: var(--line-2); border-top-color: var(--c); transform: translateY(-2px); }
.div-card .tag { font-family: var(--mono); font-size: 12px; color: var(--c); font-weight: 500; letter-spacing: 0.06em; }
.div-card h3 { margin: 10px 0 10px; font-size: 24px; }
.div-card p { color: var(--ink-2); margin: 0 0 20px; font-size: 15px; }
.div-card ul { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.div-card li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.div-card li span { color: var(--ink-3); font-size: 13px; text-align: right; }
.div-card .more { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--c); }
.c-pu { --c: var(--pu); --c-soft: var(--pu-soft); }
.c-sol { --c: var(--sol); --c-soft: var(--sol-soft); }
.c-poly { --c: var(--poly); --c-soft: var(--poly-soft); }

/* ---------- drivers (regulation) ---------- */
.dark { background: var(--navy); color: #e9ecf1; }
.dark .eyebrow { color: var(--yellow); }
.dark .lead { color: #b8c1cf; }
.driver-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #2d5191; }
@media (max-width: 760px) { .driver-list { grid-template-columns: 1fr; } }
.driver { padding: 28px 28px 28px 0; border-bottom: 1px solid #2d5191; display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.driver:nth-child(odd) { border-right: 1px solid #2d5191; }
.driver:nth-child(even) { padding-left: 28px; }
@media (max-width: 760px) { .driver:nth-child(odd) { border-right: 0; } .driver:nth-child(even) { padding-left: 0; } }
.driver .num { font-family: var(--mono); font-size: 13px; color: var(--yellow); padding-top: 4px; }
.driver h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.driver p { margin: 0 0 10px; color: #b8c1cf; font-size: 15px; }
.driver a { font-size: 14px; font-weight: 700; color: var(--yellow); text-decoration: none; }
.driver a:hover { text-decoration: underline; }

/* ---------- about strip ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 16px; }
.brand-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); color: var(--navy); padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy); font-size: clamp(24px, 3vw, 32px); }
.cta-band p { margin: 10px 0 0; color: #3b3220; }
.cta-band .btn-primary { background: var(--navy); color: #fff !important; }
.cta-band .btn-primary:hover { background: #0f2c5c; }

/* ---------- footer ---------- */
.site-footer { background: #0d2247; color: #9aa5b6; padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #c9d1dd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .brand-name { color: #fff; }
.site-footer .legal { border-top: 1px solid #23396a; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6f7b8e; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .crumb { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 18px; letter-spacing: 0.04em; }
.page-head .crumb a { text-decoration: none; }
.page-head .crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); }
.page-head .lead { margin-top: 20px; }
.page-head.c-pu, .page-head.c-sol, .page-head.c-poly { border-top: 6px solid var(--c); }
.page-head .tag { font-family: var(--mono); font-size: 12px; color: var(--c); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500; }

.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.jump a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.jump a:hover { border-color: var(--c, var(--ink)); color: var(--c, var(--ink)); }

/* ---------- product blocks ---------- */
.product { padding: 72px 0; border-bottom: 1px solid var(--line); }
.product:last-of-type { border-bottom: 0; }
.product-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; gap: 28px; } }
.product-side .tag { font-family: var(--mono); font-size: 12px; color: var(--c); letter-spacing: 0.06em; font-weight: 500; }
.product-side h2 { margin: 8px 0 16px; font-size: clamp(26px, 3vw, 34px); }
.product-side p { color: var(--ink-2); margin: 0 0 16px; }
.product-side .badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--c-soft, var(--accent-soft)); color: var(--c, var(--accent-ink)); }
.product-main h3 { font-size: 17px; margin: 0 0 12px; }
.product-main > * + h3 { margin-top: 36px; }
.product-main ul.points { padding-left: 18px; margin: 0; color: var(--ink-2); }
.product-main ul.points li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data thead th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: #fbfaf7; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--mono); font-size: 13.5px; }
table.data tr.hl td { background: var(--c-soft, var(--accent-soft)); font-weight: 700; }
table.data td.wrap-cell { white-space: normal; min-width: 200px; }
.table-note { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.app { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.app strong { display: block; font-size: 15px; margin-bottom: 4px; }
.app span { font-size: 14px; color: var(--ink-3); }

.bar-chart { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 80px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .bar { height: 14px; border-radius: 3px; background: var(--line); position: relative; }
.bar-row .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink-3); }
.bar-row.hl .bar i { background: var(--c); }
.bar-row.hl { font-weight: 700; }
.bar-row .v { font-family: var(--mono); font-size: 13px; text-align: right; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 96px 1fr 64px; } }

/* ---------- insights ---------- */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.post-item:hover h3 { color: var(--accent); }
.post-item .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.post-item p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.post-item .arrow { font-weight: 700; color: var(--accent); padding-top: 2px; }
@media (max-width: 700px) { .post-item { grid-template-columns: 1fr; gap: 6px; } .post-item .arrow { display: none; } }
.post-item.soon { opacity: 0.55; pointer-events: none; }

.article { padding: 64px 0 96px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.85; }
.article-body h2 { font-size: 26px; margin: 56px 0 16px; }
.article-body h3 { font-size: 19px; margin: 36px 0 12px; }
.article-body p { margin: 0 0 20px; color: #24303f; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body .table-wrap { margin: 24px 0 8px; }
.article-body table.data { font-size: 14px; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 20px 24px; margin: 28px 0; font-size: 16px; }
.callout strong { display: block; margin-bottom: 6px; }
.article-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 20px; }
.sources { font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; }
.sources ol { padding-left: 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
@media (max-width: 640px) { .form { padding: 20px; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-group label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.check-group input { width: auto; }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 24px; }
.contact-info dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.placeholder { color: var(--ink-3); font-weight: 500; font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-grid > *, .about-grid > *, .contact-grid > * { min-width: 0; }

.nicell-logo { height: 40px; width: auto; margin: 4px 0 18px; }
.site-header { border-bottom-color: var(--line); }
.div-card .tag { color: var(--c); }
