*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* ─── SECTIONS ───────────────────────────────── */
section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
section.full-width {
  max-width: none;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(224, 0, 77, 0.2);
}

h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}

.accent {
  color: var(--brand);
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 {
  transition-delay: 0.1s;
}
.fade-up.delay-2 {
  transition-delay: 0.2s;
}
.fade-up.delay-3 {
  transition-delay: 0.3s;
}
.fade-up.delay-4 {
  transition-delay: 0.4s;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.2s,
    box-shadow 0.3s,
    transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 32px rgba(224, 0, 77, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── HERO ────────────────────────────────────── */
#hero {
  padding-top: 140px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(224, 0, 77, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(224, 0, 77, 0.04) 0%, transparent 60%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-text {
  max-width: 900px;
  margin-bottom: 48px;
}
.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 24px 0 40px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── FUNNEL VISUAL (Hero) ────────────────────── */

/* ─── PROBLEM SECTION ────────────────────────── */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.2s;
}
.problem-item:hover {
  border-color: rgba(224, 0, 77, 0.3);
  background: rgba(224, 0, 77, 0.04);
  transform: translateX(4px);
}
.problem-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s;
  margin-top: 1px;
}
.problem-item:hover .problem-check {
  background: var(--brand);
  border-color: var(--brand);
}
.check-mark {
  display: none;
}
.problem-item:hover .check-mark {
  display: block;
}
.problem-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.problem-item:hover .problem-text {
  color: var(--text);
}
.problem-body {
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
  margin: 32px 0 10px;
  max-width: 640px;
}

/* ─── CLIENTS LOGO MARQUEE ───────────────────── */
#clients {
  padding: 56px 48px 72px;
  max-width: none;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid rgba(224, 0, 77, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-marquee-wrap {
  overflow: hidden;
  position: relative;
}
.logo-marquee-wrap::before,
.logo-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-card) 0%, transparent 100%);
}
.logo-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-card) 0%, transparent 100%);
}
.logo-marquee {
  display: flex;
  gap: 0;
  width: -moz-max-content;
  width: max-content;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 80px;
  padding: 20px 28px;
  flex-shrink: 0;
  background: var(--bg-card3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin: 0 8px;
  opacity: 1;
  transition:
    border-color 0.3s,
    transform 0.2s,
    box-shadow 0.2s;
}
.logo-item:hover {
  transform: translateY(-1px);
  border-color: var(--brand-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.logo-item img {
  max-width: 130px;
  max-height: 42px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

/* ─── FRAMEWORK (4-STEP) ─────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.step-card:hover {
  border-color: rgba(224, 0, 77, 0.3);
  box-shadow: 0 0 32px rgba(224, 0, 77, 0.08);
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-dim);
  border: 1px solid rgba(224, 0, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.step-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

/* ─── DATA FLOW VISUAL ───────────────────────── */
.data-flow {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}
.data-flow-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.data-flow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.data-flow-node {
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.data-flow-node.highlight {
  border-color: rgba(224, 0, 77, 0.35);
  background: rgba(224, 0, 77, 0.06);
}
.data-flow-node.highlight .data-flow-name,
.data-flow-node--alert .data-flow-name {
  color: var(--brand);
}
.data-flow-node.highlight .data-flow-role,
.data-flow-node--alert .data-flow-role {
  color: rgba(224, 0, 77, 0.7);
}
/* alert 변형 — 부정/문제 강조 (top row 마지막 노드) */
.data-flow-node--alert {
  border-color: rgba(224, 0, 77, 0.25);
  background: rgba(224, 0, 77, 0.05);
}
/* 비교/연결 화살표 */
.data-flow-arrow--alert {
  font-size: 20px;
  color: var(--brand);
}
.data-flow-arrow--brand {
  color: var(--brand);
}
/* "도입 후" 후속 row 컨테이너 */
.data-flow-after {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.data-flow-after .data-flow-title {
  margin-bottom: 16px;
}
.data-flow-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.data-flow-role {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}
.data-flow-arrow {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── TAXONOMY SECTION ───────────────────────── */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 48px 0;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.tax-card {
  background: var(--bg-card);
  padding: 36px 28px;
  transition: background 0.3s;
}
.tax-card:hover {
  background: var(--bg-card2);
}
.tax-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}
.tax-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}
.tax-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}
.tax-list {
  list-style: none;
}
.tax-list li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tax-list li:last-child {
  border-bottom: none;
}
.tax-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── DASHBOARD SECTION ──────────────────────── */

/* Mini bar chart */

/* ─── CRM CAMPAIGN SECTION ───────────────────── */

/* ─── CASES SECTION ──────────────────────────── */

/* ─── SOLUTIONS LOGOS ────────────────────────── */
.solutions-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  justify-content: center;
}
.solution-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.solution-item:hover {
  border-color: var(--brand-glow);
  box-shadow: 0 0 24px rgba(224, 0, 77, 0.07);
}

.solution-logo {
  max-width: 130px;
  max-height: 42px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

/* ─── NOTE / KEYLINE ─────────────────────────── */
.section-note {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(224, 0, 77, 0.24);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

/* ─── CTA SECTION ────────────────────────────── */
.section-note--spaced {
  margin-top: 40px;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 70% at 50% 50%,
    rgba(224, 0, 77, 0.06) 0%,
    transparent 70%
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 auto 40px;
}
/* ─── FOOTER ─────────────────────────────────── */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img {
  height: 24px;
  opacity: 0.6;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 767px) {
  nav {
    padding: 0 24px;
  }
  section {
    padding: 80px 24px;
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }
  .data-flow-row {
    flex-direction: column;
  }
  .data-flow-arrow {
    transform: rotate(90deg);
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}
