:root {
  --ms-blue: #0067b8;
  --ms-blue-dark: #004e8c;
  --ms-blue-light: #50a0e0;
  --ms-cyan: #00b7c3;
  --ink: #1b1a19;
  --ink-soft: #484644;
  --ink-muted: #605e5c;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-panel: #faf9f8;
  --radius: 8px;
  --shadow-sm: 0 1.6px 3.6px rgba(0, 0, 0, 0.08), 0 0.3px 0.9px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6.4px 14.4px rgba(0, 0, 0, 0.12), 0 1.2px 3.6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25.6px 57.6px rgba(0, 0, 0, 0.18), 0 4.8px 14.4px rgba(0, 0, 0, 0.12);
  --font: "Segoe UI", "Malgun Gothic", "맑은 고딕", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ms-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ms-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: #f2f2f2;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar a {
  color: var(--ink-soft);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand .logo {
  display: grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 2px;
}
.brand .logo span {
  width: 12px;
  height: 12px;
  display: block;
}
.brand .logo span:nth-child(1) { background: #f25022; }
.brand .logo span:nth-child(2) { background: #7fba00; }
.brand .logo span:nth-child(3) { background: #00a4ef; }
.brand .logo span:nth-child(4) { background: #ffb900; }
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand .brand-text .t1 {
  font-size: 15px;
  font-weight: 600;
}
.brand .brand-text .t2 {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 4px;
}
.main-nav a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--ink);
}
.nav-cta {
  background: var(--ms-blue);
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--ms-blue-dark) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0b3d6e 0%, #0067b8 45%, #00b7c3 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(0, 183, 195, 0.35), transparent 45%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding: 84px 24px 96px;
  max-width: 900px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 620px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: #fff;
  color: var(--ms-blue-dark);
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 24px;
}
.stat {
  text-align: center;
}
.stat .num {
  font-size: 34px;
  font-weight: 700;
  color: var(--ms-blue);
  line-height: 1.1;
}
.stat .label {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* ---------- Section ---------- */
section.block {
  padding: 84px 0;
}
section.block.alt {
  background: var(--bg-soft);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .kicker {
  color: var(--ms-blue);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin: 10px 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--ink-muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card[hidden] {
  display: none;
}
.card .card-top {
  height: 6px;
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-cyan));
}
.card .card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 103, 184, 0.1);
  color: var(--ms-blue);
  margin-bottom: 16px;
}
.card .icon svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}
.card p {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0 0 18px;
  flex: 1;
}
.card .card-link {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .card-link .arrow {
  transition: transform 0.15s ease;
}
.card:hover .card-link .arrow {
  transform: translateX(4px);
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag.new { background: #e6f2eb; color: #107c41; }
.tag.workshop { background: #eae6f7; color: #5c2d91; }
.tag.solution { background: #e5f1fb; color: #0067b8; }
.tag.update { background: #fef0e6; color: #c4531a; }

/* ---------- Feature list (new features) ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--ms-blue-light);
}
.feature-item .date {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.feature-item .fi-main h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.feature-item .fi-main p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}
.feature-item .fi-cta {
  white-space: nowrap;
}
.feature-item .fi-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.feature-item .fi-meta .tag {
  margin-bottom: 0;
}
.feature-item .fi-area {
  position: relative;
  padding-left: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.feature-item .fi-area::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
  transform: translateY(-50%);
  opacity: 0.6;
}
.feed-note {
  margin: 16px 2px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---------- Workshop cards ---------- */
.workshop-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.workshop-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Workshop dynamic states ---------- */
.workshop-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  font-size: 15px;
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.workshop-loading code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.workshop-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.topic-chip {
  font-size: 12px;
  color: var(--ms-blue);
  background: rgba(0, 103, 184, 0.08);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Workshop categories ---------- */
.workshop-category {
  margin-bottom: 56px;
}
.workshop-category:last-child {
  margin-bottom: 0;
}
.workshop-cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.workshop-cat-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ms-blue), var(--ms-cyan));
}
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card .card-body h4 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 600;
  line-height: 1.35;
}
.workshop-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.workshop-links a {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.workshop-links a .arrow {
  transition: transform 0.15s ease;
}
.workshop-links a:hover {
  text-decoration: none;
}
.workshop-links a:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Workshop "더보기" button ---------- */
.workshop-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--ms-blue);
  border: 1px solid var(--ms-blue);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-more:hover {
  background: var(--ms-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-more .more-count {
  font-size: 12px;
  opacity: 0.9;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #004e8c, #0067b8);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 14px;
  font-weight: 700;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1b1a19;
  color: #c8c6c4;
  font-size: 14px;
}
.site-footer .container {
  padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 10px;
}
.footer-grid a {
  color: #c8c6c4;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-about p {
  margin: 12px 0 0;
  max-width: 320px;
  color: #a19f9d;
}
.footer-bottom {
  border-top: 1px solid #3b3a39;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #a19f9d;
  font-size: 13px;
}
.footer-bottom a {
  color: #a19f9d;
  margin-left: 18px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-item { grid-template-columns: 1fr; gap: 8px; }
  .feature-item .fi-cta { margin-top: 8px; }
  .topbar { display: none; }
}

/* ============================================================
   Solution document viewer (solution.html)
   ============================================================ */
.doc-main {
  padding: 40px 0 72px;
  background: var(--bg);
}
.doc-container {
  max-width: 860px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--ink-soft);
}
.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

.doc-content {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}
.doc-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.doc-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--ms-blue);
}
.doc-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.doc-content p {
  margin: 0 0 16px;
}
.doc-content ul,
.doc-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.doc-content li {
  margin-bottom: 8px;
}
.doc-content blockquote {
  margin: 0 0 20px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-left: 4px solid var(--ms-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}
.doc-content blockquote p {
  margin: 0;
}
.doc-content img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 8px 0 24px;
  box-shadow: var(--shadow-sm);
}
.doc-content a {
  font-weight: 500;
}
.doc-content code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "Cascadia Code", "Consolas", monospace;
}
.doc-content pre {
  background: #1b1a19;
  color: #eaeaea;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 22px;
}
.doc-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.doc-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}
.doc-content th,
.doc-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.doc-content thead th {
  background: var(--bg-soft);
  font-weight: 600;
}
.doc-content tbody tr:nth-child(even) {
  background: #fafafa;
}
.doc-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
