:root {
  --panel: rgba(255, 252, 247, 0.72);
  --line: rgba(139, 113, 83, 0.16);
  --text: #2d2433;
  --muted: #726173;
  --gold: #bf8655;
  --teal: #4da8a1;
  --shadow: 0 28px 80px rgba(146, 108, 82, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 183, 197, 0.52), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(142, 226, 215, 0.48), transparent 28%),
    radial-gradient(circle at 50% 86%, rgba(255, 228, 177, 0.4), transparent 36%),
    linear-gradient(180deg, #fff9f2 0%, #fff2ea 48%, #f7f4ff 100%);
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.ambient-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 90px;
  background: rgba(255, 164, 192, 0.6);
}

.ambient-b {
  width: 440px;
  height: 440px;
  right: -160px;
  top: 180px;
  background: rgba(116, 220, 204, 0.52);
}

.topbar,
main {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 48px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand strong {
  display: block;
  font-size: 1.35rem;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(191, 134, 85, 0.22);
  border-radius: 16px;
  font-family: 'Marcellus', serif;
  font-size: 1.8rem;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero,
.feature-grid,
.panel,
.roadmap-grid {
  max-width: 1320px;
  margin: 0 auto 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 30px 10px 10px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.feature-card h2,
.roadmap-card h2,
.result-card h3 {
  font-family: 'Marcellus', serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.06;
  max-width: 14ch;
}

.lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: #5f4f5f;
  font-size: 1.25rem;
  line-height: 1.8;
}

.hero-actions,
.ai-buttons,
.pill-set,
.tool-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 26px;
  flex-wrap: wrap;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.button-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, #f09d72, #df7399 90%);
  box-shadow: 0 14px 36px rgba(223, 115, 153, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(191, 134, 85, 0.18);
}

.button.ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(191, 134, 85, 0.16);
}

.hero-bullets {
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.08rem;
}

.hero-art {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(191, 134, 85, 0.16);
  background:
    linear-gradient(140deg, rgba(255, 179, 198, 0.34), transparent 38%),
    linear-gradient(300deg, rgba(121, 221, 216, 0.28), transparent 42%),
    rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.art-card {
  position: absolute;
  max-width: 320px;
  padding: 24px;
  border: 1px solid rgba(191, 134, 85, 0.16);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(18px);
}

.art-card-main {
  left: 34px;
  top: 38px;
}

.mini-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.art-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.orb-one {
  width: 230px;
  height: 230px;
  right: 80px;
  top: 80px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 236, 177, 0.95), rgba(240, 136, 130, 0.2)), rgba(228, 144, 164, 0.48);
}

.orb-two {
  width: 300px;
  height: 300px;
  right: -40px;
  bottom: -40px;
  background: radial-gradient(circle at 40% 40%, rgba(144, 238, 216, 0.82), rgba(64, 116, 138, 0.14)), rgba(72, 166, 179, 0.3);
}

.score-ribbon {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 18px;
  color: rgba(126, 92, 96, 0.64);
  font-size: 2.4rem;
  transform: rotate(-4deg);
}

.feature-grid,
.roadmap-grid,
.score-guide-grid,
.source-lab {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.roadmap-card,
.guide-card,
.panel,
.mini-board,
.source-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card,
.roadmap-card,
.guide-card,
.panel,
.mini-board,
.source-card {
  padding: 26px;
}

.source-lab {
  grid-template-columns: 0.95fr 1.05fr;
  margin: 20px 0 22px;
}

.pipeline-strip {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
  gap: 10px;
  align-items: center;
  margin: 8px 0 26px;
}

.pipeline-step {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 18px 14px;
  border-radius: 28px;
  border: 1px solid rgba(191, 134, 85, 0.14);
  background: rgba(255, 255, 255, 0.42);
}

.step-illustration {
  width: 100%;
  max-width: 210px;
}

.step-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef9d73, #df7399);
  color: #fffaf5;
  font-size: 0.9rem;
  font-weight: 800;
}

