/* ECLAB Public Website V1 — design tokens (mockup / Asset Sheet reference) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #05070c;
  --bg-elevated: #0a1220;
  --bg-card: rgba(10, 18, 32, 0.82);
  --bg-card-solid: #0c1524;
  --bg-panel: rgba(8, 14, 26, 0.92);
  --line: rgba(0, 210, 255, 0.16);
  --line-strong: rgba(0, 210, 255, 0.42);
  --cyan: #00d2ff;
  --cyan-dim: #0891b2;
  --cyan-glow: rgba(0, 210, 255, 0.28);
  --text: #eef4fb;
  --text-muted: #8fa0b5;
  --text-dim: #5c6b7e;
  --success: #3dd68c;
  --danger: #ff5c6a;
  --warn: #f0b429;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  --shadow-card: 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 28px var(--cyan-glow);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(0, 120, 180, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(0, 60, 100, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.brand-link img.lockup,
.footer-brand img.lockup-footer,
img.lockup,
img.lockup-footer,
.login-logo,
.admin-brand-logo {
  max-width: none; /* aspect preserved by CSS height + width:auto; avoid global img clamp clipping */
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: background .15s, border-color .15s, box-shadow .15s, filter .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #2ae0ff 0%, #00c4ef 100%);
  color: #041018;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
  background: rgba(0, 40, 70, 0.35);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(0, 210, 255, 0.1); }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.input, .select {
  width: 100%;
  background: rgba(4, 10, 18, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  outline: none;
}
.input:focus, .select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}
.input::placeholder { color: var(--text-dim); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan);
}
.tag-muted { background: rgba(139, 151, 168, 0.14); color: var(--text-muted); }
.tag-soon { background: rgba(240, 180, 41, 0.16); color: var(--warn); }
.tag-new { background: rgba(61, 214, 140, 0.15); color: var(--success); }

.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  border: 1px dashed rgba(0, 210, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}
.empty-state strong { display: block; color: var(--text); margin-bottom: 8px; font-size: 16px; }
.empty-state span { display: block; font-size: 14px; }

.section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 750;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-desc {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 15px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.live-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

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

.media-slot {
  border: 1px dashed rgba(0, 210, 255, 0.25);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 140, 200, 0.18), transparent 60%),
    rgba(4, 10, 18, 0.7);
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.long-text-safe { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .container { width: min(100% - 24px, var(--max)); }
}
