:root {
  --bg: #f5f1e8;
  --ink: #1a241e;
  --muted: #59665d;
  --line: rgba(26, 36, 30, 0.12);
  --surface: rgba(255, 251, 245, 0.8);
  --accent: #1a6b55;
  --accent-soft: #ddefe6;
  --warm: #c6734c;
  --blue: #2a568d;
  --warning: #f4e3bb;
  --shadow: 0 18px 58px rgba(26, 36, 30, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 115, 76, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(42, 86, 141, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf8f0 0%, #f3eee5 50%, #e9f0e6 100%);
}

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

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

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.site-header,
.landing-card,
.panel,
.step-hero,
.intro-card {
  backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.72);
  box-shadow: var(--shadow);
}

.simple-header {
  justify-content: center;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2c8c70);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 10px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.96;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2c8c70);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.small-button {
  min-height: 44px;
  padding: 0 16px;
}

.landing-main {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
}

.landing-stack {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.landing-card {
  width: min(760px, 100%);
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 251, 245, 0.72);
  box-shadow: var(--shadow);
  text-align: center;
}

.landing-hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 251, 245, 0.72);
  box-shadow: var(--shadow);
}

.landing-card h1,
.intro-card h1,
.step-hero h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.lead,
.landing-list p,
.step-hero p,
.panel-header p,
.notice-box p,
.summary-chip,
.translation-card p,
.trend-summary {
  color: var(--muted);
  line-height: 1.72;
}

.target-line {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  background: rgba(221, 239, 230, 0.58);
  color: var(--ink);
  line-height: 1.72;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-preview {
  display: grid;
  gap: 14px;
  align-content: center;
}

.preview-card,
.flow-card,
.feature-card,
.sample-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.warm-card {
  background: rgba(255, 245, 239, 0.82);
}

.landing-list,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  text-align: left;
}

.landing-list div,
.metrics-grid article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
}

.hero-button {
  margin-top: 30px;
  min-width: 190px;
}

.flow-grid,
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

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

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.flow-card strong,
.feature-card strong,
.sample-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.06rem;
}

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

.sample-panel .step-actions {
  margin-top: 18px;
}

.dual-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.clean-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.step-main {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.step-hero,
.panel {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 245, 0.7);
  box-shadow: var(--shadow);
}

.step-hero {
  display: grid;
  gap: 6px;
}

.panel-header h2 {
  font-size: 2rem;
}

.capture-actions,
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.wide-button {
  min-width: 220px;
}

.hidden-input {
  display: none;
}

.notice-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.warning-box {
  background: rgba(244, 227, 187, 0.48);
}

.file-summary {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
}

.classification-list,
.translation-cards {
  display: grid;
  gap: 12px;
}

.classification-card,
.translation-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
}

.analysis-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.field-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.analysis-form input,
.analysis-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(26, 36, 30, 0.13);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.94);
}

.intro-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.intro-card {
  width: min(760px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 251, 245, 0.78);
  box-shadow: var(--shadow);
}

.loading-line {
  height: 8px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(26, 36, 30, 0.08);
}

.loading-line span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  animation: loadAcross 2.5s ease forwards;
}

@keyframes loadAcross {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(180%);
  }
}

.result-panel {
  display: grid;
  gap: 16px;
}

.large-summary {
  margin: 0;
  font-size: 1.05rem;
}

.chart-card {
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 107, 85, 0.08), rgba(42, 86, 141, 0.03));
}

.sample-chart {
  display: flex;
  align-items: end;
  justify-content: space-around;
  min-height: 240px;
  gap: 18px;
  padding: 12px 8px 0;
}

.sample-bar-group {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 200px;
}

.sample-bar-group span {
  align-self: flex-start;
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.sample-bar {
  width: 22px;
  border-radius: 999px 999px 8px 8px;
}

.sample-bar.green {
  background: var(--accent);
}

.sample-bar.orange {
  background: var(--warm);
}

.sample-bar.blue {
  background: var(--blue);
}

.sample-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 10px 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
}

.legend-dot.green {
  background: var(--accent);
}

.legend-dot.orange {
  background: var(--warm);
}

.legend-dot.blue {
  background: var(--blue);
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .landing-list,
  .metrics-grid,
  .landing-hero-panel,
  .flow-grid,
  .sample-grid,
  .feature-panel .feature-grid,
  .dual-panel,
  .field-row,
  .field-row-3,
  .field-row-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 14px;
  }

  .landing-card,
  .step-hero,
  .panel,
  .intro-card {
    padding: 22px;
    border-radius: 26px;
  }

  .landing-card h1,
  .intro-card h1,
  .step-hero h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }
}
