/* =========================================
   0. CONTENT TABLE SCROLL
   ========================================= */

.content-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.content-table-wrap table {
  min-width: 600px;
  width: 100%;
}

/* =========================================
   0. PAGE SPINNER
   ========================================= */

.page-spinner {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: all;
}

.page-spinner.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(27, 43, 107, 0.15);
  border-top-color: #1B2B6B;
  border-radius: 50%;
  animation: spinner-rotate 0.75s linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* =========================================
   0-1. COMMON SEARCH BAR
   ========================================= */

.cs-search-bar   { margin-bottom: 1.5rem; }
.cs-search-wrap  { position: relative; display: flex; align-items: center; }
.cs-search-icon  {
  position: absolute; left: 0.875rem;
  color: var(--color-text-muted); pointer-events: none; flex-shrink: 0;
}
.cs-search-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem; font-family: inherit;
  outline: none; background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 43, 107, 0.08);
}
.cs-search-clear {
  position: absolute; right: 0.75rem;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); font-size: 1.25rem;
  line-height: 1; padding: 0.25rem; display: none;
}
.cs-search-clear:hover { color: var(--color-text); }
.cs-search-info  {
  font-size: 0.8125rem; color: var(--color-text-muted);
  margin-top: 0.5rem; min-height: 1.25rem;
}
.cs-search-info strong { color: var(--color-primary); }

/* =========================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================= */

:root {
  /*--color-primary: #3182F6;*/
  --color-primary: #1B2B6B;
  --color-primary-light: #2B4AB5;
  --color-popup-header: rgba(49, 130, 246, 0.13);
  --color-primary-dark: #0F1B3D;
  --color-accent: #0087FF;
  --color-sky: #00BFFF;
  --color-cta: #FF6B35;
  --color-cta-hover: #E55A28;
  --color-teal: #00C9A7;
  --color-bg: #F4F6FA;
  --color-bg-dark: #E8EBF4;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  --color-border-dark: #D1D5DB;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(27, 43, 107, 0.10);
  --shadow-lg: 0 8px 32px rgba(27, 43, 107, 0.16);
  --shadow-xl: 0 20px 60px rgba(27, 43, 107, 0.20);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: 0.25s ease;
  --transition-fast: 0.15s ease;
  --transition-slow: 0.4s ease;

  --max-width: 1200px;
  --header-height: 72px;

  --hi-text-scale: 1;
  --hi-card-left: 0px;
  --hi-card-width-left: 0px;
  --hi-card-offset: 0px;
  --hi-card1-left: 0px;
  --hi-card1-up: 0px;
  --hi-card2-offset: 0px;
  --hi-card-scale: 1;
  --hi-inner-height: 760px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary), sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =========================================
   3. TYPOGRAPHY SCALE
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
  word-break: keep-all;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

p {
  word-break: keep-all;
  line-height: 1.8;
}

/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--color-bg);
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.section-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin: 0.625rem auto 0;
}

.section-title p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-top: 1rem;
}

.section-dark .section-title h2,
.section-primary .section-title h2 {
  color: var(--color-white);
}

.section-dark .section-title p,
.section-primary .section-title p {
  color: rgba(255, 255, 255, 0.75);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* =========================================
   5. COMPONENTS — BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: #006ED9;
  border-color: #006ED9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 135, 255, 0.35);
}

/* =========================================
   6. COMPONENTS — CARDS
   ========================================= */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-top-accent {
  border-top: 3px solid var(--color-accent);
}

.card-bordered {
  border: 2px solid var(--color-border);
  box-shadow: none;
}

.card-bordered:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

/* =========================================
   7. COMPONENTS — BADGES & TAGS
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.badge-primary {
  background: rgba(27, 43, 107, 0.1);
  color: var(--color-primary);
}

.badge-accent {
  background: rgba(0, 135, 255, 0.1);
  color: var(--color-accent);
}

.badge-teal {
  background: rgba(0, 201, 167, 0.1);
  color: var(--color-teal);
}

.badge-cta {
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-cta);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.badge-gray {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

/* =========================================
   8. COMPONENTS — ACCORDION
   ========================================= */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--color-white);
}

.accordion-item + .accordion-item {
  margin-top: 0;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
  gap: 1rem;
}

.accordion-trigger:hover {
  background: var(--color-bg);
}

.accordion-item.is-open .accordion-trigger {
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 600;
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}

.accordion-icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: var(--color-text-muted);
  transition: transform var(--transition);
  position: relative;
}

.accordion-icon::after {
  content: '';
  display: block;
  width: 2px;
  height: 10px;
  background: var(--color-text-muted);
  position: absolute;
  transition: transform var(--transition), opacity var(--transition);
}

.accordion-item.is-open .accordion-icon {
  background: var(--color-accent);
}

.accordion-item.is-open .accordion-icon::before,
.accordion-item.is-open .accordion-icon::after {
  background: var(--color-white);
}

.accordion-item.is-open .accordion-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
}

/* ─── Summernote rich-text 출력 환경 재현 ──────────────────────────────────
   .rich-text-view : Summernote 0.9.0 note-editable 렌더링과 동일하게 맞춤
   accordion-panel-inner(FAQ), notice-content(공지 본문) 양쪽에 적용
   ─────────────────────────────────────────────────────────────────────── */
.accordion-panel-inner,
.notice-content {
  word-wrap: break-word;
  color: #000;
}

/* 단락 — K-CADM summernote-0.8.9 환경의 p{margin:0 0 10px} 재현 */
.accordion-panel-inner p,
.notice-content p { margin: 0 0 10px; }
.accordion-panel-inner p:last-child,
.notice-content p:last-child { margin-bottom: 0; }
/* Summernote 자동 생성 빈 줄(<p><br></p>) — K-CADM 에디터 line-height(1.42)에 맞춰 높이 축소 */
.accordion-panel-inner p > br:only-child,
.notice-content p > br:only-child { line-height: 1.4; }

