* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', Roboto, sans-serif;
  color: #1a1f36;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.nav {
  display: flex; align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid #f0f1f5;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
  color: #1a1f36;
}
.brand .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f7cff, #2856ff);
  box-shadow: 0 4px 12px rgba(40,86,255,0.25);
}
.nav-links { display: flex; gap: 28px; margin-left: 36px; }
.nav-links a { color: #4a5168; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #2856ff; }
.nav-actions { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-actions a { color: #4a5168; font-size: 14px; font-weight: 500; }
.nav-actions a:hover { color: #1a1f36; }
.btn-cta {
  background: #2856ff !important; color: #fff !important;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(40,86,255,0.25);
}
.btn-cta:hover { background: #1f44d6 !important; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 88px 64px 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.hero > * { min-width: 0; }
.headline {
  font-size: 60px; line-height: 1.12; font-weight: 800;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.headline em { font-style: normal; color: #2856ff; }
.lead {
  font-size: 19px; color: #4a5168; line-height: 1.65;
  margin: 0 0 36px;
  max-width: 520px;
}
.lead strong { color: #1a1f36; font-weight: 700; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: #2856ff; color: #fff;
  padding: 16px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: none;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(40,86,255,0.28);
}
.btn-primary:hover { background: #1f44d6; }
.btn-ghost {
  background: #fff; color: #1a1f36;
  padding: 16px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 1px solid #e0e3eb;
  display: inline-block;
}
.btn-ghost:hover { background: #f5f6fa; }

.code-card {
  background: #0e1320;
  border-radius: 22px;
  padding: 28px;
  color: #e9ecf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.85;
  box-shadow: 0 30px 70px rgba(40, 86, 255, 0.18);
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
}
.code-card .dots { display: flex; gap: 6px; margin-bottom: 22px; align-items: center; }
.code-card .dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-card .dots span:nth-child(1) { background: #ff5f57; }
.code-card .dots span:nth-child(2) { background: #febc2e; }
.code-card .dots span:nth-child(3) { background: #28c840; }
.code-card .dots .title { margin-left: 12px; color: #8893b0; font-size: 12px; }
.code-card .lbl { color: #6b7280; }
.code-card .url { color: #79a8ff; }
.code-card .str { color: #f5a623; }
.code-card hr { border: none; border-top: 1px solid #1e2440; margin: 18px 0; }
.code-card .below { color: #8893b0; font-family: inherit; font-size: 13px; line-height: 1.6; }
.code-card .below b { color: #79a8ff; font-weight: 700; }

.features {
  background: #fff;
  padding: 80px 32px;
  border-top: 1px solid #f0f1f5;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing {
  background: linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  padding: 80px 24px;
  border-top: 1px solid #f0f1f5;
}
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-head { text-align: center; margin-bottom: 44px; }
.pricing-head h2 {
  font-size: 36px; font-weight: 800; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pricing-head p {
  margin: 0; color: #4a5168; font-size: 15px; line-height: 1.6;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1.5px solid #eef0f4;
  border-radius: 22px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  border-color: #c7d3ff;
}
.price-card.featured {
  border-color: #2856ff; border-width: 2px;
  box-shadow: 0 20px 48px rgba(40,86,255,0.18);
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 30%);
}
.price-badge {
  position: absolute; top: -12px; left: 24px;
  background: linear-gradient(135deg, #4f7cff, #2856ff);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(40,86,255,0.32);
}
.price-name {
  font-size: 22px; font-weight: 800; color: #1a1f36;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.price-desc {
  color: #6b7280; font-size: 13px; line-height: 1.6;
  margin-bottom: 22px;
}
.price-amount {
  font-size: 36px; font-weight: 800; color: #1a1f36;
  letter-spacing: -0.02em; line-height: 1.1;
}
.price-amount span {
  font-size: 14px; font-weight: 500; color: #6b7280; margin-left: 4px;
}
.price-vat {
  color: #8893b0; font-size: 12px; margin-top: 4px;
  margin-bottom: 22px;
}
.price-features {
  list-style: none; padding: 0; margin: 0 0 26px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px; color: #1a1f36; line-height: 1.5;
  border-bottom: 1px solid #f4f6fb;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  color: #2856ff; font-weight: 700;
}
.price-cta {
  display: block; text-align: center;
  background: #fff; color: #1a1f36;
  border: 1.5px solid #e0e3eb;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700; font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.price-cta:hover { background: #f8f9fc; border-color: #c3c9d4; }
.price-card.featured .price-cta {
  background: #2856ff; color: #fff; border-color: #2856ff;
  box-shadow: 0 6px 16px rgba(40,86,255,0.25);
}
.price-card.featured .price-cta:hover { background: #1f44d6; border-color: #1f44d6; }

.pricing-note {
  margin: 40px 0 0;
  text-align: center; font-size: 13px; color: #6b7280;
  line-height: 1.8;
}
.pricing-note a { color: #2856ff; font-weight: 600; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .price-card.featured { transform: none; }
}
.features-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feat {
  padding: 28px; background: #f8f9fc; border-radius: 18px;
  border: 1px solid #eef0f4;
}
.feat .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #4f7cff, #2856ff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin-bottom: 16px;
}
.feat h3 { margin: 0 0 10px; font-size: 18px; }
.feat p { margin: 0; color: #4a5168; font-size: 14px; line-height: 1.65; }

footer {
  padding: 32px; text-align: center; color: #8893b0; font-size: 13px;
}

/* ── Site footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: #f8f9fc;
  border-top: 1px solid #eef0f4;
  padding: 48px 24px 0;
  margin-top: 80px;
  color: #4a5168;
  font-size: 13px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 36px;
}

/* Left brand block */
.footer-brand { max-width: 320px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: #1a1f36;
  margin-bottom: 14px;
}
.footer-logo .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #4f7cff, #2856ff);
  box-shadow: 0 4px 12px rgba(40,86,255,0.25);
  flex-shrink: 0;
}
.footer-tagline {
  margin: 0;
  font-size: 13.5px;
  color: #4a5168;
  line-height: 1.7;
}

/* Right link columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #1a1f36;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: #4a5168;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #2856ff; }
.footer-col a:last-child { margin-bottom: 0; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #eef0f4;
  padding: 18px 0 28px;
}
.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-company-info {
  font-size: 12.5px;
  color: #8893b0;
  line-height: 1.7;
}
.footer-company-info strong { color: #4a5168; font-weight: 700; }
.footer-company-info a { color: #8893b0; }
.footer-company-info a:hover { color: #2856ff; }
.footer-copy {
  font-size: 12px;
  color: #8893b0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-footer { padding: 36px 20px 0; margin-top: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { max-width: none; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; }
  .footer-copy { white-space: normal; }
}

/* ── Document pages (terms / privacy) ────────────────────────────────── */
.doc-wrap {
  max-width: 820px;
  margin: 40px auto 24px;
  padding: 0 24px;
  line-height: 1.75;
  color: #1a1f36;
}
.doc-wrap h1 {
  font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px;
}
.doc-wrap .doc-meta {
  color: #8893b0; font-size: 13px; margin: 0 0 28px;
}
.doc-wrap h2 {
  font-size: 18px; margin: 28px 0 10px;
  padding-top: 18px; border-top: 1px solid #eef0f4;
  color: #2856ff;
}
.doc-wrap h2:first-of-type { border-top: 0; padding-top: 0; }
.doc-wrap p { margin: 0 0 12px; color: #1a1f36; font-size: 15px; }
.doc-wrap ol, .doc-wrap ul { padding-left: 22px; margin: 0 0 12px; }
.doc-wrap ol li, .doc-wrap ul li { margin-bottom: 6px; font-size: 14.5px; }
.doc-wrap ul ul, .doc-wrap ol ul { margin-top: 6px; }
.doc-wrap strong { color: #1a1f36; }
.doc-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 12px;
  font-size: 14px;
}
.doc-table th, .doc-table td {
  border: 1px solid #e0e3eb; padding: 8px 12px; text-align: left;
  vertical-align: top;
}
.doc-table th { background: #f8f9fc; color: #4a5168; font-weight: 600; width: 200px; }
.doc-back {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid #eef0f4;
}
.doc-back a { color: #2856ff; font-weight: 600; }

@media (max-width: 640px) {
  .doc-wrap { padding: 0 16px; margin-top: 28px; }
  .doc-wrap h1 { font-size: 24px; }
  .doc-table th { width: auto; }
}

/* signup */
.signup-wrap {
  max-width: 560px; margin: 56px auto;
  background: #fff; border-radius: 24px;
  padding: 44px;
  box-shadow: 0 20px 60px rgba(40, 86, 255, 0.08);
  border: 1px solid #eef0f4;
}
.signup-wrap h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
.signup-wrap .sub { color: #6b7280; margin: 0 0 28px; font-size: 14px; line-height: 1.6; }
.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 13px; color: #4a5168; margin-bottom: 6px; font-weight: 600; }
.fld input {
  width: 100%; padding: 12px 14px;
  border: 1px solid #e0e3eb; border-radius: 10px;
  font-size: 15px; font-family: inherit;
  background: #fff; color: #1a1f36;
}
.fld input:focus { outline: none; border-color: #2856ff; box-shadow: 0 0 0 3px rgba(40,86,255,0.12); }
.fld .hint { color: #8893b0; font-size: 12px; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; gap: 18px; }
.checks label {
  display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer;
  padding: 10px 16px; border: 1px solid #e0e3eb; border-radius: 10px; flex: 1;
}
.checks label:has(input:checked) { border-color: #2856ff; background: #f0f4ff; color: #2856ff; }
.checks input { width: auto; }
.submit-btn {
  width: 100%; margin-top: 12px;
  padding: 15px; background: #2856ff; color: #fff;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700;
}
.submit-btn:hover { background: #1f44d6; }
.submit-btn:disabled { background: #b8c4e8; cursor: wait; }
.toast-msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.toast-msg.ok { background: #e6f7ec; color: #1a7e3c; border: 1px solid #b6e6c5; }
.toast-msg.err { background: #fdecec; color: #b91c1c; border: 1px solid #f5c0c0; }
.back-link { display: block; text-align: center; margin-top: 18px; color: #6b7280; font-size: 13px; }

@media (max-width: 800px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-actions { gap: 14px; }
  .nav-actions a:not(.btn-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 48px 22px; gap: 32px; }
  .headline { font-size: 38px; }
  .lead { font-size: 16px; }
  .features { padding: 48px 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .signup-wrap { margin: 20px 14px; padding: 26px; }
  .row2 { grid-template-columns: 1fr; }
  .checks { flex-direction: column; gap: 10px; }
}
