:root {
  --white: #ffffff;
  --gray-50: #f6f7f8;
  --gray-100: #eceef0;
  --gray-200: #dcdfe3;
  --gray-300: #c3c7cd;
  --gray-500: #858a93;
  --gray-600: #5f646d;
  --gray-700: #44474e;
  --gray-800: #2c2e33;
  --gray-900: #1c1d21;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(28, 29, 33, .08);
  --shadow-lg: 0 24px 60px rgba(28, 29, 33, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--gray-800);
  background: var(--gray-800); color: var(--white); font-weight: 700;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--gray-900); }
.btn-ghost { background: transparent; color: var(--gray-800); }
.btn-ghost:hover { background: var(--gray-800); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow { font-size: 13px; letter-spacing: .2em; font-weight: 700; color: var(--gray-500); margin-bottom: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--gray-100); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; }
.brand strong { font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--gray-600); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--gray-900); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 5px auto; background: var(--gray-800); transition: transform .3s, opacity .3s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, var(--gray-100) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, var(--gray-50) 0, transparent 40%),
    var(--white);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: calc(100vh - 72px); padding: 60px 0 100px; }
.hero h1 { position: relative; z-index: 0; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.2; font-weight: 900; letter-spacing: -.03em; color: var(--gray-900); }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .32em; background: var(--gray-200); z-index: -1; border-radius: 4px; }
.lead { margin: 24px 0 36px; font-size: clamp(16px, 1.6vw, 19px); color: var(--gray-600); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gray-100), var(--gray-200));
}
.mascot { position: relative; width: 260px; animation: hop 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.12)); }
.mascot-shadow { position: absolute; bottom: 40px; width: 160px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.1); animation: shadow 3.2s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(-2deg); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .6; } }

.orbit { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; padding: 10px 18px; border-radius: 999px; background: var(--white);
  box-shadow: var(--shadow); font-weight: 700; font-size: 15px; color: var(--gray-700);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 12%; left: 4%; }
.chip-2 { top: 30%; right: 0; animation-delay: -1.6s; }
.chip-3 { bottom: 14%; left: 10%; animation-delay: -3.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--gray-300); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gray-500); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: -.03em; color: var(--gray-900); margin-bottom: 14px; }
.section-head p:last-child { color: var(--gray-600); }