/* 목록 — Summernote: list-style-position:inside */
.accordion-panel-inner ul,
.notice-content ul { list-style: disc inside; }
.accordion-panel-inner ol,
.notice-content ol { list-style: decimal inside; }
.accordion-panel-inner li,
.notice-content li { display: list-item; }

/* 인라인 강조 */
.accordion-panel-inner strong, .accordion-panel-inner b,
.notice-content strong,        .notice-content b       { font-weight: 700; }
.accordion-panel-inner em,     .accordion-panel-inner i,
.notice-content em,            .notice-content i       { font-style: italic; }
.accordion-panel-inner u,
.notice-content u               { text-decoration: underline; }
.accordion-panel-inner s,
.notice-content s               { text-decoration: line-through; }
.accordion-panel-inner sup,
.notice-content sup             { vertical-align: super; }
.accordion-panel-inner sub,
.notice-content sub             { vertical-align: sub; }

/* 링크 — Summernote 기본값 */
.accordion-panel-inner a,
.notice-content a               { color: #337ab7; text-decoration: none; }
.accordion-panel-inner a:hover, .accordion-panel-inner a:focus,
.notice-content a:hover,        .notice-content a:focus { color: #23527c; text-decoration: underline; }
/* heading 안 앵커(Summernote 자동 생성 <a name>)는 heading 색상을 그대로 따름 */
.accordion-panel-inner h1 a, .accordion-panel-inner h2 a, .accordion-panel-inner h3 a,
.accordion-panel-inner h4 a, .accordion-panel-inner h5 a, .accordion-panel-inner h6 a,
.notice-content h1 a,        .notice-content h2 a,        .notice-content h3 a,
.notice-content h4 a,        .notice-content h5 a,        .notice-content h6 a {
  color: inherit;
  text-decoration: none;
}

/* 표 — Summernote note-editable table 규칙과 동일 */
.accordion-panel-inner table,
.notice-content table           { width: 100%; border-collapse: collapse; }
.accordion-panel-inner table td, .accordion-panel-inner table th,
.notice-content table td,        .notice-content table th { border: 1px solid #ececec; padding: 5px 3px; }

/* 인용 */
.accordion-panel-inner blockquote,
.notice-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: #666;
}

/* 이미지 */
.accordion-panel-inner img,
.notice-content img             { max-width: 100%; height: auto; }
.accordion-panel-inner img.note-float-left,
.notice-content img.note-float-left  { float: left;  margin-right: 10px; }
.accordion-panel-inner img.note-float-right,
.notice-content img.note-float-right { float: right; margin-left: 10px; }

/* 제목 — 사이트 테마 색상(파랑)이 아닌 본문색 유지 */
/* 제목 공통 — K-CPTL 테마 색상·크기가 content 안으로 침투하는 것을 차단 */
.accordion-panel-inner h1, .accordion-panel-inner h2, .accordion-panel-inner h3,
.accordion-panel-inner h4, .accordion-panel-inner h5, .accordion-panel-inner h6,
.notice-content h1,        .notice-content h2,        .notice-content h3,
.notice-content h4,        .notice-content h5,        .notice-content h6 {
  color: inherit;
  margin: 1em 0 0.5em;
  line-height: 1.3;
}
/* 브라우저 기본 em 비율로 재정의 — K-CPTL의 clamp() 크기 override */
.accordion-panel-inner h1, .notice-content h1 { font-size: 2em; }
.accordion-panel-inner h2, .notice-content h2 { font-size: 1.5em; }
.accordion-panel-inner h3, .notice-content h3 { font-size: 1.17em; }
.accordion-panel-inner h4, .notice-content h4 { font-size: 1em; }
.accordion-panel-inner h5, .notice-content h5 { font-size: 0.83em; }
.accordion-panel-inner h6, .notice-content h6 { font-size: 0.67em; }

/* 코드 */
.accordion-panel-inner pre,
.notice-content pre { background: #f5f5f5; padding: 10px; overflow-x: auto; }
.accordion-panel-inner code,
.notice-content code { background: rgba(0,0,0,0.06); border-radius: 3px; padding: 0.1em 0.35em; font-size: 0.875em; }

/* =========================================
   9. COMPONENTS — TABS
   ========================================= */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 2.5rem;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* =========================================
   10. COMPONENTS — STEP FLOW
   ========================================= */
.step-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-border));
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  transition: background var(--transition);
}

.step-item:hover .step-number {
  background: var(--color-accent);
}

.step-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =========================================
   11. COMPONENTS — CARD PRODUCT VISUALS (CSS-only)
   ========================================= */
