:root{
  --bg: #0b0b12;
  --surface: #121222;
  --surface2: #17172b;
  --text: #f5f6ff;
  --muted: rgba(245,246,255,.72);
  --muted2: rgba(245,246,255,.55);

  --brand: #ff4d8d;
  --brand2:#7c5cff;
  --ok:#2dd4bf;

  --ring: rgba(255,77,141,.35);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;

  --max: 1080px;
  --font: "Pretendard", system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,77,141,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(124,92,255,.22), transparent 55%),
              linear-gradient(180deg, #07070d 0%, #0b0b12 100%);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

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

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip{
  position:absolute; left:-999px; top:auto;
}
.skip:focus{ left:16px; top:16px; z-index:9999; background:#fff; color:#000; padding:10px 12px; border-radius:10px; }

/* Header */
.site-header{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(10,10,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-dot{
  width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px rgba(255,77,141,.12);
}
.brand-text{ font-weight:800; letter-spacing:.6px; font-size:14px; opacity:.95; }

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  font-size:14px;
  color: var(--muted);
}
.nav a{ padding:10px 10px; border-radius:12px; }
.nav a:hover{ background: rgba(255,255,255,.06); color: var(--text); }
.nav-cta{
  color: #10101a !important;
  background: linear-gradient(135deg, var(--brand), #ff8fb6);
  font-weight:800;
}
.nav-toggle{
  display:none;
  border:0;
  background: transparent;
  padding:10px;
  border-radius:12px;
}
.nav-toggle span{
  display:block;
  width:22px; height:2px;
  background: rgba(245,246,255,.85);
  margin:5px 0;
  border-radius:2px;
}

/* Hero */
.hero{
  position:relative;
  padding: 54px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: stretch;
}
.hero-copy h1{
  font-size: clamp(28px, 4vw, 42px);
  line-height:1.1;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.hero-sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height:1.7;
}

.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.hero-badges{
  list-style:none;
  padding:0; margin:0;
  display:flex; gap:8px; flex-wrap:wrap;
}
.hero-badges li{
  font-size:12px;
  color: rgba(245,246,255,.78);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.hero-card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pill{
  font-size:12px;
  font-weight:800;
  color:#10101a;
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ok), #a7f3d0);
}
.mini-stat__num{ font-size:22px; font-weight:900; }
.mini-stat__label{ font-size:12px; color: var(--muted2); margin-top:2px; }

.hero-card-body{ padding:16px; display:grid; gap:12px; }
.skeleton-img{
  height:140px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.04), rgba(255,255,255,.08));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-lines div{
  height:12px; border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.skeleton-lines div:nth-child(1){ width: 80%; }
.skeleton-lines div:nth-child(2){ width: 65%; }
.skeleton-lines div:nth-child(3){ width: 72%; }

@keyframes shimmer{
  0%{ background-position: 0% 0; }
  100%{ background-position: 200% 0; }
}

.hero-bg{
  position:absolute; inset:auto 0 -140px 0;
  height: 280px;
  background: radial-gradient(900px 200px at 50% 0%, rgba(255,77,141,.16), transparent 70%);
  pointer-events:none;
}

/* Toolbar */
.toolbar{ padding: 12px 0 10px; }
.toolbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(245,246,255,.78);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor:pointer;
}
.chip:hover{ border-color: rgba(255,255,255,.18); }
.chip.is-active{
  background: linear-gradient(135deg, rgba(255,77,141,.25), rgba(124,92,255,.22));
  border-color: rgba(255,77,141,.40);
  color: var(--text);
  box-shadow: 0 0 0 6px rgba(255,77,141,.10);
}

.search input{
  width: min(320px, 48vw);
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,12,22,.65);
  color: var(--text);
  outline: none;
}
.search input:focus{
  border-color: rgba(255,77,141,.45);
  box-shadow: 0 0 0 6px var(--ring);
}

/* Sections */
.section{ padding: 26px 0; }
.section-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2{
  margin:0;
  font-size: 20px;
  letter-spacing: -.2px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height:1.6;
  max-width: 56ch;
}

/* Cards */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}
.card{
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(18,18,34,.70);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transform: translateY(0);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}
.card-media{
  position:relative;
  aspect-ratio: 16/10;
  overflow:hidden;
  background: rgba(255,255,255,.06);
}
.card-media img{
  width:100%; height:100%;
  object-fit: cover;
}
.tag{
  position:absolute;
  left: 12px; top: 12px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(10,10,18,.72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.card-body{ padding: 14px; }
.card-title{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -.2px;
}
.meta{
  display:grid;
  gap: 8px;
  margin:0 0 12px;
}
.meta div{
  display:grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
}
.meta dt{
  color: var(--muted2);
  font-size: 12px;
}
.meta dd{
  margin:0;
  color: rgba(245,246,255,.86);
  font-size: 12.5px;
  line-height:1.5;
}

.card-actions{ display:flex; gap:10px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover{ border-color: rgba(255,255,255,.20); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(255,77,141,.55);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px rgba(255,77,141,.18);
}
.btn-ghost{
  background: rgba(255,255,255,.03);
}
.btn-sm{ padding: 10px 12px; border-radius: 12px; font-size: 13px; }

/* Form */
.form{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,12,22,.55);
  padding: 16px;
}
.form-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.field label{
  display:block;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}
.field input, .field select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,18,.65);
  color: var(--text);
  outline:none;
}
.field input:focus, .field select:focus{
  border-color: rgba(255,77,141,.45);
  box-shadow: 0 0 0 6px var(--ring);
}

.form-foot{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.check{ display:flex; align-items:center; gap:8px; color: var(--muted); font-size: 13px; }
.form-hint{ margin: 10px 0 0; color: rgba(167,243,208,.9); font-size: 13px; }

/* Accordion */
.accordion{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,12,22,.55);
}
.acc{
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.acc:last-child{ border-bottom:0; }
.acc summary{
  cursor:pointer;
  list-style:none;
  padding: 14px 14px;
  font-weight: 800;
  color: rgba(245,246,255,.90);
}
.acc summary::-webkit-details-marker{ display:none; }
.acc-body{
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13.5px;
}

/* Modal */
.modal{
  position: fixed; inset: 0;
  display:none;
  place-items:center;
  padding: 18px;
  z-index: 100;
}
.modal[aria-hidden="false"]{ display:grid; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(6px);
}
.modal-panel{
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,12,22,.88);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head, .modal-foot{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.modal-foot{ border-bottom:0; border-top: 1px solid rgba(255,255,255,.06); }
.modal-body{ padding: 14px; color: var(--muted); line-height:1.7; font-size: 13.5px; }
.icon-btn{
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 22px;
  cursor:pointer;
}

/* Footer */
.site-footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(10,10,18,.35);
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
}
.muted{ color: var(--muted); font-size: 13px; line-height:1.7; }
.footer-right{
  display:flex; gap:14px; flex-wrap:wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-right a{ padding: 8px 10px; border-radius: 12px; }
.footer-right a:hover{ background: rgba(255,255,255,.06); color: var(--text); }

/* Responsive */


@media (min-width: 641px) and (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .toolbar-inner{ flex-direction: column; align-items:stretch; }
  .search input{ width:100%; }
  .nav{ display:none; }
  .nav-toggle{ display:inline-block; }
  .footer-inner{ flex-direction: column; }
}

/* Mobile menu open state (JS가 body에 data-menu="open" 부여) */
body[data-menu="open"] .nav{
  display:flex;
  position: fixed;
  left: 18px; right: 18px; top: 76px;
  flex-direction: column;
  background: rgba(12,12,22,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 10px;
  gap: 6px;
  box-shadow: var(--shadow);
}
body[data-menu="open"] .nav a{ padding: 12px 12px; }
