:root {
  --ink: #172033;
  --muted: #697386;
  --paper: #f5f1e8;
  --card: #fffdf7;
  --navy: #12243a;
  --orange: #ef6a3a;
  --yellow: #f4d46b;
  --mint: #cce8df;
  --line: #d8d2c6;
  --shadow: 0 22px 55px rgba(23, 32, 51, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 25%, rgba(239, 106, 58, 0.13), transparent 24rem),
    radial-gradient(circle at 92% 58%, rgba(204, 232, 223, 0.7), transparent 30rem),
    var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  border-radius: 8px;
  background: var(--orange);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: var(--navy);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 0.78rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.brand-mark { color: var(--orange); font-size: 1.2rem; letter-spacing: -0.15em; }
.header-note { color: #9dacbf; font: 500 0.65rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.12em; }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
  min-height: 570px;
  padding: 74px max(24px, calc((100vw - 1180px) / 2)) 92px;
  color: white;
  background: var(--navy);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--yellow);
  font: 600 0.7rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--orange); }
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -0.07em;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-description { max-width: 670px; margin: 28px 0 0; color: #cad3df; font-size: 1.08rem; }

.hero-terminal {
  overflow: hidden;
  border: 1px solid #33455d;
  border-radius: 18px;
  background: #0c1727;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
  transform: rotate(1.5deg);
}
.terminal-bar { display: flex; gap: 7px; padding: 13px 15px; border-bottom: 1px solid #26374e; background: #15243a; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #475871; }
.terminal-bar span:first-child { background: var(--orange); }
.hero-terminal pre { overflow-x: auto; margin: 0; padding: 26px; color: #dce3ed; font: 400 0.82rem/1.85 "IBM Plex Mono", monospace; }
.prompt { color: #6dd6b2; }
.line { margin-right: 8px; color: #667790; }
.success { color: var(--yellow); }

.catalog, .growth {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.catalog h2, .growth h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.055em; }
.stats { display: flex; gap: 12px; }
.stats div {
  display: grid;
  min-width: 100px;
  min-height: 84px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,253,247,0.72);
}
.stats strong { font: 600 1.7rem/1 "IBM Plex Mono", monospace; }
.stats span { align-self: end; color: var(--muted); font: 500 0.63rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }

.controls { display: flex; gap: 14px; align-items: center; margin: 42px 0 28px; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,106,58,0.12); }
.search span { color: var(--orange); font: 600 1.25rem/1 "IBM Plex Mono", monospace; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.filter:hover, .filter.active { color: white; border-color: var(--navy); background: var(--navy); }

.session-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.session-card { min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); transition: 180ms ease; }
.session-card:hover { border-color: var(--orange); transform: translateY(-5px); box-shadow: 0 28px 65px rgba(23,32,51,0.15); }
.card-link { display: block; min-height: 100%; padding: clamp(24px, 4vw, 38px); text-decoration: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.session-number { color: var(--orange); font: 600 0.68rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.11em; }
.card-arrow { display: grid; width: 38px; height: 38px; color: white; border-radius: 50%; background: var(--navy); place-items: center; transition: 180ms ease; }
.session-card:hover .card-arrow { background: var(--orange); transform: rotate(45deg); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 38px 0 16px; }
.tag-row span { padding: 4px 8px; color: #245d4d; border-radius: 5px; background: var(--mint); font: 600 0.64rem/1 "IBM Plex Mono", monospace; }
.session-card h3 { max-width: 580px; margin: 0 0 14px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.32; letter-spacing: -0.035em; }
.session-card p { min-height: 3.3em; margin: 0; color: var(--muted); font-size: 0.9rem; }
.card-meta { display: grid; grid-template-columns: 0.7fr 0.7fr 1.5fr; gap: 12px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.card-meta div { min-width: 0; }
.card-meta dt { margin-bottom: 4px; color: #9299a6; font-size: 0.67rem; }
.card-meta dd { overflow: hidden; margin: 0; font-size: 0.78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; }
.empty-state p { color: var(--muted); }

.growth {
  margin-bottom: 90px;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,253,247,0.85);
  box-shadow: var(--shadow);
}
.growth > p:not(.eyebrow) { max-width: 680px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.steps li > span { color: var(--orange); font: 600 0.72rem/1.6 "IBM Plex Mono", monospace; }
.steps strong { display: block; margin-bottom: 7px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.8rem; }
code { padding: 0.1em 0.3em; border-radius: 4px; background: #ece8df; font: 500 0.9em/1.4 "IBM Plex Mono", monospace; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: #95a3b6;
  background: var(--navy);
  font: 500 0.65rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-terminal { max-width: 600px; }
  .session-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { word-break: normal; }
  .header-note { display: none; }
  .hero { min-height: auto; padding: 58px 20px 72px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-terminal pre { font-size: 0.7rem; }
  .catalog, .growth { width: calc(100% - 24px); padding-top: 68px; padding-bottom: 68px; }
  .catalog-heading { align-items: start; flex-direction: column; }
  .stats { width: 100%; }
  .stats div { flex: 1; }
  .controls { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .card-meta { grid-template-columns: 1fr 1fr; }
  .card-meta div:last-child { grid-column: 1 / -1; }
  footer { gap: 18px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