.card-visual {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1.586 / 1;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.card-visual-regular {
  background: linear-gradient(135deg, #0F1B3D 0%, #1B2B6B 50%, #2B4AB5 100%);
}

.card-visual-corporate {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}

.card-visual-gift {
  background: linear-gradient(135deg, #C0392B 0%, #E55A28 50%, #FF6B35 100%);
}

.card-visual-partner {
  background: linear-gradient(135deg, #0D4F3C 0%, #00796B 50%, #00C9A7 100%);
}

.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='150' cy='50' r='80' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='20' cy='120' r='60' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat center / cover;
}

.card-visual-chip {
  position: absolute;
  top: 28%;
  left: 8%;
  width: 14%;
  aspect-ratio: 1.4 / 1;
  background: linear-gradient(135deg, #D4AC2D 0%, #F5D565 40%, #C9961F 100%);
  border-radius: 4px;
}

.card-visual-logo {
  position: absolute;
  top: 10%;
  right: 7%;
  font-size: clamp(0.625rem, 2vw, 0.875rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.5px;
}

.card-visual-number {
  position: absolute;
  bottom: 30%;
  left: 8%;
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.card-visual-name {
  position: absolute;
  bottom: 12%;
  left: 8%;
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-visual-brand {
  position: absolute;
  bottom: 12%;
  right: 7%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.card-visual-brand span {
  font-size: clamp(0.375rem, 1vw, 0.5625rem);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 1px;
}

/* =========================================
   12. SKIP LINK
   ========================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================
   13. HEADER & GNB
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAFCFE;
  box-shadow: none;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  background: #FAFCFE;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-img {
  display: block;
}
.gnb-logo {
  height: 26px;
  width: auto;
  filter: none;
}
.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.gnb {
  display: flex;
  align-items: center;
  list-style: none;
  height: var(--header-height);
}

.gnb > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.gnb > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.65);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gnb > li > a:hover,
.gnb > li.active > a {
  color: #0a0a0a;
  border-bottom-color: #3182F6;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(var(--header-height) - 1px);
  left: 0;
  min-width: 180px;
  background: var(--color-white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.gnb > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.dropdown a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
  border-left-color: var(--color-accent);
  padding-left: 1.5rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* App Download Dropdown */
.btn-app-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.85);
  color: #0a0a0a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-app-dl:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.18);
}

.app-dl-caret {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.app-dl-wrap {
  position: relative;
}

.app-dl-wrap.is-open .app-dl-caret {
  transform: rotate(180deg);
}

.app-dl-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 200;
}

.app-dl-wrap.is-open .app-dl-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.app-dl-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.app-dl-option:hover {
  background: var(--color-bg);
}

.app-dl-option + .app-dl-option {
  border-top: 1px solid var(--color-border);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  padding: 8px;
  transition: background var(--transition-fast);
  margin-left: auto;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.hamburger span {
  display: block;
  height: 2px;
  background: #0a0a0a;
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1999;
}

.mobile-drawer-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 288px;
  max-width: 88vw;
  height: 100dvh;
  background: #F8F8F8;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.25rem;
  height: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  color: rgba(0, 0, 0, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.mobile-drawer-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.drawer-nav-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9375rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.drawer-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #000;
  padding-left: 1.625rem;
}

.drawer-nav-item.active > .drawer-nav-link {
  color: #000;
  border-left: 3px solid var(--color-primary);
  padding-left: calc(1.25rem - 3px);
}

.drawer-nav-item.active > .drawer-nav-link:hover {
  padding-left: calc(1.625rem - 3px);
}

.drawer-caret {
  flex-shrink: 0;
  opacity: 0.35;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.drawer-nav-toggle[aria-expanded="true"] .drawer-caret {
  transform: rotate(180deg);
  opacity: 0.7;
}

.drawer-sub-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  transition: max-height 0.35s ease;
}

.drawer-sub-nav.is-open {
  max-height: 400px;
}

.drawer-sub-nav a {
  display: block;
  padding: 0.6875rem 1.25rem 0.6875rem 2.25rem;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.drawer-sub-nav a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-primary);
  padding-left: 2.625rem;
}

.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-drawer-footer .btn {
  flex: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(8, 10, 28, 0.82);
  border-color: #1c1c1e;
  border-radius: 10px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.mobile-drawer-footer .btn:hover {
  background: #0a0a14;
  border-color: #1c1c1e;
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* =========================================
   14. FOOTER
   ========================================= */
.site-footer {
  background: #2c3e50;
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-list svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-sky);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-sky);
}

.footer-biz-info {
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-cert-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.footer-cert-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.footer-cert-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

/* =========================================
   15. POPUP MODAL
   ========================================= */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  position: fixed;
  z-index: 1010;
  width: 400px;
  max-width: 100vw;
  max-height: calc(100vh - 100px);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.popup-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.popup-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-popup-header);
  color: var(--color-white);
  gap: 1rem;
  flex-shrink: 0;
}

.popup-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3182F6;
  line-height: 1.4;
}

.popup-close {
  background: none;
  border: none;
  color: #0a0a0a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.popup-close:hover {
  color: #a0a3ab;
}

.popup-img {
  width: 100%;
  height: auto;
  display: block;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  padding: 1.375rem 1.25rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.popup-link-area {
  padding: 0 1.25rem 1.25rem;
}

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.btn-popup-today {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-popup-today:hover {
  color: var(--color-text);
}

.btn-popup-close {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0a0a0a;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.375rem 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-popup-close:hover {
  color: #444444;
}

/* =========================================
   16. BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 50;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* =========================================
   16. PAGE HERO (INNER PAGES)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) center / cover;
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ── 페이지별 배경 이미지 (로컬 호스팅) ── */

/* 코밴카드 소개 — 현대적 비즈니스/도심 야경 */
.page-hero-about {
  background-image:
    linear-gradient(to bottom right, rgba(10,18,40,0.72) 0%, rgba(27,43,107,0.58) 100%),
    url('../images/bg/page-about.jpg');
}

/* 카드 상품 — 디지털 결제·보안 기술 */
.page-hero-cards {
  background-image:
    linear-gradient(to bottom right, rgba(10,18,40,0.72) 0%, rgba(27,43,107,0.58) 100%),
    url('../images/bg/hero-2.jpg');
}

/* 이용안내 — 핀테크·모바일 추상 */
.page-hero-guide {
  background-image:
    linear-gradient(to bottom right, rgba(10,18,40,0.72) 0%, rgba(27,43,107,0.58) 100%),
    url('../images/bg/hero-3.jpg');
}

/* 제휴안내 */
.page-hero-partners {
  background-image:
    linear-gradient(to bottom right, rgba(10,18,40,0.68) 0%, rgba(43,74,181,0.54) 100%),
    url('../images/bg/page-events.jpg');
}

/* 고객센터 — 비즈니스 미팅·팀 */
.page-hero-cs {
  background-image:
    linear-gradient(to bottom right, rgba(10,18,40,0.72) 0%, rgba(27,43,107,0.58) 100%),
    url('../images/bg/page-cs.jpg');
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb-sep {
  opacity: 0.5;
}

/* =========================================
   16b. HERO CAROUSEL
   ========================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 560px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 캐러셀 슬라이드 배경 이미지 (로컬 호스팅) */
.carousel-slide-1 { background-image: url('../images/bg/hero-1.jpg'); }
.carousel-slide-2 { background-image: url('../images/bg/hero-2.jpg'); }
.carousel-slide-3 { background-image: url('../images/bg/hero-3.jpg'); }

.carousel-overlay {
  display: none;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
}

.carousel-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0 1.25rem;
  color: var(--color-white);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 3px 8px rgba(0, 0, 0, 0.80),
    0 6px 24px rgba(0, 0, 0, 0.60);
}

.carousel-title .accent {
  color: var(--color-sky);
}

.carousel-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.90), 0 3px 10px rgba(0, 0, 0, 0.65);
}

.carousel-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 209, 216, 0.35);
  border: 1px solid rgba(207, 209, 216, 0.65);
  border-radius: 50%;
  color: var(--color-white);
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
  background: rgba(207, 209, 216, 0.58);
  border-color: rgba(207, 209, 216, 0.9);
}

.carousel-arrow-prev { left: 2rem; }
.carousel-arrow-next { right: 2rem; }

/* dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(207, 209, 216, 0.5);
  border: 1px solid rgba(207, 209, 216, 0.65);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel-dot.is-active {
  background: #3182F6;
  border-color: #3182F6;
  width: 28px;
  border-radius: 5px;
}

/* hero-stats inside carousel reuse existing hero-stats styles */

/* =========================================
   16c. HERO INDEX — NEW DESIGN (Veloce)
   ========================================= */

/* ----- Index 페이지 헤더 테마 오버라이드 ----- */

body.is-index .site-header {
  background: #FAFCFE;
  box-shadow: none;
  transition: box-shadow var(--transition);
}

body.is-index .gnb-logo {
  filter: none;
}

body.is-index .gnb > li > a {
  color: rgba(26, 26, 26, 0.65);
  border-bottom-color: transparent;
}

body.is-index .gnb > li > a:hover,
body.is-index .gnb > li.active > a {
  color: #0a0a0a;
  border-bottom-color: #3182F6;
}

body.is-index .btn-app-dl {
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
}

body.is-index .btn-app-dl:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.18);
}

/* 스크롤 시: 배경 유지 + 그림자만 추가 */
body.is-index .site-header.scrolled {
  background: #FAFCFE;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.05);
}

body.is-index .site-header.scrolled .gnb-logo {
  filter: none;
}

body.is-index .site-header.scrolled .gnb > li > a {
  color: rgba(26, 26, 26, 0.65);
}

body.is-index .site-header.scrolled .gnb > li > a:hover,
body.is-index .site-header.scrolled .gnb > li.active > a {
  color: #0a0a0a;
  border-bottom-color: #3182F6;
}

body.is-index .site-header.scrolled .btn-app-dl {
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
}

body.is-index .site-header.scrolled .dropdown {
  border-top-color: #3182F6;
}

/* ----- 히어로 섹션 ----- */

.hero-index {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 560px;
  max-height: 1480px;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFCFE 0%, #EEF6FD 100%);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 슬라이드 배경 이미지 오버레이 */
.hero-index .carousel-slide.hi-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-index .carousel-slide.hi-has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.30) 100%);
  z-index: 1;
}

