/* =========================================
   ㈜ 고추장 — 전문 경영회사
   Clean White & Red Corporate Theme
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C8181E;
  --red-dark:   #9b1215;
  --red-soft:   #fef2f2;
  --red-border: #fecaca;
  --red-mid:    #f87171;

  --white:      #ffffff;
  --bg:         #f7f7f7;
  --card:       #ffffff;
  --border:     #e4e4e4;

  --text-h:     #111111;
  --text-b:     #3a3a3a;
  --text-s:     #777777;
  --text-xs:    #aaaaaa;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --sh-s: 0 2px 10px rgba(0,0,0,0.06);
  --sh-m: 0 6px 28px rgba(0,0,0,0.09);
  --sh-r: 0 8px 28px rgba(200,24,30,0.17);
  --t: all 0.26s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--white);
  color: var(--text-b);
  line-height: 1.7;
  overflow-x: hidden;
}
a, button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 68px; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
.header.scrolled { box-shadow: var(--sh-s); }
.header-inner {
  max-width: 1240px; margin: 0 auto;
  height: 100%; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* 로고 */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--red);
  color: white;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.01em;
}
.logo-corp {
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-s);
  margin-left: 3px;
}

/* 네비 */
.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 0.42rem 1rem;
  border-radius: var(--r-s);
  font-size: 0.91rem; font-weight: 500;
  color: var(--text-s);
  transition: var(--t);
}
.nav-link:hover { color: var(--text-h); background: var(--bg); }
.nav-link.active {
  color: var(--red); font-weight: 700;
  background: var(--red-soft);
}
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-h); border-radius: 2px; }

/* =========================================
   PAGE
   ========================================= */
.page { display: none; min-height: 100vh; padding-top: 68px; }
.page.active { display: block; }

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider {
  position: relative;
  height: calc(100vh - 68px);
  min-height: 540px;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; z-index: 1; }

/* 슬라이드 배경 */
.slide-bg { position: absolute; inset: 0; }
.slide-bg-1 {
  background:
    linear-gradient(108deg, #0e0e0e 38%, rgba(14,14,14,0.6) 65%, transparent 100%),
    radial-gradient(ellipse at 82% 52%, rgba(200,24,30,0.72) 0%, rgba(140,10,14,0.3) 45%, transparent 70%),
    #0e0e0e;
}
.slide-bg-2 {
  background:
    linear-gradient(108deg, #111 38%, rgba(17,17,17,0.65) 65%, transparent 100%),
    radial-gradient(ellipse at 80% 48%, rgba(185,20,26,0.68) 0%, rgba(120,8,12,0.3) 45%, transparent 70%),
    #111;
}
.slide-bg-3 {
  background:
    linear-gradient(108deg, #0c0c0c 38%, rgba(12,12,12,0.6) 65%, transparent 100%),
    radial-gradient(ellipse at 84% 55%, rgba(200,24,30,0.75) 0%, rgba(140,10,14,0.3) 48%, transparent 72%),
    #0c0c0c;
}
.slide-bg-4 {
  background:
    linear-gradient(108deg, #101010 38%, rgba(16,16,16,0.62) 65%, transparent 100%),
    radial-gradient(ellipse at 80% 50%, rgba(175,18,24,0.7) 0%, rgba(120,8,12,0.3) 45%, transparent 70%),
    #101010;
}

/* 우측 패턴 장식 */
.slide-bg::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 65%, rgba(255,200,200,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,180,180,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,0.18) 0%, transparent 100%);
  animation: tw 3.5s ease-in-out infinite alternate;
}
@keyframes tw { from { opacity:.45; } to { opacity:1; } }

/* 슬라이드 텍스트 */
.slide-content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 0 3.5rem; width: 100%;
}
.slide-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red-mid);
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.28);
  padding: 0.26rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
  opacity: 0; transform: translateY(14px);
  animation: up 0.6s 0.15s forwards;
}
.slide.active .slide-tag { animation: up 0.6s 0.15s forwards; }

