/* =====================================================================
   NOVA 주식 — "Candlestick Editorial"
   잉크 블랙 + 라임 단일 액센트, 초대형 에디토리얼 타이포, 캔들 모티프.
   동기(테르민) 디자인과 무관한 NOVA 고유 디자인.
   ===================================================================== */

:root {
  --bg: #0a0b0e;
  --bg-soft: #101319;
  --panel: rgba(255, 255, 255, 0.022);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(244, 243, 238, 0.12);
  --line-soft: rgba(244, 243, 238, 0.07);

  --paper: #f4f3ee;
  --paper-dim: #a6a8a2;
  --paper-faint: #6a6c68;

  --lime: #c6f53d;
  --lime-deep: #a6e000;
  --red: #ff5d5d;
  --amber: #ffb020;

  --display: "Pretendard", -apple-system, sans-serif;
  --body: "Pretendard", -apple-system, sans-serif;
  --mono: "DM Mono", "Pretendard", ui-monospace, monospace;

  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--paper-dim);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper-grain + vignette atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(198, 245, 61, 0.06), transparent 55%),
    radial-gradient(900px 700px at -10% 110%, rgba(255, 176, 32, 0.05), transparent 55%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.012) 3px 4px);
}

a { color: inherit; text-decoration: none; }
svg, canvas { display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- type helpers ---------- */
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--lime); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--lime); display: inline-block; }
.display { font-family: var(--display); font-weight: 700; line-height: 0.96; letter-spacing: -0.02em; color: var(--paper); }
/* display weights (Pretendard) — refined, not poster-heavy */
.brand, .hero h1, .sec__title, .feat__main h3, .end__big, .voice__mark, .sticky-cta__msg b { font-weight: 700; }
.why__lead { font-weight: 600; }
.num__v { font-weight: 800; }
/* 한글이 음절 단위로 쪼개지지 않게 — 단어(띄어쓰기) 단위로만 줄바꿈 */
.hero h1, .sec__title, .end__big, .why__lead, .feat__main h3 { word-break: keep-all; }
.lime { color: var(--lime); }
.mono { font-family: var(--mono); }
.up { color: var(--lime); } .down { color: var(--red); }
.outline {
  color: transparent; -webkit-text-stroke: 1.5px var(--paper-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; padding: 15px 26px;
  cursor: pointer; border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap; border-radius: 2px;
}
.btn--fill { background: var(--lime); color: #0a0b0e; font-weight: 500; box-shadow: 0 0 0 0 rgba(198,245,61,0.5); }
.btn--fill:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(198,245,61,0.5); }
.btn--line { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--line:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn--lg { padding: 18px 32px; font-size: 15px; }
.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(4px); }
/* gentle pulse to draw the eye (conversion) */
@keyframes ctaPulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(198,245,61,0.0);} 50%{ box-shadow: 0 0 0 8px rgba(198,245,61,0.10);} }
.btn--pulse { animation: ctaPulse 2.6s ease-in-out infinite; }

