:root {
  --bg-outer: #090f1d;
  --bg-app: #10192e;
  --bg-card: #18243f;
  --bg-card-soft: #1e2c4b;
  --border: #2c3d63;
  --border-light: #3a4d7a;
  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --badge-bg: rgba(59, 130, 246, 0.15);
  --badge-border: rgba(59, 130, 246, 0.35);
  --container-max: 960px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-outer);
  color: var(--text-main);
  font-family: "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 25, 46, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img,
.brand svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-header:hover {
  background: var(--bg-card-soft);
  text-decoration: none;
  border-color: var(--border-light);
}

/* 히어로 섹션 */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: #60a5fa;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--primary-glow);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  background: #141f38;
  border: 1px solid #233152;
  border-radius: 10px;
  cursor: not-allowed;
  user-select: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card-soft);
  color: var(--text-main);
  text-decoration: none;
  border-color: var(--border-light);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 공통 섹션 */
.section {
  padding: 56px 0;
  border-top: 1px solid rgba(44, 61, 99, 0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* 카드 그리드 */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-light);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-main);
}

.card-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.6;
}

/* 모바일 퍼스트 폰 기능 목록 */
.phone-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.feature-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}

/* 시작 3단계 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.55;
}

/* 가격 섹션 */
.pricing-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid #3b82f6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-name {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: 14px;
  color: #93c5fd;
  margin: 0 0 24px;
}

.pricing-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.pricing-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li::before {
  content: "✓";
  color: #3b82f6;
  font-weight: 800;
  font-size: 16px;
}

/* FAQ 아코디언 */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: #60a5fa;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.65;
  border-top: 1px solid rgba(44, 61, 99, 0.3);
  margin-top: 4px;
  padding-top: 14px;
}

/* 푸터 */
.site-footer {
  background: #0b1222;
  border-top: 1px solid var(--border);
  padding: 44px 0 36px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-brand-wrap {
  max-width: 320px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.footer-business {
  padding-top: 20px;
  border-top: 1px solid rgba(44, 61, 99, 0.4);
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 16px;
  font-size: 12px;
  color: #475569;
}

/* 문서 페이지 전용 (privacy.html, terms.html) */
.doc-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 16px;
  text-decoration: none;
}

.doc-back:hover {
  text-decoration: underline;
}

.doc-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.doc-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.doc-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.doc-content {
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--text-sub);
  line-height: 1.7;
}

.doc-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doc-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #93c5fd;
  margin: 24px 0 12px;
}

.doc-content p {
  margin: 0 0 16px;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.doc-content th,
.doc-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.doc-content th {
  background: var(--bg-card-soft);
  color: var(--text-main);
  font-weight: 700;
}

.doc-content tr:last-child td {
  border-bottom: none;
}

.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
}

.callout-warning {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
}

.callout-danger {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

/* 반응형 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .grid-2x2,
  .grid-3,
  .phone-features,
  .steps {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    padding: 0 16px;
  }

  .doc-title {
    font-size: 24px;
  }

  .doc-content table {
    display: block;
    overflow-x: auto;
  }
}