.slide-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
  opacity: 0; transform: translateY(18px);
  animation: up 0.65s 0.28s forwards;
}
.slide.active .slide-title { animation: up 0.65s 0.28s forwards; }
.slide-title span { color: #FF7979; }

.slide-desc {
  font-size: 1rem; color: rgba(255,255,255,0.58);
  line-height: 1.8; max-width: 460px;
  margin-bottom: 2.2rem;
  opacity: 0; transform: translateY(18px);
  animation: up 0.65s 0.42s forwards;
}
.slide.active .slide-desc { animation: up 0.65s 0.42s forwards; }

@keyframes up { to { opacity:1; transform:translateY(0); } }

.btn-hero {
  display: inline-block;
  padding: 0.78rem 1.85rem;
  border-radius: 99px;
  background: var(--red); color: white;
  font-size: 0.92rem; font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 4px 18px rgba(200,24,30,0.42);
  transition: var(--t);
  opacity: 0; transform: translateY(18px);
  animation: up 0.65s 0.56s forwards;
}
.slide.active .btn-hero { animation: up 0.65s 0.56s forwards; }
.btn-hero:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(200,24,30,0.5); }

/* 슬라이더 컨트롤 */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: white; font-size: 1.55rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.slider-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.07); }
.slider-btn-prev { left: 1.5rem; }
.slider-btn-next { right: 1.5rem; }
.slider-dots { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--t); }
.dot.active { background: var(--red); transform: scale(1.5); box-shadow: 0 0 5px var(--red); }

/* =========================================
   공통 섹션
   ========================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  padding: 0.22rem 0.78rem;
  border-radius: 99px;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-h);
  margin-bottom: 0.4rem;
}
.section-divider {
  width: 44px; height: 3px;
  background: var(--red);
  border-radius: 99px;
  margin: 0.7rem auto 1rem;
}
.section-desc {
  font-size: 0.95rem; color: var(--text-s);
  max-width: 580px; margin: 0 auto; line-height: 1.85;
}

/* =========================================
   INTRO / STATS
   ========================================= */
.intro-section {
  padding: 5.5rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-top: 2.2rem;
}
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: 2rem 1.4rem; text-align: center;
  transition: var(--t); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: var(--t);
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--red-border); box-shadow: var(--sh-r); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: 1.85rem; font-weight: 800; color: var(--red); margin-bottom: 0.3rem; }
.stat-number-sm { font-size: 1.25rem; letter-spacing: -0.01em; } /* 날짜 등 긴 텍스트용 */
.stat-label { font-size: 0.85rem; color: var(--text-s); font-weight: 500; }

/* 3칸 통계 그리드 */
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================
   VISION
   ========================================= */
.vision-section {
  padding: 5.5rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.vision-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: 2.2rem 1.8rem; text-align: center;
  transition: var(--t);
}
.vision-card:hover { transform: translateY(-5px); border-color: var(--red-border); box-shadow: var(--sh-r); }
.vision-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.vision-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text-h); margin-bottom: 0.75rem; }
.vision-card p { font-size: 0.9rem; color: var(--text-s); line-height: 1.8; }

/* =========================================
   MORE CARDS
   ========================================= */
