:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #60717f;
  --line: #d9e1e7;
  --paper: #f7fafc;
  --panel: #ffffff;
  --brand: #0f8b8d;
  --brand-dark: #0b5f6b;
  --accent: #f2b84b;
  --rose: #d9546b;
  --green: #3fa66f;
  --shadow: 0 16px 48px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.compact-brand {
  min-width: 156px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 18px;
}

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

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  justify-content: center;
}

.nav-group {
  position: relative;
}

.nav-group > button,
.nav-root,
.header-actions a,
.login-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-group > button:hover,
.nav-root:hover,
.header-actions a:hover {
  background: #eef5f5;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel {
  display: grid;
}

.nav-panel a {
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-panel a:hover {
  background: #eef5f5;
}

.login-button,
.logout-link,
.search-row button,
.upload-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
}

.logout-link {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(60px, 10vw, 112px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(120deg, #f8fbfa 0%, #eef8f7 54%, #fff8e9 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.hero-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-motion-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.38) 42%, rgba(255, 255, 255, 0.64) 78%),
    linear-gradient(180deg, rgba(248, 251, 250, 0.12), rgba(248, 251, 250, 0.58));
}

.hero-motion-bg img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(150vw, 150vh);
  height: max(150vw, 150vh);
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
  transform-origin: center;
  opacity: 0.74;
  filter: saturate(1.18) contrast(1.08);
  animation: searchBackdropSpin 46s linear infinite;
}

.hero-copy,
.search-shell,
.content-scale {
  position: relative;
  z-index: 1;
}

@keyframes searchBackdropSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.02);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.08);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1.02);
  }
}

.hero-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 860px);
  max-width: 860px;
  text-align: center;
}

.hero-logo {
  display: inline-grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-mark {
  width: clamp(160px, 16vw, 220px);
  height: clamp(160px, 16vw, 220px);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 139, 141, 0.18);
}

.hero-logo strong,
.hero-logo small {
  display: block;
}

.hero-logo strong {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
}

.hero-logo small {
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #435461;
  font-size: 19px;
  line-height: 1.7;
}

.hero-media {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 72px);
  gap: 12px;
  min-height: 480px;
}

