/* === Toss-style design system === */
:root {
  --navy-900: #0a1a3f;
  --navy-800: #11264f;
  --navy-700: #1a3a7a;
  --navy-600: #2754c5;
  --navy-500: #3563e9;
  --navy-100: #e6ecfb;
  --navy-50: #f3f6fd;
  --ink-900: #191f28;
  --ink-700: #4e5968;
  --ink-500: #8b95a1;
  --ink-300: #d1d6db;
  --line: #f1f3f5;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(10, 26, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 26, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 26, 63, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.02em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: all 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
@media (max-width: 640px) { .nav-inner { padding: 12px 20px; } }

.logo { display: inline-flex; align-items: baseline; gap: 8px; }
.logo-mark {
  font-weight: 900; font-size: 20px;
  color: var(--navy-900); letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.logo-name {
  font-size: 13px; font-weight: 600;
  color: var(--ink-700); letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .logo-mark { font-size: 18px; }
  .logo-name { display: none; }
}

.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a {
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--navy-600); }
.nav-menu-cta { display: none; }

.nav-cta {
  background: var(--navy-900); color: #fff !important;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-700); transform: translateY(-1px); }

/* 햄버거 메뉴 버튼 */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0;
  z-index: 110;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 84px 28px 32px;
    gap: 4px;
    box-shadow: -10px 0 40px rgba(10, 26, 63, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a {
    width: 100%;
    padding: 16px 0;
    font-size: 17px; font-weight: 600;
    color: var(--ink-900);
    border-bottom: 1px solid var(--line);
  }
  .nav-menu-cta {
    display: block !important;
    margin-top: 20px;
    background: var(--navy-900); color: #fff !important;
    text-align: center;
    border-radius: 12px !important;
    border: none !important;
    padding: 16px !important;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* === Hero === */
.hero {
  position: relative; padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--navy-50) 0%, #ffffff 100%);
  overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 120px 0 60px; } }
@media (max-width: 480px) { .hero { padding: 100px 0 48px; } }

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(53, 99, 233, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(39, 84, 197, 0.08), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
@media (max-width: 640px) { .hero-inner { padding: 0 20px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--navy-100);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--navy-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  max-width: 95%;
}
@media (max-width: 480px) {
  .hero-badge { font-size: 12px; padding: 7px 14px; margin-bottom: 20px; }
}
.dot {
  width: 6px; height: 6px; background: var(--navy-500); border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.04em; color: var(--ink-900);
  margin-bottom: 20px;
  word-break: keep-all;
}
.accent {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ink-700); line-height: 1.7; margin-bottom: 36px;
  word-break: keep-all;
}
@media (max-width: 480px) {
  .hero-desc br { display: none; }
  .hero-desc { margin-bottom: 28px; }
}
.hero-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 40px; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900); color: #fff;
  box-shadow: 0 6px 16px rgba(10, 26, 63, 0.25);
}
.btn-primary:hover {
  background: var(--navy-700); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 26, 63, 0.3);
}
.btn-ghost {
  background: #fff; color: var(--ink-900);
  border: 1px solid var(--ink-300);
}
.btn-ghost:hover { border-color: var(--navy-500); color: var(--navy-700); }

.hero-stats {
  display: inline-flex; align-items: center;
  background: #fff; padding: 22px 36px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  gap: 28px;
  max-width: 100%;
}
.stat { text-align: center; min-width: 0; }
.stat-num {
  font-size: clamp(22px, 4vw, 32px); font-weight: 800;
  color: var(--navy-900); line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.stat-num span { font-size: 0.65em; color: var(--navy-500); margin-left: 2px; }
.stat-label { font-size: 12px; color: var(--ink-500); margin-top: 6px; font-weight: 500; white-space: nowrap; }
.stat-divider { width: 1px; height: 36px; background: var(--line); flex-shrink: 0; }

@media (max-width: 640px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    padding: 18px 12px;
    gap: 8px;
    border-radius: 20px;
  }
  .stat-divider { display: none; }
  .stat { padding: 0 4px; }
  .stat-label { font-size: 11px; margin-top: 4px; }
}