/* 점 표시기 컨테이너 */
.hi-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;
  align-items: center;
  z-index: 10;
}

/* carousel-content 패턴: position relative + margin auto */
.hi-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  pointer-events: none;
  z-index: 2;
}

.hi-inner > * {
  pointer-events: auto;
}

/* 텍스트 그룹 */
.hero-index-content {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  transform: translateY(calc(-50% - 104px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.hero-index-content > * {
  pointer-events: auto;
}

/* Badge */
.hi-badge {
  display: inline-flex;
  align-items: center;
  gap: calc(8px * var(--hi-text-scale, 1));
  padding: calc(7px * var(--hi-text-scale, 1)) calc(14px * var(--hi-text-scale, 1)) calc(7px * var(--hi-text-scale, 1)) calc(12px * var(--hi-text-scale, 1));
  margin-bottom: 20px;
  border-radius: 999px;
  font-size: calc(13px * var(--hi-text-scale, 1));
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #3182F6;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(244, 246, 250, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(49, 130, 246, 0.06),
    0 6px 18px rgba(49, 130, 246, 0.10);
}

.hi-badge-dot {
  width: calc(6px * var(--hi-text-scale, 1));
  height: calc(6px * var(--hi-text-scale, 1));
  border-radius: 999px;
  flex-shrink: 0;
  background: #3182F6;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18);
  animation: hi-badge-pulse 2.2s ease-in-out infinite;
}

@keyframes hi-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.18); }
  50%       { box-shadow: 0 0 0 6px rgba(49, 130, 246, 0.06); }
}

/* Headline */
.hi-headline {
  font-size: calc(clamp(38px, 5vw, 60px) * var(--hi-text-scale, 1));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #0a0a0a;
  margin: 0;
}

/* Subtitle */
.hi-subtitle {
  margin-top: 22px;
  font-size: calc(clamp(16px, 1.75vw, 21px) * var(--hi-text-scale, 1));
  font-weight: 400;
  color: rgb(130, 134, 147);
  letter-spacing: -0.005em;
  line-height: 1.5;
}

/* ----- CTA 버튼 ----- */