.pipeline-step strong {
  font-size: 1.1rem;
  color: var(--text);
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.96rem;
}

.pipeline-connector {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191, 134, 85, 0.08), rgba(90, 183, 176, 0.48), rgba(191, 134, 85, 0.08));
}

.source-card h3 {
  margin: 10px 0 14px;
  font-size: 1.45rem;
  font-family: 'Marcellus', serif;
}

.source-card {
  display: grid;
  gap: 14px;
}

.upload-drop {
  display: grid;
  gap: 8px;
  padding: 26px 22px;
  border-radius: 24px;
  border: 1px dashed rgba(191, 134, 85, 0.34);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.upload-drop input {
  display: none;
}

.upload-title {
  font-weight: 800;
  color: var(--text);
}

.upload-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.or-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.or-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(191, 134, 85, 0.18);
}

.or-divider span {
  position: relative;
  padding: 0 10px;
  background: rgba(255, 252, 247, 0.92);
}

.import-preview {
  min-height: 280px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(191, 134, 85, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 246, 238, 0.84));
}

.import-preview h4 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.import-preview .preview-meta {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.import-preview .preview-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.import-preview .preview-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 134, 85, 0.14);
  color: var(--text);
  font-size: 0.92rem;
}

.preview-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.feature-card h2,
.roadmap-card h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.feature-card p,
.roadmap-card li,
.panel-footnote,
.result-empty,
.score-meta p,
.section-copy,
.guide-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.guide-card strong,
.mini-board strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.panel {
  padding: 30px;
}

.panel-secondary {
  background: rgba(11, 16, 25, 0.86);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 2.5rem;
}

.wrap {
  flex-wrap: wrap;
}

.compact-field {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.compact-field span,
.mini-board-label {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#sketchCanvas,
#scoreSvg {
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), rgba(5, 7, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#sketchCanvas {
  cursor: crosshair;
}

.score-editor {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 16px;
  margin-top: 20px;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#scoreExport,
.ai-form textarea,
.ai-form input,
select {
  width: 100%;
  border: 1px solid rgba(191, 134, 85, 0.16);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  padding: 14px 16px;
}

#scoreExport {
  min-height: 180px;
  resize: vertical;
}

.pill {
  border: 1px solid rgba(191, 134, 85, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  min-width: 190px;
  padding: 14px 22px;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

.pill.active {
  color: #fffaf5;
  background: linear-gradient(135deg, #5ab7b0, #ef9d73);
}

.studio-mode-panel {
  display: grid;
  gap: 14px;
  min-width: 620px;
}

.mode-description {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 134, 85, 0.14);
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.input-output-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.ai-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.ai-form {
  display: grid;
  gap: 16px;
}

.ai-form label {
  display: grid;
  gap: 8px;
  font-size: 1.08rem;
  color: #4e3e4e;
}

.ai-result {
  min-height: 420px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(191, 134, 85, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 246, 238, 0.84));
}

.result-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.result-section {
  margin-top: 18px;
}

.result-section strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.05rem;
}

.result-section ul,
.roadmap-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 1100px) {
  .hero,
  .score-editor,
  .ai-layout,
  .feature-grid,
  .roadmap-grid,
  .score-guide-grid,
  .input-output-heading,
  .source-lab,
  .pipeline-strip {
    grid-template-columns: 1fr;
  }

  .topbar,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .studio-mode-panel {
    min-width: 0;
  }

  .pipeline-connector {
    width: 2px;
    height: 44px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(191, 134, 85, 0.08), rgba(90, 183, 176, 0.48), rgba(191, 134, 85, 0.08));
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .panel h2,
  .feature-card h2,
  .roadmap-card h2 {
    font-size: 1.8rem;
  }

  .pill {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .lead,
  .feature-card p,
  .roadmap-card li,
  .panel-footnote,
  .result-empty,
  .score-meta p,
  .ai-form label,
  .section-copy,
  .guide-card p {
    font-size: 1rem;
  }
}
