:root {
  --navy: #0f1424;
  --navy-2: #1a2138;
  --navy-3: #262f4d;
  --moon: #f5c84c;
  --moon-soft: #fff4d1;
  --ink: #1b2033;
  --text: #3d4357;
  --muted: #6b7186;
  --line: #e6e3da;
  --paper: #fbfaf6;
  --white: #ffffff;
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: #b8860b; margin-bottom: 12px;
}
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.35; color: var(--ink); margin-bottom: 16px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 640px; }
.head { margin-bottom: 48px; }
.head.center { text-align: center; }
.head.center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-moon { background: var(--moon); color: var(--navy); box-shadow: 0 6px 20px rgba(245, 200, 76, .35); }
.btn-moon:hover { box-shadow: 0 10px 28px rgba(245, 200, 76, .45); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(15, 20, 36, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--white); }
.logo-moon { width: 22px; height: 22px; border-radius: 50%; background: var(--moon); box-shadow: inset -6px -2px 0 0 #e0a92a; }
.menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.menu a { color: rgba(255,255,255,.75); font-size: .95rem; font-weight: 500; }
.menu a:hover { color: var(--white); }
.menu .ai-link { color: var(--moon); }
.menu .btn { padding: 9px 18px; font-size: .9rem; color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 85% 10%, #33406b 0%, var(--navy) 60%);
  color: var(--white); padding: 150px 0 110px;
}
.hero::before {
  content: ""; position: absolute; top: 90px; right: 8%;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--moon); box-shadow: 0 0 80px 20px rgba(245, 200, 76, .25), inset -28px -10px 0 0 #e0a92a;
  opacity: .9;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(245, 200, 76, .12); color: var(--moon); border: 1px solid rgba(245, 200, 76, .35);
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.25; font-weight: 800; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--moon); }
.hero p { color: rgba(255,255,255,.72); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 36px; font-size: .9rem; color: rgba(255,255,255,.6); list-style: none; }
.hero-points li::before { content: "✓ "; color: var(--moon); font-weight: 700; }

