/* ============================================================
   키움기프트 카드깡 – 메인 스타일시트
   ============================================================ */

/* ── 기본 리셋 & 변수 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #e62e2e;
  --primary-d: #b91c1c;
  --primary-l: #ff5252;
  --secondary: #1a1a2e;
  --accent:    #f59e0b;
  --gold:      #ffd700;
  --text:      #1f2937;
  --text-sub:  #6b7280;
  --bg-light:  #f9fafb;
  --white:     #ffffff;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --transition: .3s ease;
  --font: 'Noto Sans KR', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   플로팅 버튼
   ============================================================ */
.float-cta {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  gap: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn i { font-size: 22px; }

.float-btn.sms  { background: linear-gradient(135deg, #25d366, #128c7e); }
.float-btn.call { background: linear-gradient(135deg, var(--primary), var(--primary-d)); }

.float-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.30);
}

/* ============================================================
   헤더
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
}

.logo-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-24h {
  background: var(--accent);
  color: #7c3f00;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

.header-tel {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-tel i { font-size: 16px; }

/* ============================================================
   히어로
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(230,46,46,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(245,158,11,.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* 신뢰 뱃지 */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tbadge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.tbadge i { color: var(--gold); }

/* H1 */
.hero-title {
  font-size: clamp(60px, 14vw, 110px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 60px rgba(230,46,46,.6), 0 4px 20px rgba(0,0,0,.5);
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ff5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 22px);
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-subtitle strong { color: var(--gold); font-weight: 800; }

/* 통계 */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 20px 10px;
  margin-bottom: 40px;
  backdrop-filter: blur(6px);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.20);
}

/* CTA 버튼 */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg { padding: 20px 44px; font-size: 19px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: white;
  box-shadow: 0 8px 24px rgba(230,46,46,.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-l), var(--primary));
  box-shadow: 0 12px 32px rgba(230,46,46,.60);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: white;
  border: 2px solid rgba(255,255,255,.40);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-3px);
}

.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
}

.btn-white:hover {
  background: #fff5f5;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.70);
  font-weight: 700;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-3px);
}

/* 펄스 애니메이션 */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(230,46,46,.6); }
  70%  { box-shadow: 0 0 0 18px rgba(230,46,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,46,46,0); }
}

.pulse-anim { animation: pulse-ring 2s infinite; }

.hero-note {
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-note i { color: var(--gold); }

/* 스크롤 다운 */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 24px;
  animation: bounce 2s infinite;
}

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

/* ============================================================
   공지 띠배너
   ============================================================ */
.notice-bar {
  background: var(--secondary);
  color: var(--gold);
  overflow: hidden;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}

.notice-scroll {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}

.notice-scroll span { padding-right: 40px; }

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   공통 섹션
   ============================================================ */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-sub);
  font-size: 16px;
  margin-top: 20px;
}

/* ============================================================
   서비스 그리드
   ============================================================ */
.services { background: var(--bg-light); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background: linear-gradient(160deg, #fff5f5, #fff);
  border: 2px solid rgba(230,46,46,.20);
}

.service-card.featured::before { opacity: 1; }

.sc-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.sc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #fff0f0, #ffe4e1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sc-tag {
  display: inline-block;
  background: #fff0f0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(230,46,46,.20);
}

/* ============================================================
   이용방법
   ============================================================ */
.howto { background: white; }

.steps-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 36px 24px;
  position: relative;
}

.step-num {
  font-size: 52px;
  font-weight: 900;
  color: rgba(230,46,46,.10);
  line-height: 1;
  margin-bottom: 14px;
  font-family: var(--font);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 6px 20px rgba(230,46,46,.35);
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}

.step-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}

.howto-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   왜 키움기프트
   ============================================================ */
.why-us { background: var(--bg-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.why-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 4px solid var(--primary);
}

.why-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.13); }

.why-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fff0f0, #ffe4e1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
}

.why-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.why-card p strong { color: var(--primary); }

/* ============================================================
   CTA 배너
   ============================================================ */
.cta-banner {
  background: linear-gradient(160deg, #e62e2e, #7f1d1d, #1a1a2e);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.20);
}

.cta-text h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  color: white;
  line-height: 1.3;
  margin-bottom: 12px;
}

.cta-text h2 strong { color: var(--gold); }

.cta-text p {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: white; }

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: background var(--transition);
}

.faq-q:hover { background: #fef2f2; }

.faq-q.active { background: #fef2f2; color: var(--primary); }

.faq-q span { display: flex; align-items: center; gap: 10px; }
.faq-q span i { color: var(--primary); font-size: 17px; }

.faq-arrow {
  color: var(--text-sub);
  font-size: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-q.active .faq-arrow { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  display: none;
  padding: 0 24px 20px 54px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

.faq-a.open { display: block; }

.faq-cta {
  text-align: center;
  margin-top: 48px;
}

.faq-cta p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* ============================================================
   최종 CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(160deg, #0f0c29, #302b63, #1a1a2e);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,46,46,.15) 0%, transparent 70%);
  pointer-events: none;
}

.final-icon {
  font-size: 54px;
  color: var(--gold);
  margin-bottom: 22px;
  animation: float 3s ease-in-out infinite;
}

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

.final-cta h2 {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.final-sub {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  margin-bottom: 24px;
}

.final-tel {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.final-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.final-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.final-tags span {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
  background: #0d0d0d;
  color: #9ca3af;
  padding: 40px 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: white;
}

.footer-info p { font-size: 13px; line-height: 1.9; }
.footer-info a { color: var(--primary); }

.footer-keywords {
  font-size: 11px;
  color: #4b5563;
  border-top: 1px solid #1f2937;
  padding-top: 14px;
}

.footer-bottom {
  background: #060606;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #4b5563;
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 768px) {
  .header-tel { font-size: 16px; }
  .logo-badge { display: none; }

  .hero-stats {
    gap: 0;
  }

  .step-arrow { display: none; }

  .steps-wrap {
    flex-direction: column;
    align-items: center;
  }

  .step-item { max-width: 320px; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .final-btns .btn-lg {
    padding: 16px 28px;
    font-size: 16px;
  }

  .float-cta {
    bottom: 20px;
    right: 12px;
  }

  .float-btn {
    width: 56px;
    height: 56px;
  }

  .faq-a { padding-left: 24px; }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .btn { padding: 14px 24px; font-size: 15px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .final-btns { flex-direction: column; align-items: center; }
  .final-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .header-tel { font-size: 14px; }
  .badge-24h { font-size: 11px; }
}
