/* ============================================================
   Copacabana, Co. — Main Stylesheet
   Brand palette extracted from official logo:
     Navy   #103554  (primary background / dark text)
     Orange #ED640B  (sun icon / primary accent)
     Gold   #FDB91E  (moon icon / secondary accent)
     Ice    #D2E4F3  (logo border / light tint)
   Font: Inter (Google Fonts, OFL license)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand colors */
  --navy:          #103554;
  --navy-dark:     #0b2540;
  --navy-mid:      #1a4a6e;
  --orange:        #ED640B;
  --orange-dark:   #c95208;
  --gold:          #FDB91E;
  --gold-dark:     #e0a010;
  --ice:           #D2E4F3;

  /* Semantic aliases */
  --accent:        var(--orange);
  --accent-dark:   var(--orange-dark);
  --accent2:       var(--gold);

  /* Text */
  --text-primary:   #0f2d45;
  --text-secondary: #4a6a82;
  --text-tertiary:  #7a9ab0;

  /* Backgrounds */
  --bg-white:   #ffffff;
  --bg-light:   #f4f8fc;
  --bg-section: #eef4fa;
  --bg-navy:    var(--navy);

  /* UI */
  --border:       #c8dcea;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(16, 53, 84, 0.08);
  --shadow-md:    0 8px 32px rgba(16, 53, 84, 0.14);
  --max-width:    1100px;
  --nav-height:   64px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); line-height: 1.75; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
section.alt-bg { background: var(--bg-section); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo: image + text */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo-text {
  color: var(--navy);
}
.nav-logo-text span {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--orange) !important;
  border: 1.5px solid var(--orange);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--orange) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 96px;
  text-align: center;
  background: linear-gradient(160deg, #f4f8fc 0%, #eaf2fa 100%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 24px; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(237, 100, 11, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

/* 공식 Store Badge — 원본 자산의 색상·비율을 수정하지 않음 */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.store-badges-left { justify-content: flex-start; }
.store-badge { display: block; flex: 0 0 auto; line-height: 0; }
.store-badge img {
  display: block;
  width: 150px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.store-badge:first-child img { width: 185px; }
.muselry-downloads {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@media (max-width: 640px) {
  .store-badges-left { justify-content: center; }
  .muselry-downloads { align-items: center; }
}
@media (max-width: 360px) {
  .store-badge img { width: 142px; }
  .store-badge:first-child img { width: 160px; }
}

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(237, 100, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p  { font-size: 0.92rem; }

/* ---------- Feature List ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.feature-text h4 { font-size: 0.95rem; margin-bottom: 6px; }
.feature-text p  { font-size: 0.85rem; line-height: 1.6; }

/* ---------- Muselry Block ---------- */
.muselry-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.muselry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(237, 100, 11, 0.1);
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.muselry-title { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 8px; }
.muselry-subtitle { font-size: 1rem; color: var(--orange); font-weight: 600; margin-bottom: 20px; }
.muselry-desc { font-size: 1rem; margin-bottom: 32px; }
.muselry-visual {
  background: #fdebd8;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.muselry-visual img {
  border-radius: 28px;
  filter: drop-shadow(0 12px 32px rgba(180, 80, 20, 0.22)) drop-shadow(0 4px 12px rgba(180, 80, 20, 0.14));
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--bg-white);
  padding: 40px 32px;
  text-align: center;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.03em;
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(237, 100, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-info-text span { font-size: 0.95rem; color: var(--text-primary); }

.contact-form {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(237, 100, 11, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Page Hero ---------- */
.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: linear-gradient(160deg, #f4f8fc 0%, #eaf2fa 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; color: var(--navy); }
.page-hero p  { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p  { font-size: 0.9rem; }

/* ---------- Divider ---------- */
.divider {
  width: 48px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-logo-text span { color: var(--gold); }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .muselry-block,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .muselry-visual { aspect-ratio: 16/9; font-size: 4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; font-size: 1rem; width: 100%; }
  .nav-cta { margin: 8px 24px 0; text-align: center; border-radius: var(--radius-sm) !important; padding: 12px 24px !important; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