/* Phone mockup */
.phone {
  width: 280px; margin: 0 auto; padding: 12px;
  background: #0a0d18; border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.screen { background: #f4f2ec; border-radius: 30px; overflow: hidden; height: 520px; display: flex; flex-direction: column; }
.app-bar { background: var(--white); padding: 18px 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.app-bar strong { display: block; color: var(--ink); font-size: .95rem; }
.app-bar span { font-size: .72rem; color: #2e9e5b; }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; line-height: 1.5; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; }
.msg.user { align-self: flex-end; background: var(--navy-2); color: var(--white); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg.ai .tag { display: block; font-size: .68rem; font-weight: 700; color: #b8860b; margin-bottom: 2px; }
.slots { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.slots span { padding: 4px 9px; border-radius: 999px; background: var(--moon-soft); color: #8a6400; font-size: .72rem; font-weight: 600; }
.chat-input { margin: 0 12px 14px; padding: 10px 14px; background: var(--white); border-radius: 999px; font-size: .78rem; color: #a0a4b2; border: 1px solid var(--line); }

/* Pain points */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px;
}
.pain .icon { font-size: 1.8rem; margin-bottom: 14px; }
.pain h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.pain p { font-size: .93rem; color: var(--muted); }
.pain-answer { margin-top: 36px; text-align: center; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pain-answer em { font-style: normal; background: linear-gradient(transparent 60%, var(--moon-soft) 60%); }

/* AI section */
.ai { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.ai h2 { color: var(--white); }
.ai .lead { color: rgba(255,255,255,.65); }
.ai .eyebrow { color: var(--moon); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-card {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 30px 26px;
}
.ai-card .num { font-size: .8rem; font-weight: 700; color: var(--moon); margin-bottom: 18px; }
.ai-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ai-card p { color: rgba(255,255,255,.65); font-size: .95rem; margin-bottom: 18px; }
.ai-card .example {
  font-size: .85rem; padding: 12px 14px; border-radius: 12px;
  background: rgba(245, 200, 76, .08); color: var(--moon-soft); border-left: 3px solid var(--moon);
}
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.compare-col { border-radius: var(--radius); padding: 28px 26px; }
.compare-col.before { background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.2); }
.compare-col.after { background: linear-gradient(135deg, rgba(245,200,76,.16), rgba(245,200,76,.04)); border: 1px solid rgba(245,200,76,.4); }
.compare-col h3 { font-size: 1rem; margin-bottom: 14px; }
.compare-col.before h3 { color: rgba(255,255,255,.55); }
.compare-col.after h3 { color: var(--moon); }
.compare-col ul { list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.compare-col.before li { color: rgba(255,255,255,.55); }
.compare-col.before li::before { content: "– "; }
.compare-col.after li::before { content: "✓ "; color: var(--moon); font-weight: 700; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.pkg {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; display: flex; flex-direction: column;
}
.pkg.featured { border: 2px solid var(--moon); box-shadow: 0 12px 32px rgba(245, 200, 76, .18); position: relative; }
.pkg.featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 24px;
  background: var(--moon); color: var(--navy); font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.pkg .for { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.pkg h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 10px; }
.pkg .price { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.pkg .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.pkg .period { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.pkg ul { list-style: none; display: grid; gap: 8px; align-content: start; font-size: .92rem; margin-bottom: 20px; flex: 1; }
.pkg li::before { content: "· "; color: var(--muted); }
.pkg-desc { font-size: .92rem; color: var(--text); margin-bottom: 16px; }
.modules { display: grid; gap: 8px; margin-bottom: 14px; }
.modules div { padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.modules strong { display: block; font-size: .88rem; color: var(--ink); }
.modules span { font-size: .82rem; color: var(--muted); }
.pkg .ai-opt {
  font-size: .85rem; padding: 10px 12px; border-radius: 10px;
  background: var(--moon-soft); color: #7a5800;
}
.pkg .ai-opt strong { display: block; font-size: .75rem; margin-bottom: 2px; }
.note { margin-top: 20px; font-size: .85rem; color: var(--muted); text-align: center; }

/* Why */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--moon-soft); font-size: 1.5rem; margin-bottom: 18px;
}
.why-item h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 8px; }
.why-item p { font-size: .93rem; color: var(--muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-size: .85rem; font-weight: 800; color: #b8860b; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.step p { font-size: .88rem; color: var(--muted); }
.step .dur { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 600; color: var(--text); background: var(--paper); padding: 3px 9px; border-radius: 999px; }

/* Demo */
.demo { background: linear-gradient(180deg, var(--paper), #f1eee4); }
.demo-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.demo-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.demo-tab {
  padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--text); border: 1px solid var(--line);
}
.demo-tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.demo-desc h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 10px; }
.demo-desc p { color: var(--muted); margin-bottom: 18px; }
.demo-desc ul { list-style: none; display: grid; gap: 8px; }
.demo-desc li::before { content: "✓ "; color: #b8860b; font-weight: 700; }
.demo .phone { background: var(--navy); }
.demo-visual { min-height: 560px; display: flex; align-items: center; justify-content: center; }

/* 관리자 웹 + 앱 */
.duo { position: relative; width: 100%; padding: 0 0 60px; }
.duo .browser { width: 82%; }
.duo .phone { position: absolute; right: 0; bottom: 0; transform: scale(.72); transform-origin: bottom right; }
.sync {
  position: absolute; left: 0; bottom: 18px; font-size: .8rem; font-weight: 700; color: #8a6400;
  background: var(--moon-soft); padding: 6px 12px; border-radius: 999px;
}
.browser { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15,20,36,.14); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #efece4; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d1c4; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 220px; padding: 3px 12px; border-radius: 6px; background: var(--white); font-size: .7rem; color: var(--muted); }
.admin { display: grid; grid-template-columns: 112px 1fr; min-height: 400px; font-size: .74rem; }
.admin-side { background: var(--navy); color: rgba(255,255,255,.55); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.admin-side b { color: var(--white); font-size: .76rem; margin-bottom: 10px; }
.admin-side span { padding: 6px 8px; border-radius: 6px; }
.admin-side .on { background: rgba(245,200,76,.15); color: var(--moon); font-weight: 700; }
.admin-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.stats span { display: block; color: var(--muted); font-size: .66rem; }
.stats strong { color: var(--ink); font-size: .95rem; }
.admin-head { display: flex; gap: 10px; align-items: center; }
.admin-head h4 { color: var(--ink); font-size: .88rem; }
.admin-head .add { background: var(--navy); color: var(--white); padding: 5px 10px; border-radius: 6px; font-weight: 600; font-size: .7rem; }
.rows { display: grid; gap: 6px; }
.row-item { display: grid; grid-template-columns: 44px auto 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.row-item.hl { border-color: var(--moon); background: #fffaea; }
.row-item i { height: 30px; border-radius: 6px; }
.row-item strong { display: block; color: var(--ink); font-size: .74rem; line-height: 1.3; }
.row-item span { color: var(--muted); font-size: .66rem; }
.row-item em { font-style: normal; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st.live { background: #e3f4ea; color: #2e7d4f; }
.st.scheduled { background: #e8eefc; color: #3b5aa8; }
.st.ended { background: #eeeeee; color: #888; }

/* 콘텐츠 관리형 데모 화면 */
.feed { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 12px; font-size: .78rem; }
.search { padding: 9px 12px; border-radius: 10px; background: var(--white); color: #a0a4b2; border: 1px solid var(--line); }
.banner {
  border-radius: 14px; padding: 16px 14px; color: var(--white);
  background: linear-gradient(135deg, #ff8a3d, #f5c84c);
}
.banner small { display: block; font-size: .68rem; opacity: .9; }
.banner strong { font-size: .95rem; line-height: 1.35; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--ink); font-size: .85rem; }
.sec-title .tag { font-size: .66rem; font-weight: 700; color: #b8860b; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card .thumb { height: 64px; position: relative; }
.card .match {
  position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px;
  background: rgba(15,20,36,.8); color: var(--moon); font-size: .64rem; font-weight: 700;
}
.card .body { padding: 7px 8px 9px; }
.card .body strong { display: block; color: var(--ink); font-size: .74rem; line-height: 1.35; }
.card .body span { font-size: .66rem; color: var(--muted); }
.tabbar { display: flex; justify-content: space-around; padding: 10px 6px 14px; background: var(--white); border-top: 1px solid var(--line); font-size: .66rem; color: var(--muted); }
.tabbar .on { color: var(--ink); font-weight: 700; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px;
}
summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); font-size: .96rem; }
.cost-list { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.cost-list li {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline;
  padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: .92rem; color: var(--muted);
}
.cost-list strong { color: var(--ink); font-size: .92rem; }
.cost-list .when { display: block; font-size: .78rem; font-weight: 600; color: #b8860b; }
@media (max-width: 480px) { .cost-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .lead { color: rgba(255,255,255,.65); }
.contact .eyebrow { color: var(--moon); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.reply-note { margin-top: 28px; font-size: .95rem; color: var(--moon-soft); }
form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 16px; }
form h3 { color: var(--ink); font-size: 1.2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--moon); border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .83rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
form .btn { width: 100%; }
.form-msg { font-size: .9rem; color: #2e7d4f; display: none; }

footer { background: #0a0d18; color: rgba(255,255,255,.45); padding: 40px 0; font-size: .85rem; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .logo { font-size: 1rem; margin-bottom: 8px; }

/* Floating CTA (mobile) */
.float-cta { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .demo-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero::before { width: 90px; height: 90px; top: 84px; right: 6%; box-shadow: 0 0 60px 14px rgba(245,200,76,.2), inset -18px -6px 0 0 #e0a92a; }
  .pain-grid, .pkg-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 12px 0; }
  .menu .btn { margin-top: 8px; }
  .hero { padding: 120px 0 80px; }
  .pain-grid, .pkg-grid, .why-grid, .compare, .steps, .row { grid-template-columns: 1fr; }
  .demo-visual { min-height: 0; }
  .duo { padding: 0; }
  .duo .browser { width: 100%; }
  .admin { grid-template-columns: 1fr; min-height: 0; }
  .admin-side { display: none; }
  .duo .phone { position: static; transform: none; margin: 16px auto 0; }
  .sync { position: static; display: block; text-align: center; margin-top: 14px; border-radius: 10px; }
  .float-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  footer { padding-bottom: 96px; }
}

/* 언어 전환 */
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.lang a { padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.6); }
.lang a:hover { color: var(--white); }
.lang a[aria-current="page"] { background: var(--moon); color: var(--navy); }
@media (max-width: 760px) { .nav-right { gap: 12px; } }

/* 일본어: 한글용 줄바꿈 규칙(keep-all)을 쓰면 가나 문장이 넘치므로 일반 규칙 사용 */
:lang(ja) body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  word-break: normal; line-break: strict;
}
