/* ═══════════════════════════════════════════════════════════════════════
   꿈식판 ggumsikpan — 디자인 시스템 (2026-05-24 재설계)
   withoh-jihye 톤 baseline + 꿈식판 오렌지
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --deep:        #0d0a08;
  --deep-2:      #1a1410;
  --deep-3:      #2a1f18;
  --orange:      #F37021;
  --orange-light:#FF8C42;
  --orange-pale: #FFF4ED;
  --orange-deep: #C95818;
  --cream:       #FBF8F4;
  --cream-2:     #F5EFE6;
  --gray-warm:   #E8E0D6;
  --gray:        #7A7A7A;
  --gray-soft:   #B8B8B8;
  --gray-line:   #E4E0DA;
  --white:       #FFFFFF;
  --dark:        #1E1E1E;
  --dark-soft:   #3D3D3D;

  /* Typography */
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Noto Serif KR', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --wrap-max: 1180px;
  --section-py: 120px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--font-serif); font-weight: 700; }
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 32px; }

/* ─── HEADER ───────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,10,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243,112,33,0.12);
}
.topbar-inner {
  max-width: var(--wrap-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: 15px;
  letter-spacing: 0.01em;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(243,112,33,0.5);
}
.brand-name em { color: var(--orange-light); font-style: normal; font-weight: 500; font-size: 13px; margin-left: 4px; letter-spacing: 0.02em; }
.topnav {
  display: flex; gap: 32px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.topnav a { transition: color 0.2s; }
.topnav a:hover { color: var(--orange-light); }
.header-cta {
  display: inline-block;
  border: 1.5px solid var(--orange);
  color: var(--orange-light);
  padding: 9px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  transition: all 0.25s;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--orange); color: var(--deep);
}

/* ─── HERO ─────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 60%, var(--deep-3) 100%);
  color: var(--white);
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,112,33,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 60px; padding-bottom: 80px;
  position: relative; z-index: 2;
}
.hero-text { padding-right: 20px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(243,112,33,0.12);
  border: 1px solid rgba(243,112,33,0.3);
  padding: 8px 18px; border-radius: 50px;
  color: var(--orange-light);
  font-size: 13px; font-weight: 700;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  font-weight: 900;
}
.hero-title .serif { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.65em; }
.hero-title .display-em {
  font-family: var(--font-serif);
  color: var(--orange);
  font-weight: 900;
  display: inline-block;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-lead s { color: rgba(255,255,255,0.4); text-decoration-color: var(--orange); }
.hero-lead strong { color: var(--orange-light); font-weight: 700; }
.hero-cta-row {
  display: flex; gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 50px;
  font-size: 14px; font-weight: 700;
  transition: all 0.25s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border: 1.5px solid var(--orange);
  box-shadow: 0 4px 24px rgba(243,112,33,0.3);
}
.btn-primary:hover {
  background: var(--orange-deep); border-color: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(243,112,33,0.4);
}
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
}
.btn-primary.large, .btn-ghost.large { padding: 18px 36px; font-size: 16px; }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.hero-trust {
  display: flex; align-items: center; gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 480px;
}
.hero-trust > div:not(.trust-sep) {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-trust strong {
  font-family: var(--font-serif);
  font-size: 28px; color: var(--orange);
  font-weight: 900;
  line-height: 1;
}
.hero-trust strong small {
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-left: 2px;
  font-weight: 500;
}
.hero-trust span:not(.trust-sep) {
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.trust-sep {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.15);
}

/* Hero visual */
.hero-visual {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.hero-mark {
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,112,33,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.hero-mark-cap {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-align: center;
}
.hero-mark-cap strong { color: var(--orange-light); font-weight: 700; }

/* Marquee */
.hero-marquee {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.marquee-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track .sep { color: var(--orange); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ────────────────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.section-cream { background: var(--cream); }
.section-dark { background: var(--deep); color: var(--white); }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-head.dark .section-num { color: var(--orange-light); }
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  font-weight: 900;
  color: var(--dark);
}
.section-head.dark .section-title { color: var(--white); }
.section-lead {
  font-size: 16px;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.7;
}
.section-head.dark .section-lead { color: rgba(255,255,255,0.65); }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-lead strong { color: var(--orange); font-weight: 700; }
.section-head.dark .section-lead strong { color: var(--orange-light); }

/* ─── STORY ────────────────────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.story-body p { margin-bottom: 20px; color: var(--dark-soft); font-size: 16px; }
.story-lead {
  font-size: 19px !important;
  color: var(--dark) !important;
}
.story-body strong { color: var(--dark); font-weight: 700; }
.story-body .hl { color: var(--orange-deep); }
.story-line {
  height: 1px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
  margin: 36px 0;
  width: 80px;
}
.story-model {
  background: var(--white);
  border-left: 3px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px !important;
  line-height: 1.75;
}
.story-aside {
  display: flex; flex-direction: column; gap: 16px;
}
.aside-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.aside-num {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.aside-num small {
  font-size: 14px; color: var(--gray);
  margin-left: 4px; font-weight: 500;
}
.aside-label {
  font-size: 13px; color: var(--gray);
  text-align: right;
}

/* ─── PAN SERIES ───────────────────────────────────────────────────── */
.pan-group-title {
  font-size: 17px; font-weight: 800;
  color: var(--white);
  margin: 56px 0 20px;
  display: flex; align-items: baseline; gap: 12px;
}
.pan-group-title:first-of-type { margin-top: 8px; }
.pan-group-title .muted {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.pan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pan-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: all 0.25s;
  position: relative;
}
.pan-card:hover {
  border-color: var(--orange);
  background: rgba(243,112,33,0.06);
  transform: translateY(-2px);
}
.pan-card.featured {
  border-color: var(--orange);
  background: rgba(243,112,33,0.08);
}
.pan-card-ribbon {
  position: absolute;
  top: -10px; right: 24px;
  background: var(--orange);
  color: var(--deep);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: 50px;
}

/* 한정판 정원 카운터 */
.pan-quota {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243,112,33,0.12);
  border: 1px solid rgba(243,112,33,0.3);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--orange-light);
  font-weight: 600;
  width: fit-content;
}
.quota-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
.pan-quota strong {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--orange);
  font-weight: 900;
}
.pan-quota em {
  font-style: normal;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.pan-card-head { margin-bottom: 16px; }
.pan-card-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--orange-light);
  margin-bottom: 12px;
  font-weight: 600;
}
.pan-card-tag.dark { color: var(--orange-light); }
.pan-card-name {
  font-size: 32px;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}