/* ---------- nav ---------- */
.nav__wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.nav__wrap.is-scrolled { background: rgba(10,11,14,0.8); backdrop-filter: blur(12px); border-bottom-color: var(--line-soft); }
.nav { max-width: var(--container); margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--display); font-size: 24px; color: var(--paper); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 9px; }
.brand i { width: 10px; height: 18px; background: var(--lime); display: inline-block; transform: skewX(-12deg); }
.nav__links { display: flex; gap: 34px; }
.nav__links a { font-family: var(--mono); font-size: 14.5px; letter-spacing: 0.04em; color: var(--paper); transition: color .16s; }
.nav__links a:hover { color: var(--paper); }
.nav__right { display: flex; align-items: center; gap: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 0; overflow: hidden; }
.hero__candles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 30%, rgba(10,11,14,0.4) 65%, transparent), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero__inner { position: relative; z-index: 2; }
.hero__index { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; color: var(--paper-dim); margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero__index b { color: var(--paper); } .hero__index .up { font-weight: 500; }
.hero h1 { font-family: var(--display); font-size: clamp(50px, 10.5vw, 150px); line-height: 1.08; letter-spacing: -0.02em; color: var(--paper); margin-bottom: 30px; }
.hero h1 .line { display: block; margin-bottom: 6px; }
.hero h1 .line { display: block; }
.hero__sub { font-size: clamp(16px, 1.7vw, 20px); color: var(--paper-dim); max-width: 34em; margin-bottom: 18px; }
.hero__trust { font-family: var(--mono); font-size: 12.5px; color: var(--paper-faint); margin-bottom: 34px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero__trust b { color: var(--lime); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 22px; right: 28px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.25em; color: var(--paper-faint); writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); }

/* ---------- hero prediction cards (cycling, full-width + sparkline) ---------- */
.predict { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; width: 100%; transition: opacity .5s ease, transform .5s ease; }
.predict.out { opacity: 0; transform: translateY(14px); }
.pcard { background: var(--paper); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); display: flex; flex-direction: column; min-height: 172px; }
.pcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pcard .nm { font-family: var(--display); font-weight: 700; font-size: 17px; color: #15161b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .code { font-family: var(--mono); font-size: 11px; color: #9a9c95; flex-shrink: 0; }
.pcard .row { display: flex; align-items: baseline; gap: 7px; font-family: var(--mono); font-size: 15px; margin-top: 14px; }
.pcard .cur { color: #6f716a; }
.pcard .ar { color: #b4b6ae; font-size: 13px; }
.pcard .pred { font-weight: 500; }
.pcard .pred.up { color: #0f9a4e; }
.pcard .pred.down { color: #df3149; }
.pcard .chg { font-family: var(--mono); font-size: 12px; margin-top: 4px; }
.pcard .chg.up { color: #0f9a4e; } .pcard .chg.down { color: #df3149; }
.pcard .spark { margin-top: auto; height: 46px; width: 100%; padding-top: 10px; }
.pcard .spark path.line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: sparkdraw 1.1s ease forwards .12s; }
.pcard .spark path.area { stroke: none; opacity: 0.12; }
.pcard .spark.up path.line { stroke: #0f9a4e; } .pcard .spark.up path.area { fill: #0f9a4e; }
.pcard .spark.down path.line { stroke: #df3149; } .pcard .spark.down path.area { fill: #df3149; }
@keyframes sparkdraw { to { stroke-dashoffset: 0; } }
.predict-note { font-family: var(--mono); font-size: 11.5px; color: var(--paper-faint); margin-top: 14px; }

/* ---------- editorial ticker rule ---------- */
.rule { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--bg-soft); }
.rule__track { display: inline-flex; white-space: nowrap; animation: slide 42s linear infinite; font-family: var(--mono); font-size: 13.5px; color: var(--paper-dim); }
.rule:hover .rule__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rule__track .it { padding: 0 22px; }
.rule__track .it b { color: var(--paper); }
.rule__track .sep { color: var(--lime); padding: 0 4px; }

/* ---------- section base ---------- */
.sec { padding: 130px 0; position: relative; border-top: 1px solid var(--line-soft); }
.sec__index { font-family: var(--mono); font-size: 14.5px; color: var(--paper); letter-spacing: 0.2em; }
.sec__title { font-family: var(--display); font-size: clamp(34px, 6vw, 80px); line-height: 1.1; color: var(--paper); margin: 18px 0 0; letter-spacing: -0.01em; }

/* ---------- manifesto / why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.why__lead { font-family: var(--display); font-size: clamp(28px, 3.6vw, 50px); line-height: 1.08; color: var(--paper); letter-spacing: -0.01em; }
.why__lead em { font-style: normal; color: var(--lime); }
.why__body p { font-size: 17px; color: var(--paper-dim); margin-bottom: 18px; max-width: 38ch; }

/* ---------- features: editorial alternating rows ---------- */
.feat { border-top: 1px solid var(--line); }
.feat__row { display: grid; grid-template-columns: 120px 1fr auto; gap: 40px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease, background .25s ease; }
.feat__row:hover { padding-left: 16px; background: linear-gradient(90deg, var(--panel), transparent 50%); }
.feat__no { font-family: var(--mono); font-size: 14px; color: var(--lime); align-self: start; padding-top: 6px; }
.feat__main h3 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); color: var(--paper); line-height: 1; margin-bottom: 14px; letter-spacing: -0.01em; }
.feat__main p { font-size: 16px; color: var(--paper-dim); max-width: 46ch; }
.feat__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--paper-faint); border: 1px solid var(--line); padding: 7px 12px; border-radius: 2px; align-self: start; }
.feat__row:hover .feat__tag { color: var(--lime); border-color: var(--lime); }

/* ---------- numbers (oversized typographic stats) ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.num { padding: 46px 24px 46px 0; border-bottom: 1px solid var(--line); }
.num__v { font-family: var(--display); font-size: clamp(46px, 7vw, 96px); color: var(--paper); line-height: 0.9; letter-spacing: -0.02em; }
.num__v .u { color: var(--lime); font-size: 0.42em; vertical-align: super; }
.num__l { font-family: var(--mono); font-size: 13px; color: var(--paper-faint); margin-top: 14px; letter-spacing: 0.04em; }
.note { font-family: var(--mono); font-size: 12px; color: var(--paper-faint); margin-top: 28px; }

/* ---------- voices (editorial quotes) ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.voice { padding: 40px 32px 38px 34px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.voice:last-child { border-right: none; }
.voice__mark { font-family: var(--display); font-size: 56px; color: var(--lime); line-height: 0.7; display: block; margin-bottom: 8px; }
.voice__q { font-size: 16.5px; color: var(--paper); line-height: 1.75; margin: 0 0 22px; }
.voice__who { font-family: var(--mono); font-size: 12.5px; color: var(--paper-faint); }
.voice__who b { color: var(--paper-dim); font-weight: 500; }

/* ---------- faq ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; color: var(--paper); font-family: var(--body); font-weight: 500; font-size: 18px; padding: 26px 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.faq__q .pm { font-family: var(--mono); color: var(--lime); flex-shrink: 0; transition: transform .25s ease; font-size: 20px; }
.faq__item.open .faq__q .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 0 26px; font-size: 16px; color: var(--paper-dim); max-width: 66ch; }

/* ---------- final cta ---------- */
.end { padding: 150px 0 130px; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.end__big { font-family: var(--display); font-size: clamp(44px, 9vw, 130px); line-height: 1.08; color: var(--paper); letter-spacing: -0.02em; margin-bottom: 26px; }
.end p { font-size: 18px; color: var(--paper-dim); max-width: 34em; margin: 0 auto 36px; }
.end__note { font-family: var(--mono); font-size: 12px; color: var(--paper-faint); margin-top: 20px; }

/* ---------- lead-capture form (version B) ---------- */
.apply { padding: 120px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.apply::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(700px 360px at 70% 0%, rgba(198,245,61,0.10), transparent 70%); }
.apply__grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 60px; align-items: center; }
.apply__copy .sec__title { margin: 16px 0 20px; }
.apply__copy p { font-size: 17px; color: var(--paper-dim); max-width: 40ch; }
.apply__pts { list-style: none; margin-top: 26px; }
.apply__pts li { color: var(--paper); font-size: 16px; padding: 9px 0; display: flex; align-items: center; gap: 12px; }
.apply__pts li::before { content: "✓"; color: #0a0b0e; background: var(--lime); width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.apply__form { background: rgba(255,255,255,0.035); border: 1px solid var(--line-strong); border-radius: 20px; padding: 32px; box-shadow: 0 40px 90px -40px #000; }
.apply__form h3 { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--paper); margin-bottom: 6px; }
.apply__form .sub { font-family: var(--mono); font-size: 12px; color: var(--paper); margin-bottom: 8px; }
.apply__warn { font-family: var(--mono); font-size: 13.5px; color: var(--amber); margin: 0 0 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; color: var(--paper); margin-bottom: 7px; letter-spacing: 0.02em; }
.field input, .field select { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); border-radius: 11px; color: var(--paper); font-family: var(--body); font-size: 15px; transition: border-color .15s ease; }
.field input::placeholder { color: var(--paper-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); }
.field select { appearance: none; cursor: pointer; }
.field select option { color: #14151a; background: #ffffff; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--paper-dim); margin: 8px 0 20px; cursor: pointer; line-height: 1.5; }
.agree input { margin-top: 3px; accent-color: var(--lime); width: 16px; height: 16px; flex-shrink: 0; }
.apply__form .btn { width: 100%; justify-content: center; }
.apply__msg { font-family: var(--mono); font-size: 13px; margin-top: 16px; min-height: 18px; text-align: center; }
.apply__msg.ok { color: var(--lime); }
.apply__msg.err { color: var(--red); }
@media (max-width: 880px) {
  .apply__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* lead version: form as the hero + picks below */
.hero--lead { padding-bottom: 56px; }
.hero__form { position: relative; z-index: 2; align-items: center; }
.apply-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.18; letter-spacing: -0.02em; color: var(--paper); margin: 16px 0 18px; word-break: keep-all; }
.picks { padding: 8px 0 96px; }
.picks__label { font-family: var(--mono); font-size: 14.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); margin-bottom: 4px; }
.picks .predict { margin-top: 18px; }

/* ---------- footer ---------- */
.footer { padding: 70px 0 46px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__tag { color: var(--paper-faint); font-size: 14px; margin-top: 16px; max-width: 30em; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--paper-faint); text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--paper-dim); font-size: 14.5px; padding: 6px 0; transition: color .16s; }
.footer__col a:hover { color: var(--lime); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--paper-faint); }

