*,
*::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;
}

/* ─── HERO CHANNEL VISUAL ─────────────────────── */

/* ─── 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;
}

/* ─── SERVICES GRID ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.service-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;
}
.service-card:hover {
  border-color: rgba(224, 0, 77, 0.3);
  box-shadow: 0 0 32px rgba(224, 0, 77, 0.08);
}
.service-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.service-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.service-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.02);
}
.service-card.full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  -moz-column-gap: 32px;
       column-gap: 32px;
  align-items: start;
}
.service-card.full > .service-num,
.service-card.full > .service-title,
.service-card.full > .service-desc,
.service-card.full > .service-tags {
  grid-column: 1;
}
.service-card.full > .service-desc {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.service-card.full > .ops-ui {
  grid-column: 2;
  grid-row: 1 / span 5;
  margin-top: 0;
  align-self: center;
  max-width: none;
}

/* mini audit UI */
.audit-ui {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card2);
}
.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.audit-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-glow);
  padding: 2px 8px;
  border-radius: 4px;
}
.audit-rows {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.audit-row-label {
  color: var(--text-secondary);
}
.audit-score {
  display: flex;
  align-items: center;
  gap: 6px;
}
.audit-bar-wrap {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.audit-rows .audit-row:nth-child(1) .audit-bar-fill {
  width: 55%;
}
.audit-rows .audit-row:nth-child(2) .audit-bar-fill {
  width: 38%;
}
.audit-rows .audit-row:nth-child(3) .audit-bar-fill {
  width: 62%;
}
.audit-rows .audit-row:nth-child(4) .audit-bar-fill {
  width: 41%;
}
.audit-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.audit-bar-fill.ok {
  background: #22c55e;
}
.audit-bar-fill.warn {
  background: #f59e0b;
}
.audit-bar-fill.bad {
  background: var(--brand);
}
.audit-val {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 24px;
  text-align: right;
}

/* mini creative test UI */
.creative-ui {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card2);
}
.creative-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.creative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
}
.creative-thumb {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 10px 8px;
  text-align: center;
  transition: border-color 0.2s;
}
.creative-thumb.winner {
  border-color: rgba(224, 0, 77, 0.35);
  background: rgba(224, 0, 77, 0.05);
}
.creative-thumb-icon {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.creative-thumb-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
.creative-thumb-label {
  font-size: 10px;
  color: var(--text-muted);
}
.creative-thumb.winner .creative-thumb-label {
  color: var(--brand);
  font-weight: 700;
}
.creative-ctr {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.creative-thumb.winner .creative-ctr {
  color: var(--brand);
}

/* mini operation UI */
.ops-ui {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card2);
}
.ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.ops-status {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ops-status span {
  font-size: 11px;
  color: #22c55e;
}
.ops-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}
.ops-channels {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ops-channel-name {
  font-size: 12px;
  color: var(--text-secondary);
  width: 80px;
  flex-shrink: 0;
}
.ops-channel-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.ops-channel-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
}
/* 채널별 ROAS 막대 (시안 데이터 값) */
.ops-channels .ops-channel-row:nth-child(1) .ops-channel-bar {
  width: 88%;
  opacity: 1;
}
.ops-channels .ops-channel-row:nth-child(2) .ops-channel-bar {
  width: 78%;
  opacity: 0.8;
}
.ops-channels .ops-channel-row:nth-child(3) .ops-channel-bar {
  width: 68%;
  opacity: 0.7;
}
.ops-channels .ops-channel-row:nth-child(4) .ops-channel-bar {
  width: 46%;
  opacity: 0.5;
}
.ops-channel-val {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

/* ─── PROCESS STEPS ─────────────────────────────── */
.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);
}

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

/* ─── TOOLS / SOLUTIONS ──────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 48px 0 0;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.tool-card {
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.3s;
}
.tool-card:hover {
  background: var(--bg-card2);
}
.tool-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.tool-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tool-chip:hover {
  border-color: rgba(224, 0, 77, 0.3);
  color: var(--text);
}

/* ─── NOTE ────────────────────────────────────── */
.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 ─────────────────────────────── */
/* ops-ui 하단 service-tags 간격 (sibling) */
.ops-ui + .service-tags {
  margin-top: 24px;
}
/* tools-grid 다음 위치한 section-note는 더 큰 간격 */
.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);
}

/* ─── CLIENTS MARQUEE ───────────────────────── */
.logo-marquee-wrap {
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, 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;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 767px) {
  nav {
    padding: 0 24px;
  }
  section {
    padding: 80px 24px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card.full {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .service-card.full > .ops-ui {
    grid-column: auto;
    grid-row: auto;
    margin-top: 24px;
    align-self: stretch;
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}
