:root {
  --brand: #0b4f8a;
  --brand-dark: #083a66;
  --brand-light: #1a6bb5;
  --accent: #00a896;
  --accent-dark: #008f7f;
  --ink: #0f1c2e;
  --muted: #5b6b7c;
  --surface: #f3f7fb;
  --hero-start: #062a4a;
  --hero-mid: #0b4f8a;
  --hero-end: #0d6e8a;
  --radius: 1rem;
  --shadow: 0 12px 40px rgba(11, 79, 138, 0.12);
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, .brand-text, .hero-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 79, 138, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--brand) !important;
}

.navbar-brand .site-logo-img {
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
  color: var(--ink) !important;
}

.nav-link.active {
  color: var(--brand) !important;
}

.btn-cta,
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 168, 150, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 107, 181, 0.35), transparent 50%),
    linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 48%, var(--hero-end) 100%);
}

.hero.has-bg-image {
  background-image:
    linear-gradient(135deg, rgba(6, 42, 74, calc(var(--hero-overlay, 55) / 100)) 0%, rgba(11, 79, 138, calc(var(--hero-overlay, 55) / 100 * 0.92)) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero.has-bg-image::before {
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: pre-line;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.9;
  white-space: pre-line;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 36vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(0, 168, 150, 0.45), transparent 50%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: floatPulse 6s ease-in-out infinite;
  display: none;
  overflow: hidden;
}

.hero-visual.has-side-image {
  border-radius: 1.5rem;
  aspect-ratio: 4 / 5;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .hero-visual {
    display: block;
  }
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(11, 79, 138, 0.18);
}

.feature-card .card-body {
  padding: 1.75rem 1.5rem 2rem;
}

.feature-visual {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(11, 79, 138, 0.12);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-visual {
  transform: scale(1.04);
}

.feature-icon {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0;
}

.bg-surface {
  background: var(--surface);
}

.cspay-section {
  background:
    linear-gradient(120deg, rgba(6, 42, 74, 0.95), rgba(11, 79, 138, 0.92)),
    var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-mosaic-section {
  background: var(--surface);
  --svc-accent: var(--brand);
  --svc-brand-bg: var(--brand);
}

.service-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.service-mosaic-card {
  background: #fff;
  border: 2px solid var(--svc-accent);
  border-radius: 1.25rem;
  padding: 1.6rem 1.35rem 1.45rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(11, 79, 138, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-mosaic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(11, 79, 138, 0.18);
  border-color: var(--brand-dark);
}

.service-mosaic-brand {
  background: linear-gradient(145deg, var(--svc-brand-bg) 0%, var(--brand-light) 100%);
  border-color: var(--svc-brand-bg);
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 32px rgba(11, 79, 138, 0.28);
}

.service-mosaic-brand:hover {
  box-shadow: 0 18px 44px rgba(11, 79, 138, 0.35);
  border-color: var(--svc-brand-bg);
}

.service-mosaic-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-mosaic-brand-sub {
  display: block;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-mosaic-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-mosaic-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-mosaic-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.service-mosaic-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .service-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .service-mosaic {
    grid-template-columns: 1fr;
  }

  .service-mosaic-card {
    min-height: 0;
  }
}

.service-split-card {
  border-radius: var(--radius);
  padding: 2rem;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
  height: 100%;
}

.service-split-card.service-van {
  border-top-color: var(--accent);
}

.service-split-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.service-van .service-split-label {
  color: var(--accent-dark);
}

.service-split-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-split-list li {
  background: var(--surface);
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.trust-badge {
  min-width: 140px;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  background: var(--surface);
  border: 1px solid rgba(11, 79, 138, 0.12);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}

.trust-badge span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-stat {
  color: var(--muted);
  font-weight: 500;
}

.cspay-section .phone-mock {
  width: min(280px, 70%);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 2rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeUp 0.9s ease 0.15s both;
}

.cspay-section .phone-mock::after {
  content: "CS PAY";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.inquiry-section {
  background: var(--surface);
}

.inquiry-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.trust-section {
  background: #fff;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.trust-logo {
  min-width: 120px;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--ink), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
}

.page-hero {
  background: linear-gradient(135deg, var(--surface), #e8f1f8);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(11, 79, 138, 0.08);
}

.demo-banner {
  background: #fff3cd;
  color: #856404;
  border-top: 1px solid #ffe69c;
}

.site-footer {
  background: #0a1628;
  color: #fff;
}

.text-footer-muted {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-left: 0;
  margin-right: 1rem;
}

.footer-links a:hover {
  color: #fff;
}

.legal-content {
  max-width: 860px;
  line-height: 1.8;
  color: var(--ink);
  white-space: normal;
  background: #fff;
  border: 1px solid rgba(11, 79, 138, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-content br + br {
  display: block;
  content: "";
  margin-top: 0.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
}

#appToast.toast-success {
  background: var(--accent);
  color: #fff;
}

#appToast.toast-error {
  background: #c0392b;
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 0.2rem rgba(11, 79, 138, 0.15);
}

.service-block {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(11, 79, 138, 0.2);
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(calc(-50% - 12px)) scale(1.03);
  }
}

@media (max-width: 767.98px) {
  .hero {
    text-align: center;
    min-height: 560px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .d-flex {
    justify-content: center;
  }
}

/* AML Solution */
.aml-hero {
  background: linear-gradient(135deg, #061a2e 0%, #0b4f8a 55%, #0d6e8a 100%);
  color: #fff;
  padding: 4.5rem 0;
}
.aml-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}
.aml-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.aml-hero-lead {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1rem;
}
.aml-hero-desc {
  opacity: 0.82;
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 0;
}
.aml-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  font-weight: 600;
}
.aml-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.aml-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  text-align: center;
}
.aml-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.aml-stat span,
.aml-target {
  opacity: 0.8;
}
.aml-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.aml-num.light { color: #7eb6e8; }
.aml-value-card,
.aml-diff-card,
.aml-feat-card,
.aml-sec-card,
.aml-need-card,
.aml-source-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.aml-value-card h4,
.aml-diff-card h4,
.aml-feat-card h4,
.aml-sec-card h4,
.aml-need-card h4,
.aml-source-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.aml-value-card p,
.aml-diff-card p,
.aml-need-card p,
.aml-source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.aml-feat-card p,
.aml-sec-card ul,
.aml-sec-card li {
  font-size: 1.02rem;
  line-height: 1.6;
}
.aml-section-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.section-lead {
  font-size: 1.05rem;
}
.aml-need-section,
.aml-diff-section,
.aml-feature-section,
.aml-source-section,
.aml-security-section {
  background: var(--surface);
}
.aml-compare {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(11,79,138,0.12);
  background: #fff;
}
.aml-compare-head,
.aml-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.aml-compare-head {
  background: #0a1628;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.aml-compare-head span,
.aml-compare-before,
.aml-compare-after {
  padding: 1rem 1.15rem;
  font-size: 1.02rem;
  line-height: 1.55;
}
.aml-compare-head .after,
.aml-compare-after {
  background: rgba(0,168,150,0.08);
}
.aml-compare-row:nth-child(odd) .aml-compare-before {
  background: #fafbfc;
}
.aml-compare-before {
  color: #8a5a5a;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.aml-compare-after {
  color: #0f5132;
  border-top: 1px solid rgba(0,168,150,0.12);
  font-weight: 500;
}
.aml-rba {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.aml-rba-step {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.aml-rba-index {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.aml-rba-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.aml-rba-step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.aml-feat-card ul,
.aml-sec-card ul,
.aml-bullet {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.aml-feat-card h4 span {
  color: var(--brand);
  margin-right: 0.25rem;
}
.aml-list-stack {
  display: grid;
  gap: 0.75rem;
}
.aml-list-item {
  background: #fff;
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.aml-list-item strong {
  display: block;
  margin-bottom: 0.25rem;
}
.aml-list-item span {
  color: var(--muted);
  font-size: 0.9rem;
}
.aml-algo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.aml-algo {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 0.85rem;
}
.aml-algo strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.aml-algo span {
  font-size: 0.8rem;
  color: var(--muted);
}
.aml-source-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: #e8f1f8;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}
.aml-layers {
  display: grid;
  gap: 0.5rem;
}
.aml-layer {
  background: #fff;
  border-left: 4px solid var(--brand);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.aml-pipeline {
  margin: 0;
  padding-left: 1.25rem;
}
.aml-pipeline li {
  margin-bottom: 0.65rem;
  color: var(--muted);
}
.aml-pipeline strong {
  color: var(--ink);
}
.aml-summary {
  background: linear-gradient(135deg, #0a1628, #0b4f8a);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
}
.aml-summary-item {
  background: rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.aml-contact {
  opacity: 0.8;
  font-size: 0.9rem;
}
@media (max-width: 991.98px) {
  .aml-rba { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .aml-compare-head,
  .aml-compare-row { grid-template-columns: 1fr; }
  .aml-rba { grid-template-columns: 1fr; }
  .aml-algo-grid { grid-template-columns: 1fr; }
}