/* ---------- sticky conversion CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(120%); transition: transform .4s cubic-bezier(.2,.7,.2,1); background: rgba(12,14,18,0.9); backdrop-filter: blur(16px); border-top: 1px solid var(--lime); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta__in { max-width: var(--container); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 18px; }
.sticky-cta__msg { flex: 1; min-width: 0; }
.sticky-cta__msg b { display: block; color: var(--paper); font-family: var(--display); font-size: 18px; letter-spacing: 0.01em; }
.sticky-cta__msg span { font-family: var(--mono); font-size: 12px; color: var(--paper-faint); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .07s; }
.reveal[data-delay="2"]{ transition-delay: .14s; }
.reveal[data-delay="3"]{ transition-delay: .21s; }
.reveal[data-delay="4"]{ transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rule__track, .btn--pulse { animation: none; }
  * { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .why { grid-template-columns: 1fr; gap: 30px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: 1fr; }
  .voice { border-right: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .predict { grid-template-columns: 1fr 1fr; max-width: 480px; }
}
@media (max-width: 620px) {
  .sec { padding: 84px 0; }
  .feat__row { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
  .feat__tag { justify-self: start; }
  .nums { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 10px; }
  .nav__right .btn--line { display: none; }
  .sticky-cta__msg span { display: none; }
}