/* === Section === */
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }
@media (max-width: 480px) { section { padding: 56px 0; } }

.section-head { max-width: 800px; margin: 0 auto 56px; }
.section-head.center { text-align: center; }
@media (max-width: 768px) { .section-head { margin-bottom: 40px; } }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--navy-500); text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800; line-height: 1.3;
  letter-spacing: -0.04em; color: var(--ink-900);
  margin-bottom: 18px;
  word-break: keep-all;
}
.section-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-700); line-height: 1.7;
  word-break: keep-all;
}
@media (max-width: 480px) {
  .section-title br { display: none; }
}

/* === Services grid === */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .service-grid { grid-template-columns: 1fr; gap: 12px; } }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  opacity: 0; transform: translateY(20px);
}
@media (max-width: 480px) { .service-card { padding: 24px 22px; border-radius: 16px; } }

.service-card.in { opacity: 1; transform: translateY(0); }
.service-card:hover {
  border-color: var(--navy-500);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-50);
  color: var(--navy-700);
  border-radius: 14px; margin-bottom: 18px;
  transition: all 0.2s;
}
.service-card:hover .service-icon { background: var(--navy-900); color: #fff; }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink-900); margin-bottom: 10px;
}
.service-card p {
  font-size: 14.5px; color: var(--ink-700); line-height: 1.65;
  word-break: keep-all;
}
.card-arrow {
  position: absolute; top: 24px; right: 24px;
  font-size: 20px; color: var(--ink-300);
  transition: all 0.2s;
}
.service-card:hover .card-arrow { color: var(--navy-500); transform: translateX(4px); }

/* === Detail sections === */
.detail { background: #fff; }
.detail.alt { background: var(--bg-alt); }
.detail-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 72px; align-items: center;
  opacity: 0; transform: translateY(20px);
  transition: all 0.7s ease;
}
.detail-inner.in { opacity: 1; transform: translateY(0); }
.detail-inner.reverse { grid-template-columns: 1fr 1.1fr; }
.detail-inner.reverse .detail-right { order: -1; }
@media (max-width: 900px) {
  .detail-inner, .detail-inner.reverse { grid-template-columns: 1fr; gap: 32px; }
  .detail-inner.reverse .detail-right { order: 0; }
}
.detail-left h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800; line-height: 1.28;
  letter-spacing: -0.04em; color: var(--ink-900);
  margin: 14px 0 18px;
  word-break: keep-all;
}
.detail-left p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-700); line-height: 1.75;
  margin-bottom: 24px;
  word-break: keep-all;
}
@media (max-width: 480px) {
  .detail-left h2 br { display: none; }
}
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li {
  position: relative; padding-left: 32px;
  font-size: 15px; font-weight: 500; color: var(--ink-900);
  line-height: 1.5;
  word-break: keep-all;
}
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px;
  background: var(--navy-900);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center; background-repeat: no-repeat;
  flex-shrink: 0;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) { .info-card { padding: 26px 22px; border-radius: 16px; } }