.more-section {
  padding: 5.5rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.more-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; max-width: 820px; margin: 0 auto;
}
.more-card {
  position: relative; height: 260px;
  border-radius: var(--r-l); overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: var(--t);
}
.more-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(200,24,30,0.18); border-color: var(--red-border); }
.more-card-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.more-card:hover .more-card-bg { transform: scale(1.04); }
.more-card-bg-store { background: linear-gradient(130deg, #C8181E 0%, #7f1010 100%); }
.more-card-bg-corporate { background: linear-gradient(130deg, #1a1a1a 0%, #3d1010 100%); }
.more-card-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 70%);
}
.more-card-icon { font-size: 2.8rem; margin-bottom: 0.8rem; }
.more-card-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 0.35rem; }
.more-card-content p { font-size: 0.87rem; color: rgba(255,255,255,0.7); margin-bottom: 1.1rem; }
.more-card-btn {
  display: inline-block; padding: 0.45rem 1.2rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: white; font-size: 0.85rem; font-weight: 600;
  transition: var(--t);
}
.more-card:hover .more-card-btn { background: white; color: var(--red); }

/* =========================================
   PAGE HERO
   ========================================= */
.page-hero {
  position: relative; height: 210px;
  display: flex; align-items: center; overflow: hidden;
}
.page-hero-store { background: linear-gradient(108deg, #111 0%, #3d0808 55%, var(--red) 100%); }
.page-hero-corporate { background: linear-gradient(108deg, #1a1a1a 0%, #2d0808 55%, #9b1215 100%); }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.page-hero-content { max-width: 1240px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.page-hero-content .slide-tag { opacity: 1; transform: none; animation: none; margin-bottom: 0.45rem; }
.page-hero-content h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; color: white; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.page-hero-content p { font-size: 0.92rem; color: rgba(255,255,255,0.55); }

/* =========================================
   STORE
   ========================================= */
.store-wrap { background: var(--bg); padding-bottom: 5rem; min-height: 60vh; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 2rem; }
.product-card:nth-child(4) { grid-column: 1; }
.product-card:nth-child(5) { grid-column: 2; }

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l); overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--t);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--red-border); box-shadow: 0 14px 40px rgba(200,24,30,0.12); }

.product-img-wrap { position: relative; }
.product-img { height: 188px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img-1 { background: linear-gradient(140deg, #fef2f2, #fde8e8); }
.product-img-2 { background: linear-gradient(140deg, #f5f5f4, #e7e5e4); }
.product-img-3 { background: linear-gradient(140deg, #fffbeb, #fef3c7); }
.product-img-4 { background: linear-gradient(140deg, #eff6ff, #dbeafe); }
.product-img-5 { background: linear-gradient(140deg, #f0fdf4, #dcfce7); }
.product-img-placeholder { text-align: center; }
.product-img-placeholder span { font-size: 3rem; display: block; margin-bottom: 0.3rem; }
.product-img-placeholder p { font-size: 0.74rem; color: var(--text-xs); }

.product-badge { position: absolute; top: 10px; left: 10px; padding: 0.22rem 0.7rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; background: var(--red); color: white; }
.product-badge-new { background: #2563eb; }
.product-badge-limited { background: #9333ea; }
.product-badge-eco { background: #16a34a; }

.product-info { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-family: 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 0.38rem; }
.product-name { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-h); margin-bottom: 0.55rem; line-height: 1.4; }
.product-desc { font-size: 0.84rem; color: var(--text-s); line-height: 1.7; flex: 1; margin-bottom: 0.85rem; }
.product-rating { margin-bottom: 0.85rem; display: flex; align-items: center; gap: 5px; }
.stars { color: #f59e0b; font-size: 0.8rem; }
.review-count { font-size: 0.76rem; color: var(--text-xs); }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 0.5rem; }
.product-price { display: flex; flex-direction: column; justify-content: center; min-height: 2rem; }
.price-original { font-size: 0.74rem; color: #ccc; text-decoration: line-through; }
.price-sale { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--red); }
.btn-buy {
  padding: 0.56rem 1.22rem; border-radius: 99px;
  background: var(--red); color: white;
  font-size: 0.84rem; font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 3px 10px rgba(200,24,30,0.26);
  transition: var(--t);
}
.btn-buy:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(200,24,30,0.38); }

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(5px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.26s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--r-l);
  padding: 2.6rem 2.2rem;
  max-width: 380px; width: 92%; text-align: center;
  position: relative; overflow: hidden;
  transform: scale(0.88) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.34,1.5,0.64,1);
  box-shadow: 0 22px 60px rgba(0,0,0,0.15);
}
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-mid)); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); color: var(--text-s);
  font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: var(--t);
}
.modal-close:hover { background: var(--red-soft); color: var(--red); }
.modal-icon { font-size: 3.2rem; margin-bottom: 1rem; }
.modal-title { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text-h); margin-bottom: 0.7rem; }
.modal-desc { font-size: 0.9rem; color: var(--text-s); line-height: 1.72; margin-bottom: 1.7rem; }
.btn-modal-confirm {
  display: inline-block; padding: 0.72rem 2rem; border-radius: 99px;
  background: var(--red); color: white;
  font-size: 0.9rem; font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  box-shadow: 0 3px 14px rgba(200,24,30,0.3);
  transition: var(--t);
}
.btn-modal-confirm:hover { background: var(--red-dark); }

/* =========================================
   CORPORATE — Equity
   ========================================= */
.corp-section { padding-bottom: 3.5rem; }
.equity-container { display: grid; grid-template-columns: 1fr 1.7fr; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
.equity-chart-wrap { display: flex; flex-direction: column; gap: 1.3rem; }
.donut-chart { max-width: 230px; margin: 0 auto; filter: drop-shadow(0 4px 14px rgba(200,24,30,0.14)); }
.donut-svg { transform: rotate(-90deg); }
.donut-segment { transition: opacity 0.26s; }
.donut-segment:hover { opacity: 0.76; cursor: pointer; }
.donut-center-label { transform: rotate(90deg); transform-origin: center; fill: var(--text-s); font-size: 9px; font-family: 'Noto Sans KR', sans-serif; }
.donut-center-value { transform: rotate(90deg); transform-origin: center; fill: var(--text-h); font-size: 13px; font-weight: 800; font-family: 'Montserrat', sans-serif; }

.equity-legend { display: flex; flex-direction: column; gap: 0.6rem; }
.legend-item {
  display: flex; align-items: center; gap: 9px;
  background: var(--white); padding: 0.6rem 0.9rem;
  border-radius: var(--r-s); border: 1.5px solid var(--border); transition: var(--t);
}
.legend-item:hover { border-color: var(--red-border); background: var(--red-soft); }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.legend-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.legend-name { font-size: 0.82rem; color: var(--text-b); }
.legend-pct { font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--red); }

.equity-table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1.5px solid var(--border); }
.equity-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.equity-table th { background: var(--red-soft); padding: 0.85rem 1rem; text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--red); font-family: 'Montserrat', sans-serif; letter-spacing: 0.04em; border-bottom: 1.5px solid var(--red-border); }
.equity-table td { padding: 0.82rem 1rem; font-size: 0.87rem; color: var(--text-b); border-bottom: 1px solid var(--border); }
.equity-table tr:last-child td { border-bottom: none; }
.equity-table tbody tr:hover td { background: var(--red-soft); }
.equity-table .table-total td { background: var(--red-soft); font-weight: 700; }
.pct-badge { display: inline-block; padding: 0.16rem 0.6rem; border-radius: 99px; font-size: 0.76rem; font-weight: 700; font-family: 'Montserrat', sans-serif; color: white; }

/* 재무 */
.finance-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.3rem; }
.finance-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-m);
  padding: 1.5rem 1.2rem; transition: var(--t); position: relative; overflow: hidden;
}
.finance-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--red-mid)); }
.finance-card:hover { transform: translateY(-4px); border-color: var(--red-border); box-shadow: var(--sh-r); }
.fc-label { font-size: 0.76rem; color: var(--text-s); margin-bottom: 0.55rem; }
.fc-value { font-family: 'Montserrat', sans-serif; font-size: 1.45rem; font-weight: 800; color: var(--text-h); margin-bottom: 0.35rem; }
.fc-change { font-size: 0.76rem; font-weight: 600; }
.fc-change.up { color: var(--red); }
.fc-change.down { color: #2563eb; }

.fin-table-title { font-family: 'Montserrat', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--text-h); margin: 2rem 0 0.8rem; padding-left: 0.7rem; border-left: 3px solid var(--red); }
.fin-table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1.5px solid var(--border); margin-bottom: 0.8rem; }
.fin-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.fin-table th { background: var(--bg); padding: 0.82rem 1rem; text-align: left; font-size: 0.77rem; font-weight: 700; color: var(--text-s); font-family: 'Montserrat', sans-serif; letter-spacing: 0.04em; border-bottom: 1.5px solid var(--border); }
.fin-table td { padding: 0.75rem 1rem; font-size: 0.86rem; color: var(--text-b); border-bottom: 1px solid #f0f0f0; }
.fin-table tr:last-child td { border-bottom: none; }
.fin-table tbody tr:hover td { background: #fffbfb; }
.highlight-row td { background: var(--red-soft); font-weight: 600; }
.table-category { background: var(--bg); font-weight: 700; font-size: 0.73rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-s); padding: 0.5rem 1rem; }
.badge-up { display: inline-block; padding: 0.16rem 0.5rem; border-radius: 99px; background: var(--red-soft); color: var(--red); font-size: 0.72rem; font-weight: 700; font-family: 'Montserrat', sans-serif; border: 1px solid var(--red-border); }
.badge-neutral { display: inline-block; padding: 0.16rem 0.5rem; border-radius: 99px; background: var(--bg); color: var(--text-s); font-size: 0.72rem; font-weight: 700; }

.ratio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 4rem; }
.ratio-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-m); padding: 1.3rem; transition: var(--t); }
.ratio-card:hover { border-color: var(--red-border); background: var(--red-soft); }
.ratio-label { font-size: 0.82rem; color: var(--text-s); margin-bottom: 0.6rem; }
.ratio-bar-wrap { height: 7px; background: #efefef; border-radius: 99px; overflow: hidden; margin-bottom: 0.45rem; }
.ratio-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--red-mid)); transition: width 1.4s cubic-bezier(0.4,0,0.2,1); }
.ratio-value { font-family: 'Montserrat', sans-serif; font-size: 0.96rem; font-weight: 800; color: var(--red); }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: #111; padding: 3.5rem 2rem 0; }
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 2fr;
  gap: 3.5rem; padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem; font-weight: 800;
  color: white; margin-bottom: 0.85rem;
}
.footer-logo-mark {
  width: 32px; height: 32px;
  background: var(--red); color: white;
  border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.38); line-height: 1.75; }
