:root {
  color-scheme: light;
  --bg: #f4ecde;
  --bg-soft: #fbf7ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdfa;
  --border: #dbc8aa;
  --accent: #0a7b74;
  --accent-soft: #d6efeb;
  --text: #1f2521;
  --muted: #64685f;
  --danger: #b04c3c;
  --shadow: 0 18px 40px rgba(84, 61, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 123, 116, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f0e4 0%, var(--bg) 100%);
}

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

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 30px;
}

.hero-panel {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.hero-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}

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

.panel-value {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

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

.card {
  padding: 24px;
}

.card.wide {
  grid-column: 1 / -1;
}

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

.card h2 {
  margin: 6px 0 0;
  font-size: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button.secondary,
.button.ghost {
  background: var(--surface-strong);
}

.button.small {
  min-height: 40px;
  padding-inline: 16px;
}

.empty-state {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
  gap: 16px;
}

.brief-box,
.insight-box,
.candidate-item,
.event-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
}

.brief-box h3,
.insight-box h3,
.stock-block h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.brief-box p,
.stock-block p,
.event-item p,
.candidate-item p {
  margin: 0;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0f5b55;
  font-size: 13px;
  font-weight: 700;
}

.candidate-item {
  display: grid;
  gap: 10px;
}

.candidate-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.candidate-symbol {
  font-size: 20px;
  font-weight: 800;
}

.priority-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.candidate-meta,
.event-meta {
  color: var(--muted);
  font-size: 13px;
}

.stock-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 14px;
  font: inherit;
}

.stock-layout {
  display: grid;
  gap: 16px;
}

.stock-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.stock-symbol {
  font-size: 28px;
  font-weight: 900;
}

.stock-subtitle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.stock-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}

.event-item {
  display: grid;
  gap: 8px;
}

.event-item h3 {
  margin: 0;
  font-size: 17px;
}

.error-box {
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .brief-layout,
  .stock-grid {
    grid-template-columns: 1fr;
  }

  .stock-form {
    grid-template-columns: 1fr;
  }
}
