@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  --accent-rgb: 124, 58, 237;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5f1;
  --surface: rgba(255,255,255,.92);
  --canvas: #f3f6fb;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--accent-rgb),.1), transparent 32rem),
    radial-gradient(circle at 100% 90%, rgba(var(--accent-rgb),.07), transparent 28rem),
    var(--canvas);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: .8rem clamp(1rem,4vw,3rem);
  border-bottom: 1px solid rgba(203,213,225,.72);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}
.demo-brand { display: flex; align-items: center; gap: .75rem; }
.demo-logo {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .75rem;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb),.24);
}
.demo-brand strong { display: block; font-family: 'Outfit',sans-serif; font-size: .94rem; }
.demo-brand small { display: block; margin-top: .06rem; color: #94a3b8; font-size: .61rem; letter-spacing: .09em; text-transform: uppercase; }
.demo-top-actions { display: flex; align-items: center; gap: .55rem; }
.demo-badge, .demo-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2rem;
  padding: .38rem .66rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: #64748b;
  background: rgba(255,255,255,.82);
  font-size: .68rem;
  font-weight: 700;
}
.demo-badge { color: var(--accent); border-color: rgba(var(--accent-rgb),.18); background: rgba(var(--accent-rgb),.08); }
.demo-back:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.4); }
.demo-back .material-symbols-outlined { font-size: .95rem; }
.demo-shell { width: min(1320px, calc(100% - 2rem)); margin: 1.25rem auto 3rem; }
.demo-alert {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .68rem .9rem;
  border: 1px solid rgba(var(--accent-rgb),.18);
  border-radius: .8rem;
  color: #475569;
  background: rgba(255,255,255,.66);
  font-size: .72rem;
}
.demo-alert .material-symbols-outlined { color: var(--accent); font-size: 1.05rem; }
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  min-height: 700px;
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(15,23,42,.11);
}
.sidebar { padding: 1.1rem .85rem; border-right: 1px solid #e2e8f0; background: linear-gradient(180deg,#0f172a,#172033); color: #cbd5e1; }
.sidebar-label { margin: 1.2rem .7rem .5rem; color: #64748b; font-family: 'Outfit',sans-serif; font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .62rem .7rem; border: 0; border-radius: .68rem; color: #94a3b8; background: transparent; font-size: .73rem; text-align: left; }
.sidebar-item.active { color: #fff; background: rgba(var(--accent-rgb),.25); box-shadow: inset 3px 0 var(--accent); }
.sidebar-item .material-symbols-outlined { font-size: 1.05rem; }
.sidebar-status { margin-top: 2rem; padding: .8rem; border: 1px solid rgba(255,255,255,.08); border-radius: .8rem; background: rgba(255,255,255,.04); }
.sidebar-status span { display: flex; align-items: center; gap: .35rem; color: #e2e8f0; font-size: .67rem; }
.sidebar-status i { width: .42rem; height: .42rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.1); }
.sidebar-status small { display: block; margin-top: .35rem; color: #64748b; font-size: .58rem; }
.main-panel { min-width: 0; padding: 1.35rem; background: #f8fafc; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.eyebrow { color: var(--accent); font-family: 'Outfit',sans-serif; font-size: .61rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.page-heading h1 { margin: .24rem 0 .28rem; font-family: 'Outfit','Noto Sans KR',sans-serif; font-size: clamp(1.55rem,3vw,2.05rem); letter-spacing: -.035em; }
.page-heading p { margin: 0; color: #64748b; font-size: .74rem; line-height: 1.6; }
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .64rem .85rem;
  border: 0;
  border-radius: .7rem;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb),.2);
  font-size: .7rem;
  font-weight: 700;
}
.primary-btn .material-symbols-outlined { font-size: 1rem; }
.card { border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.035); }
.card-pad { padding: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.card-head h2 { margin: 0; font-size: .82rem; }
.card-head small { color: #94a3b8; font-size: .61rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-bottom: .85rem; }
.stat { padding: .85rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fff; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: #94a3b8; font-size: .61rem; }
.stat-label .material-symbols-outlined { color: var(--accent); font-size: 1rem; }
.stat-value { display: block; margin-top: .45rem; font-family: 'Outfit',sans-serif; font-size: 1.3rem; font-weight: 750; }
.stat-trend { display: block; margin-top: .18rem; color: #10b981; font-size: .57rem; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.8fr); gap: .85rem; }
.input-row { display: flex; gap: .55rem; }
.input-mock { flex: 1; min-width: 0; padding: .67rem .75rem; border: 1px solid #dbe5f1; border-radius: .7rem; color: #64748b; background: #f8fafc; font-size: .68rem; }
.pipeline { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; gap: .5rem; }
.pipeline-step { position: relative; padding: .82rem .55rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: #fff; text-align: center; }
.pipeline-step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -.55rem; width: .55rem; height: 2px; background: #cbd5e1; }
.pipeline-step .material-symbols-outlined { display: block; margin: 0 auto .35rem; color: var(--accent); font-size: 1.2rem; }
.pipeline-step strong { display: block; font-size: .65rem; }
.pipeline-step small { display: block; margin-top: .18rem; color: #94a3b8; font-size: .53rem; }
.pipeline-step.success { border-color: #bbf7d0; background: #f0fdf4; }
.pipeline-step.warning { border-color: #fed7aa; background: #fff7ed; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: .55rem .65rem; border-bottom: 1px solid #e2e8f0; color: #94a3b8; font-size: .57rem; font-weight: 700; text-align: left; }
.table td { padding: .65rem; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: .62rem; }
.table tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: .28rem; padding: .25rem .45rem; border-radius: 999px; color: var(--accent); background: rgba(var(--accent-rgb),.09); font-size: .54rem; font-weight: 700; }
.pill.red { color: #dc2626; background: #fee2e2; }
.pill.orange { color: #c2410c; background: #ffedd5; }
.pill.green { color: #047857; background: #d1fae5; }
.terminal { min-height: 160px; padding: .9rem; overflow: hidden; border-radius: .85rem; color: #94a3b8; background: #0b1120; font: .58rem/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; }
.terminal .ok { color: #34d399; }
.terminal .accent { color: #a78bfa; }
.progress { height: .38rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress > span { display: block; width: var(--progress,65%); height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#60a5fa); }
.activity-list { display: grid; gap: .55rem; }
.activity { display: flex; align-items: flex-start; gap: .6rem; }
.activity-icon { display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; place-items: center; border-radius: .55rem; color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.activity-icon .material-symbols-outlined { font-size: .9rem; }
.activity strong { display: block; font-size: .64rem; }
.activity p { margin: .14rem 0 0; color: #94a3b8; font-size: .55rem; line-height: 1.45; }
.security-score { display: grid; width: 8.5rem; height: 8.5rem; margin: .35rem auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) 0 84%,#e2e8f0 84% 100%); }
.security-score::after { content: attr(data-score); display: grid; width: 6.5rem; height: 6.5rem; place-items: center; border-radius: 50%; color: #0f172a; background: #fff; font-family: 'Outfit',sans-serif; font-size: 1.55rem; font-weight: 750; }

/* Product-specific mockups */
.phone-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 1rem; }
.phone { width: 270px; margin: 0 auto; padding: .65rem; border: 7px solid #111827; border-radius: 2.3rem; background: #fff; box-shadow: 0 22px 45px rgba(15,23,42,.2); }
.phone-notch { width: 5rem; height: .9rem; margin: -.2rem auto .75rem; border-radius: 0 0 .7rem .7rem; background: #111827; }
.phone-screen { min-height: 485px; padding: .85rem; border-radius: 1.45rem; background: linear-gradient(160deg,rgba(var(--accent-rgb),.09),#fff 42%); }
.phone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.phone-header strong { font-size: .78rem; }
.avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: .68rem; font-weight: 700; }
.quest-card { margin-bottom: .6rem; padding: .72rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: rgba(255,255,255,.92); }
.quest-card strong { display: block; font-size: .65rem; }
.quest-card p { margin: .2rem 0 .5rem; color: #94a3b8; font-size: .53rem; }
.quest-meta { display: flex; justify-content: space-between; color: var(--accent); font-size: .52rem; font-weight: 700; }
.discord-layout { display: grid; grid-template-columns: 70px 180px minmax(0,1fr) 210px; min-height: 650px; overflow: hidden; border-radius: 1.1rem; color: #d1d5db; background: #313338; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.discord-servers { display: grid; align-content: start; justify-items: center; gap: .65rem; padding: .75rem; background: #1e1f22; }
.server-dot { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 50%; color: #fff; background: #313338; font-size: .72rem; font-weight: 700; }
.server-dot.active { border-radius: .9rem; background: var(--accent); }
.discord-channels { padding: 1rem .75rem; background: #2b2d31; }
.channel { padding: .42rem .5rem; border-radius: .35rem; color: #949ba4; font-size: .64rem; }
.channel.active { color: #f2f3f5; background: #404249; }
.discord-main { padding: 1rem; }
.discord-main h1 { margin: 0; color: #fff; font-size: .82rem; }
.message { display: flex; gap: .65rem; padding: .6rem .2rem; }
.message-body strong { font-size: .68rem; color: #fff; }
.message-body small { color: #949ba4; font-size: .52rem; }
.message-body p { margin: .22rem 0; color: #dbdee1; font-size: .62rem; line-height: 1.55; }
.bot-card { padding: .8rem; border-left: 4px solid var(--accent); border-radius: .3rem; background: #2b2d31; }
.discord-side { padding: 1rem .75rem; background: #2b2d31; }
.license-row { margin-bottom: .55rem; padding: .6rem; border-radius: .55rem; background: #383a40; }
.license-row strong { display: block; font-size: .6rem; }
.license-row span { display: block; margin-top: .2rem; color: #949ba4; font-size: .52rem; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.year-tabs { display: flex; gap: .4rem; }
.year-tab { padding: .4rem .65rem; border-radius: .6rem; color: #64748b; background: #fff; font-size: .62rem; }
.year-tab.active { color: #fff; background: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 130px; gap: .65rem; }
.photo { position: relative; overflow: hidden; border-radius: .85rem; background: var(--photo,linear-gradient(135deg,#bfdbfe,#fbcfe8)); }
.photo:nth-child(2),.photo:nth-child(7) { grid-row: span 2; }
.photo:nth-child(4) { grid-column: span 2; }
.photo::after { content: attr(data-label); position: absolute; left: .55rem; bottom: .5rem; padding: .25rem .42rem; border-radius: .4rem; color: #fff; background: rgba(15,23,42,.45); backdrop-filter: blur(8px); font-size: .52rem; }
.cut-layout { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.35fr); gap: .9rem; }
.dropzone { display: grid; min-height: 280px; place-items: center; padding: 1rem; border: 2px dashed rgba(var(--accent-rgb),.3); border-radius: 1rem; background: rgba(var(--accent-rgb),.045); text-align: center; }
.drop-icon { display: grid; width: 4rem; height: 4rem; margin: 0 auto .8rem; place-items: center; border-radius: 1.25rem; color: var(--accent); background: #fff; box-shadow: 0 12px 26px rgba(var(--accent-rgb),.13); }
.dropzone h2 { margin: 0; font-size: .9rem; }
.dropzone p { color: #94a3b8; font-size: .6rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; overflow: hidden; border-radius: 1rem; }
.compare-side { position: relative; display: grid; place-items: center; overflow: hidden; }
.compare-side.before { background: linear-gradient(135deg,#cbd5e1,#64748b); }
.compare-side.after { background-color: #fff; background-image: linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
.mock-object { width: 62%; height: 65%; border-radius: 48% 48% 38% 38%; background: linear-gradient(145deg,var(--accent),#60a5fa); box-shadow: inset -18px -20px 30px rgba(15,23,42,.15),0 20px 30px rgba(15,23,42,.14); transform: rotate(-5deg); }
.compare-label { position: absolute; top: .7rem; left: .7rem; padding: .28rem .5rem; border-radius: .5rem; color: #fff; background: rgba(15,23,42,.5); font-size: .55rem; font-weight: 700; }
.market-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(230px,.65fr); gap: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.product { overflow: hidden; border: 1px solid #e2e8f0; border-radius: .8rem; background: #fff; }
.product-image { display: grid; height: 100px; place-items: center; color: #fff; background: linear-gradient(135deg,var(--accent),#f59e0b); font-size: 2rem; }
.product-copy { padding: .6rem; }
.product-copy strong { display: block; font-size: .61rem; }
.product-copy span { color: var(--accent); font-size: .6rem; font-weight: 700; }
.board-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(220px,.55fr); gap: .9rem; }
.board-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 90px 70px; align-items: center; padding: .65rem .35rem; border-bottom: 1px solid #f1f5f9; color: #64748b; font-size: .59rem; }
.board-row.header { color: #94a3b8; font-weight: 700; }
.board-row strong { color: #334155; font-size: .62rem; }
.game-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; }
.game { padding: .65rem; border-radius: .7rem; color: #475569; background: #f8fafc; font-size: .58rem; text-align: center; }
.game span { display: block; margin-bottom: .25rem; font-size: 1.2rem; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: .35rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid #334155; }
  .sidebar-label,.sidebar-status { display: none; }
  .sidebar-item { min-width: max-content; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .content-grid,.phone-layout,.cut-layout,.market-layout,.board-layout { grid-template-columns: 1fr; }
  .discord-layout { grid-template-columns: 60px 150px minmax(420px,1fr); overflow-x: auto; }
  .discord-side { display: none; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 600px) {
  .demo-shell { width: min(100% - 1rem,1320px); margin-top: .5rem; }
  .demo-topbar { min-height: 60px; }
  .demo-badge { display: none; }
  .main-panel { padding: .85rem; }
  .page-heading { display: block; }
  .page-heading .primary-btn { margin-top: .7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step:not(:last-child)::after { top: auto; bottom: -.5rem; left: 50%; width: 2px; height: .5rem; }
  .phone-layout { display: block; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid .photo { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .compare { grid-template-columns: 1fr; }
  .compare-side { min-height: 180px; }
}
