:root {
  --bg: #EFEFF1;
  --surface: #FFFFFF;
  --ink: #111113;
  --ink-2: #3F3F46;
  --muted: #52525B;
  --line: #E4E4E7;
  --accent: #111113;
  --ok: #166534;
  --part: #92400E;
  --plan: #52525B;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 16px; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; margin-bottom: 8px; }
p { margin: 0; color: var(--ink-2); }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(239, 239, 241, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

main { display: block; }
.section { padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 96px); max-width: 1180px; margin: 0 auto; }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.lead { max-width: 680px; font-size: 1.05rem; color: var(--ink-2); }

.hero {
  min-height: calc(100vh - 62px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(56px, 10vw, 120px) clamp(20px, 6vw, 96px);
  max-width: 1180px; margin: 0 auto;
}
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 1.04; font-weight: 750; letter-spacing: -0.035em;
  display: flex; flex-wrap: wrap; gap: 0 0.28em;
}
.hero-title .word { display: inline-block; will-change: transform, opacity, filter; }
.hero-title .accent { color: var(--muted); }
.hero-desc { margin-top: 12px; max-width: 620px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17, 17, 19, 0.18); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { transform: translateY(-2px); border-color: #A1A1AA; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }
.btn:active { transform: translateY(0) scale(0.98); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: #A1A1AA; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: s; }
.step-no { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }

.status-grid, .feature-grid, .plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tech p, .feat p { font-size: 14px; margin-top: 4px; }
.badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.badge.ok { background: #DCFCE7; color: var(--ok); }
.badge.part { background: #FEF3C7; color: var(--part); }
.badge.plan { background: #F4F4F5; color: var(--plan); }

.plan-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.plan-card ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.plan-card li::before { content: "— "; color: var(--muted); }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-top: 6px; }
.plan-card.featured { background: var(--ink); }
.plan-card.featured h3, .plan-card.featured .plan-price { color: #fff; }
.plan-card.featured ul, .plan-card.featured li { color: #D4D4D8; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 650; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; }

.download { text-align: center; max-width: none; background: var(--surface); border-top: 1px solid var(--line); }
.download .lead { margin: 0 auto 28px; }

.footer { border-top: 1px solid var(--line); padding: 48px clamp(20px, 6vw, 96px) 32px; background: var(--surface); }
.footer-cols { max-width: 1180px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer h4 { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.footer a, .footer span { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; margin-bottom: 6px; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--ink); }
.footer .copy { max-width: 1180px; margin: 32px auto 0; font-size: 13px; color: var(--muted); }

.reveal-ready .reveal, .reveal-ready .section > *:not(.hero) { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal.in, .reveal-ready .section > *.in { opacity: 1; transform: none; }
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.section > * { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.hero-title .word {
  opacity: 0; transform: translate3d(0, 0.5em, -220px) scale(0.86); filter: blur(12px);
  animation: arrive 1.1s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.18s);
}
.intro-done .hero-title .word { animation: none; opacity: 1; transform: none; filter: none; }
@keyframes arrive {
  0% { opacity: 0; transform: translate3d(0, 0.5em, -220px) scale(0.86); filter: blur(12px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.hero .reveal, .hero .hero-desc, .hero .hero-actions { opacity: 0; transform: translateY(10px); }
.intro-run .hero .reveal { animation: fadeUp 0.8s var(--ease) forwards; }
.intro-run .hero .hero-desc { animation-delay: 1.1s; }
.intro-run .hero .hero-actions { animation-delay: 1.3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.intro-done .hero .reveal, .intro-done .hero .hero-desc, .intro-done .hero .hero-actions { opacity: 1; transform: none; }

button, a, .btn, .card, .lang button {
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
button:active, .btn:active { transform: scale(0.98); }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .nav { margin-left: 0; order: 3; width: 100%; gap: 14px; overflow-x: auto; flex-wrap: nowrap; }
  .lang { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-title .word, .hero .reveal, .hero .hero-desc, .hero .hero-actions { opacity: 1; transform: none; filter: none; }
}