.pan-card-line {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.pan-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.pan-card-foot {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.pan-card-foot.small { padding-top: 16px; }
.pan-price {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.pan-price strong {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--orange);
  font-weight: 900;
  margin: 0 2px;
}
.pan-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.pan-card-list {
  list-style: none;
  margin-bottom: 16px;
}
.pan-card-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.pan-card-list li:last-child { border-bottom: 0; }
.pan-card-list .price {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--orange-light);
  font-size: 14px;
}
.pan-fine {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ─── FLOW ─────────────────────────────────────────────────────────── */
.flow-pipeline {
  display: flex; align-items: stretch; gap: 12px;
  margin: 40px 0 24px;
  flex-wrap: nowrap;
}
.flow-step {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
}
.flow-step.active {
  border-color: var(--orange);
  background: var(--orange-pale);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(243,112,33,0.15);
}
.flow-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 12px;
}
.flow-step-name {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 8px;
}
.flow-step-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 40px;
}
.flow-step-price {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 700;
  color: var(--orange-deep);
  padding-top: 12px;
  border-top: 1px solid var(--gray-line);
}
.flow-step.active .flow-step-price { border-top-color: rgba(243,112,33,0.25); }
.flow-arrow {
  display: flex; align-items: center;
  font-size: 24px;
  color: var(--orange);
  font-weight: 300;
}
.flow-note {
  margin-top: 24px;
  background: var(--white);
  border-left: 3px solid var(--orange);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--dark-soft);
}
.flow-note strong { color: var(--orange-deep); font-weight: 700; }

/* ─── CASES ────────────────────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.25s;
}
.case-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.case-tag {
  display: inline-block;
  background: var(--orange-pale);
  color: var(--orange-deep);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.case-name {
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 16px;
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--orange);
  padding-top: 12px;
  border-top: 1px dashed var(--gray-line);
  letter-spacing: 0.04em;
}

/* ─── CONTACT ──────────────────────────────────────────────────────── */
.contact-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-cta-row {
  display: flex; gap: 14px; justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.contact-info {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.9;
}
.contact-info strong { color: var(--white); font-weight: 700; }

/* ─── FOOTER ───────────────────────────────────────────────────────── */
.footer {
  background: var(--deep-2);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-tag {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  text-align: right;
}
.footer-copy {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-py: 80px; }
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { padding-bottom: 20px; }
  .hero-mark { width: 220px; height: 220px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .pan-grid, .case-grid { grid-template-columns: 1fr; }
  .flow-pipeline { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; }
  .flow-step.active { transform: scale(1); }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .topbar-inner { padding: 12px 20px; }
  .header-cta { padding: 7px 16px; font-size: 12px; }
  .brand-name em { display: none; }
  .hero { padding-top: 90px; }
  .hero-cta-row { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-trust { gap: 16px; }
  .trust-sep { display: none; }
}
