:root {
  --bg: #0a111c;
  --bg2: #0f1826;
  --line: #1f2c40;
  --text: #e8eef7;
  --muted: #8a9ab0;
  --accent: #2ee59d;
  --accent-ink: #04281a;
  --font: 'Outfit', 'Pretendard', 'Malgun Gothic', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
.plan .price small { display: block; margin-top: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { position: fixed; inset: 0 0 auto 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(10, 17, 28, .7); border-bottom: 1px solid transparent; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.logo b { color: var(--accent); font-weight: 700; }
.logo .ver { margin-left: 4px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted, #8a93a6); opacity: .55; vertical-align: -3px; }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 9px 18px; font: inherit; font-size: 14px; color: var(--text); background: transparent; cursor: pointer; transition: .2s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }

/* hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 80px; }
.eyebrow { font-size: 13px; letter-spacing: .22em; color: var(--muted); display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
h1 { font-size: clamp(52px, 9vw, 96px); font-weight: 700; letter-spacing: -3px; line-height: 1.02; margin: 22px 0 20px; }
h1 span { color: var(--accent); }
h1 .ver { margin-left: 8px; font-size: 19px; font-weight: 400; letter-spacing: 0; color: var(--muted); opacity: .55; vertical-align: -2px; }
.ver i { font-style: normal; font-size: .72em; }
.lead { font-size: 19px; color: var(--muted); max-width: 480px; }
.lead strong { color: var(--text); font-weight: 500; }
.cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.status { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.orbit { width: 100%; max-width: 420px; margin: 0 auto; }
.orbit svg { width: 100%; height: auto; }
.spin { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.spin.r { animation-duration: 55s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sections */
section { padding: 90px 0; }
section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
h2 { font-size: 32px; letter-spacing: -1px; margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--bg); }
.card .n { color: var(--accent); font-size: 13px; letter-spacing: .15em; }
.card h3 { font-size: 19px; margin: 8px 0; }
.card p { color: var(--muted); font-size: 15px; }
.plan { max-width: 440px; border: 1px solid var(--accent); border-radius: 18px; padding: 30px; background: var(--bg); }
.plan .price { font-size: 34px; font-weight: 700; margin: 8px 0; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.about { max-width: 720px; color: var(--muted); font-size: 17px; }
.about strong { color: var(--text); font-weight: 500; }
.plan .note { color: var(--muted); font-size: 14px; margin: 18px 0 20px; }
.plan ul { list-style: none; color: var(--muted); margin: 14px 0 0; }
.plan li::before { content: '✓ '; color: var(--accent); }
form.inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
input { font: inherit; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; min-width: 0; }
input:focus { outline: none; border-color: var(--accent); }
form.inline input { flex: 1; min-width: 220px; }
.msg { font-size: 14px; margin-top: 10px; min-height: 20px; color: var(--muted); }
.msg.err { color: #ff7b7b; }
.msg.ok { color: var(--accent); }

/* features */
.feat { padding-top: 120px; min-height: 80vh; }
.fx { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.fx-list { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--bg2); }
.fx-group { font-size: 12px; letter-spacing: .15em; color: var(--accent); margin: 12px 8px 4px; }
.fx-group:first-child { margin-top: 2px; }
.fx-item { font: inherit; font-size: 15px; text-align: left; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.fx-item:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.fx-item.on { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.fx-detail { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--bg2); position: sticky; top: 84px; scroll-margin-top: 80px; }
.fx-detail .n { color: var(--accent); font-size: 13px; letter-spacing: .15em; }
.fx-detail h3 { font-size: 28px; letter-spacing: -.5px; margin: 8px 0 14px; }
.fx-detail .desc { color: var(--muted); font-size: 17px; }
.fx-detail .use { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.logo-link { color: inherit; }
h1 a:hover { opacity: .85; }

footer { border-top: 1px solid var(--line); padding: 36px 0 50px; color: var(--muted); font-size: 13px; }
footer p + p { margin-top: 8px; font-size: 12px; opacity: .8; }

/* login / app */
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.box { width: 100%; max-width: 380px; border: 1px solid var(--line); border-radius: 18px; padding: 34px; background: var(--bg2); }
.box .logo { display: block; margin-bottom: 6px; font-size: 26px; }
.box .logo .ver { font-size: 14px; opacity: 1; color: #b4c2d6; }
.box p.d { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.box label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.box input { width: 100%; }
.box .btn.primary { width: 100%; margin-top: 22px; padding: 12px; }
.back { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .orbit { max-width: 260px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .fx { grid-template-columns: 1fr; }
  .fx-detail { position: static; padding: 24px; }
  section { padding: 64px 0; }
}

/* 기능 소개: 화면 캡쳐 + 설명 */
.fx-detail .fx-shot { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0a0f1a; }
.fx-detail .fx-shot img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: top; }
.fx-points { margin: 22px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.fx-points li + li { margin-top: 6px; }
.fx-list { max-height: calc(100vh - 110px); overflow-y: auto; position: sticky; top: 84px; }
.fx-detail { position: static; }
@media (max-width: 800px) { .fx-list { position: static; max-height: none; } }

/* 왼쪽 메뉴를 스크롤 없이 한 화면에 모두 표시 (화면 높이에 맞춰 글자·간격 축소) */
@media (min-width: 801px) {
  .fx-list { max-height: none; overflow: visible; padding: 10px 12px; gap: 0; }
  .fx-item { font-size: clamp(11px, 1.55vh, 15px); line-height: 1.25; padding: clamp(2px, .45vh, 6px) 10px; }
  .fx-group { font-size: clamp(9px, 1.2vh, 12px); margin: clamp(4px, .9vh, 10px) 8px 1px; }
}

/* 한 메뉴 안에서 화면 전환 탭 (예: 국내종목 / 미국종목) */
.fx-tabs { display: flex; gap: 6px; margin-top: 22px; }
.fx-tab { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.fx-tab:hover { color: var(--text); }
.fx-tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.fx-tabs + .fx-shot { margin-top: 12px; }

.fx-tabs { flex-wrap: wrap; }

/* 세로로 긴 화면(매수·매도설정 등)은 프레임 안에서 스크롤 */
.fx-detail .fx-shot { max-height: 640px; overflow-y: auto; }
.fx-detail .fx-shot img { max-height: none; object-fit: fill; }

/* 인트로 소개 문구 */
.about { margin-top: 22px; max-width: 520px; padding-left: 14px; border-left: 2px solid var(--accent); }
.about p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.about p + p { margin-top: 8px; }
.about strong { color: var(--text); font-weight: 500; }
.about + .cta { margin-top: 28px; }

/* 대문자로 표시되는 문구에서 첫 글자 y만 소문자 유지 */
.eyebrow .lc { text-transform: none; }

/* 인트로 소개 문구: 한글 번역 */
.about p.ko { font-size: 16px; }
.about p:not(.ko) + p.ko { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.about p.ko + p.ko { margin-top: 8px; }

/* 소개 문구 끝의 작은 안내 (기능소개 강조) */
.about .hint { font-size: 12.5px; color: var(--muted); }
.about .hint b { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent); }

/* 하부 메뉴: 상위 탭 오른편에 작게 */
.fx-tabs { align-items: center; }
.fx-sub-arrow { color: var(--accent); font-size: 18px; margin: 0 2px 0 4px; line-height: 1; }
.fx-tab.fx-sub { font-size: 12.5px; padding: 3px 11px; border-style: dashed; }
.fx-tab.fx-sub.on { border-style: solid; }

/* 제품문의 창(팝업) */
body.popup { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.popup-box { width: 100%; max-width: 440px; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); box-sizing: border-box; }
.popup-logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.3px; margin-bottom: 18px; }
.popup-logo b { color: var(--accent); }
.popup-box h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.4px; }
.popup-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
#inq-form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
#inq-form input:not(.hp), #inq-form select, #inq-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; }
#inq-form select { cursor: pointer; }
#inq-form input:focus, #inq-form select:focus, #inq-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#inq-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#inq-form .msg { min-height: 20px; margin: 2px 0 12px; font-size: 14px; }
#inq-form button[type=submit] { display: block; width: 100%; text-align: center; padding: 12px 18px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
#inq-form button[disabled] { opacity: .6; cursor: default; }
#inq-done { text-align: center; padding: 8px 0 4px; }
#inq-done[hidden], #inq-formwrap[hidden] { display: none; }
.done-mark { width: 56px; height: 56px; margin: 4px auto 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 30px; line-height: 56px; font-weight: 700; }
.done-text { margin: 10px 0 6px; font-size: 17px; }
.done-mail { margin: 0 0 22px; color: var(--muted); font-size: 14px; word-break: break-all; }
#inq-done .btn { cursor: pointer; font: inherit; font-weight: 600; padding: 10px 28px; }
.popup-box section { padding: 0; }

/* 인트로 하단 왼편: 회사 소개 한 줄 (왼쪽 정렬은 인트로 본문과 같은 선) */
.hero { padding-bottom: 72px; }
.hero-foot { position: absolute; bottom: 28px; margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.hero-foot strong { color: var(--text); font-weight: 500; }
@media (max-width: 800px) {
  .hero { padding-bottom: 0; }
  .hero-foot { position: static; margin: 8px 0 28px; }
}
#inq-form textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* 인트로 상단 문장(영문): 짧은 라벨용 대문자·넓은 자간을 해제하고 긴 문장에 맞춘다 */
.hero .eyebrow { align-items: flex-start; max-width: 540px; font-size: 15px; line-height: 1.6; letter-spacing: .01em; text-transform: none; }
.hero .eyebrow::before { flex: none; margin-top: 8px; }

/* '기능소개' 글자는 기능 소개 페이지로 연결 (글자색은 기존 강조 스타일 유지) */
.about .hint a { color: inherit; text-decoration: none; }
.about .hint a:hover b { color: var(--text); border-bottom-color: var(--text); }
.about .hint a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* 문의내용 입력창 바로 아래 글자 수 안내 */
#inq-form .limit-note { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
