
/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --night:    #0B0418;
  --night2:   #160830;
  --purple:   #3D1A6B;
  --rose:     #C8527A;
  --rose-lt:  #F2A0C0;
  --pink:     #F7CCD8;
  --gold:     #D4943A;
  --gold-lt:  #F2C060;
  --lavender: #9B6EC8;
  --cream:    #FDF7F0;
  --text-d:   #1A0A30;
  --text-lt:  #F8F0FF;
  --serif:    'Noto Serif KR', serif;
  --sans:     'Noto Sans KR', sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--night);
  color: var(--text-lt);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(to bottom, rgba(11,4,24,.95) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-lt);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--rose-lt); }
.nav-dl {
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 24px;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav-dl:hover { opacity: .85; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/home/cta-bg.png');
  background-size: cover;
  background-position: center top;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,4,24,.5) 0%,
    transparent 25%,
    transparent 55%,
    rgba(11,4,24,.7) 80%,
    rgba(11,4,24,.98) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px 72px;
  max-width: 480px;
}
.hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 20px rgba(200,82,122,.4);
  margin-right: 10px;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 300;
  color: var(--rose-lt);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  opacity: .9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, var(--rose-lt) 40%, var(--gold-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 32px;
  border-radius: 32px;
  text-decoration: none;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 24px rgba(200,82,122,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200,82,122,.5); }
.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
  font-weight: 500;
  font-size: .9rem;
  padding: 14px 32px;
  border-radius: 32px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--rose-lt); background: rgba(200,82,122,.1); }

/* ── Scroll indicator ── */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s ease-in-out infinite;
  opacity: .5;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  text-align: center;
  letter-spacing: 0.1em;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section wrappers ── */
section { position: relative; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-label {
  font-size: .72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-lt);
  margin-bottom: 12px;
  opacity: .8;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc {
  font-size: .95rem;
  opacity: .7;
  max-width: 520px;
  line-height: 1.8;
}

/* ── Key visual cards (day / night) ── */
.kv-section {
  background: var(--night);
  padding: 0;
}
.kv-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media(max-width:680px) {
  .kv-grid { grid-template-columns: 1fr; }
}
.kv-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s;
}
.kv-card:hover { transform: translateY(-6px); }
.kv-card img {
  width: 100%;
  display: block;
  border-radius: 24px;
}
.kv-card .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11,4,24,.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

/* ── HOW IT WORKS ── */
.how-section {
  background: linear-gradient(160deg, #140830 0%, #0B0418 100%);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
@media(max-width:720px) {
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
}
.how-step {
  text-align: center;
  position: relative;
}
.how-step::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--rose), transparent);
  display: none;
}
.how-step:not(:last-child)::after {
  display: block;
}
@media(max-width:720px) {
  .how-step::after { display: none !important; }
}
.how-cat {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 16px rgba(200,82,122,.3));
  transition: transform .3s;
}
.how-cat:hover { transform: scale(1.1) rotate(-3deg); }
.step-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--rose-lt);
  margin-bottom: 10px;
  opacity: .8;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-desc {
  font-size: .87rem;
  opacity: .65;
  line-height: 1.75;
}

/* ── Characters ── */
.chars-section {
  background: linear-gradient(160deg, #0B0418 0%, #1A0838 100%);
}
.chars-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  margin-top: 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--rose) transparent;
}
.chars-scroll::-webkit-scrollbar { height: 4px; }
.chars-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 2px; }
.chars-scroll::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 2px; }
.char-item {
  flex: 0 0 120px;
  text-align: center;
}
.char-face {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(200,82,122,.4);
  margin: 0 auto 10px;
  transition: border-color .2s, transform .2s;
}
.char-item:hover .char-face {
  border-color: var(--rose-lt);
  transform: scale(1.05);
}
.char-label {
  font-size: .72rem;
  opacity: .6;
  letter-spacing: 0.05em;
}

