:root {
  color-scheme: only light;
  --bg: #FCFBF6;
  --bg-deep: #F5F1EA;
  --surface: #FDFDFB;
  --ink: #14130D;
  --ink-soft: #4A4744;
  --ink-mute: #898680;
  --accent: #F36708;
  --accent-hover: #D85808;
  --accent-soft: #FAFBEE;
  --border: #E1DED8;
  --border-strong: rgba(31, 27, 23, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  forced-color-adjust: none;
}

body {
  min-height: 100vh;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "ss18", "tnum";
  letter-spacing: 0;
  line-height: 1.55;
  word-break: keep-all;
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #FCFBF6 !important;
    color: #14130D !important;
  }

  .demo-title,
  .scenario-title,
  .brand-word,
  .checkout-card h1,
  .plan-box strong {
    color: #14130D !important;
  }

  .demo-lead,
  .scenario-lead,
  .hero-note p,
  .output-card li,
  .flow-row,
  .checkout-card p,
  .plan-box span {
    color: #4A4744 !important;
  }

  .eyebrow,
  .panel-label,
  .safe-note,
  .nav-link {
    color: #898680 !important;
  }

  .brand-symbol span {
    background-color: #14130D !important;
  }
}

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

button,
textarea {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.demo-shell {
  min-height: 100vh;
}

.demo-nav {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-symbol {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.brand-symbol span {
  display: block;
  width: 2px;
  height: 11px;
  border-radius: 1px;
  background: var(--ink);
}

.brand-word,
.brand > span:last-child {
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  transition: color 200ms ease, background 200ms ease;
}

.nav-link:hover {
  background: rgba(10, 10, 10, 0.04);
  color: var(--ink);
}

.demo-hero {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 78px 40px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 64px;
  align-items: end;
}

.demo-hero > *,
.demo-stage > *,
.demo-grid > * {
  min-width: 0;
}

.eyebrow {
  font-family: "Archivo", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.demo-title {
  max-width: 940px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 68px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

.demo-title em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.demo-lead {
  max-width: 720px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.72;
}

.hero-actions,
.checkout-actions {
  margin-top: 44px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(10, 10, 10, 0.04);
}

.btn-ghost {
  color: var(--ink-soft);
}

.hero-note {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 22px;
}

.hero-note strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.hero-points {
  margin-top: 18px;
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.hero-points li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
}

.demo-stage {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 40px 112px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.scenario-panel {
  position: sticky;
  top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border-strong);
}

.panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-mute);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scenario-list {
  border-bottom: 1px solid var(--border);
}

.scenario-btn {
  width: 100%;
  min-height: 74px;
  padding: 16px 2px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.42;
  transition: color 200ms ease, padding-left 200ms ease;
}

.scenario-btn:hover,
.scenario-btn.active {
  color: var(--ink);
  padding-left: 10px;
}

.scenario-btn.active {
  border-top-color: var(--accent);
}

.scenario-btn span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.random-btn {
  width: 100%;
  margin-top: 20px;
}

.workspace {
  display: grid;
  gap: 18px;
}

.result-panel {
  padding-top: 6px;
  border-top: 1px solid var(--border-strong);
}

.scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scenario-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.scenario-title {
  max-width: 720px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}

.scenario-lead {
  max-width: 690px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
  letter-spacing: 0;
  line-height: 1.65;
}

.demo-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.input-panel,
.preview-panel,
.checkout-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.input-panel,
.preview-panel {
  padding: 24px;
}

.input-panel h3,
.preview-panel h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.sample-input {
  width: 100%;
  min-height: 196px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: normal;
  outline: none;
}

.sample-input:focus {
  border-color: var(--accent);
}

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

.safe-note {
  max-width: 300px;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.5;
}

.chat-demo {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.chat-line {
  display: grid;
  gap: 6px;
}

.chat-line.trainer,
.chat-line.sent {
  justify-items: end;
}

.chat-meta {
  color: var(--ink-mute);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-bubble {
  max-width: min(92%, 440px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  word-break: normal;
}

.chat-line.system .chat-bubble {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.chat-line.member .chat-bubble {
  background: #F7F3EC;
}

.chat-line.trainer .chat-bubble {
  background: var(--ink);
  color: #fff;
}

.chat-line.ai .chat-bubble {
  border-color: rgba(255, 105, 0, 0.32);
  background: var(--accent-soft);
  color: var(--ink);
}

.chat-line.sent .chat-meta {
  color: var(--accent);
}

.chat-line.sent .chat-bubble {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--ink);
}

.scenario-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

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

.preview-block,
.metric-card,
.feedback-section {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--bg);
}

.preview-block.accent,
.feedback-section:nth-child(2),
.feedback-section:nth-child(4) {
  border-color: rgba(255, 105, 0, 0.28);
  background: var(--accent-soft);
}

.preview-block.muted {
  background: #F7F3EC;
}

.preview-kicker,
.metric-card span,
.feedback-section span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-block strong,
.metric-card strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.preview-block p,
.feedback-section p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}

.preview-block p b {
  display: inline-flex;
  width: 42px;
  color: var(--ink);
  font-weight: 600;
}

.preview-block ul,
.feedback-sections {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.preview-block li {
  list-style: none;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}

.preview-block small,
.metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.45;
}

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

.preview-notice {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

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

.metric-card {
  padding: 12px;
}

.metric-card strong {
  font-family: "Archivo", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
}

.trend-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 12px;
}

.trend-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.output-card {
  padding-top: 2px;
}

.output-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.output-card ul {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--border);
}

.output-card li {
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  position: relative;
}

.output-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.member-flow {
  display: grid;
  border-top: 1px solid var(--border);
}

.flow-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.flow-row b {
  color: var(--accent);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.checkout-shell {
  min-height: 100vh;
  padding-bottom: 80px;
}

.checkout-wrap {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 54px 40px 0;
}

.checkout-card {
  padding: clamp(30px, 5vw, 48px);
}

.checkout-card h1 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

.checkout-card p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.checkout-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.plan-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background: var(--bg);
}

.plan-box strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-box span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.checkout-status {
  margin-top: 24px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .demo-nav {
    padding: 26px 24px;
  }

  .demo-hero {
    padding: 56px 24px 52px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .demo-stage {
    padding: 12px 24px 80px;
    grid-template-columns: 1fr;
  }

  .scenario-panel {
    position: static;
  }

  .scenario-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    border-bottom: 0;
  }

  .demo-grid,
  .checkout-options,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .preview-mini-grid,
  .feedback-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .demo-nav,
  .demo-hero,
  .demo-stage {
    max-width: 100vw;
  }

  .demo-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .demo-title {
    font-size: 32px;
    line-height: 1.15;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .demo-hero > div,
  .hero-note,
  .scenario-panel,
  .workspace,
  .result-panel,
  .demo-lead,
  .hero-actions,
  .checkout-actions {
    max-width: 330px;
    width: 100%;
  }

  .demo-lead {
    font-size: 16.5px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .scenario-title {
    font-size: 30px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .scenario-list {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .hero-actions,
  .checkout-actions {
    display: grid;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .input-actions .btn-secondary {
    width: 100%;
  }

  .safe-note {
    max-width: none;
  }

  .trend-row {
    grid-template-columns: 1fr;
  }

  .checkout-wrap {
    padding: 34px 18px 0;
  }
}
