/* ============================================================
   CROISSANT — 오리가미 자세교정 쿠션 스타일시트
   디자인 컨셉: 황금빛 & 미니멀 프리미엄
   ============================================================ */

:root {
  /* 컬러 팔레트 */
  --gold: #D4A017;
  --gold-light: #E8C547;
  --gold-dark: #A07810;
  --gold-pale: #F5E9C8;
  --white: #FFFFFF;
  --off-white: #F8F6F1;
  --cream: #F0EAD8;
  --ink: #1A1A18;
  --ink-light: #2E2E2A;
  --gray-1: #3D3D37;
  --gray-2: #6B6B62;
  --gray-3: #A3A399;
  --gray-4: #D4D4CC;
  --gray-5: #EBEBEB;

  /* 타이포그래피 */
  --font-display: 'DM Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --font-sans: 'DM Sans', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;

  /* 간격 */
  --section-pad: 120px;
  --section-pad-sm: 72px;

  /* 전환 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  background: var(--off-white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

#navbar.scrolled {
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}

#navbar.scrolled .nav-logo { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }

#navbar.scrolled .nav-links a { color: var(--gray-2); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }
#navbar.scrolled .nav-links a::after { background: var(--gold); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: background 0.3s, transform 0.3s;
}
#navbar.scrolled .menu-btn span { background: var(--ink); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(248, 246, 241, 0.98);
  backdrop-filter: blur(12px);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}

.mobile-menu.open {
  display: flex;
  max-height: 400px;
  padding: 16px 0 24px;
}

.mobile-menu a {
  padding: 14px 48px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
  border-bottom: 1px solid var(--gray-5);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--gold); background: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: hero-zoom 8s var(--ease) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,8,0.75) 0%,
    rgba(10,10,8,0.45) 50%,
    rgba(10,10,8,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  animation: hero-in 1.2s var(--ease) 0.3s both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-title-kr {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-title-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: normal;
  color: var(--gold-pale);
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}

.hero-cta:hover { border-color: var(--gold); color: var(--ink); }
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta span { position: relative; z-index: 1; }

.hero-scroll {
  position: absolute;
  bottom: 48px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: hero-in 1.2s var(--ease) 1s both;
}

.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 100%);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   공통 타이포그래피
   ============================================================ */
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 48px;
}

.section-title.center, .section-eyebrow.center { text-align: center; }

/* ============================================================
   STORY
   ============================================================ */
.story {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text .section-title { margin-bottom: 28px; }

.story-body {
  font-size: 1rem;
  color: var(--gray-1);
  line-height: 2;
}

.story-body strong {
  font-weight: 600;
  color: var(--gold-dark);
}

.story-visual {
  position: relative;
}

.story-img-wrap {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 80px rgba(0,0,0,0.1);
}

.story-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.story-img-wrap:hover .story-img { transform: scale(1.04); }

.story-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--gold);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(212,160,23,0.35);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 40px 28px;
  border: 1px solid var(--gray-5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: var(--gold-pale);
}

.feature-icon {
  width: 52px; height: 52px;
  color: var(--gold);
  margin-bottom: 24px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--gray-2);
  line-height: 1.9;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--ink);
}

.how-it-works .section-eyebrow { color: var(--gold-light); }
.how-it-works .section-title   { color: var(--white); }

.steps-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(212,160,23,0.25);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.step-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.07);
}

.step-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.step:hover .step-img-wrap img { transform: scale(1.04); }

.step-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}

.step-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.step-arrow {
  width: 40px;
  flex-shrink: 0;
  color: rgba(212,160,23,0.4);
}

/* ============================================================
   BEFORE & AFTER
   ============================================================ */
