:root {
  color-scheme: dark;
  --bg: #11130f;
  --panel: #171a13;
  --surface: #1b1e16;
  --lime: #d4fc68;
  --text: #f1f3e9;
  --muted: #a7ad9b;
  --line: #303528;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--sans); word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1232px, calc(100% - 104px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font: 750 1.08rem/1 var(--mono); letter-spacing: -.065em; white-space: nowrap; }
.brand-accent { color: var(--lime); }
.brand-mark, .icon-wave { display: inline-flex; align-items: center; justify-content: center; gap: 2px; color: var(--lime); }
.brand-mark { margin-right: 6px; width: 29px; height: 29px; border: 1px solid #455232; border-radius: 5px; background: #1d2414; }
.brand-mark i, .icon-wave i { width: 2px; height: 7px; background: currentColor; border-radius: 2px; }
.brand-mark i:nth-child(even), .icon-wave i:nth-child(even) { height: 12px; }
.brand-mark i:nth-child(3), .icon-wave i:nth-child(3) { height: 17px; }
nav { display: flex; align-items: center; gap: 34px; }
nav a, .top-link { color: var(--muted); font-size: .88rem; font-weight: 650; }
nav a:hover, .top-link:hover { color: var(--lime); }
.header-label, .micro, .sample, .plot-meta, .ticks, .eyebrow {
  font: 600 .75rem/1.35 var(--mono);
  letter-spacing: .085em;
}
.header-label { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 4.5vw, 65px); padding-block: 83px 90px; }
main { background: radial-gradient(ellipse 42rem 24rem at 76% 14rem, #222c17 0%, transparent 90%); }
.eyebrow { color: var(--lime); display: flex; align-items: center; gap: 10px; font-size: .82rem; }
h1 { margin-top: 21px; font-size: clamp(2.5rem, 4.1vw, 3.85rem); line-height: 1.12; letter-spacing: -.09em; font-weight: 850; }
h1 em { color: var(--lime); font-style: normal; }
.intro { margin-top: 25px; color: #bcc1b3; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.85; letter-spacing: -.035em; }
.actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 50px; padding: 0 17px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 5px; font-size: .93rem; font-weight: 750; }
.primary { background: var(--lime); color: #18200a; }
.primary:hover { background: #e5ff9b; }
.secondary { border-color: #3c4332; }
.secondary:hover { background: var(--surface); border-color: #64734c; }
.lab { min-width: 0; border: 1px solid #38412e; border-radius: 12px; background: linear-gradient(145deg, #1c2116, var(--panel) 52%); box-shadow: 0 16px 55px #0003; padding: 22px; scroll-margin-top: 24px; }
.lab-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.micro { color: #a5af98; }
.lab h2 { margin-top: 4px; font-size: 1.27rem; letter-spacing: -.05em; line-height: 1.4; }
.sample { color: #c8e19e; background: #26321c; border: 1px solid #3c4d2c; border-radius: 4px; padding: 5px 8px; white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 13px; }
.tabs button { cursor: pointer; min-height: 38px; color: var(--muted); border: 1px solid transparent; border-radius: 5px; background: transparent; padding: 4px 12px; font-size: .875rem; font-weight: 650; }
.tabs button:hover { color: var(--text); }
.tabs [aria-selected="true"] { background: #303c22; border-color: #465a30; color: var(--lime); }
.plot { position: relative; overflow: hidden; background: #10150d; border: 1px solid #344128; border-radius: 7px; padding: 14px; }
.plot-meta, .ticks { display: flex; justify-content: space-between; color: #a1ad94; }
.plot-meta output { color: var(--lime); }
.plot-legend { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 7px; color: #bac6ad; font-size: .75rem; }
.plot-legend[hidden] { display: none; }
.plot-legend span { display: flex; align-items: center; gap: 5px; }
.plot-legend span::before { content: ""; width: 8px; height: 2px; background: #a3b398; }
.plot-legend span:last-child::before { background: var(--lime); }
canvas { display: block; width: 100%; height: 142px; margin-block: 9px 5px; }
.ticks { font-size: .71rem; letter-spacing: 0; }
.scrubber { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .84rem; color: #d1d8c8; }
.scrubber span { flex-shrink: 0; }
input[type="range"] { min-width: 0; width: 100%; margin: 0; accent-color: var(--lime); cursor: pointer; }
.plot-caption { color: var(--muted); margin-top: 8px; font-size: .86rem; }
.projects { border-top: 1px solid var(--line); padding-block: 55px 66px; background: #151811; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-head h2, .application h2 { margin-top: 7px; font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.25; letter-spacing: -.075em; }
.section-head > p { max-width: 390px; color: var(--muted); letter-spacing: -.035em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.steps li { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 22px; }
.step-icon { position: relative; color: var(--lime); width: 39px; height: 39px; border: 1px solid #41512f; border-radius: 6px; background: #27331c; margin-bottom: 16px; }
.icon-print i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.icon-print i:nth-child(1) { left: 9px; top: 23px; }
.icon-print i:nth-child(2) { left: 13px; top: 14px; }
.icon-print i:nth-child(3) { left: 18px; top: 20px; }
.icon-print i:nth-child(4) { left: 22px; top: 10px; }
.icon-print i:nth-child(5) { left: 26px; top: 17px; }
.icon-match i { position: absolute; inset: 10px; border: 1px solid currentColor; border-radius: 3px; }
.icon-match i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(-45deg); }
.steps h3 { margin-top: 4px; font-size: 1.2rem; letter-spacing: -.045em; }
.steps li > p:last-child { margin-top: 7px; color: var(--muted); }
.application { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 90px); padding-block: 76px; }
.application-copy > p:not(.eyebrow) { margin-top: 16px; max-width: 480px; color: var(--muted); }
.demo-link { margin-top: 24px; }
.workflow { list-style: none; display: grid; gap: 0; margin: 0; padding: 0 24px; border: 1px solid #3a462e; border-radius: 10px; background: linear-gradient(130deg, #20271a, #171a13 82%); }
.workflow li { position: relative; padding: 17px 0 17px 24px; }
.workflow li + li { border-top: 1px solid var(--line); }
.workflow li::before { content: ""; position: absolute; top: 25px; left: 2px; width: 8px; height: 8px; border: 1px solid var(--lime); transform: rotate(45deg); }
.workflow h3 { font-size: 1.06rem; letter-spacing: -.035em; }
.workflow p { margin-top: 4px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; }
.footer-inner p { color: var(--muted); font-size: .85rem; }
@media (max-width: 1060px) {
  .wrap { width: calc(100% - 64px); }
  .section-head > p { max-width: 330px; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; }
  .header-label { display: none; }
  nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 53px 51px; }
  h1 { font-size: clamp(2.35rem, 7.6vw, 3.85rem); }
  .intro { max-width: 400px; }
  .projects { padding-block: 42px 48px; }
  .section-head { display: grid; gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .application { grid-template-columns: 1fr; padding-block: 48px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 16px; padding-block: 20px; }
  .footer-inner p { order: 1; width: 100%; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 32px); }
  .lab { padding: 14px; }
  nav { gap: 12px; }
  .header-inner { gap: 12px; }
  .tabs button { padding-inline: 7px; }
}
@media (max-width: 340px) {
  .header-inner .brand { font-size: .9rem; gap: 3px; }
  .header-inner .brand-mark { margin-right: 2px; }
  nav { gap: 8px; }
  nav a { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
