:root {
  --bg: #efe6d8;
  --bg-deep: #d8c9b2;
  --panel: rgba(255, 249, 240, 0.88);
  --panel-strong: rgba(255, 251, 245, 0.96);
  --ink: #101722;
  --muted: #5c6876;
  --line: rgba(16, 23, 34, 0.1);
  --line-strong: rgba(16, 23, 34, 0.16);
  --teal: #0e6b63;
  --teal-deep: #0a514b;
  --orange: #d86c38;
  --orange-deep: #b7562a;
  --gold: #efbd52;
  --danger: #b04734;
  --shadow: 0 30px 70px rgba(16, 23, 34, 0.12);
  --shadow-soft: 0 18px 36px rgba(16, 23, 34, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans KR", sans-serif;
  background:
    linear-gradient(180deg, #f7f0e4 0%, #efe6d8 44%, #e7dac8 100%);
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(10px);
  z-index: 0;
}

.scene-a {
  top: -120px;
  left: -90px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(216, 108, 56, 0.24), transparent 68%);
}

.scene-b {
  right: -120px;
  top: 260px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(14, 107, 99, 0.18), transparent 70%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.masthead,
.hero,
.phase-grid,
.workspace,
.workflow-column,
.insight-column,
.mini-grid,
.hero-aside {
  display: grid;
  gap: 18px;
}

.masthead {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
  animation: rise-in 520ms ease both;
}

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

.brand-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--ink), #263347);
  color: #f4efe8;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
}

.overline,
.section-tag,
.eyebrow,
.phase-label,
.metric-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-title {
  margin: 2px 0 0;
  font-family: "Space Grotesk", "IBM Plex Sans KR", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.masthead-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 23, 34, 0.08);
  background: rgba(255, 251, 245, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.status-pill-live {
  background: rgba(14, 107, 99, 0.1);
  color: var(--teal-deep);
}

.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  margin-bottom: 18px;
}

.card-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 239, 0.92)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy,
.principle-card,
.flow-card,
.step-card,
.insight-card,
.utility-card {
  padding: 28px;
}

.hero-copy {
  animation: rise-in 660ms ease both;
}

.hero-title {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "IBM Plex Sans KR", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  margin: 20px 0 0;
  max-width: 50rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), #263347);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 30px rgba(16, 23, 34, 0.16);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.78);
  border: 1px solid rgba(16, 23, 34, 0.08);
  box-shadow: var(--shadow-soft);
}

.metric-value {
  font-family: "Space Grotesk", "IBM Plex Sans KR", sans-serif;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-aside {
  animation: rise-in 780ms ease both;
}

.principle-card {
  background:
    radial-gradient(circle at top right, rgba(239, 189, 82, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(253, 246, 234, 0.96));
}

.principle-card h2,
.phase-card h2,
.step-header h2,
.utility-card h2 {
  margin: 8px 0 0;
  font-size: 1.45rem;
  line-height: 1.18;
}

.principle-list,
.flow-list,
.doc-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.flow-list li + li {
  margin-top: 14px;
}

.flow-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.phase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.phase-card {
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(16, 23, 34, 0.08);
  background: rgba(255, 251, 245, 0.64);
  box-shadow: var(--shadow-soft);
  animation: rise-in 900ms ease both;
}

.phase-card:nth-child(2) {
  animation-delay: 80ms;
}

.phase-card:nth-child(3) {
  animation-delay: 140ms;
}

.phase-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.workspace {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: start;
}

.workflow-column {
  animation: rise-in 1000ms ease both;
}

.insight-column {
  animation: rise-in 1100ms ease both;
}

.step-card {
  min-height: 100%;
}

.accent-card {
  background:
    linear-gradient(145deg, rgba(14, 107, 99, 0.1), rgba(239, 189, 82, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 239, 0.94));
}

.insight-card {
  position: sticky;
  top: 18px;
  background:
    radial-gradient(circle at top left, rgba(239, 189, 82, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 234, 0.96));
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(216, 108, 56, 0.22);
}

.card-copy,
.mini-status,
label,
.toggle span,
.utility-card p,
.doc-list,
.output.empty {
  color: var(--muted);
  font-size: 0.94rem;
}

.card-copy {
  margin: 0 0 18px;
  line-height: 1.72;
}

label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}

textarea,
input {
  width: 100%;
  border: 1px solid rgba(16, 23, 34, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

textarea:focus,
input:focus {
  border-color: rgba(14, 107, 99, 0.42);
  box-shadow:
    0 0 0 4px rgba(14, 107, 99, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

textarea {
  min-height: 126px;
  resize: vertical;
}

button {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 16px 26px rgba(216, 108, 56, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

button:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

button:active,
.primary-link:active {
  transform: translateY(1px);
}

button.secondary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 16px 26px rgba(14, 107, 99, 0.22);
}

button.ghost {
  color: var(--ink);
  background: rgba(16, 23, 34, 0.07);
  box-shadow: none;
}

button.danger {
  color: #fff;
  background: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.output {
  margin-top: 16px;
  min-height: 168px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(16, 23, 34, 0.06);
  background: rgba(245, 238, 224, 0.76);
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.utility-card {
  min-height: 100%;
}

.session-card {
  background:
    radial-gradient(circle at top right, rgba(216, 108, 56, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 239, 0.94));
}

.mini-status {
  margin-top: 16px;
  min-height: 52px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 23, 34, 0.08);
  line-height: 1.6;
}

.doc-list a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 600;
}

.doc-list a:hover {
  text-decoration: underline;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .insight-card {
    position: static;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 18px;
  }

  .masthead,
  .hero,
  .phase-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .masthead-status {
    justify-content: flex-start;
  }

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

  .card-surface,
  .phase-card {
    border-radius: 24px;
  }

  .hero-copy,
  .principle-card,
  .flow-card,
  .step-card,
  .insight-card,
  .utility-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
    line-height: 0.98;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .button-row {
    flex-direction: column;
  }

  button,
  .primary-link {
    width: 100%;
  }
}