.footer-addr { margin-top: 0.25rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-mid); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.38); margin-bottom: 0.48rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 1.3rem 0; font-size: 0.75rem; color: rgba(255,255,255,0.22); text-align: center; }

/* =========================================
   CHAT WIDGET (채널톡 스타일)
   ========================================= */
.chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }
.chat-fab { width: 60px; height: 60px; border-radius: 50%; background: var(--text-h); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: transform 0.3s cubic-bezier(0.34,1.5,0.64,1), background 0.3s; position: relative; }
.chat-fab:hover { transform: scale(1.08); background: #222; }
.chat-fab-badge { position: absolute; top: -2px; right: -2px; background: var(--red); color: white; font-size: 0.75rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; border: 2px solid white; transition: opacity 0.3s; }
.chat-fab-badge.hide { opacity: 0; pointer-events: none; }

.chat-panel { width: 440px; height: 680px; max-height: calc(100vh - 100px); background: white; border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; transition: all 0.3s cubic-bezier(0.34,1.5,0.64,1); margin-bottom: 1.2rem; transform-origin: bottom right; }
.chat-panel.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-header { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--white); flex-shrink: 0; }
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 800; }
.chat-header-info { display: flex; flex-direction: column; }
.chat-company-name { font-weight: 700; font-size: 0.95rem; color: var(--text-h); }
.chat-status { font-size: 0.75rem; color: var(--text-s); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.chat-header-close { font-size: 1.2rem; color: var(--text-s); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--t); }
.chat-header-close:hover { background: var(--bg); color: var(--text-h); }

