:root {
  /* Trust Blue + Cash Gold */
  --ink: #0b1b2b;
  --ink-deep: #0a1526;
  --brand: #2f6bff;
  --brand-dark: #1e4fcc;
  --brand-light: #e8eeff;
  --gold: #ffc24b;
  --gold-deep: #f59e0b;
  --gold-light: #fff4dc;
  --paper: #f5f7fb;
  --surface: #fff;
  --line: #e2e7f0;
  --muted: #5f6b7c;
  --danger: #d1483f;
  --danger-light: #fbe9e7;
  --sans: Pretendard, "Apple SD Gothic Neo", sans-serif;
  --shell: 1120px;
  --ease: 220ms cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
main { display: block; }
:focus-visible { outline: 3px solid #9dbbff; outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink-deep); color: #fff; border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.site-header.is-scrolled { border-color: rgba(255,255,255,.12); }
.header-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand i, .footer-brand i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--gold), var(--gold-deep)); color: #7a4a06; border: 1.5px solid #ffd88a; font-style: normal; font-weight: 800; font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.site-nav a { color: #d6ddd8; transition: color var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav .nav-cta { padding: 9px 16px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; }
.site-nav .nav-cta:hover { background: var(--brand-dark); }
.menu-button { display: none; width: 40px; height: 40px; border: 0; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-button i { width: 20px; height: 2px; border-radius: 1px; background: #fff; transition: transform var(--ease); }

/* Buttons */
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border-radius: 10px; border: 0; font-weight: 700; font-size: 15px; transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--brand-light); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: var(--brand-dark); }
.button-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.button-block { width: 100%; }
.button[disabled] { opacity: .5; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--brand-dark); }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--ink-deep); color: #fff; overflow: hidden; }
.hero-layout { padding: 76px 0 84px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: clamp(40px, 7vw, 90px); align-items: center; }
.hero-mark { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); color: #aec4ff; font-size: 13px; font-weight: 700; }
.hero h1 { margin-top: 24px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.28; letter-spacing: -.03em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-lead { max-width: 540px; margin-top: 20px; color: #c6cdc9; font-size: clamp(16px, 1.5vw, 18px); }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-facts { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; gap: 30px; flex-wrap: wrap; }
.hero-facts div { min-width: 96px; }
.hero-facts dt { color: #93a09a; font-size: 12px; font-weight: 700; }
.hero-facts dd { margin-top: 3px; color: #eef2ef; font-size: 14px; font-weight: 650; }

/* Card stage (hero visual: 캐시카드) */
.card-stage { position: relative; padding: 26px; background: var(--surface); border-radius: 16px; color: var(--ink); }
.card-stage::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; }
.demo-card { position: relative; padding: 22px; border-radius: 12px; background: linear-gradient(145deg, var(--gold-light), #fff); border: 1px solid #f0dcae; overflow: hidden; }
.demo-card::after { content: "?"; position: absolute; right: 18px; top: 12px; font-size: 40px; font-weight: 800; color: rgba(232,165,61,.35); }
.demo-card .demo-label { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; }
.demo-card h3 { margin-top: 14px; font-size: 20px; }
.demo-card p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.demo-rate { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.demo-rate strong { font-size: 34px; font-weight: 800; color: var(--brand-dark); }
.demo-rate span { color: var(--muted); font-size: 13px; }
.stage-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* Sections */
.section { padding: clamp(70px, 9vw, 118px) 0; }
.section-alt { background: #fff; }
.section-intro { max-width: 640px; }
.section-intro h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.34; letter-spacing: -.02em; }
.section-intro p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.eyebrow { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--brand-light); color: var(--brand-dark); font-size: 12px; font-weight: 800; }

.steps { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { list-style: none; padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.steps li strong { display: block; margin-top: 16px; font-size: 16px; }
.steps li p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

.feature-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px 26px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.feature-card .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 18px; font-weight: 800; }
.feature-card h3 { margin-top: 18px; font-size: 19px; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.policy-band { background: var(--ink-deep); color: #fff; }
.policy-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
.policy-grid > div { padding: 24px 22px; background: var(--ink-deep); }
.policy-grid dt { color: #8fa0b5; font-size: 12px; font-weight: 700; }
.policy-grid dd { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--gold); }
.policy-grid small { display: block; margin-top: 6px; color: #aeb9c7; font-size: 12.5px; font-weight: 500; }

.cta-band { padding: clamp(60px, 8vw, 96px) 0; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; }
.cta-band p { margin: 14px auto 0; max-width: 480px; color: var(--muted); }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }

/* Footer */
.site-footer { padding: 40px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { font-weight: 800; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; font-size: 13px; font-weight: 650; flex-wrap: wrap; }
.footer-links a:hover { color: var(--brand-dark); }
.site-footer p { margin-top: 18px; color: var(--muted); font-size: 12px; grid-column: 1 / -1; }

/* Alerts / flash */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.alert-success { background: var(--brand-light); color: var(--brand-dark); }
.alert-error { background: var(--danger-light); color: var(--danger); }

/* Auth pages */
.auth-section { padding: clamp(64px, 9vw, 100px) 0; min-height: calc(100vh - 66px - 220px); display: flex; align-items: center; }
.auth-card { width: min(100%, 420px); margin-inline: auto; padding: 36px 32px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.auth-card h1 { font-size: 24px; letter-spacing: -.02em; }
.auth-card .auth-sub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.auth-card form { margin-top: 26px; display: grid; gap: 16px; }
.form-group { display: grid; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--ink); }
.form-group input, .form-group select { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: var(--sans); background: #fff; }
.form-group input:focus, .form-group select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-light); }
.form-hint { color: var(--muted); font-size: 12.5px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Dashboard */
.dash-header { padding: 40px 0 8px; }
.dash-header h1 { font-size: 26px; letter-spacing: -.02em; }
.dash-header p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.balance-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.balance-card { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.balance-card span { color: var(--muted); font-size: 13px; font-weight: 650; }
.balance-card strong { display: block; margin-top: 10px; font-size: 26px; font-weight: 800; }
.balance-card.accent { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.balance-card.accent span { color: #8fa0b5; }

.go-form { margin-top: 28px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.go-form h2 { font-size: 16px; }
.go-form p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.go-form form { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.go-form input[type="url"], .go-form input[type="text"] { flex: 1 1 280px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: var(--sans); }
.go-form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-light); }

.dash-block { margin-top: 34px; }
.dash-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dash-block-head h2 { font-size: 18px; }
.dash-block-head span { color: var(--muted); font-size: 12.5px; }
.empty-state { margin-top: 14px; padding: 34px 20px; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed var(--line); border-radius: 14px; }

.reward-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.reward-card { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.reward-card .status-badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.reward-card.is-pending { background: linear-gradient(145deg, var(--gold-light), #fff); border-color: #f0dcae; }
.reward-card.is-pending .status-badge { background: var(--gold); color: #fff; }
.reward-card.is-opened .status-badge { background: #e3ecff; color: #3b5bdb; }
.reward-card.is-confirmed .status-badge { background: var(--brand-light); color: var(--brand-dark); }
.reward-card.is-revoked .status-badge, .reward-card.is-expired .status-badge { background: #f1f2f0; color: var(--muted); }
.reward-card .amount { display: block; margin-top: 14px; font-size: 24px; font-weight: 800; }
.reward-card .amount.is-locked { color: var(--muted); font-size: 16px; }
.reward-card dl { margin-top: 12px; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.reward-card dl div { display: flex; justify-content: space-between; gap: 8px; }
.reward-card form { margin-top: 16px; }

table.data-table { margin-top: 16px; width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
table.data-table th, table.data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data-table th { color: var(--muted); font-size: 12px; font-weight: 700; background: var(--paper); }
table.data-table tr:last-child td { border-bottom: 0; }
.amount-pos { color: var(--brand-dark); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }
.status-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--paper); color: var(--muted); }

/* Gifts */
.gift-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gift-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.gift-card .gift-image { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.gift-card .gift-image img { width: 100%; height: 100%; object-fit: cover; }
.gift-card .gift-brand { color: var(--muted); font-size: 12px; font-weight: 650; }
.gift-card h3 { font-size: 15px; }
.gift-card .gift-price { margin-top: 4px; font-size: 18px; font-weight: 800; }
.gift-card form { margin-top: 8px; }

/* Legal pages */
.legal-page { padding: 60px 0 100px; }
.legal-page h1 { font-size: 28px; letter-spacing: -.02em; }
.legal-page .update-date { margin-top: 8px; color: var(--muted); font-size: 13px; }
.legal-content { margin-top: 30px; max-width: 760px; color: #313b35; font-size: 15px; }
.legal-content h2 { margin-top: 34px; font-size: 18px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { margin-top: 10px; color: #3d463f; }
.legal-content ul, .legal-content ol { padding-left: 20px; }
.legal-content table { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-content table th, .legal-content table td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }

@media (max-width: 960px) {
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-layout { grid-template-columns: 1fr; }
  .card-stage { width: min(100%, 460px); justify-self: start; }
  .balance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .menu-button { display: flex; z-index: 2; }
  .menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 66px 0 0; padding: 32px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; background: var(--ink-deep); transform: translateX(100%); transition: transform var(--ease); overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 18px; }
  .steps, .feature-grid, .policy-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  table.data-table { display: block; overflow-x: auto; }
}

/* Hero mascot + glow */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; top: -120px; right: -80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,255,.45), transparent 62%); pointer-events: none; }
.hero .shell { position: relative; z-index: 1; }
.card-stage .hero-mascot { position: absolute; top: -46px; right: -18px; width: 108px; height: 108px; filter: drop-shadow(0 10px 20px rgba(10,21,38,.28)); animation: clico-bob 4s ease-in-out infinite; }
@keyframes clico-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* Brand story band */
.story-band { background: linear-gradient(160deg, #0a1526, #12356b); color: #fff; }
.story-band .shell { padding: clamp(64px,8vw,104px) 0; }
.story-band .story-lead { font-size: clamp(24px,3.2vw,38px); line-height: 1.4; letter-spacing: -.02em; max-width: 780px; font-weight: 750; }
.story-band .story-lead em { color: var(--gold); font-style: normal; }
.story-band .story-sub { margin-top: 18px; max-width: 620px; color: #b8c6dc; font-size: 16px; }
.value-chips { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.value-chips div { flex: 1 1 200px; padding: 22px 22px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.value-chips strong { display: block; font-size: 16px; }
.value-chips strong span { color: var(--gold); }
.value-chips p { margin-top: 8px; color: #aebbce; font-size: 13.5px; }

/* FAQ */
.faq-list { margin-top: 40px; display: grid; gap: 12px; max-width: 820px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 700; transition: transform var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 720px) {
  .card-stage .hero-mascot { width: 84px; height: 84px; top: -38px; right: 0; }
  .value-chips div { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card-stage .hero-mascot { animation: none; }
}