/* Works */
.filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter { border: 1px solid var(--gray-200); background: var(--white); padding: 8px 20px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--gray-600); transition: all .2s; }
.filter:hover { border-color: var(--gray-500); }
.filter.active { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--gray-100); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work.hide { display: none; }
.work-thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 56px; }
.status { position: absolute; top: 14px; left: 14px; font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--white); color: var(--gray-700); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); }
.status.live::before { background: #4caf7a; box-shadow: 0 0 0 3px rgba(76,175,122,.2); }
.status.dev::before { background: var(--gray-600); }
.status.soon { background: var(--gray-800); color: var(--white); }
.status.soon::before { background: var(--gray-300); }
.work-thumb span { transition: transform .4s; }
.work:hover .work-thumb span { transform: scale(1.15) rotate(-6deg); }
.t1 { background: linear-gradient(135deg, #e9ebee, #cfd2d8); }
.t2 { background: linear-gradient(135deg, #f4f5f6, #dfe1e5); }
.t3 { background: linear-gradient(135deg, #dcdfe3, #bfc3ca); }
.t4 { background: linear-gradient(135deg, #eef0f2, #d5d8dd); }
.t5 { background: linear-gradient(135deg, #e3e5e9, #c8ccd2); }
.t6 { background: linear-gradient(135deg, #f1f2f4, #d9dce0); }
.work-body { padding: 22px 24px 26px; }
.work-cat { font-size: 12px; font-weight: 700; color: var(--gray-500); letter-spacing: .1em; }
.work h3 { font-size: 19px; margin: 4px 0 4px; color: var(--gray-900); }
.work p { color: var(--gray-600); font-size: 15px; }
.work-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--gray-800); }
.work-link:hover { text-decoration: underline; }

/* Featured */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.featured-art { display: grid; place-items: center; }
.device { width: 280px; padding: 14px; border-radius: 44px; background: var(--gray-800); box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.device-screen { border-radius: 32px; background: linear-gradient(180deg, var(--gray-50), var(--gray-200)); padding: 22px 18px; aspect-ratio: 9 / 17; display: flex; flex-direction: column; justify-content: space-between; }
.mock-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--gray-700); }
.mock-cards { display: flex; justify-content: center; }
.mock-card { width: 72px; height: 104px; margin: 0 -8px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; color: var(--gray-600); }
.mock-card b { font-size: 30px; color: var(--gray-900); }
.mock-card:nth-child(1) { transform: rotate(-10deg) translateY(6px); }
.mock-card:nth-child(3) { transform: rotate(10deg) translateY(6px); }
.mock-card.dark { background: var(--gray-800); color: var(--gray-300); position: relative; z-index: 1; }
.mock-card.dark b { color: var(--white); }
.mock-btn { text-align: center; padding: 14px; border-radius: 16px; background: var(--gray-800); color: var(--white); font-weight: 700; }
.featured-lead { color: var(--gray-600); margin-bottom: 28px; }
.feature-list { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.feature-list li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--gray-100); }
.feature-list b { color: var(--gray-900); }
.feature-list span { color: var(--gray-600); font-size: 15px; }
.store-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: var(--gray-200); }
.timeline li { position: relative; padding-top: 36px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--gray-300); }
.timeline li.done::before { background: var(--gray-800); border-color: var(--gray-800); }
.timeline li.now::before { background: var(--white); border-color: var(--gray-800); box-shadow: 0 0 0 6px var(--gray-100); }
.tl-date { font-size: 14px; font-weight: 900; color: var(--gray-500); letter-spacing: .08em; }
.timeline h3 { font-size: 19px; margin: 6px 0; color: var(--gray-900); }
.timeline p { color: var(--gray-600); font-size: 15px; }

/* Subscribe */
.subscribe { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 32px; background: linear-gradient(135deg, var(--gray-50), var(--gray-100)); border: 1px solid var(--gray-100); }
.subscribe-rabbit { width: 160px; animation: hop 3.2s ease-in-out infinite; }
.subscribe-copy > p:not(.eyebrow):not(.form-msg) { color: var(--gray-600); }
.subscribe-form { display: flex; gap: 10px; margin-top: 24px; max-width: 480px; }
.subscribe-form input { flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white); font-size: 15px; }
.subscribe-form input:focus { outline: none; border-color: var(--gray-600); }
.subscribe-form .invalid { border-color: #9a4b4b; }
.form-msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--gray-600); }
.socials { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--gray-600); }
.socials a:hover { color: var(--gray-900); }

/* About (dark) */
.section-dark { background: var(--gray-800); color: var(--gray-200); }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--gray-500); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-copy p:last-child { color: var(--gray-300); margin-top: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.stat strong { display: block; font-size: 44px; font-weight: 900; color: var(--white); line-height: 1.1; }
.stat span { color: var(--gray-300); font-size: 15px; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--gray-100); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--gray-500); font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: auto; padding: 48px 0 100px; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 360px; }
  .hero-art::before { width: 300px; height: 300px; }
  .mascot { width: 210px; }
  .works { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .about, .featured { grid-template-columns: 1fr; gap: 40px; }
  .subscribe { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .subscribe-rabbit { margin: 0 auto; width: 120px; }
  .subscribe-form { margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { padding: 14px 0; width: 100%; text-align: center; }
  .nav-links .btn { margin-top: 8px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 80px 0; }
  .works, .stats, .timeline { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .socials { justify-content: center; }
  .chip { font-size: 13px; padding: 8px 14px; }
}

/* Projects (2-up) & LUNITY */
.works-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.t-lunity { background: linear-gradient(160deg, #8a6cff, #e4b6ef); }
.t-lunity img { width: 128px; border-radius: 30px; box-shadow: 0 14px 30px rgba(60, 30, 120, .3); transition: transform .4s; }
.work:hover .t-lunity img { transform: scale(1.08) rotate(-4deg); }
.lunity-screen { background: linear-gradient(180deg, #8a6cff, #e4b6ef); align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; }
.lunity-screen img { width: 120px; border-radius: 28px; box-shadow: 0 12px 28px rgba(60, 30, 120, .35); }
.lunity-screen strong { font-size: 26px; font-weight: 900; letter-spacing: .08em; margin-top: 8px; }
.lunity-screen span { font-size: 14px; opacity: .9; }
.lunity-screen .mock-btn { margin-top: 28px; width: 100%; background: rgba(255,255,255,.25); }
@media (max-width: 720px) { .works-2 { grid-template-columns: 1fr; } }
.t-cakery { background: linear-gradient(160deg, #fff4ef, #f6d9d6); font-size: 72px; }
