:root {
  --pine: #0f3a2e;
  --pine-2: #164a3b;
  --tether: #26a17b;
  --ink: #15211c;
  --ink-2: #4a5852;
  --line: #dfe5e1;
  --paper: #f3f5f2;
  --white: #ffffff;
  --up: #d43d3d;
  --down: #2c66d0;
  --radius-lg: 22px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 84px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid #8fd8bd; outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 58, 46, 0.94); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand-mark { width: 27px; height: 27px; color: var(--tether); }
.top-cta { color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); }
.top-cta:hover { background: rgba(255, 255, 255, 0.1); }


/* top strip (same idea as tradelink: thin bar above the header, endless left scroll) */
.ticker { display: block; height: 32px; overflow: hidden; background: #0a2a21; border-bottom: 2px solid var(--tether); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: ticker var(--tk-dur, 80s) linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex: none; align-items: center; height: 100%; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; position: relative; white-space: nowrap; font-size: 12.5px; line-height: 1; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.tk + .tk::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.tk-l { color: rgba(255, 255, 255, 0.5); }
.tk-v { font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.tk-c { font-size: 11.5px; font-weight: 700; min-width: 0; }
.tk[data-dir="up"] .tk-c, .tk[data-dir="up"][data-k="premium"] .tk-v { color: #ff9a9a; }
.tk[data-dir="down"] .tk-c, .tk[data-dir="down"][data-k="premium"] .tk-v { color: #9bbcff; }
.tk-note { color: #a9ebd3; font-weight: 700; gap: 8px; }
.tk-note i { width: 6px; height: 6px; background: var(--tether); transform: rotate(45deg); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker-set[aria-hidden] { display: none; }
}

/* hero */
.hero { background: var(--pine); color: var(--white); padding: 34px 0 40px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
  border: 64px solid rgba(38, 161, 123, 0.13); pointer-events: none;
}
.hero-in { display: grid; gap: 30px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(31px, 8.4vw, 52px); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; }
.lead { margin: 16px 0 0; font-size: 16.5px; color: rgba(255, 255, 255, 0.82); max-width: 32em; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts li { background: var(--pine-2); border-radius: var(--radius-sm); padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 2px; }
.facts b { font-size: 16px; font-weight: 800; color: #a9ebd3; }
.facts span { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.75); }

/* the board: the one loud thing on the page */
.board { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 20px 18px 16px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45); }
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.board-head h2 { font-size: 17px; font-weight: 800; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tether); box-shadow: 0 0 0 0 rgba(38, 161, 123, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(38, 161, 123, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(38, 161, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(38, 161, 123, 0); } }
.quotes { list-style: none; margin: 0; padding: 0; }
.quote { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "src val" "src chg"; align-items: center; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quote:last-child { border-bottom: 0; }
.quote-src { grid-area: src; display: flex; flex-direction: column; }
.quote-src b { font-size: 16px; font-weight: 700; }
.quote-src small { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.quote-val { grid-area: val; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; transition: color 0.6s; }
.quote-unit { font-size: 15px; font-weight: 700; margin-left: 2px; }
.quote-chg { grid-area: chg; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.quote[data-dir="up"] .quote-price, .quote[data-dir="up"] .quote-chg { color: var(--up); }
.quote[data-dir="down"] .quote-price, .quote[data-dir="down"] .quote-chg { color: var(--down); }
.quote[data-ok="0"] .quote-price { font-size: 17px; color: var(--ink-2); font-weight: 600; }
.quote[data-ok="0"] .quote-chg { font-weight: 500; }
.quote.tick .quote-price { animation: tick 0.9s ease-out; }
@keyframes tick { 0% { background: rgba(38, 161, 123, 0.18); } 100% { background: transparent; } }
.board-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.board-foot div { background: var(--paper); border-radius: 10px; padding: 9px 12px; }
.board-foot dt { font-size: 12px; color: var(--ink-2); }
.board-foot dd { margin: 0; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.board-foot dd:empty::before { content: "확인 중"; font-weight: 500; color: var(--ink-2); font-size: 14px; }
.board-note { margin: 12px 2px 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* sections */
.sec-title { font-size: clamp(23px, 5.6vw, 32px); font-weight: 800; line-height: 1.3; margin-bottom: 22px; }
.why { padding: 52px 0 22px; }
.why-grid { display: grid; gap: 22px; }
.why-grid article { padding-left: 16px; border-left: 3px solid var(--tether); }
.why-grid h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.why-grid p { margin: 0; color: var(--ink-2); font-size: 15px; }

.flow { padding: 40px 0 50px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 50px; display: flex; flex-direction: column; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pine); color: var(--white); font-weight: 800; font-size: 15px; display: grid; place-items: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.steps b { font-size: 17px; font-weight: 800; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* form */
.apply { background: var(--white); padding: 48px 0 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apply-in { display: grid; gap: 22px; }
.apply h2 { font-size: clamp(25px, 6vw, 34px); font-weight: 800; }
.apply-copy p { margin: 8px 0 0; color: var(--ink-2); }
.apply-copy .calc { margin-top: 14px; display: inline-block; background: #e8f5ef; color: var(--pine); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.apply-copy .calc b { font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14.5px; font-weight: 700; }
.field select, .field input {
  width: 100%; height: 54px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper);
  padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' stroke='%234a5852' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select:focus, .field input:focus { outline: none; border-color: var(--tether); background-color: var(--white); box-shadow: 0 0 0 4px rgba(38, 161, 123, 0.16); }
.at { position: relative; }
.at i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 17px; color: var(--ink-2); font-weight: 600; }
.at input { padding-left: 34px; }
.field.bad select, .field.bad input { border-color: var(--up); }
.err { font-style: normal; font-size: 13px; color: var(--up); min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  height: 58px; border: 0; border-radius: var(--radius-sm); background: var(--tether); color: var(--white);
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; margin-top: 4px;
}
.submit:hover { background: #1f8f6c; }
.submit:disabled { opacity: 0.6; cursor: progress; }
.form-msg { margin: 0; font-size: 14px; color: var(--up); min-height: 1em; }
.done { text-align: center; padding: 26px 18px; background: #e8f5ef; border-radius: var(--radius-lg); }
.done svg { width: 52px; height: 52px; color: var(--tether); }
.done h3 { font-size: 21px; margin: 10px 0 6px; }
.done p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* faq */
.faq { padding: 48px 0 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 30px 17px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }

.foot { background: var(--ink); color: rgba(255, 255, 255, 0.62); padding: 32px 0 30px; font-size: 13px; }
.foot p { margin: 0 0 8px; max-width: 46em; }
.foot-brand { color: var(--white); font-weight: 800; font-size: 16px; }
.foot-src { color: rgba(255, 255, 255, 0.45); }

/* sticky mobile CTA */
.dock {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30;
  height: 56px; border-radius: 16px; background: var(--tether); color: var(--white); text-decoration: none;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; box-shadow: 0 12px 28px -10px rgba(15, 58, 46, 0.6);
  transition: transform 0.25s, opacity 0.25s;
}
.dock.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }

@media (min-width: 880px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .hero { padding: 72px 0 80px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .lead { font-size: 18px; }
  .facts { max-width: 470px; }
  .board { padding: 26px 26px 20px; }
  .quote-price { font-size: 34px; }
  .why { padding: 84px 0 30px; }
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .flow { padding: 56px 0 84px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 46px 0 0; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { left: 40px; right: -16px; top: 15px; bottom: auto; width: auto; height: 2px; }
  .apply { padding: 80px 0; }
  .apply-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .faq { padding: 80px 0 64px; }
  .faq .wrap { max-width: 760px; }
}