.info-card.highlight {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; border-color: transparent;
}
.info-card.highlight .info-card-head { color: rgba(255, 255, 255, 0.7); }
.info-card.highlight .info-row { border-color: rgba(255, 255, 255, 0.12); }
.info-card.highlight .info-row span { color: rgba(255, 255, 255, 0.7); }
.info-card.highlight .info-row strong { color: #fff; }
.info-card.highlight .big-number { color: #fff; }
.info-card.highlight .big-number span { color: rgba(255, 255, 255, 0.8); }
.info-card.highlight .info-sub { color: rgba(255, 255, 255, 0.7); }

.info-card-head {
  font-size: 13px; font-weight: 700;
  color: var(--ink-500); margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.big-number {
  font-size: clamp(44px, 8vw, 64px); font-weight: 800; color: var(--navy-900);
  letter-spacing: -0.05em; line-height: 1; margin-bottom: 4px;
}
.big-number span { font-size: 0.45em; margin-left: 6px; }
.info-sub { font-size: 13px; color: var(--ink-500); margin-bottom: 22px; }
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  gap: 12px;
}
.info-row span { color: var(--ink-700); font-weight: 500; }
.info-row strong { font-weight: 700; color: var(--ink-900); text-align: right; }

/* === Process === */
.process { background: var(--navy-50); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; gap: 12px; } }

.process-step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s ease;
}
@media (max-width: 480px) { .process-step { padding: 24px 22px; border-radius: 16px; } }

.process-step.in { opacity: 1; transform: translateY(0); }
.step-num {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--navy-500); margin-bottom: 14px;
}
.process-step h4 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink-900); margin-bottom: 8px;
}
.process-step p {
  font-size: 14px; color: var(--ink-700); line-height: 1.6;
  word-break: keep-all;
}

/* === CTA === */
.cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff; padding: 96px 0;
  position: relative; overflow: hidden;
}
@media (max-width: 768px) { .cta { padding: 72px 0; } }
@media (max-width: 480px) { .cta { padding: 60px 0; } }

.cta::before, .cta::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 99, 233, 0.3), transparent 60%);
  pointer-events: none;
}
.cta::before { top: -300px; left: -200px; }
.cta::after { bottom: -300px; right: -200px; }
.cta-inner { position: relative; text-align: center; }
.cta h2 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.28; margin-bottom: 18px;
  word-break: keep-all;
}
.cta p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  word-break: keep-all;
}
@media (max-width: 480px) {
  .cta h2 br { display: none; }
}
.cta-form {
  display: flex; gap: 10px; max-width: 720px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.cta-form input {
  flex: 1; min-width: 0;
  padding: 14px 16px; border-radius: 10px;
  background: #fff; border: none;
  font-size: 15px; font-weight: 500; color: var(--ink-900);
  outline: none;
}
.cta-form input::placeholder { color: var(--ink-500); }
.cta-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px;
  background: var(--navy-500); color: #fff;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.cta-form button:hover { background: var(--navy-600); transform: translateY(-1px); }
@media (max-width: 720px) {
  .cta-form { flex-direction: column; gap: 8px; padding: 12px; }
  .cta-form button { padding: 16px; }
}

/* === Footer === */
.footer { background: #0a1226; color: rgba(255, 255, 255, 0.7); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr; gap: 40px; } }
.footer-brand .logo-mark {
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  font-size: 22px; margin-bottom: 12px; display: inline-block;
}
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 380px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-cols h5 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.footer-cols a {
  display: block; font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0; transition: color 0.15s;
}
.footer-cols a:hover { color: #fff; }
.phone { font-size: 15px; font-weight: 700; color: #fff !important; margin-top: 12px; }
.phone a { color: #fff !important; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 13px; color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
.footer-company-info {
  font-size: 13px; color: rgba(255, 255, 255, 0.5); line-height: 1.7;
  margin-top: 14px;
  font-style: normal;
}
.footer-company-info a { color: rgba(255, 255, 255, 0.7); }

/* In-view animation default */
.section-head { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.section-head.in { opacity: 1; transform: translateY(0); }

/* 모바일 메뉴 오픈 시 백드롭 */
.nav-menu.open::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(10, 26, 63, 0.4);
  z-index: -1;
  left: -100vw; width: 100vw;
}

/* iOS Safari address bar 대응 */
@supports (-webkit-touch-callout: none) {
  .nav { -webkit-backdrop-filter: saturate(180%) blur(16px); }
}

/* 너무 작은 화면(< 360px) */
@media (max-width: 359px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
}
