:root {
  --bg:#0b0f14;
  --card:#10161d;
  --muted:#9fb0c8;
  --txt:#eaf1ff;
  --brand:#7aa2ff;
  --line:#1c2835;
}

* { box-sizing:border-box }
body {
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:'Pretendard',system-ui,AppleSDGothicNeo,'Segoe UI',sans-serif;
}
a { color:inherit; text-decoration:none }

.wrap {
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}
.nav {
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:saturate(150%) blur(10px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}
.brand {
  font-weight:800;
  font-size:20px;
  letter-spacing:.2px;
}
.nav-right { display:flex; gap:10px }

.btn {
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:12px 16px;
  border-radius:12px;
  background:linear-gradient(90deg,#6a8bff,#7aa2ff);
  color:white;
  font-weight:700;
  border:0;
  transition:transform .2s, box-shadow .2s;
  will-change:transform;
}
.btn:hover { transform:translateY(-1px); box-shadow:0 8px 20px rgba(122,162,255,.25) }
.btn.ghost { background:transparent; border:1px solid #28405f; color:var(--txt) }
.btn.danger { background:linear-gradient(90deg,#ff5c73,#ff7e90) }

.grid { display:grid; gap:14px }
.card {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
}
.card.clickable { transition:transform .25s, box-shadow .25s }
.card.clickable:hover {
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(0,0,0,.25);
  animation:subtleFloat 1.8s ease-in-out infinite;
}
.card-title { font-weight:700; margin-bottom:8px }

.pin {
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:#22324a;
  color:#a7c1ff;
  font-size:12px;
  margin-right:8px;
}
.flash { margin:16px auto; max-width:900px; padding:10px 14px; border-radius:12px }
.ok { background:#0f2a18; border:1px solid #1f6f3f }
.error { background:#2a1315; border:1px solid #6f1f29 }

.hero {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:center;
  margin-top:12px;
}
.hero h1 {
  font-size:44px;
  line-height:1.1;
  margin:0 0 14px 0;
  font-weight:800;
}
.hero .desc { opacity:.85; margin:0 0 20px 0 }
.cta { display:flex; gap:10px; flex-wrap:wrap }
.section-label { margin:8px 0; font-size:13px; opacity:.8 }
.title { font-weight:700 }
.meta { opacity:.6; margin-top:6px; font-size:13px }
.more { margin-top:10px }
.header-row {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  margin-bottom:12px;
}

.article .article-header {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.article .cover {
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
}
.article .divider { border:0; border-top:1px solid var(--line); margin:16px 0 }
.article .content img { max-width:100%; border-radius:8px }
.article-actions { display:flex; gap:10px; margin-top:12px }

.key-input {
  padding:10px;
  border-radius:10px;
  border:1px solid #26374a;
  background:#0e141b;
  color:var(--txt);
}
.form .form-grid { grid-template-columns:1fr; gap:12px }
.form input[type="text"],
.form input[type="password"],
.form input[type="file"],
.form textarea {
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid #26374a;
  background:#0e141b;
  color:var(--txt);
}
.inline { display:flex; gap:8px; align-items:center }
.tui-editor { border:1px solid var(--line); border-radius:12px; overflow:hidden }
.spacer-8 { height:8px }

@keyframes fadeUp { from {opacity:0; transform:translateY(14px)} to {opacity:1; transform:translateY(0)} }
@keyframes subtleFloat {
  0% { transform:translateY(0) }
  50% { transform:translateY(-3px) }
  100% { transform:translateY(0) }
}

.reveal { opacity:0; transform:translateY(14px) }
.reveal.in { opacity:1; transform:translateY(0); animation:fadeUp .6s ease both }
.delay-1.reveal.in { animation-delay:.06s }
.delay-2.reveal.in { animation-delay:.12s }

@media (prefers-reduced-motion: reduce){
  .reveal,.reveal.in { animation:none !important; opacity:1 !important; transform:none !important }
  .card.clickable:hover { animation:none }
}

@media (max-width: 1024px){
  .wrap { padding:18px }
  .hero { grid-template-columns:1fr; gap:16px }
  .hero-right { order:2 }
  .hero-left { order:1 }
}

@media (max-width: 720px){
  .brand { font-size:18px }
  .nav-right { gap:8px }
  .btn { padding:11px 14px }
  .hero h1 { font-size:34px }
  .grid { grid-template-columns:1fr }
  .card { padding:14px }
  .footer-grid { grid-template-columns:1fr }
  .right { text-align:left; margin-top:8px }
  .cta .btn { width:100%; justify-content:center }
}

@media (max-width: 400px){
  .hero h1 { font-size:28px }
}

.footer {
  opacity:.7;
  padding:40px 0;
  border-top:1px solid var(--line);
  margin-top:40px;

  text-align: center;
  font-size:14px;
  color:#888;
}
.footer a {
  color:#666;
  text-decoration:none;
  margin:0 10px;
}
.footer a:hover { text-decoration:underline }
}