/* ── Group poster ── */
.poster-section {
  position: relative;
  overflow: hidden;
  max-height: 600px;
}
.poster-section img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(.75);
}
.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  background: linear-gradient(
    to bottom,
    rgba(11,4,24,.3) 0%,
    rgba(11,4,24,.1) 40%,
    rgba(11,4,24,.7) 100%
  );
}
.poster-overlay .section-label { color: var(--rose-lt); opacity: 1; }
.poster-overlay .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.poster-overlay .section-desc { color: rgba(255,255,255,.8); max-width: 440px; margin: 0 auto; }

/* ── Features bento ── */
.features-section {
  background: linear-gradient(160deg, #1A0838 0%, #0B0418 100%);
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media(max-width:768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .w4 { grid-column: span 2; }
  .bento .w2 { grid-column: span 1; }
  .bento .w3 { grid-column: span 2; }
  .bento .w6 { grid-column: span 2; }
}
.bento-card {
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.w4 { grid-column: span 4; }
.w2 { grid-column: span 2; }
.w3 { grid-column: span 3; }
.w6 { grid-column: span 6; }
.card-a {
  background: linear-gradient(135deg, #2A1050 0%, #4A1878 100%);
  border: 1px solid rgba(200,82,122,.2);
}
.card-b {
  background: linear-gradient(135deg, #301040 0%, #1E0838 100%);
  border: 1px solid rgba(155,110,200,.2);
}
.card-c {
  background: linear-gradient(135deg, #200830 0%, #380E50 100%);
  border: 1px solid rgba(212,148,58,.2);
}
.card-d {
  background: linear-gradient(135deg, #180620 0%, #301050 100%);
  border: 1px solid rgba(200,82,122,.15);
}
.big-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
  opacity: .15;
  background: linear-gradient(135deg, var(--rose-lt), var(--gold-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-tag {
  font-size: .7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-lt);
  margin-bottom: 8px;
  opacity: .8;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-desc {
  font-size: .82rem;
  opacity: .6;
  line-height: 1.6;
}
.card-cat {
  position: absolute;
  top: 12px;
  left: 20px;
  width: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

/* ── CTA ── */
.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,#1A0830 0%,#380E5A 40%,#2A1048 70%,#100520 100%);
}

.cta-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,4,24,.6) 0%,
    rgba(11,4,24,.15) 40%,
    rgba(11,4,24,.15) 60%,
    rgba(11,4,24,.8) 100%
  );
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 520px;
}
.cta-eyebrow {
  font-size: .78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-lt);
  margin-bottom: 16px;
  opacity: .9;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: .95rem;
  opacity: .8;
  margin-bottom: 36px;
  line-height: 1.75;
}

/* ── Footer ── */
footer {
  background: #05020F;
  padding: 48px 24px 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-lt);
}
.footer-copy {
  font-size: .78rem;
  opacity: .4;
  line-height: 1.7;
}
.footer-copy a {
  color: inherit;
  text-decoration: none;
}
.footer-copy a:hover {
  color: var(--rose-lt);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--rose-lt); }
.footer-tagline {
  font-family: var(--serif);
  font-size: .8rem;
  color: rgba(255,255,255,.2);
  font-style: italic;
  margin-top: 4px;
}

/* ── Petal animation ── */
.petal-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s;
}
.petal {
  position: absolute;
  top: -20px;
  font-size: 14px;
  animation: fall linear infinite;
  opacity: .7;
}
@keyframes fall {
  to {
    transform: translateY(110vh) translateX(30px) rotate(360deg);
    opacity: 0;
  }
}

/* ── Floating cat mascot ── */
.floating-cat {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 68px;
  z-index: 50;
  cursor: pointer;
  animation: float-bob 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: transform .2s;
}
.floating-cat:hover { transform: scale(1.15); }
@keyframes float-bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Responsive nav ── */
@media(max-width:720px) {
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .section-inner { padding: 80px 20px; }
}