.hero-index-ctas.hi-ctas-mobile {
  display: none;
}

.hero-index-ctas {
  display: flex;
  gap: 12px;
  margin-top: 52px;
}

.hi-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 calc(24px * var(--hi-text-scale, 1));
  height: calc(68px * var(--hi-text-scale, 1));
  border-radius: 8px;
  font-size: calc(24px * var(--hi-text-scale, 1));
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s ease;
}

.hi-cta-arrow {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hi-cta:hover .hi-cta-arrow {
  transform: translateX(3px);
}

.hi-cta-primary {
  color: #ffffff;
  background: #3182F6;
  border: 1px solid #3182F6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.hi-cta-primary:hover {
  transform: translateY(-1px);
  background: #2570e0;
  border-color: #2570e0;
}

.hi-cta-secondary {
  color: #1a1a1a;
  background: #ffffff;
  border: 1px solid #E5E7EC;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}

.hi-cta-secondary:hover {
  transform: translateY(-1px);
  background: #f2f2f2;
}

/* ----- 3D 카드 스테이지 ----- */

.hi-card-stage {
  position: absolute;
  perspective: 1600px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 서드 카드 (first 왼쪽) */
.hi-stage-third {
  right: calc(clamp(380px, 36vw, 480px) + var(--hi-card-left, 0px) + var(--hi-card-width-left, 0px));
  bottom: calc(clamp(130px, 16vh, 200px) - var(--hi-card-offset, 0px));
  width: clamp(240px, 21vw, 310px);
  height: clamp(141px, 12.3vw, 182px);
  animation: hi-ctrl-third 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* 라벤더 카드 (우측, 더 크고 아래) */
.hi-stage-first {
  right: calc(var(--hi-card1-left, 0px) + var(--hi-card-width-left, 0px));
  bottom: calc(clamp(130px, 16vh, 200px) - var(--hi-card-offset, 0px) + var(--hi-card1-up, 0px));
  width: clamp(300px, 26vw, 380px);
  height: clamp(176px, 15.3vw, 223px);
  animation: hi-ctrl-first 4s ease-in-out infinite;
}

/* 민트 카드 (우측, 더 작고 위) */
.hi-stage-second {
  right: calc(var(--hi-card-left, 0px) + var(--hi-card-width-left, 0px));
  top: calc(clamp(90px, 12vh, 140px) - 40px - var(--hi-card2-offset, 0px));
  width: clamp(240px, 21vw, 310px);
  height: clamp(141px, 12.3vw, 182px);
  animation: hi-ctrl-second 5s ease-in-out infinite;
  animation-delay: -1.2s;
}

.hi-card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.hi-card-first {
  transform: translate3d(
    calc(6px * var(--drift-t-first)),
    calc(-36px * var(--drift-t-first)),
    calc(14px * var(--drift-t-first))
  );
}

.hi-card-second {
  transform: translate3d(
    calc(-8px * var(--drift-t-second)),
    calc(-28px * var(--drift-t-second)),
    calc(8px * var(--drift-t-second))
  );
}

.hi-card-third {
  transform: translate3d(
    calc(-6px * var(--drift-t-third)),
    calc(-30px * var(--drift-t-third)),
    calc(10px * var(--drift-t-third))
  );
}

/* 3D 두께 슬라이스 */
.hi-card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hi-card-3d-first {
  --hi-slice-step: 0.583px;
  --hi-slice-filter: brightness(1.12) saturate(1.10);
  transform: rotateX(20deg) rotateY(20deg) rotateZ(16deg);
  animation: hi-micro-tilt-first 6s ease-in-out infinite;
}

.hi-card-3d-second {
  --hi-slice-step: 0.333px;
  --hi-slice-filter: brightness(1.12) saturate(1.10);
  transform: rotateX(24deg) rotateY(-31deg) rotateZ(-10deg);
  animation: hi-micro-tilt-second 3s ease-in-out infinite;
  animation-delay: -1s;
}

.hi-card-3d-third {
  --hi-slice-step: 0.6px;
  --hi-slice-filter: brightness(1.12) saturate(1.10);
  transform: rotateX(20deg) rotateY(-25deg) rotateZ(-14deg);
  animation: hi-micro-tilt-third 4s ease-in-out infinite;
  animation-delay: -2s;
}

.hi-slice {
  position: absolute;
  inset: 0;
  background-image: var(--hi-card-img);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: var(--hi-slice-filter);
  transform: translateZ(calc(var(--i) * -1 * var(--hi-slice-step)));
  backface-visibility: hidden;
}

.hi-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 그라운드 그림자 */
.hi-card-shadow {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  pointer-events: none;
  z-index: -1;
  will-change: transform, filter;
}

.hi-shadow-first {
  background-image: url('../images/cards/card-left.png');
  transform: translate3d(0, 164px, 0) rotateX(90deg) scaleX(calc(0.943 + 0.0943 * var(--drift-t-first))) scaleY(calc(0.82 + 0.082 * var(--drift-t-first)));
  filter: brightness(0) blur(calc(36px + 18px * var(--drift-t-first))) opacity(calc(0.064 - 0.032 * var(--drift-t-first)));
}

.hi-shadow-second {
  background-image: url('../images/cards/kovan_card_dark.png');
  transform: translate3d(10px, 136px, 0) rotateX(90deg) scaleX(calc((0.82 + 0.082 * var(--drift-t-second)) * 1.15)) scaleY(calc(0.82 + 0.082 * var(--drift-t-second)));
  filter: brightness(0) blur(calc(24px + 12px * var(--drift-t-second))) opacity(calc(0.064 - 0.026 * var(--drift-t-second)));
}

.hi-shadow-third {
  background-image: url('../images/cards/kovan_card_dark.png');
  transform: translate3d(0, 124px, 0) rotateX(90deg) scale(calc(0.82 + 0.082 * var(--drift-t-third)));
  filter: brightness(0) blur(calc(24px + 12px * var(--drift-t-third))) opacity(calc(0.064 - 0.026 * var(--drift-t-third)));
}

/* ----- 스토어 CTA ----- */

.hi-store-cta {
  position: absolute;
  left: 1.5rem;
  bottom: 100px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hi-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  height: 68px;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 30, 34, 0.78) 0%, rgba(10, 10, 12, 0.62) 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}

.hi-store-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
}

.hi-store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

/* ----- 애니메이션 ----- */

@property --drift-t-first {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --drift-t-second {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --drift-t-third {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@keyframes hi-ctrl-first {
  0%, 100% { --drift-t-first: 0; }
  50%       { --drift-t-first: 1; }
}

@keyframes hi-ctrl-second {
  0%, 100% { --drift-t-second: 0; }
  50%       { --drift-t-second: 1; }
}

@keyframes hi-ctrl-third {
  0%, 100% { --drift-t-third: 0; }
  50%       { --drift-t-third: 1; }
}

@keyframes hi-micro-tilt-first {
  0%, 100% { transform: rotateX(20deg) rotateY(-5deg) rotateZ(16deg); }
  50%       { transform: rotateX(20deg) rotateY(20deg) rotateZ(16deg); }
}

@keyframes hi-micro-tilt-second {
  0%, 100% { transform: rotateX(24deg) rotateY(-8deg) rotateZ(-10deg); }
  50%       { transform: rotateX(24deg) rotateY(-12deg) rotateZ(-10deg); }
}


@keyframes hi-micro-tilt-third {
  0%, 100% { transform: rotateX(24deg) rotateY(10deg) rotateZ(-14deg); }
  50%       { transform: rotateX(24deg) rotateY(20deg) rotateZ(-14deg); }
  /*0%, 100% { transform: rotateX(20deg) rotateY(-20deg) rotateZ(-14deg); }*/
  /*50%       { transform: rotateX(20deg) rotateY(-30deg) rotateZ(-14deg); }*/
}


/* ----- 반응형 ----- */

/* 태블릿 (1024px) */
@media (max-width: 1024px) {
  .hi-store-pill {
    width: 160px;
    height: 56px;
    font-size: 18px;
  }

  .hi-store-icon {
    width: 22px;
    height: 22px;
  }
}

/* 태블릿/PC: height 반응형 카드 스케일 (JS가 --hi-card-scale 업데이트) */
@media (min-width: 771px) {
  .hi-card-stage { transform: scale(var(--hi-card-scale, 1)); }
}

/* 모바일 (768px) */
@media (max-width: 768px) {
  .hero-index {
    height: calc(var(--hi-inner-height, 760px) + 80px);
    min-height: 760px;
  }

  /* hi-inner: height auto, padding 유지, 카드↔텍스트 순서 역전 */
  .hi-inner {
    height: auto;
    padding: 0 clamp(20px, 5vw, 32px);
    display: flex;
    flex-direction: column;
  }

  .hero-index-content {
    order: 1;
  }

  .hi-stage-second {
    order: 2;
  }

  .hi-ctas-mobile {
    order: 3;
  }

  /* 텍스트 그룹: transform 제거, normal flow */
  .hero-index-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding-top: calc(var(--header-height) + 3rem - 60px);
    justify-content: flex-start;
  }

  .hi-headline {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hi-subtitle {
    white-space: normal;
    font-size: clamp(13px, 3.5vw, 16px);
    margin-top: 14px;
  }

  /* CTA 버튼: 데스크탑용 숨기고 모바일용 표시 */
  .hi-ctas-desktop {
    display: none;
  }

  .hero-index-ctas.hi-ctas-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: calc(1.5rem + 70px);
  }

  .hero-index-ctas.hi-ctas-mobile .hi-cta {
    flex: none;
    width: 100%;
    justify-content: center;
    font-size: 20px;
    height: 68px;
    padding: 0 24px;
  }

  .hi-cta {
    font-size: clamp(14px, calc(7.2px + 2.4vw), 24px);
    height: clamp(54px, calc(44px + 3.5vw), 68px);
    padding: 0 clamp(18px, calc(14px + 1.5vw), 24px);
  }

  /* 스토어 CTA */
  .hi-store-cta {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
    padding-bottom: 2rem;
  }

  /* 1번/3번 카드 숨김 — 2번만 표시 */
  .hi-stage-first,
  .hi-stage-third {
    display: none;
  }

  .hi-store-pill {
    width: 140px;
    height: 50px;
    font-size: 16px;
  }

  .hi-store-icon {
    width: 20px;
    height: 20px;
  }

  /* 헤더 투명도: 모바일에서 스크롤 없이도 읽히도록 */
  body.is-index .site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* 흰 헤더 위 햄버거 아이콘 → 검정 */
  body.is-index .hamburger span {
    background: #0a0a0a;
  }
  body.is-index .hamburger:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  /* 2번 카드: flow로 변환 */
  .hi-stage-second {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    width: clamp(280px, calc(169px + 30vw), 400px);
    height: clamp(164px, calc(99px + 17.6vw), 234px);
    margin: calc(6rem + 30px - 50px) auto 0;
    perspective: 1600px;
  }

  .hi-shadow-second {
    transform: translate3d(10px, clamp(124px, calc(75px + 13.3vw), 177px), 0) rotateX(90deg) scaleX(calc((0.82 + 0.082 * var(--drift-t-second)) * 1.15)) scaleY(calc(0.82 + 0.082 * var(--drift-t-second)));
  }
}


@keyframes hi-counter-first-mobile {
  0%, 100% {
    transform: translate3d(0, 144px, 0) rotateX(90deg) scale(0.90);
    filter: brightness(0) blur(16px) opacity(0.07);
  }
  50% {
    transform: translate3d(0, 144px, 0) rotateX(90deg) scale(calc(0.90 * 1.12));
    filter: brightness(0) blur(26px) opacity(0.038);
  }
}

/* 소형 모바일 (480px) */
@media (max-width: 480px) {
  .hi-cta-primary,
  .hi-cta-secondary {
    flex: 1;
    justify-content: center;
  }

  .hi-store-cta {
    flex-direction: column;
  }

  .hi-store-pill {
    width: 100%;
  }
}

/* =========================================
   17. PAGE: INDEX — HERO
   ========================================= */
.hero {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(135deg, #0A1228 0%, #0F1B3D 40%, #1B2B6B 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 135, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0, 201, 167, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative dot grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(0, 135, 255, 0.15);
  border: 1px solid rgba(0, 135, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-sky);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-sky);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  word-break: keep-all;
}

.hero-title .accent {
  color: var(--color-sky);
}

.hero-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 2rem;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.hero-stat-value .unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-sky);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.hero-card-wrapper .card-visual {
  max-width: 100%;
  transform: perspective(800px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-card-wrapper:hover .card-visual {
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
}

.hero-float-badge {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-float-badge-1 {
  top: -1rem;
  right: -1rem;
}

.hero-float-badge-2 {
  bottom: 1rem;
  left: -1.5rem;
}

.hero-float-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-float-badge .badge-icon.green {
  background: rgba(16, 185, 129, 0.1);
}

.hero-float-badge .badge-icon.blue {
  background: rgba(0, 135, 255, 0.1);
}

.hero-float-badge .badge-text {
  font-size: 0.8125rem;
}

.hero-float-badge .badge-text strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.hero-float-badge .badge-text span {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* =========================================
   18. PAGE: INDEX — SECTIONS
   ========================================= */

/* Features Section */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(3deg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Card Product Section */
.product-card {
  cursor: pointer;
  overflow: hidden;
}

.product-card-visual {
  margin: -2rem -2rem 2rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-card-visual .card-visual {
  max-width: 280px;
  width: 100%;
}

.product-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-card .badge {
  margin-bottom: 1rem;
}

.product-card ul {
  list-style: none;
  margin: 1rem 0;
}

.product-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.product-card ul li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* How to Use Section */
.how-to-section {
  background: var(--color-bg);
}

/* App Download Section */
.app-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F3088 100%);
  color: var(--color-white);
}

.app-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-phone-mockup {
  background: linear-gradient(145deg, #1C1C2E, #16213E);
  border-radius: 36px;
  width: 220px;
  aspect-ratio: 9/19;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem 1.5rem;
}

.app-phone-screen-header {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 0.75rem;
}

.app-phone-balance {
  text-align: center;
  padding: 1rem 0;
}

.app-phone-balance .label {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}

.app-phone-balance .amount {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-white);
}

.app-phone-qr-btn {
  background: var(--color-teal);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-top: 0.75rem;
}

.app-features-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.app-features-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(0, 201, 167, 0.2);
  color: var(--color-teal);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-store-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.app-store-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* FAQ Preview Section */
.faq-preview-section .accordion-item {
  margin-bottom: 0;
  border-radius: 0;
  border-bottom: 0;
}

.faq-preview-section .accordion-item:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.faq-preview-section .accordion-item:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-bottom: 1px solid var(--color-border);
}

/* =========================================
   19. PAGE: ABOUT
   ========================================= */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.about-feature-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

/* Ecosystem Diagram */
.ecosystem-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}

.ecosystem-center {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.ecosystem-nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ecosystem-node {
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition);
}

.ecosystem-node:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

/* Roadmap */
.roadmap {
  display: flex;
  gap: 0;
  position: relative;
  margin-top: 2rem;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-teal));
}

.roadmap-item {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.roadmap-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.roadmap-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.roadmap-item p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =========================================
   20. PAGE: CARDS
   ========================================= */
.card-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.card-detail-info h2 {
  margin-bottom: 0.75rem;
}

.card-detail-info .badge {
  margin-bottom: 1.25rem;
}

.card-detail-info p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.card-feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.card-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.card-feature-list li:last-child {
  border-bottom: none;
}

.card-feature-list li .check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(0, 201, 167, 0.1);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

.card-policy-table th,
.card-policy-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.card-policy-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.card-policy-table td {
  color: var(--color-text-muted);
}

/* =========================================
   21. PAGE: GUIDE
   ========================================= */
.kyc-steps {
  counter-reset: kyc-step;
}

.kyc-step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.kyc-step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -1.5rem;
  width: 2px;
  background: var(--color-border);
}

.kyc-step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.kyc-step-content {
  padding-top: 0.5rem;
  flex: 1;
}

.kyc-step-content h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.kyc-step-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.limit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.limit-table th,
.limit-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border: 1px solid var(--color-border);
}

.limit-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
}

.limit-table td {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-white);
}