.chat-welcome { padding: 1.2rem 1.2rem; background: linear-gradient(135deg, var(--red-soft), #fff); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-welcome-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.chat-welcome-title { font-size: 1.1rem; font-weight: 800; color: var(--text-h); line-height: 1.4; margin-bottom: 0.4rem; }
.chat-welcome-sub { font-size: 0.8rem; color: var(--text-s); }

.chat-quick-menu { padding: 0.8rem 1.2rem; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: white; }
.chat-quick-title { font-size: 0.75rem; font-weight: 700; color: var(--text-s); width: 100%; margin-bottom: 0.2rem; }
.chat-quick-btn { background: white; border: 1.5px solid var(--border); padding: 0.35rem 0.7rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; color: var(--text-b); transition: var(--t); cursor: pointer; }
.chat-quick-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; background: #f9f9f9; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg-bot { align-items: flex-start; }
.chat-msg-user { align-items: flex-end; align-self: flex-end; }
.chat-msg-sender { font-size: 0.7rem; color: var(--text-s); margin-bottom: 0.3rem; margin-left: 0.2rem; }
.chat-bubble { padding: 0.65rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; word-break: break-word; }
.chat-msg-bot .chat-bubble { background: white; border: 1.5px solid var(--border); color: var(--text-b); border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.chat-msg-user .chat-bubble { background: var(--red); color: white; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(200,24,30,0.2); }
.chat-msg-time { font-size: 0.65rem; color: var(--text-xs); margin-top: 0.3rem; margin-right: 0.2rem; }

.chat-typing { display: flex; gap: 6px; padding: 0.5rem 0.7rem; align-items: center; height: 28px; }
.chat-typing span { width: 6px; height: 6px; background: var(--text-xs); border-radius: 50%; animation: typing 1.4s infinite ease-in-out; }
.chat-typing span:nth-child(1) { animation-delay: 0s; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-5px); opacity: 1; } }

.chat-input-area { padding: 0.8rem 1.2rem; background: white; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input-wrap { display: flex; gap: 8px; background: var(--bg); padding: 0.3rem; border-radius: 99px; border: 1.5px solid var(--border); transition: var(--t); }
.chat-input-wrap:focus-within { border-color: var(--red-border); background: white; }
.chat-input { flex: 1; background: transparent; border: none; padding: 0.6rem 0.8rem; font-size: 0.9rem; outline: none; color: var(--text-b); font-family: inherit; }
.chat-send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--text-h); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--t); }
.chat-send-btn:hover { background: var(--red); }
.chat-send-btn:active { transform: scale(0.9); }
.chat-powered { text-align: center; font-size: 0.7rem; color: var(--text-xs); margin-top: 0.8rem; font-family: 'Montserrat', sans-serif; }
.chat-powered strong { color: var(--text-s); }

