/* 지니트레이더 V2 — 금융 정보 포털형 한 페이지. 색은 :root 값만 고치면 된다. */
:root {
  --navy: #0b1226;
  --navy-2: #131d3b;
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --blue: #2f6bff;
  --gold: #ffc928;
  --gold-hover: #ffd24f;
  --up: #d92d20;     /* 한국식: 상승=빨강 */
  --down: #1d5fd6;   /* 하락=파랑 */
  --radius: 14px;
  --max: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-line { border-color: rgba(200, 214, 255, .35); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #3aaee6; transform: translateY(-1px); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #ffee33; transform: translateY(-1px); }
.btn[hidden], [hidden] { display: none !important; }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 상단바 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(11, 18, 38, .95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(200, 214, 255, .1); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.logo img { width: 32px; height: 32px; border-radius: 9px; background: var(--navy-2); }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: rgba(234, 240, 255, .75); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.menu-btn { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; padding: 4px 8px; }
.nav-mobile { display: none; background: var(--navy); border-top: 1px solid rgba(200, 214, 255, .1); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 14px 20px; color: #fff; border-bottom: 1px solid rgba(200, 214, 255, .08); }
@media (min-width: 900px) { .nav-links { display: flex; } .menu-btn { display: none; } }

/* 시세 띠 */
.ticker { margin-top: 62px; background: var(--navy-2); color: #fff; border-bottom: 1px solid rgba(200, 214, 255, .1); }
.ticker .wrap { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.tick { flex: 0 0 auto; padding: 10px 20px 10px 0; margin-right: 20px; border-right: 1px solid rgba(200, 214, 255, .12); display: flex; flex-direction: column; min-width: 120px; }
.tick:last-child { border-right: 0; }
.tick small { font-size: 11.5px; color: rgba(234, 240, 255, .6); }
.tick b { font-size: 15px; font-weight: 700; }
.tick .chg { font-size: 12.5px; font-weight: 600; }
.chg.up { color: #ff6b5e; } .chg.down { color: #6ea2ff; }
.ticker.empty, .tv-fallback.empty { display: none; }
.tv-box { min-height: 46px; }
.tv-box .tradingview-widget-container { width: 100%; }

/* 히어로 */
.hero { background: radial-gradient(900px 400px at 85% -10%, rgba(47, 107, 255, .35), transparent 60%), var(--navy); color: #fff; padding: 28px 0 40px; }
.hero h1 { font-size: clamp(26px, 5vw, 44px); }
.hero .wrap { display: grid; gap: 32px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold); border: 1px solid rgba(255, 201, 40, .4); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.2; margin: 16px 0; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(234, 240, 255, .8); font-size: 16.5px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.brief { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.brief-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.brief-top b { font-size: 13px; letter-spacing: .06em; color: var(--blue); }
.brief-top time { font-size: 12px; color: var(--muted); }
.brief h2 { font-size: 19px; line-height: 1.4; margin-bottom: 12px; }
.brief li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: #26304a; }
.brief li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); }
.brief .more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; } .hero { padding: 44px 0 52px; } }

/* 메인 AI 자동매매 소개 띠 */
.auto-strip { background: linear-gradient(135deg, #fff7da, #fff); border-bottom: 1px solid var(--line); padding: 28px 0 14px; }
.auto-strip .wrap { display: grid; gap: 16px; align-items: center; }
.auto-strip img { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); }
.auto-strip h2 { font-size: clamp(21px, 3.2vw, 28px); font-weight: 800; margin: 4px 0 8px; }
.auto-strip h2 em { font-style: normal; color: #b07a00; }
.auto-strip p { color: #3a445a; font-size: 15px; max-width: 640px; }
.auto-points { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.auto-points li::before { content: "✓ "; color: #b07a00; font-weight: 800; }
.auto-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line-dark { border-color: var(--navy); color: var(--navy); }
.btn-line-dark:hover { background: rgba(11, 18, 38, .06); }
.auto-strip p.auto-fine { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) { .auto-strip .wrap:first-child { grid-template-columns: auto 1fr auto; gap: 24px; } .auto-strip { padding: 32px 0 16px; } }

/* 섹션 공통 */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.head { margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--blue); }
.head h2 { font-size: clamp(24px, 3.6vw, 32px); margin: 6px 0 8px; font-weight: 800; }
.head p { color: var(--muted); max-width: 640px; }
.fine { font-size: 12.5px; color: var(--muted); }
.badge-sample { display: inline-block; background: #fff3cd; color: #7a5b00; border: 1px solid #ffe08a; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

/* 뉴스 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.news { display: grid; gap: 14px; }
@media (min-width: 700px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35); transform: translateY(-2px); }
.news-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cat { font-weight: 700; color: var(--blue); }
.news-card h3 { font-size: 16.5px; line-height: 1.4; font-weight: 700; }
.news-card p { font-size: 14px; color: #3a445a; }
.news-card .src { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.state { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* 리포트 */
.reports { display: grid; gap: 12px; }
.report { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.report .info { flex: 1 1 260px; min-width: 0; }
.report h3 { font-size: 16.5px; font-weight: 700; }
.report p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.theme { font-size: 12.5px; font-weight: 700; color: #1d4fbf; background: #e8eefc; padding: 3px 10px; border-radius: 999px; }
.stack { display: grid; gap: 14px; }
.latest { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.latest[hidden] { display: none; }
.latest h3 { font-size: 17px; line-height: 1.4; }
.latest .brief-top { margin-bottom: 8px; }
.hero-sub { margin-top: 14px; font-size: 14px; color: rgba(234, 240, 255, .7); }
.hero-sub a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
.tag.free { background: #e7f6ec; color: #11703a; }
.tag.member { background: #e8eefc; color: #1d4fbf; }

/* 텔레그램 가입 띠 */
.join-band { background: linear-gradient(135deg, #16285f, #0b1226); color: #fff; padding: 44px 0; }
.join-band .wrap { display: grid; gap: 18px; align-items: center; }
.join-band h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; }
.join-band h2 em { font-style: normal; color: var(--gold); }
.join-band p { color: rgba(234, 240, 255, .8); margin-top: 6px; }
.join-band ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 14px; color: rgba(234, 240, 255, .9); }
.join-band li::before { content: "✓ "; color: var(--gold); font-weight: 800; }
@media (min-width: 800px) { .join-band .wrap { grid-template-columns: 1fr auto; } }

/* 자동매매 소개 */
.grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .no { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .08em; }
.card h3 { font-size: 17.5px; margin: 6px 0 6px; font-weight: 700; }
.card p, .card li { font-size: 14.5px; color: #3a445a; }
.checks li { position: relative; padding: 6px 0 6px 24px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.product { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.product .tagline { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.product h3 { font-size: 22px; margin: 6px 0 12px; }
.product .checks li { color: rgba(234, 240, 255, .9); }
.product .checks li::before { color: var(--gold); }
.product .btn { margin-top: 16px; }
.product .fine { color: rgba(234, 240, 255, .6); margin-top: 12px; }

/* 성과(시뮬레이션) */
.notice { background: #fff8e1; border: 1px solid #ffe08a; border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #5a4300; margin-bottom: 18px; }
.perf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.perf h3 { font-size: 19px; font-weight: 800; }
.perf-sub { font-size: 13px; color: var(--muted); }
.perf-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.perf-chips span { border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.perf-chips small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.perf-chips b { font-size: 15px; }
.perf-chips i { font-style: normal; font-weight: 600; font-size: 12.5px; }
.chip-up { background: #e8f0ff; color: #1d4fd8; }
.chip-risk { background: #eef1f6; color: #1d2a44; }
.chip-risk b { color: #b42318; }
.perf-img { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.perf-img img { width: 100%; height: auto; }
.zoom-tag { position: absolute; right: 10px; bottom: 10px; background: rgba(11, 18, 38, .85); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.perf-img:hover .zoom-tag, .perf-img:focus-visible .zoom-tag { background: var(--blue); }
.perf-img:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 420px) { .perf-chips b { font-size: 14px; } }

/* 확대 보기 */
.lightbox { border: 0; padding: 0; width: min(100vw - 16px, 1200px); max-height: calc(100vh - 16px); border-radius: 14px; background: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 9, 20, .78); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.lb-bar b { font-size: 14.5px; }
.lb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.lb-actions button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 14px; font-weight: 700; cursor: pointer; }
.lb-actions button:hover { background: var(--bg-alt); }
.lb-body { overflow: auto; flex: 1; background: #f4f6fa; touch-action: pan-x pan-y pinch-zoom; }
.lb-body img { width: 100%; height: auto; max-width: none; }
.lb-body.zoomed img { width: 1785px; }
body.lb-open { overflow: hidden; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 18px 16px; color: #3a445a; font-size: 14.5px; }

/* 푸터 */
footer { background: var(--navy); color: rgba(234, 240, 255, .75); padding: 44px 0 90px; font-size: 13px; }
footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .14em; margin-bottom: 12px; }
footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
footer .risk { margin: 18px 0; padding: 16px; border: 1px solid rgba(200, 214, 255, .18); border-radius: 12px; line-height: 1.7; }
footer .risk b { color: #fff; display: block; margin-bottom: 6px; }
footer .risk p + p { margin-top: 8px; }
footer .copy { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; color: rgba(234, 240, 255, .5); }

/* 모바일 하단 고정 버튼 */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--gold); color: var(--navy); text-align: center; font-weight: 800; padding: 14px; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; }
.sticky-cta.hide { opacity: 0; pointer-events: none; transform: translateY(20px); }
@media (min-width: 800px) { .sticky-cta { display: none; } footer { padding-bottom: 44px; } }

/* 등장 효과 (JS 켜져 있을 때만) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 월별 수익률 표: 수익=파랑, 손실=빨강(성과 보고서와 동일) */
.mt-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mt { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mt caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt thead th { background: #eef1f6; color: #1d2a44; font-weight: 700; padding: 8px 6px; font-size: 12.5px; }
.mt th[scope=row] { font-weight: 700; text-align: center; color: #1d2a44; background: #fff; }
.mt td, .mt tbody th { padding: 7px 6px; text-align: right; border-top: 1px solid #edf0f5; }
.mt tbody th { text-align: center; }
.mt td.pos { color: #1d4fd8; font-weight: 700; }
.mt td.neg { color: #d92d20; font-weight: 700; }
.mt td.pct.pos { background: rgba(47,107,255,var(--a)); }
.mt td.pct.neg { background: rgba(217,45,32,var(--a)); }
.mt tr.tot th, .mt tr.tot td { background: #0b1226; color: #fff; border-top: 0; font-weight: 800; }
.mt tr.tot td.pos { color: #ffc928; }
@media (max-width: 420px) { .mt { font-size: 12px; } .mt td, .mt tbody th { padding: 6px 3px; } }

.inline-link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.btn-broker { margin-left: 8px; }
@media (max-width: 520px) { .btn-broker { margin: 8px 0 0; display: inline-flex; } }

/* 날짜별 특징주 리포트 페이지 */
.rp { padding-top: 28px; padding-bottom: 40px; max-width: 820px; }
.rp-bc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.rp-bc a { color: var(--blue); }
.rp h1 { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.3; font-weight: 800; }
.rp-sub { font-size: .62em; font-weight: 700; color: var(--blue); }
.rp-meta { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.rp-idxs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.rp-idx { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rp-idx small { color: var(--muted); font-size: 12px; }
.rp-idx b { font-size: 22px; }
.rp-idx .up { color: var(--up); font-weight: 700; }
.rp-idx .down { color: var(--down); font-weight: 700; }
.rp-intro { margin: 0 0 14px; line-height: 1.75; }
.rp h2 { font-size: 20px; margin: 24px 0 10px; }
.rp-th { border-top: 1px solid var(--line); padding: 14px 0; }
.rp-th h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.rp-th .no { background: var(--gold); color: var(--navy); border-radius: 6px; padding: 1px 7px; font-size: 13px; font-weight: 800; }
.rp-why { color: var(--blue); font-weight: 700; font-size: 14px; margin: 4px 0 4px; }
.rp-th p { line-height: 1.7; }
.rp-cta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 22px 0 14px; display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.rp-cta p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.rp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-pn { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; font-weight: 700; }
.rp-pn a { color: var(--blue); }
.rp-list { list-style: none; padding: 0; margin: 14px 0 0; }
.rp-list li { border-top: 1px solid var(--line); }
.rp-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; }
.rp-list a span { color: var(--muted); font-size: 14px; }
.rp .notice { margin: 14px 0; }
@media (max-width: 520px) { .rp-idx b { font-size: 18px; } }

footer .brand-line { font-weight: 700; color: #fff; margin-bottom: 8px; }
