:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f2f6ff;
  --text: #0f1f3a;
  --muted: #5f6f86;
  --line: #dfe6ef;
  --brand: #245cff;
  --brand-2: #1c48cc;
  --duck: #ffd84f;
  --duck-dark: #f0b82a;
  --success: #158b63;
  --shadow: 0 20px 60px rgba(25, 46, 89, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcff 0%, #f6f9ff 42%, #ffffff 100%);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(223,230,239,.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.18rem;
}
.brand img { width: 36px; height: 36px; }
.brand span strong { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: .95rem;
  color: #33435d;
}
.nav-links a:hover { color: var(--brand); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(24, 49, 90, .05);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: .82rem;
}
.lang-switch button.active {
  background: var(--text);
  color: #fff;
}

.hero {
  padding: 86px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .83rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  background: #edf3ff;
  border: 1px solid #dbe7ff;
  padding: 8px 12px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--duck);
  box-shadow: 0 0 0 4px rgba(255,216,79,.22);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.35rem);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 22px 0 24px;
  max-width: 760px;
}
.hero-copy {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 670px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 19px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(20, 47, 98, .09); }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.secondary { background: #fff; }
.hero-note { color: #7b889b; font-size: .83rem; margin-top: 16px; }

.product-stage {
  position: relative;
  min-height: 600px;
}
.product-stage::before {
  content: "";
  position: absolute;
  inset: 7% -4% 0 8%;
  border-radius: 46px;
  background: radial-gradient(circle at 30% 20%, rgba(255,221,104,.55), rgba(73,113,255,.10) 48%, transparent 70%);
  filter: blur(3px);
}
.duck-orbit {
  position: absolute;
  width: 168px;
  height: 168px;
  left: 7px;
  top: 22px;
  background: #fff7d5;
  border-radius: 46% 54% 52% 48% / 49% 43% 57% 51%;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  z-index: 3;
}
.duck-mascot {
  position: relative;
  width: 112px;
  height: 100px;
  transform: rotate(6deg);
}
.duck-head {
  position: absolute;
  width: 80px;
  height: 74px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(145deg,#ffe878,#ffd34b);
  left: 16px;
  top: 0;
  box-shadow: inset -8px -8px 0 rgba(228,174,32,.09);
}
.duck-body {
  position: absolute;
  width: 86px;
  height: 52px;
  border-radius: 54% 54% 45% 45%;
  background: #ffd84f;
  left: 13px;
  top: 53px;
}
.duck-eye { position:absolute; top:27px; width:7px; height:9px; border-radius:50%; background:#13213a; z-index:2; }
.duck-eye.left { left:38px; }
.duck-eye.right { left:68px; }
.duck-beak { position:absolute; top:43px; left:46px; width:23px; height:13px; border-radius:50% 50% 44% 44%; background:#ff9945; z-index:3; }
.duck-wing { position:absolute; top:62px; left:3px; width:28px; height:31px; border-radius:56% 42% 56% 46%; background:#ffdf65; transform:rotate(25deg); z-index:1; }
.duck-tuft { position:absolute; left:54px; top:-10px; width:17px; height:18px; border-left:5px solid #f2bc28; border-radius:50%; transform:rotate(-28deg); }

.chat-card {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(470px, 90%);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4eaf3;
  box-shadow: 0 32px 80px rgba(30,55,110,.16);
  z-index: 2;
}
.chat-head {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff6cf;
  display: grid;
  place-items: center;
  border: 1px solid #f7e6a6;
}
.chat-avatar img { width: 32px; height: 32px; }
.chat-name { font-weight: 850; }
.chat-status { color: var(--success); font-size: .79rem; margin-top: 1px; }
.chat-body { padding: 22px 20px 18px; background: linear-gradient(180deg,#fafcff,#f7f9fd); min-height: 400px; }
.msg-row { display:flex; gap:9px; margin-bottom: 15px; align-items:flex-end; }
.msg-row.user { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.45;
  box-shadow: 0 5px 16px rgba(19,33,58,.04);
}
.bubble.bot { background:#fff; border:1px solid #e7ebf1; border-bottom-left-radius:6px; }
.bubble.user { background:var(--brand); color:#fff; border-bottom-right-radius:6px; }
.msg-avatar { width:26px; height:26px; border-radius:9px; background:#fff5c8; display:grid; place-items:center; border:1px solid #f7e1a0; flex:0 0 auto; }
.msg-avatar img { width:22px; height:22px; }
.action-chip {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:10px;
  color:var(--brand);
  background:#f2f6ff;
  border:1px solid #dce7ff;
  padding:7px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
}
.handoff-banner {
  margin-top: 4px;
  background: #fffdf5;
  border: 1px solid #f3e7b8;
  border-radius: 14px;
  padding: 12px 13px;
  color: #6d5a18;
  font-size: .81rem;
}
.chat-input {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:9px 10px 9px 14px;
  color:#98a4b5;
  font-size:.88rem;
}
.send-dot { margin-left:auto; width:34px; height:34px; border-radius:11px; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:900; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 32px rgba(29, 47, 84, .05);
  margin-top: 34px;
}
.trust-item { padding: 19px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right:0; }
.trust-item b { display:block; font-size:.92rem; }
.trust-item span { display:block; color:var(--muted); font-size:.8rem; margin-top:3px; }

.section { padding: 98px 0; }
.section.alt { background: #f5f8ff; border-top:1px solid #edf1f7; border-bottom:1px solid #edf1f7; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-kicker { color:var(--brand); font-weight:850; font-size:.82rem; letter-spacing:.04em; text-transform:uppercase; }
h2 { font-size: clamp(2rem,4vw,3.35rem); line-height:1.04; letter-spacing:-.045em; margin:12px 0 16px; }
.section-head p { color:var(--muted); font-size:1.03rem; }

.feature-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.feature-card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:24px; min-height:220px; box-shadow:0 10px 28px rgba(26,44,79,.04); }
.icon-tile { width:44px; height:44px; border-radius:14px; background:#eef3ff; display:grid; place-items:center; font-weight:900; color:var(--brand); margin-bottom:18px; }
.feature-card h3 { margin:0 0 9px; font-size:1.05rem; }
.feature-card p { margin:0; color:var(--muted); font-size:.9rem; }

.product-block { display:grid; grid-template-columns:1fr 1fr; gap:42px; align-items:center; }
.panel { background:#fff; border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow); padding:28px; }
.panel h3 { margin:0 0 12px; font-size:1.5rem; letter-spacing:-.02em; }
.panel p { color:var(--muted); }
.tag { display:inline-flex; gap:7px; align-items:center; border-radius:999px; padding:7px 10px; background:#fff4c7; color:#745c00; font-size:.78rem; font-weight:850; border:1px solid #f5e2a1; }

.summary-card { background:#f8faff; border:1px solid #e4eaf5; border-radius:18px; padding:20px; }
.summary-card dl { margin:0; display:grid; grid-template-columns:120px 1fr; row-gap:12px; font-size:.9rem; }
.summary-card dt { color:#7a8799; }
.summary-card dd { margin:0; font-weight:750; }
.summary-actions { display:flex; gap:9px; margin-top:18px; flex-wrap:wrap; }
.mini-btn { border:1px solid var(--line); background:#fff; padding:9px 12px; border-radius:11px; font-size:.82rem; font-weight:800; }
.mini-btn.primary { background:var(--brand); color:#fff; border-color:var(--brand); }

.family-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.family-card { border:1px solid var(--line); border-radius:22px; padding:24px; background:#fff; min-height:220px; }
.family-card.active { border-color:#cfdcff; box-shadow:0 14px 38px rgba(43,84,185,.08); }
.animal-badge { width:54px; height:54px; border-radius:18px; display:grid; place-items:center; font-size:1.65rem; background:#f4f6fa; margin-bottom:18px; }
.animal-badge.duck { background:#fff4c4; }
.family-card h3 { margin:0; }
.family-card p { color:var(--muted); font-size:.9rem; }
.status-pill { display:inline-flex; margin-top:8px; border-radius:999px; padding:6px 9px; font-size:.75rem; font-weight:800; background:#eef8f4; color:#177454; }
.status-pill.soon { background:#f3f5f8; color:#68788d; }

.security-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:42px; align-items:start; }
.check-list { display:grid; gap:14px; margin-top:24px; }
.check-item { display:flex; gap:12px; align-items:flex-start; }
.check-mark { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:#e9f7f1; color:#0f835b; font-weight:900; flex:0 0 auto; }
.check-item b { display:block; font-size:.95rem; }
.check-item span { color:var(--muted); font-size:.86rem; }

.cta { padding:88px 0 110px; }
.cta-box { background:linear-gradient(135deg,#112343,#1d4dd3); color:#fff; border-radius:32px; padding:54px; display:grid; grid-template-columns:1.1fr .9fr; gap:34px; align-items:center; box-shadow:0 30px 70px rgba(18,44,109,.22); }
.cta-box h2 { margin-top:0; }
.cta-box p { color:#d8e3ff; margin-bottom:0; }
.cta-contact { justify-self:end; min-width:min(100%,360px); background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); border-radius:20px; padding:22px; }
.cta-contact span { display:block; color:#c9d8ff; font-size:.8rem; }
.cta-contact a { display:block; margin-top:4px; font-size:1.03rem; font-weight:850; }

footer { border-top:1px solid var(--line); background:#fff; }
.footer-row { min-height:110px; display:flex; align-items:center; justify-content:space-between; gap:24px; color:#758397; font-size:.83rem; }
.footer-links { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.footer-links a:hover { color:var(--brand); }

.legal { padding:70px 0 110px; }
.legal article { max-width:860px; background:#fff; border:1px solid var(--line); border-radius:24px; padding:42px; box-shadow:0 16px 50px rgba(26,48,89,.05); }
.legal h1 { font-size:2.6rem; margin-top:0; }
.legal h2 { font-size:1.35rem; letter-spacing:-.02em; margin-top:34px; }
.legal p, .legal li { color:#4f5f75; }
.legal .updated { color:#8a96a7; font-size:.85rem; }

.mobile-menu { display:none; }

@media (max-width: 980px) {
  .nav-links { display:none; }
  .hero-grid, .product-block, .security-grid, .cta-box { grid-template-columns:1fr; }
  .hero { padding-top:58px; }
  .product-stage { min-height:570px; margin-top:14px; }
  .chat-card { right:2%; }
  .feature-grid { grid-template-columns:repeat(2,1fr); }
  .family-grid { grid-template-columns:1fr; }
  .trust-row { grid-template-columns:repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right:0; }
  .trust-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .cta-contact { justify-self:start; }
}

@media (max-width: 640px) {
  .container { width:min(100% - 26px,1180px); }
  .nav { min-height:66px; }
  .brand span { font-size:1rem; }
  .brand img { width:32px; height:32px; }
  .lang-switch button { padding:6px 9px; }
  .hero { padding:44px 0 48px; }
  h1 { font-size:2.85rem; }
  .hero-copy { font-size:1rem; }
  .product-stage { min-height:535px; }
  .duck-orbit { width:125px; height:125px; top:2px; left:-8px; transform:scale(.86) rotate(-6deg); }
  .chat-card { width:94%; right:0; top:54px; border-radius:22px; }
  .chat-body { min-height:390px; padding:18px 15px; }
  .bubble { max-width:84%; font-size:.86rem; }
  .trust-row { grid-template-columns:1fr; }
  .trust-item { border-right:0; border-bottom:1px solid var(--line); }
  .trust-item:last-child { border-bottom:0; }
  .feature-grid { grid-template-columns:1fr; }
  .section { padding:72px 0; }
  .panel { padding:22px; }
  .summary-card dl { grid-template-columns:1fr; row-gap:5px; }
  .summary-card dd { margin-bottom:9px; }
  .cta { padding:66px 0 84px; }
  .cta-box { padding:32px 24px; border-radius:24px; }
  .footer-row { padding:26px 0; flex-direction:column; align-items:flex-start; min-height:auto; }
  .legal article { padding:26px 20px; }
}

.duck-orbit {
  width: 126px;
  height: 126px;
  left: auto;
  right: 18px;
  top: -4px;
  border-radius: 34px;
  transform: rotate(-5deg);
  z-index: 3;
}
.duck-orbit-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .72rem;
  font-weight: 850;
  color: #7b6800;
  background: rgba(255,255,255,.75);
  border: 1px solid #f0e3a9;
  border-radius: 999px;
  padding: 4px 8px;
}
.duck-mascot {
  width: 90px;
  height: 80px;
}
.chat-card {
  top: 72px;
}
.chat-name {
  font-weight: 850;
  padding-right: 78px;
}
.build-list { display:grid; gap:16px; }
.build-item { padding:14px 0; border-bottom:1px solid #edf1f7; }
.build-item:last-child { border-bottom:0; padding-bottom:0; }
.build-item b { display:block; font-size:.95rem; margin-bottom:4px; }
.build-item span { color:var(--muted); font-size:.88rem; }
.legal code { background:#f3f6fb; border:1px solid #e4eaf4; padding:1px 6px; border-radius:8px; font-size:.92em; }
.legal ul { color:#4f5f75; padding-left:22px; }
.legal li { margin-bottom:8px; }

@media (max-width: 640px) {
  .product-stage { min-height: 555px; }
  .duck-orbit {
    width: 110px;
    height: 110px;
    right: 8px;
    top: -10px;
    left: auto;
    transform: scale(.94) rotate(-4deg);
  }
  .duck-orbit-label { top: 10px; left: 10px; font-size: .68rem; }
  .chat-card { top: 64px; }
  .chat-name { padding-right: 54px; }
}

/* Final typography and responsive polish */
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] .hero-copy,
html[lang="ko"] .section-head p,
html[lang="ko"] .feature-card h3,
html[lang="ko"] .feature-card p,
html[lang="ko"] .check-item b,
html[lang="ko"] .check-item span,
html[lang="ko"] .family-card p,
html[lang="ko"] .cta-box p {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.hero h1,
.section-head h2,
.product-block h2,
.security-grid h2,
.cta-box h2 {
  text-wrap: balance;
}

html[lang="ko"] .hero h1 {
  font-size: clamp(2.45rem, 5.6vw, 4.95rem);
  line-height: 1.06;
  letter-spacing: -0.048em;
}

html[lang="ko"] .section-head h2,
html[lang="ko"] .product-block h2,
html[lang="ko"] .security-grid h2,
html[lang="ko"] .cta-box h2 {
  font-size: clamp(1.95rem, 3.7vw, 3.05rem);
  line-height: 1.13;
  letter-spacing: -0.038em;
}

/* Keep the mascot fully clear of the messenger header. */
.product-stage {
  min-height: 625px;
}
.duck-orbit {
  top: 0;
  right: 22px;
  left: auto;
  z-index: 3;
}
.chat-card {
  top: 132px;
  z-index: 2;
}
.chat-name {
  padding-right: 0;
}

.legal-lang-section[hidden] { display: none; }
.legal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 24px;
}
.legal-toolbar .lang-switch { width: max-content; }
.legal .notice-box {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #e2e8f1;
  background: #f8faff;
  border-radius: 14px;
  color: #4f5f75;
  font-size: .92rem;
}

@media (max-width: 640px) {
  html[lang="ko"] .hero h1 {
    font-size: clamp(2.28rem, 10.4vw, 2.95rem);
    line-height: 1.09;
    letter-spacing: -0.04em;
  }
  html[lang="ko"] .section-head h2,
  html[lang="ko"] .product-block h2,
  html[lang="ko"] .security-grid h2,
  html[lang="ko"] .cta-box h2 {
    font-size: clamp(1.78rem, 7.7vw, 2.18rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
  }
  .product-stage { min-height: 592px; }
  .duck-orbit {
    width: 106px;
    height: 106px;
    right: 8px;
    top: 0;
    left: auto;
    transform: rotate(-4deg);
  }
  .chat-card {
    width: 100%;
    right: 0;
    top: 116px;
  }
  .chat-head { padding: 0 16px; }
  .chat-name { padding-right: 0; }
  .legal h1 {
    font-size: 2.15rem;
    line-height: 1.08;
    word-break: keep-all;
  }
}