@media (max-width: 640px) {
  .chat-widget { bottom: 1rem; right: 1rem; }
  .chat-panel { width: calc(100vw - 2rem); height: calc(100vh - 140px); margin-bottom: 0.8rem; }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-3 { grid-template-columns: repeat(3, 1fr); } /* 3개는 그대로 유지 */
  .finance-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .equity-container { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(4), .product-card:nth-child(5) { grid-column: auto; }
  .vision-grid { grid-template-columns: 1fr; }
  .ratio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  /* 네비게이션 메뉴 */
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: white; padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-m); z-index: 999;
  }
  .hamburger { display: flex; }

  /* 채팅 위젯 모바일 최적화 */
  .chat-widget { bottom: 1rem; right: 1rem; left: 1rem; align-items: flex-end; }
  .chat-panel { width: 100%; max-width: 100%; height: calc(100vh - 120px); max-height: 600px; margin-bottom: 0.8rem; transform-origin: bottom; }

  /* 컨테이너 및 섹션 여백 축소 */
  .container { padding: 0 1.2rem; }
  .intro-section, .vision-section, .more-section { padding: 3.5rem 1.2rem; }
  .store-wrap { padding-bottom: 3.5rem; }
  .section-header { margin-bottom: 2rem; }
  .section-header[style*="padding-top"] { padding-top: 1.5rem !important; }
  .section-title { font-size: 1.6rem; }
  
  /* 슬라이드 텍스트 여백 */
  .slide-content { padding: 0 1.2rem; }
  .slide-title { font-size: 1.8rem; }
  .slide-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }

  /* 그리드 레이아웃 1열로 풀기 */
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid-3 { grid-template-columns: 1fr; }
  .finance-summary-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .products-grid { grid-template-columns: 1fr; }
  .more-cards { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 1.2rem; }
  
  /* 요소 안 여백 축소 */
  .stat-card { padding: 1.5rem 1rem; }
  .vision-card { padding: 1.5rem 1.2rem; }
  .ratio-card { padding: 1rem; }
  .footer { padding: 2.5rem 1.2rem 0; }
  .footer-inner { gap: 1.8rem; padding-bottom: 2rem; }
}
