:root {
  --bg: #eef5ff;
  --ink: #121826;
  --muted: #667085;
  --line: rgba(255, 255, 255, 0.68);
  --panel: rgba(255, 255, 255, 0.72);
  --blue: #3182f6;
  --blue-soft: #d9eaff;
  --green: #00a56a;
  --red: #f04452;
  --teal: #00a7b5;
  --orange: #ff8a00;
  --violet: #7950f2;
  --shadow: 0 24px 70px rgba(41, 83, 140, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(49, 130, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(0, 167, 181, 0.16), transparent 24rem),
    linear-gradient(135deg, #f7fbff 0%, #eef5ff 45%, #f6f8fb 100%);
}

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

button,
input {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.65;
}

.ambient-a {
  top: 9rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(49, 130, 246, 0.18);
}

.ambient-b {
  right: -4rem;
  bottom: 5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(0, 165, 106, 0.12);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 40px rgba(50, 80, 120, 0.12);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.made-by {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(49, 130, 246, 0.3);
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  background: #f2f6ff;
  color: var(--blue);
}

.made-by {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(52, 64, 84, 0.12);
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: clamp(26px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  color: #475467;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

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

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 32px rgba(49, 130, 246, 0.28);
}

.ghost-action {
  color: #1d2939;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(49, 130, 246, 0.14);
}

.hero-board {
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52)),
    linear-gradient(135deg, rgba(49, 130, 246, 0.08), rgba(0, 165, 106, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.stock-ticket,
.mini-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stock-ticket strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.muted,
.mini-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price-up {
  align-self: start;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--red);
  background: #fff0f1;
  font-weight: 900;
}

.line-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 10px;
  height: 240px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(52, 64, 84, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(247, 251, 255, 0.82);
  overflow: hidden;
}

.line-chart::after {
  content: "";
  position: absolute;
  inset: 46px 24px 60px;
  border-bottom: 4px solid rgba(49, 130, 246, 0.55);
  border-right: 4px solid rgba(49, 130, 246, 0.28);
  transform: skewY(-13deg);
  pointer-events: none;
}

.line-chart span {
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #3182f6, #9dccff);
}

.mini-metrics div {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 18px;
}

.content-section {
  margin-top: 56px;
  scroll-margin-top: 104px;
}

.hero,
.section-grid {
  scroll-margin-top: 104px;
}

.lesson-card,
.tip-panel,
.chart-card,
.glossary-panel {
  padding: 26px;
}

.glossary-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.flow-step {
  min-height: 180px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.flow-step strong {
  display: block;
  font-size: 17px;
}

.flow-step p,
.tip-panel p,
.indicator-card p,
.candle-notes p,
.term-box p,
.valuation-card p,
.palantir-card p,
.judge-card p {
  color: #526071;
  line-height: 1.65;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.indicator-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 22px;
}

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

.card-head h3 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.abbr {
  display: block;
  margin: 8px 0 18px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.chip {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.chip.blue { color: #1b64da; background: #e8f2ff; }
.chip.teal { color: #087e8b; background: #e3fbfd; }
.chip.green { color: #07875a; background: #e7f8f1; }
.chip.mint { color: #007a6a; background: #e4fbf7; }
.chip.orange { color: #b85f00; background: #fff3df; }
.chip.violet { color: #5b37d6; background: #f0ecff; }
.chip.red { color: #d92d3a; background: #fff0f1; }

.formula-box {
  margin: 2px 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(49, 130, 246, 0.14);
  border-radius: 8px;
  color: #1d2939;
  background: rgba(232, 242, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.range-pill {
  display: grid;
  gap: 5px;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid rgba(49, 130, 246, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.range-pill span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.range-pill strong {
  color: #344054;
  font-size: 13px;
  line-height: 1.4;
}

.visual {
  display: grid;
  place-items: center;
  height: 126px;
  margin: auto 0 18px;
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.72);
}

.balance-visual {
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}

.coin-stack {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.coin-stack span {
  width: 78px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ffd36b, #ffb800);
  box-shadow: 0 5px 0 #df9400;
}

.equals {
  color: var(--muted);
  font-size: 30px;
  font-weight: 900;
}

.profit-box {
  padding: 18px 16px;
  border-radius: 8px;
  color: #07875a;
  background: #e7f8f1;
  font-weight: 900;
}

.blocks-visual {
  grid-template-columns: repeat(4, 52px);
  gap: 10px;
}

.blocks-visual span {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #d8e4f5;
}

.blocks-visual .active {
  background: var(--teal);
  box-shadow: 0 14px 24px rgba(0, 167, 181, 0.24);
}

.gauge {
  position: relative;
  align-items: end;
  padding: 18px;
}

.gauge::before {
  content: "";
  width: 170px;
  height: 86px;
  border-radius: 170px 170px 0 0;
  background: conic-gradient(from 270deg, var(--green) var(--value), #dfe8f3 0);
}

.gauge span {
  position: absolute;
  bottom: 30px;
  width: 14px;
  height: 74px;
  border-radius: 999px;
  background: #121826;
  transform: rotate(28deg);
  transform-origin: bottom center;
}

.volume-bars {
  grid-template-columns: repeat(5, 36px);
  align-items: end;
  gap: 9px;
}

.volume-bars span {
  width: 36px;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--orange), #ffd08a);
}

.eps-visual {
  grid-template-columns: repeat(4, 44px);
  align-items: end;
  gap: 10px;
  padding: 14px;
}

.eps-visual span {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 44px;
  height: var(--h);
  min-height: 42px;
  padding-bottom: 8px;
  border-radius: 8px 8px 0 0;
  color: #fff;
  background: linear-gradient(180deg, #20c7ad, #00a56a);
  font-size: 11px;
  font-weight: 900;
}

.dividend-visual {
  position: relative;
  grid-template-columns: repeat(4, auto);
  gap: 12px;
}

.wallet {
  width: 84px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7950f2, #a58bff);
}

.dividend-visual span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #5b37d6;
  background: #f0ecff;
  font-weight: 900;
}

.risk-meter {
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 0 18px;
}

.risk-meter div {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a56a, #ffca3a, #f04452);
}

.risk-meter i {
  display: block;
  width: 18px;
  height: 32px;
  margin-left: 58%;
  margin-top: -8px;
  border-radius: 999px;
  background: #121826;
}

.risk-meter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.plain-tip {
  display: block;
  padding-top: 14px;
  border-top: 1px solid rgba(52, 64, 84, 0.09);
  color: #344054;
  line-height: 1.55;
}

.valuation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 22px;
}

.valuation-card,
.palantir-card,
.judge-card {
  padding: 24px;
}

.valuation-head h3,
.palantir-card h3,
.judge-card h3 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.per-ladder {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.ladder-row {
  display: grid;
  grid-template-columns: 92px 118px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.ladder-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 900;
}

.ladder-row strong {
  font-size: 17px;
}

.ladder-row p {
  margin: 0;
}

.ladder-row.good span { color: #07875a; background: #e7f8f1; }
.ladder-row.normal span { color: #1b64da; background: #e8f2ff; }
.ladder-row.watch span { color: #b85f00; background: #fff3df; }
.ladder-row.danger span { color: #d92d3a; background: #fff0f1; }

.expectation-chart {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  align-items: end;
  gap: 14px;
  min-height: 190px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(52, 64, 84, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(247, 251, 255, 0.74);
}

.expectation-chart div {
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.expectation-chart span {
  padding: 0 8px 12px;
}

.bar-now {
  height: 42%;
  background: linear-gradient(180deg, #7aaefb, #3182f6);
}

.bar-future {
  height: 92%;
  background: linear-gradient(180deg, #00b899, #00a56a);
  box-shadow: 0 16px 28px rgba(0, 165, 106, 0.18);
}

.palantir-card strong {
  display: block;
  padding: 14px;
  border-radius: 8px;
  color: #1d2939;
  background: rgba(232, 242, 255, 0.8);
  line-height: 1.55;
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.judge-icon {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.judge-icon.buy {
  color: #07875a;
  background: #e7f8f1;
}

.judge-icon.hold {
  color: #b85f00;
  background: #fff3df;
}

.judge-icon.avoid {
  color: #d92d3a;
  background: #fff0f1;
}

.candle-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
}

.candle-figure {
  display: flex;
  justify-content: center;
  gap: 22px;
  min-height: 392px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(52, 64, 84, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(247, 251, 255, 0.76);
}

.candle-demo {
  position: relative;
  display: grid;
  place-items: center;
  align-content: start;
  width: 260px;
  min-height: 342px;
  padding: 4px 0 0;
}

.candle-demo strong {
  margin-top: 8px;
  font-size: 17px;
}

.candle-demo p {
  max-width: 136px;
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.candle-svg {
  width: min(100%, 260px);
  height: auto;
  overflow: visible;
}

.wick-line {
  stroke-width: 8;
  stroke-linecap: round;
}

.candle-body {
  filter: drop-shadow(0 14px 22px rgba(16, 24, 40, 0.16));
}

.red-body,
.red-pencil {
  fill: #e34b58;
  stroke: #d94652;
}

.blue-body,
.blue-pencil {
  fill: #4585ee;
  stroke: #3182f6;
}

.neutral-pencil {
  stroke: #667085;
}

.guide-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
  filter: url("#pencil-red");
}

.candle-svg:nth-of-type(1) .guide-line {
  filter: url("#pencil-red");
}

.candle-demo:nth-child(2) .guide-line {
  filter: url("#pencil-blue");
}

.hand-label {
  font-family: "Apple SD Gothic Neo", "Nanum Pen Script", "Comic Sans MS", cursive, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 4px;
}

.neutral-label {
  fill: #475467;
}

.red-label {
  fill: #d94652;
}

.blue-label {
  fill: #3182f6;
}

.candle-notes {
  display: grid;
  gap: 12px;
}

.candle-notes div,
.term-box {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.candle-notes strong {
  font-size: 18px;
}

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

.glossary-tabs button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #475467;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.glossary-tabs button.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 22px rgba(49, 130, 246, 0.22);
}

.term-box {
  min-height: 218px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(247, 251, 255, 0.72);
}

.term-box h3 {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(52, 64, 84, 0.08);
  font-size: 24px;
  line-height: 1.25;
}

.term-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
}

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

.check-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 18px;
  cursor: pointer;
}

.check-item input {
  position: absolute;
  opacity: 0;
}

.check-item span {
  width: 28px;
  height: 28px;
  border: 2px solid #b9c8dc;
  border-radius: 8px;
  background: #fff;
}

.check-item input:checked + span {
  border-color: var(--blue);
  background:
    linear-gradient(135deg, transparent 52%, #fff 0) 8px 13px / 7px 7px no-repeat,
    var(--blue);
}

.check-item strong {
  line-height: 1.45;
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .candle-layout,
  .valuation-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .indicator-grid,
  .flow-map,
  .judge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .palantir-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

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

  .made-by {
    align-self: flex-end;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 11px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 6px;
    text-align: center;
    font-size: 12px;
  }

  .hero,
  .lesson-card,
  .tip-panel,
  .chart-card,
  .glossary-panel,
  .valuation-card,
  .palantir-card,
  .judge-card {
    padding: 20px;
  }

  .indicator-grid,
  .flow-map,
  .checklist-grid,
  .judge-grid {
    grid-template-columns: 1fr;
  }

  .indicator-card {
    min-height: 420px;
  }

  .ladder-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ladder-row span {
    width: fit-content;
    padding: 0 12px;
  }

  .glossary-tabs button {
    min-height: 42px;
    font-size: 12px;
  }

  .term-box {
    min-height: 190px;
    padding: 20px;
  }

  .stock-ticket,
  .mini-metrics {
    flex-direction: column;
  }

  .line-chart {
    height: 190px;
  }

  .candle-figure {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: auto;
  }

  .candle-demo {
    width: min(100%, 220px);
  }
}