.before-after {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.ba-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 56px;
  border: 1px solid var(--gray-4);
  border-radius: 2px;
  overflow: hidden;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.ba-tab {
  flex: 1;
  padding: 13px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  transition: background 0.3s, color 0.3s;
}

.ba-tab.active {
  background: var(--gold);
  color: var(--white);
}

.ba-tab:hover:not(.active) {
  background: var(--cream);
  color: var(--ink);
}

.ba-panel { display: none; }
.ba-panel.active { display: block; animation: fade-in 0.5s var(--ease); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.ba-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.ba-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.ba-card img {
  width: 100%; height: 420px;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}

.ba-card.after .ba-label { background: rgba(212,160,23,0.8); }

.ba-caption {
  padding: 18px 20px;
  background: var(--white);
  font-size: 0.85rem;
  color: var(--gray-1);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.ba-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ba-icon.bad  { background: #FFE5E5; color: #C94040; }
.ba-icon.good { background: #E5F5EC; color: #2E8C4A; }

.ba-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: normal;
}

.ba-divider-line {
  width: 1px; height: 80px;
  background: var(--gray-4);
}

/* ============================================================
   STORAGE SECTION
   ============================================================ */
.storage-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.storage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.storage-visual {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.1);
  aspect-ratio: 3/4;
}

.storage-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.storage-visual:hover img { transform: scale(1.03); }

.storage-text .section-title { margin-bottom: 20px; }

.storage-body {
  font-size: 0.95rem;
  color: var(--gray-1);
  line-height: 2;
  margin-bottom: 32px;
}

.storage-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.storage-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--gray-1);
}

.sf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   COLORS
   ============================================================ */
.colors-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.colors-desc {
  font-size: 0.95rem;
  color: var(--gray-2);
  max-width: 480px;
  margin: -32px auto 56px;
  line-height: 1.8;
}

.color-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.color-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.color-item:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.color-item.active { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,160,23,0.15); }

.color-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.color-name {
  padding: 10px 14px;
  background: var(--off-white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gray-1);
  text-align: center;
}

.color-preview {
  text-align: center;
  padding: 20px;
  background: var(--off-white);
  border-radius: 4px;
  border: 1px solid var(--gray-5);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fade-in 0.3s var(--ease);
}

.cp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
}

.cp-desc {
  font-size: 0.85rem;
  color: var(--gray-2);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,160,23,0.08) 0%, transparent 70%);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.cta-deco {
  display: flex;
  justify-content: center;
}

.cta-product-img {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 32px 64px rgba(212,160,23,0.2));
  animation: float 5s ease-in-out infinite;
}

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

.cta-text .section-eyebrow { color: var(--gold-light); }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  font-family: var(--font-display);
}

.cta-btn.primary {
  background: var(--gold);
  color: var(--ink);
}

.cta-btn.primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,160,23,0.4);
}

.cta-btn.secondary {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}

.cta-btn.secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 36px;
  background: #111110;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
}

.footer-tagline p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: normal;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  text-align: right;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

/* ============================================================
   스크롤 애니메이션
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-wrap {
    flex-direction: column;
    gap: 0;
  }

  .step-arrow { transform: rotate(90deg); margin: 8px 0; }

  .story-inner, .storage-inner, .cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .storage-visual { aspect-ratio: 4/3; order: -1; }

  .ba-compare { grid-template-columns: 1fr; gap: 16px; }
  .ba-card img { height: 280px; }
  .ba-divider { flex-direction: row; justify-content: center; }
  .ba-divider-line { width: 80px; height: 1px; }

  .color-gallery { grid-template-columns: repeat(4, 1fr); }

  .cta-deco { display: none; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  .container { padding: 0 20px; }

  .nav-inner { padding: 18px 20px; }
  .nav-links  { display: none; }
  .menu-btn   { display: flex; }

  .hero-content { padding: 0 20px; }

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

  .color-gallery { grid-template-columns: repeat(2, 1fr); }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-tagline p { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  .cta-buttons { flex-direction: column; }
  .cta-btn { width: 100%; text-align: center; }

  .ba-tabs { max-width: 100%; }

  .story-badge { bottom: -16px; left: -8px; }
}

@media (max-width: 480px) {
  .hero-title-kr { font-size: 2.6rem; }
  .section-title { font-size: 1.8rem; }
  .color-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