.tile {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tile-photo {
  grid-area: 1 / 1 / 4 / 5;
  background:
    radial-gradient(circle at 72% 28%, #fff4a3 0 8%, transparent 9%),
    linear-gradient(150deg, #78b9d6 0 45%, #2b816f 46% 66%, #e8d6a6 67%);
}

.tile-video {
  grid-area: 2 / 5 / 5 / 7;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.3) 50% 75%, transparent 75%),
    linear-gradient(135deg, #1c3440, #0f8b8d);
  background-size: 26px 26px, auto;
}

.tile-audio {
  grid-area: 4 / 1 / 7 / 3;
  background:
    repeating-linear-gradient(90deg, #f7c65a 0 10px, #172026 10px 14px, #f7c65a 14px 25px),
    #f7c65a;
}

.tile-vector {
  grid-area: 4 / 3 / 7 / 6;
  background:
    radial-gradient(circle at 30% 32%, #d9546b 0 16%, transparent 17%),
    radial-gradient(circle at 68% 64%, #3fa66f 0 18%, transparent 19%),
    linear-gradient(135deg, #ffffff, #dcebe8);
}

.tile-ppt {
  grid-area: 5 / 6 / 7 / 7;
  background: linear-gradient(135deg, #f2b84b 0 50%, #d9546b 51%);
}

.search-shell {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 960px);
  max-width: 960px;
  margin-top: 24px;
  padding: 14px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--brand), #7ccdc6 38%, var(--accent), var(--rose)) border-box;
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow:
    0 24px 70px rgba(15, 139, 141, 0.18),
    0 10px 24px rgba(23, 32, 38, 0.08);
}

.search-shell::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.16), rgba(242, 184, 75, 0.18));
  border-radius: 26px;
  filter: blur(18px);
}

.search-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.search-caption span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.search-caption label {
  color: #405461;
  font-size: 14px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 150px 1fr 126px;
  gap: 0;
  min-height: 64px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cddde2;
  border-radius: 14px;
}

.search-row select,
.search-row input,
.upload-box input,
.upload-box select,
.upload-box button,
.tier-row input,
.tier-row select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-row select,
.search-row input {
  min-height: 64px;
  border: 0;
  border-radius: 0;
}

.search-row select {
  color: var(--brand-dark);
  background: #eff9f7;
  border-right: 1px solid #d8e8e9;
  font-weight: 900;
}

.search-row input {
  padding: 0 20px;
  color: var(--ink);
  font-size: 17px;
  outline: none;
}

.search-row input::placeholder {
  color: #8ba0aa;
}

.search-row input:focus {
  box-shadow: inset 0 0 0 2px rgba(15, 139, 141, 0.18);
}

.search-row button {
  min-height: 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  border-radius: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.search-row button:hover {
  filter: brightness(1.05);
}

.search-row button:active {
  transform: scale(0.98);
}

.search-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.quick-keywords button {
  min-height: 32px;
  padding: 0 12px;
  color: #3d5966;
  background: #f4faf9;
  border: 1px solid #d9e9e8;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.quick-keywords button:hover {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.content-scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: #4e6470;
}

.content-scale span {
  min-height: 32px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 225, 231, 0.88);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.content-band,
.workspace-layout,
.search-results,
.category-page {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.search-results[hidden] {
  display: none;
}

.search-results {
  background: #edf3f6;
}

.category-page {
  min-height: 70vh;
  background: #edf3f6;
}

.category-hero {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.category-hero p {
  max-width: 720px;
  color: #4f6170;
  line-height: 1.7;
}

.category-panel {
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-page {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(120deg, #f8fbfa 0%, #eef8f7 54%, #fff8e9 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.auth-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-motion-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.48) 46%, rgba(255, 255, 255, 0.72) 78%),
    linear-gradient(180deg, rgba(248, 251, 250, 0.18), rgba(248, 251, 250, 0.7));
}

.auth-motion-bg img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(145vw, 145vh);
  height: max(145vw, 145vh);
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.04);
  opacity: 0.68;
  filter: saturate(1.18) contrast(1.08);
  animation: searchBackdropSpin 54s linear infinite;
}

.auth-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 40px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(135deg, rgba(15, 139, 141, 0.72), rgba(242, 184, 75, 0.78), rgba(217, 84, 107, 0.7)) border-box;
  border: 2px solid transparent;
  border-radius: 22px;
  box-shadow:
    0 28px 80px rgba(15, 139, 141, 0.2),
    0 14px 36px rgba(23, 32, 38, 0.12);
  backdrop-filter: blur(16px);
  text-align: center;
}

.auth-card h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 48px);
}

.auth-card p {
  color: #4f6170;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.login-form label {
  font-weight: 800;
}

.login-form input,
.login-form select,
.login-form button {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #cfe1e4;
  border-radius: 12px;
}

.login-form input,
.login-form select {
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.login-form input:focus,
.login-form select:focus {
  border-color: rgba(15, 139, 141, 0.72);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.13);
}

.login-form button {
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.24);
}

.role-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-preview article {
  padding: 16px;
  background: #f4faf9;
  border: 1px solid #d9e9e8;
  border-radius: 8px;
}

.role-preview strong,
.role-preview span {
  display: block;
}

.role-preview span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-head,
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.plan-card,
.workspace-panel,
.upload-box,
.creator-status article,
.tier-row,
.admin-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-card {
  min-height: 190px;
  padding: 24px;
}

.plan-card span,
.creator-status span,
.tier-row span {
  color: var(--muted);
  font-size: 14px;
}

.plan-card strong {
  display: block;
  margin: 14px 0;
  font-size: 28px;
}

.plan-card p,
.admin-note p {
  color: #4f6170;
  line-height: 1.65;
}

.highlighted {
  border-color: rgba(15, 139, 141, 0.5);
  box-shadow: 0 18px 44px rgba(15, 139, 141, 0.14);
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  background: #edf3f6;
}

.workspace-tabs {
  display: none;
}

.tab-link {
  padding: 14px 16px;
  color: #465966;
  background: transparent;
  border-radius: 6px;
  font-weight: 800;
}

.tab-link.active {
  color: #fff;
  background: var(--brand-dark);
}

.workspace-panel {
  display: none;
  padding: clamp(20px, 4vw, 34px);
}

.workspace-panel.active {
  display: block;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  min-height: 36px;
  padding: 0 12px;
  color: #36505d;
  background: #f4f8f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.asset-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-thumb {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.asset-body {
  padding: 14px;
}

.asset-body strong,
.asset-body span {
  display: block;
}

.asset-body span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1fr;
  gap: 18px;
}

.upload-box {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.upload-box label {
  font-weight: 800;
}

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

.creator-status article {
  min-height: 132px;
  padding: 20px;
}

.creator-status strong {
  display: block;
  margin-top: 22px;
  font-size: 38px;
}

.admin-grid {
  display: grid;
  gap: 12px;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr 120px 180px;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.tier-row strong,
.tier-row span {
  display: block;
}

.tier-row strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.admin-note {
  margin-top: 18px;
  padding: 20px;
  border-left: 5px solid var(--accent);
}

.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 38px clamp(20px, 5vw, 72px);
  color: #d8e5e7;
  text-align: center;
  background: #0b2026;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
}

.company-info {
  max-width: 980px;
  margin: 0;
  color: #9fb4b8;
  font-size: 13px;
  line-height: 1.8;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: min(100%, 980px);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 229, 231, 0.16);
  color: #9fb4b8;
  font-size: 13px;
}

.footer-policy-links a,
.footer-policy-links button {
  padding: 0;
  color: #d8e5e7;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.footer-policy-links a:hover,
.footer-policy-links button:hover {
  color: var(--accent);
}

.footer-admin-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 14px !important;
  color: #102024 !important;
  background: linear-gradient(135deg, var(--accent), #ffd76f) !important;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(242, 184, 75, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-admin-link:hover {
  color: #102024 !important;
  filter: brightness(1.08);
}

.policy-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 22, 27, 0.58);
}

.policy-panel[hidden] {
  display: none;
}

.policy-card {
  position: relative;
  width: min(100%, 720px);
  max-height: min(76vh, 680px);
  overflow: auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #eef5f5;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.policy-body {
  color: #435461;
  line-height: 1.8;
}

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

  .main-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .member-grid,
  .asset-grid,
  .creator-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-layout,
  .creator-layout,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .workspace-tabs {
    display: none;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 38px;
  }

  .search-row,
  .member-grid,
  .asset-grid,
  .creator-status,
  .role-preview,
  .tier-row {
    grid-template-columns: 1fr;
  }

  .nav-panel {
    position: static;
    margin-top: 4px;
    box-shadow: none;
  }
}
