:root {
  --ink: #17212b;
  --muted: #617080;
  --line: #d9e0e7;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --teal: #006d77;
  --teal-dark: #054f57;
  --gold: #c88419;
  --coral: #d95d39;
  --blue: #315f9f;
  --green: #28785e;
  --rose: #c64c72;
  --violet: #7251b5;
  --mint: #d9f0e6;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans KR", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  border: 1px solid var(--line);
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 251, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a,
.cart-button,
.primary-action,
.secondary-action,
.text-link {
  border-radius: 8px;
}

.top-nav a {
  padding: 9px 12px;
  color: #384451;
  font-size: 14px;
}

.top-nav a:hover {
  background: #eef3f5;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.cart-button b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--gold);
  font-size: 12px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 36px;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px 50px;
  position: relative;
}

.market-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle at top center, rgba(0, 109, 119, 0.05), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#hero-title {
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 54px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #405062;
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  color: #ffffff;
  background: var(--teal);
}

.secondary-action {
  background: #ffffff;
  border: 1px solid var(--line);
}

.storefront-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 430px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-box,
.sort-box,
.asset-form label,
.license-form label {
  display: grid;
  gap: 8px;
}

.search-box label,
.sort-box label,
.asset-form label,
.license-form label {
  color: #526170;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.sort-box select,
.asset-form input,
.asset-form select,
.asset-form textarea,
.license-form input,
.license-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.asset-form textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid div {
  min-height: 94px;
  padding: 16px;
  border-radius: 8px;
  background: #f4f8f8;
}

.metric-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 13px;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-picks button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  background: #ffffff;
}

.quick-picks button.is-active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.department-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 32px;
}

.department-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  background: #eaf2ef;
  border: 1px solid #d0dfdb;
  text-align: center;
}

.department-strip b {
  color: var(--coral);
}

.creator-section,
.catalog-section,
.asset-section,
.insight-section,
.license-section,
.roadmap-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px;
}

.creator-section {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sort-box {
  min-width: 180px;
}

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

.product-card {
  display: grid;
  grid-template-rows: 200px auto;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(217, 224, 231, 0.8);
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(23, 33, 43, 0.08);
  border-color: transparent;
}

.product-image-wrap {
  position: relative;
  min-height: 200px;
  background: #eef3f5;
  overflow: hidden;
}

.product-card img {
  height: 200px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
  transform: scale(1.06);
}

.viral-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
  z-index: 2;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
}

.source-badge {
  position: absolute;
  right: 16px;
  bottom: -14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 99px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--line);
  z-index: 2;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.product-meta,
.card-actions,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta {
  justify-content: space-between;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  color: #0e4f58;
  background: var(--mint);
}

.status-pill {
  color: #693800;
  background: #fff0d2;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}

.product-card p {
  margin: 0;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.6;
}

.product-card .subtitle {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 6px;
}

.source-line,
.link-status {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.source-line {
  background: #f4f7f7;
  color: #5a6978;
}

.link-status {
  color: #17403a;
  background: #e8f5ef;
  font-weight: 800;
}

.link-status.is-pending {
  color: #7a4510;
  background: #fff4dd;
}

.project-card {
  border-top-width: 4px;
}

.tone-navy {
  border-top-color: #23405d;
}

.tone-green {
  border-top-color: var(--green);
}

.tone-amber {
  border-top-color: var(--gold);
}

.tone-blue {
  border-top-color: var(--blue);
}

.tone-rose {
  border-top-color: var(--rose);
}

.tone-violet {
  border-top-color: var(--violet);
}

.tone-slate {
  border-top-color: #3f4d5a;
}

.empty-state {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.price-line strong {
  font-size: 22px;
}

.price-line span {
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  margin-top: auto;
}

.card-actions button,
.live-link,
.download-link,
.modal-actions a,
.asset-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
}

.live-link,
.modal-actions a:first-child {
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.download-link,
.modal-actions a:last-child,
.asset-actions a {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.card-actions button {
  background: #ffffff;
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}

.card-actions button:hover {
  background: #f4f7f7;
}

.card-actions [data-add-cart] {
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
  transition: transform 0.2s, background 0.2s;
}

.card-actions [data-add-cart]:hover {
  background: #c24626;
  transform: scale(1.03);
}

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

.history-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.history-grid span {
  color: var(--muted);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 0 32px;
}

.trust-band div {
  min-height: 112px;
  padding: 22px;
  color: #ffffff;
  background: var(--ink);
}

.trust-band b,
.trust-band span {
  display: block;
}

.trust-band span {
  margin-top: 8px;
  color: #d7e0e7;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--teal);
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}

.asset-section {
  border-top: 1px solid var(--line);
}

.asset-console {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.asset-form,
.asset-list-panel,
.license-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.asset-form button[type="submit"],
.license-form button,
.cart-footer button {
  min-height: 44px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
  font-weight: 800;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.asset-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.asset-list-header div {
  display: grid;
  gap: 6px;
}

.asset-list-header button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

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

.asset-empty {
  grid-column: 1 / -1;
}

.asset-card {
  display: grid;
  gap: 12px;
  min-height: 270px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
}

.asset-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asset-card-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 20px;
}

.asset-card p {
  margin: 0;
  color: var(--muted);
}

.asset-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.asset-card dl div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #ffffff;
}

.asset-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-card dd {
  margin: 0;
}

.asset-actions {
  margin-top: auto;
}

.asset-actions span {
  color: var(--muted);
  font-size: 13px;
}

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

.article-layout article {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: stretch;
  min-height: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.article-layout img {
  height: 100%;
  border-radius: 8px;
}

.article-layout article div {
  display: grid;
  align-content: center;
  gap: 10px;
}

.article-layout p {
  margin: 0;
  color: var(--muted);
}

.license-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.license-section p {
  max-width: 680px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.timeline div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
  background: #eef3f5;
  border: 1px solid #d8e3e7;
}

.timeline b {
  color: var(--blue);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header button,
.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 22px;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  overflow: auto;
}

.cart-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.cart-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-footer p {
  min-height: 64px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f5f7f7;
  color: #405062;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(23, 33, 43, 0.62);
}

.modal.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 22px;
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
}

.modal-card img {
  height: 100%;
  min-height: 320px;
  border-radius: 8px;
}

.modal-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.modal-card dl div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f7f7;
}

.modal-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-card dd {
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .market-hero,
  .license-section,
  .asset-console {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .storefront-panel {
    min-height: auto;
  }

  .department-strip,
  .product-grid,
  .history-grid,
  .trust-band,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .article-layout article {
    grid-template-columns: 170px 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .market-hero,
  .department-strip,
  .creator-section,
  .catalog-section,
  .asset-section,
  .insight-section,
  .license-section,
  .roadmap-section,
  .trust-band,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .metric-grid,
  .department-strip,
  .history-grid,
  .product-grid,
  .trust-band,
  .timeline,
  .article-layout article,
  .asset-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .article-layout article {
    min-height: auto;
  }

  .article-layout img,
  .modal-card img {
    height: 220px;
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