.limit-table tr:nth-child(even) td {
  background: var(--color-bg);
}

.refund-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.refund-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.refund-card.standard {
  background: rgba(0, 135, 255, 0.06);
  border: 1px solid rgba(0, 135, 255, 0.15);
}

.refund-card.free {
  background: rgba(0, 201, 167, 0.06);
  border: 1px solid rgba(0, 201, 167, 0.15);
}

.refund-card.expired {
  background: rgba(27, 43, 107, 0.06);
  border: 1px solid rgba(27, 43, 107, 0.15);
}

.refund-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.refund-card .highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin: 0.5rem 0;
}

.refund-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* =========================================
   22. PAGE: FAQ
   ========================================= */
.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-search {
  max-width: 480px;
  margin: 1.5rem auto 0;
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.faq-search input:focus {
  border-color: var(--color-accent);
}

.faq-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

/* =========================================
   23. PAGE: NOTICE
   ========================================= */
.notice-table {
  width: 100%;
  border-collapse: collapse;
}

.notice-table th {
  background: var(--color-bg);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
}

.notice-table td {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.notice-table tr:hover td {
  background: var(--color-bg);
}

.notice-table .notice-title {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.notice-table .notice-title:hover {
  color: var(--color-accent);
}

.notice-detail {
  display: none;
  background: var(--color-bg);
}

.notice-detail.is-open {
  display: table-row;
}

.notice-detail td {
  padding: 1.5rem 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  border-bottom: 2px solid var(--color-border);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover,
.pagination-btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* =========================================
   24. PAGE: EVENTS
   ========================================= */
.event-card {
  overflow: hidden;
}

.event-card-img {
  height: 200px;
  margin: -2rem -2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.event-card-img.gradient-1 {
  background: linear-gradient(135deg, #1B2B6B 0%, #0087FF 100%);
}

.event-card-img.gradient-2 {
  background: linear-gradient(135deg, #C0392B 0%, #FF6B35 100%);
}

.event-card-img.gradient-3 {
  background: linear-gradient(135deg, #0D4F3C 0%, #00C9A7 100%);
}

.event-period {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.event-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.event-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-text-muted);
}

.event-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* =========================================
   25. PAGE: PARTNERS
   ========================================= */
.partner-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.partner-type-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.partner-type-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.map-placeholder {
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* =========================================
   26. PAGE: LEGAL (TERMS + PRIVACY)
   ========================================= */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.legal-toc h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-toc ul {
  list-style: none;
}

.legal-toc ul li a {
  display: block;
  padding: 0.375rem 0 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  border-left: 2px solid transparent;
}

.legal-toc ul li a:hover {
  color: var(--color-primary);
  border-left-color: var(--color-accent);
}

.legal-body {
  max-width: 760px;
}

.legal-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-meta span strong {
  color: var(--color-primary);
}

.article-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.article-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--color-accent);
}

.legal-body p {
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.legal-body ol,
.legal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ol {
  list-style: decimal;
}

.legal-body ul {
  list-style: disc;
}

.legal-body li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-primary);
}

.legal-table td {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =========================================
   27. ANIMATIONS & TRANSITIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* =========================================
   28. RESPONSIVE — TABLET (max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { padding: 3rem 1.5rem 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-features-grid { grid-template-columns: repeat(2, 1fr); }
  .card-detail-section { grid-template-columns: 1fr; gap: 2rem; }
  .refund-cards { grid-template-columns: 1fr; }
  .partner-type-grid { grid-template-columns: 1fr 1fr; }
  .step-flow { flex-wrap: wrap; }
  .step-item { flex: 0 0 calc(33% - 1rem); }
  .step-item::after { display: none; }
}

/* =========================================
   29. RESPONSIVE — MOBILE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }

  .hamburger { display: flex; }
  .main-nav { display: none; }
  .header-actions { display: none; }

  .hero { padding: 3rem 0; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-card-wrapper { max-width: 280px; }
  .hero-card-wrapper .card-visual { transform: none; }
  .hero-float-badge { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .hero-carousel { min-height: 480px; }
  .carousel-arrow { display: none; }
  .carousel-content { padding: 0 1.25rem; }
  .carousel-actions { flex-direction: column; }
  .carousel-actions .btn { text-align: center; justify-content: center; }

  .footer-inner { padding: 2.5rem 1rem 0; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-cert-badges { align-self: center; }

  .app-section-inner { grid-template-columns: 1fr; }
  .app-phone-mockup { display: none; }

  .about-features-grid { grid-template-columns: 1fr; }
  .partner-type-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
  }

  /* Roadmap — 모바일 세로 타임라인 */
  .roadmap { flex-direction: column; gap: 0; }
  .roadmap::before { display: none; }

  .roadmap-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    text-align: left;
    padding: 0 0 2rem;
    position: relative;
  }
  .roadmap-item:last-child { padding-bottom: 0; }

  .roadmap-item .roadmap-number {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }
  .roadmap-item h4 {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0.875rem;
    margin-bottom: 0.25rem;
  }
  .roadmap-item p {
    grid-column: 2;
    grid-row: 2;
  }

  /* 동그라미 연결선 */
  .roadmap-item::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 64px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-teal));
  }
  .roadmap-item:last-child::after { display: none; }

  /* Step-flow — 모바일 세로 타임라인 */
  .step-flow { flex-direction: column; gap: 0; }

  .step-item {
    width: 100%;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.25rem;
    text-align: left;
    padding: 0 0 1.75rem;
    position: relative;
  }
  .step-item:last-child { padding-bottom: 0; }

  .step-item .step-number {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }
  .step-item .step-label {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0.625rem;
    margin-bottom: 0;
  }
  .step-item .step-desc {
    grid-column: 2;
    grid-row: 2;
  }

  /* 동그라미 연결선 */
  .step-item::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    right: auto;
    bottom: 0;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
  }
  .step-item:last-child::after { display: none; }

  .page-hero { padding: 2.5rem 0; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

/* =========================================
   30. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .hero-stat-value { font-size: 1.125rem; }
  .app-store-buttons { flex-direction: column; }
  .app-store-buttons .app-store-link { justify-content: center; }
  .legal-meta { flex-direction: column; gap: 0.5rem; }
}

/* =========================================
   31. PRINT STYLES (for legal pages)
   ========================================= */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .legal-toc,
  .page-hero .breadcrumb {
    display: none !important;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .legal-body {
    max-width: 100%;
  }

  .article-section {
    page-break-inside: avoid;
  }

  a[href]::after {
    content: none;
  }
}
