/* 가라3번 - DEMO 투자 플랫폼 (딥네이비 + 블루) */
:root {
  --navy: #141c3a;
  --navy2: #1c2650;
  --bg: #f5f7fc;
  --card: #ffffff;
  --line: #e4e9f4;
  --txt: #1d2440;
  --txt2: #5d6884;
  --txt3: #98a1bc;
  --accent: #3b6ef6;
  --accent2: #2b58d8;
  --accent-soft: #eaf0fe;
  --gold: #f5b52e;
  --up: #e5484d;
  --down: #2563eb;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20, 30, 70, .05), 0 10px 30px rgba(20, 30, 70, .07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
  background: var(--bg); color: var(--txt);
  display: flex; flex-direction: column; min-height: 100vh;
  font-size: 15px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.page { flex: 1; }

/* ===== 상단 ===== */
.topwrap { position: sticky; top: 0; z-index: 300; }
.demobar { background: var(--navy); color: #aab4d6; text-align: center; font-size: 12.5px; padding: 7px 16px; }
.demo-chip { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-right: 8px; letter-spacing: .08em; }
.gnb { background: var(--navy2); }
.gnb-in { display: flex; align-items: center; gap: 30px; height: 68px; }
.logo { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.logo-dot { color: var(--accent); }
.gnb-nav { display: flex; gap: 2px; flex: 1; }
.gnb-nav a { padding: 9px 15px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: #b6bee0; transition: .15s; }
.gnb-nav a:hover, .gnb-nav a.on { color: #fff; background: rgba(255, 255, 255, .08); }
.gnb-right { display: flex; align-items: center; gap: 8px; }
.btn-ghost { padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; color: #b6bee0; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-main { padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent2); }
.has-sub { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 30px; color: #fff; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.08); }
.uava { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.caret { display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; }
.sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.sub.right { left: auto; right: 0; }
.has-sub:hover .sub { display: block; }
.sub a { display: block; padding: 9px 13px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--txt2); }
.sub a:hover { background: var(--accent-soft); color: var(--accent); }
.ham { display: none; background: none; border: 0; font-size: 26px; color: #fff; cursor: pointer; }
.mnav-panel { display: none; }

/* ===== 랜딩 ===== */
.hero {
  background:
    radial-gradient(700px 340px at 80% 0%, rgba(59, 110, 246, .25), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(110, 231, 183, .12), transparent 60%),
    var(--navy);
  color: #fff;
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 80px 24px 72px; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #cdd6f5; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 30px; margin-bottom: 22px; }
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.3; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #6ea8ff, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin-top: 18px; font-size: 16.5px; color: #aab4d6; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; }
.btn-lg { display: inline-block; padding: 15px 30px; border-radius: 12px; font-size: 16px; font-weight: 800; }
.btn-lg.main { background: var(--accent); color: #fff; }
.btn-lg.main:hover { background: var(--accent2); }
.btn-lg.out { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn-lg.out:hover { border-color: #fff; }
.hero-cards { display: grid; gap: 14px; }
.hc-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 20px 24px; }
.hc-card .lb { font-size: 12.5px; color: #aab4d6; font-weight: 700; }
.hc-card .vl { font-size: 26px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hc-card .vl em { font-style: normal; font-size: 14px; color: #8b96bd; font-weight: 600; }

.sec { padding: 72px 0; }
.sec.alt { background: #fff; }
.sec-h { text-align: center; margin-bottom: 48px; }
.sec-h .eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.sec-h h2 { font-size: 32px; font-weight: 900; letter-spacing: -.02em; }
.sec-h p { margin-top: 10px; color: var(--txt2); font-size: 15.5px; }

.cstat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cstat { background: linear-gradient(160deg, #fff, #f7f9ff); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); }
.cstat b { display: block; font-size: 34px; font-weight: 900; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cstat b small { font-size: 18px; }
.cstat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--txt2); font-weight: 600; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
.svc-ico.c1 { background: #eaf0fe; } .svc-ico.c2 { background: #e8faf3; } .svc-ico.c3 { background: #fff4e3; }
.svc-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--txt2); line-height: 1.7; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.story-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.story-card .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.story-card .who b { font-size: 14.5px; }
.story-card .who span { font-size: 12px; color: var(--txt3); display: block; }
.story-card p { font-size: 14px; color: var(--txt2); line-height: 1.7; margin-bottom: 16px; }
.story-card .nums { border-top: 1px dashed var(--line); padding-top: 14px; font-size: 12.5px; color: var(--txt3); }
.story-card .nums b { color: var(--txt); font-size: 14px; }

.invest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.invest-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.invest-card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(20,30,70,.13); }
.invest-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--cc, var(--accent)); }
.ic-tags { display: flex; gap: 6px; margin-bottom: 16px; }
.ic-tags span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.invest-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.invest-card h3 span { color: var(--cc, var(--accent)); }
.invest-card .rate { font-size: 15px; color: var(--txt2); }
.invest-card .rate b { font-size: 24px; font-weight: 900; color: var(--cc, var(--accent)); }
.ic-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.ic-rows div { font-size: 12px; color: var(--txt3); }
.ic-rows b { display: block; font-size: 15px; color: var(--txt); font-weight: 800; margin-top: 2px; }
.invest-card .go { margin-top: 16px; font-size: 13px; font-weight: 800; color: var(--cc, var(--accent)); }

/* ===== 인증 ===== */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 70px 24px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 44px 40px; }
.auth-card h1 { font-size: 25px; font-weight: 900; text-align: center; }
.auth-sub { text-align: center; color: var(--txt2); margin: 8px 0 28px; font-size: 14px; }
.auth-sub a { color: var(--accent); font-weight: 700; }
.fld { margin-bottom: 17px; }
.fld label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #f8fafd; font-size: 15px; font-family: inherit; transition: border-color .15s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.fld .hint { font-size: 12px; color: var(--txt3); margin-top: 6px; }
.btn-block { width: 100%; padding: 15px; border: 0; border-radius: 11px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; }
.btn-block:hover { background: var(--accent2); }
.btn-line { padding: 13px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--txt2); font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.alert-err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.alert-ok { background: #e8faf3; color: #0b7a55; border: 1px solid #b9ecd9; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.chk-row { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--txt2); margin-bottom: 16px; }
.chk-row input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ===== 회원 공통 ===== */
.my-hero { background: linear-gradient(120deg, var(--navy), var(--navy2)); color: #fff; }
.my-hero-in { padding: 30px 24px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.my-hi { font-size: 20px; font-weight: 800; }
.my-stats { display: flex; gap: 34px; margin-left: auto; }
.my-stat span { font-size: 12px; color: #aab4d6; font-weight: 600; display: block; }
.my-stat b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.my-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 22px; padding-top: 28px; padding-bottom: 60px; }
.my-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; height: fit-content; }
.my-side a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--txt2); }
.my-side a:hover { background: var(--bg); }
.my-side a.on { background: var(--accent-soft); color: var(--accent); }
.my-main { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-h { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-h h3 { font-size: 16px; font-weight: 800; margin-right: auto; }
.card-p { padding: 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: #f8fafd; color: var(--txt3); font-size: 12px; font-weight: 700; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.bdg { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bdg.done { background: #e8faf3; color: #0b7a55; }
.bdg.wait { background: #fff4dd; color: #b7791f; }
.bdg.cancel { background: #eef1f6; color: var(--txt2); }
.bdg.ing { background: var(--accent-soft); color: var(--accent); }
.bdg.new { background: #fdecec; color: var(--up); }
.kv { display: flex; padding: 10px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { width: 130px; color: var(--txt3); font-weight: 600; flex: none; }
.kv .v { font-weight: 700; }
.btn-sm { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 700; color: var(--txt2); cursor: pointer; font-family: inherit; display: inline-block; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.acc { background: var(--accent); border-color: var(--accent); color: #fff; }
.dw-box { background: #f8fafd; border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; text-align: center; }
.dw-box .bank { font-size: 18px; font-weight: 900; }
.dw-box .bank small { font-size: 13px; color: var(--txt2); font-weight: 600; }
.note { font-size: 13px; color: var(--txt2); line-height: 1.8; margin-bottom: 16px; }
.note b { color: var(--txt); }
.dw-input { display: flex; gap: 10px; }
.dw-input input { flex: 1; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; font-size: 16px; font-weight: 800; font-family: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.dw-input input:focus { outline: none; border-color: var(--accent); }
.dw-input .unit { align-self: center; font-weight: 800; color: var(--txt2); }
.dw-input button { padding: 14px 26px; border: 0; border-radius: 11px; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.dw-input .dep { background: var(--accent); color: #fff; }
.dw-input .wd { background: var(--navy); color: #fff; }
.quick-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick-btns button { padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; color: var(--txt2); cursor: pointer; font-family: inherit; }
.quick-btns button:hover { border-color: var(--accent); color: var(--accent); }
.exp-profit { text-align: right; font-size: 14px; font-weight: 800; color: var(--accent); margin-top: 10px; min-height: 20px; }

/* ===== 상품 상세/신청 ===== */
.detail-hero { background: linear-gradient(140deg, var(--navy), #26336e); color: #fff; padding: 56px 0; }
.detail-hero h1 { font-size: 34px; font-weight: 900; }
.detail-hero h1 span { color: #8db4ff; }
.detail-hero .d-rate { font-size: 20px; margin-top: 10px; font-weight: 800; }
.detail-hero .d-rate b { font-size: 34px; color: var(--gold); }
.detail-hero p { color: #aab4d6; margin-top: 12px; max-width: 640px; }
.point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.point-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.point-card p { font-size: 13.5px; color: var(--txt2); line-height: 1.7; }
.join-btn-big { display: block; width: 100%; max-width: 420px; margin: 40px auto 0; padding: 18px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 900; text-align: center; }
.join-btn-big:hover { background: var(--accent2); }

/* ===== 리스트/뷰 ===== */
.list-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .dt { font-size: 12.5px; color: var(--txt3); flex: none; }
.list-row .tt { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .arr { color: var(--txt3); }
.view-box h2 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.view-box .meta { font-size: 13px; color: var(--txt3); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.view-box .cnt { font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }
.reply-box { margin-top: 22px; background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; }
.reply-box .rp-h { font-size: 13px; font-weight: 800; color: var(--accent2); margin-bottom: 8px; }
.reply-box .rp-c { font-size: 14px; white-space: pre-wrap; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 18px 6px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '⌄'; color: var(--txt3); font-size: 18px; transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .fa { padding: 0 6px 20px; color: var(--txt2); font-size: 14px; line-height: 1.75; }
.empty { text-align: center; color: var(--txt3); padding: 40px 0; font-size: 14px; }
.sec-title { font-size: 20px; font-weight: 900; margin-bottom: 18px; }
.page-head { padding: 48px 0 36px; }
.page-head h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.page-head p { color: var(--txt2); margin-top: 8px; }
.chat-box { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 260px; max-height: 420px; overflow-y: auto; }
.chat-msg { max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.adm { align-self: flex-start; background: #eef1f6; border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; }
.chat-form button { padding: 11px 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ===== 푸터 ===== */
.foot { background: var(--navy); color: #8b96bd; padding: 40px 0 32px; margin-top: auto; }
.foot-links { display: flex; gap: 20px; margin-bottom: 16px; }
.foot-links a { font-size: 13.5px; font-weight: 700; color: #cdd6f5; }
.foot-links a:hover { color: #fff; }
.foot-co { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.demo-tag { background: var(--gold); color: var(--navy); font-weight: 800; font-size: 10px; padding: 1px 7px; border-radius: 4px; vertical-align: 2px; }
.foot-info { font-size: 12.5px; line-height: 1.8; }
.foot-copy { font-size: 12px; margin-top: 16px; color: #6b7699; }

/* ===== 반응형 ===== */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; padding: 52px 24px; }
  .hero h1 { font-size: 32px; }
  .cstat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .story-grid, .point-grid { grid-template-columns: 1fr; }
  .my-wrap { grid-template-columns: 1fr; }
  .my-side { display: flex; overflow-x: auto; gap: 4px; }
  .my-side a { white-space: nowrap; }
  .my-hero-in { gap: 18px; }
  .my-stats { margin-left: 0; gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .gnb-nav, .gnb-right { display: none; }
  .ham { display: block; margin-left: auto; }
  body.mnav .mnav-panel { display: block; background: var(--navy2); padding: 8px 24px 18px; }
  .mnav-panel a { display: block; padding: 11px 4px; font-weight: 700; color: #b6bee0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dw-input { flex-wrap: wrap; }
  .dw-input button { width: 100%; }
  .quick-btns { grid-template-columns: repeat(2, 1fr); }
}
