﻿:root {
  --bg-top: #e8edf7;
  --bg-bottom: #d9e4f1;
  --panel: #f9fbff;
  --line: #dbe6f3;
  --text: #1f2937;
  --muted: #5d6b80;
  --brand: #1658c9;
  --brand-strong: #104fc2;
  --hero-a: #3d8bf8;
  --hero-b: #6557e6;
  --hero-c: #14b8d4;
  --chip-blue: #1f67ff;
  --chip-cyan: #0ea5e9;
  --chip-sky: #0ba5e8;
  --ok: #16a34a;
  --warn: #f97316;
  --info: #2563eb;
  --shadow-soft: 0 10px 28px rgba(30, 64, 175, 0.08);
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% -5%, rgba(45, 125, 248, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 93% 10%, rgba(20, 184, 214, 0.18) 0%, transparent 34%);
}

.topbar,
.container {
  width: min(1280px, 96%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.32rem, 1.45vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-strong);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #1f6eff, #0ea5e9);
  box-shadow: 0 10px 20px rgba(14, 116, 220, 0.3);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 78%, #fff 22%);
}

.lang-btn,
.theme-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 9px 12px;
  cursor: pointer;
}

.lang-btn.active {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 18%, transparent 82%);
}

.theme-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, #fff 18%);
}

.btn {
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 22px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover,
.theme-btn:hover,
.lang-btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: #334155;
  background: #f7fbff;
  border-color: #bdd0ea;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(100deg, #1d56de, #11a2cf);
  box-shadow: 0 10px 20px rgba(17, 121, 198, 0.3);
}

.container {
  display: grid;
  gap: 20px;
  padding: 22px 0 28px;
}

.hero {
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  background: linear-gradient(105deg, var(--hero-a), var(--hero-b) 52%, var(--hero-c));
  box-shadow: var(--shadow-soft);
}

.hero p {
  margin: 0;
  color: rgba(248, 251, 255, 0.95);
  font-size: clamp(1.04rem, 1.5vw, 2rem);
  line-height: 1.55;
  max-width: 63ch;
}

.stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, #ffffff 12%);
  backdrop-filter: blur(2px);
}

.stat-card {
  min-height: 152px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(58, 87, 129, 0.06);
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.05vw, 1.2rem);
  font-weight: 500;
}

.metric-value {
  margin: 36px 0 0;
  color: var(--brand-strong);
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.chip,
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 18px rgba(14, 116, 220, 0.25);
}

.chip svg,
.feature-icon svg {
  width: 24px;
  height: 24px;
}

.chip-blue,
.feature-icon {
  background: linear-gradient(145deg, var(--chip-blue), var(--chip-cyan));
}

.chip-cyan {
  background: linear-gradient(145deg, #1d4ed8, var(--chip-cyan));
}

.chip-sky {
  background: linear-gradient(145deg, #2563eb, var(--chip-sky));
}

.section-title h2 {
  margin: 8px 0 0;
  color: var(--brand-strong);
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  letter-spacing: -0.02em;
}

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 220px;
  padding: 24px;
}

.feature-card h3,
.text-card h3 {
  margin: 16px 0 0;
  font-size: clamp(1.3rem, 1.4vw, 1.65rem);
  letter-spacing: -0.01em;
  color: var(--text);
}

.feature-card p,
.text-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.55;
}

.subcards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-card {
  min-height: 164px;
  padding: 26px 24px;
}

.events {
  overflow: hidden;
  padding: 0;
}

.events-head {
  padding: 26px 24px 18px;
}

.events-head h2 {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

th {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

td {
  color: var(--text);
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.pill.green {
  color: var(--ok);
  background: rgba(22, 163, 74, 0.12);
}

.pill.orange {
  color: var(--warn);
  background: rgba(249, 115, 22, 0.13);
}

.pill.blue {
  color: var(--info);
  background: rgba(37, 99, 235, 0.12);
}

.reveal-up {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .stats,
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .stats,
  .features,
  .subcards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .stat-card {
    min-height: 136px;
  }

  th,
  td {
    padding: 14px 16px;
  }
}

.form-card {
  padding: 24px;
}

.form-card h2 {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.stack-form {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--muted);
  font-weight: 700;
}

.stack-form input[type="file"],
.stack-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 88%, #ffffff 12%);
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

.progress-wrap {
  margin-top: 16px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.progress-bar-bg {
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d56de, #11a2cf);
  transition: width 0.2s ease;
}

.status-box {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 88%, #ffffff 12%);
}

.status-box.success {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.1);
}

.status-box.warn {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.1);
}

.status-box.error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.inline-link {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.meta-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.meta-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 88%, #ffffff 12%);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-item code {
  display: block;
  word-break: break-all;
}

@media (max-width: 800px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
